/*
Theme Name: fw8.club Theme
Description: Precision layout based on "Correct Layout.jpg". High-fidelity visual box with separate SEO content. Includes Popular Casino Games and Casino Offers sections.
Version: 2.0 - Premium Shimmer Effect (Ultra-Smooth, Enlarged, Jitter-Free)
*/

/* ========== 1. Global Reset & Basic Styling ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    overflow-x: hidden;
    font-family: 'Montserrat', 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 1.5 Simplified Hero Layout (Updated) ========== */
/* Logo Header - Above Hero Image (White Background) */
.simplified-logo-header {
    padding: 30px 40px 20px;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

/* First Row - FW8 + X + PAGCOR Logo (Left Aligned) */
.logo-row-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
}

.logo-fw8 {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

.logo-separator {
    font-size: 36px;
    color: #000000;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
}

.logo-pagcor-text {
    height: 65px;
    width: auto;
    flex-shrink: 0;
}

/* Hero Section - No Overlaid Logos */
.simplified-hero-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.simplified-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px; /* Add rounded corners for all screen sizes */
    box-shadow: none;
    background: transparent;
}

/* Simplified Content Section */
.simplified-content-section {
    text-align: center;
    padding: 40px 20px 60px;
    background: #ffffff;
}

.simplified-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.simplified-title-orange {
    color: #F18221;
}

.simplified-title-navy {
    color: #1B2B5B;
}

.simplified-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1B2B5B;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Simplified Info Box */
.simplified-info-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    border: 2px solid #F0E5C8;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.simplified-info-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #2C3E50;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ========== 1.6 FW8 Global Jackpot Section (已同步 Section D 樣式) ========== */
.jackpot-hero-section {
    padding: 80px 20px; /* 外部留白，跟 Section D 一樣 */
    background: #ffffff; /* 確保外層是白色背景，不干擾內層 Banner */
}

/* 這裡是核心：讓 Banner 變成一個有圓角的盒子，而不是滿版截圖感 */
.jackpot-container {
    max-width: 1200px;
    margin: 0 auto;
    background: url('https://fw8.club/wp-content/uploads/2026/02/jackpot-banner-scaled.jpg') no-repeat center center / cover;
    border-radius: 32px; /* 同步 Register Banner 的圓角 */
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 兩欄布局：左邊文字，右邊留給背景圖人物 */
    align-items: center;
    min-height: 550px; /* 與 Register Banner 高度接近 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); /* 同步 Register Banner 的陰影 */
    position: relative;
}

/* 增加半透明遮罩，確保文字在背景圖上清晰可見，但只作用於 Banner 內部 */
.jackpot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.jackpot-content {
    position: relative;
    z-index: 2;
    padding: 60px 50px; /* 同步 Register Banner 的內邊距 */
    max-width: 100%; /* 讓它遵循 Grid 的 1fr 寬度 */
}

.jackpot-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px; /* 微調大小，與 Register Banner 的 42px 統一 */
    font-weight: 900;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.jackpot-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* 與 Register Banner 統一 */
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: 35px;
    font-weight: 400;
}

.jackpot-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    color: #000000; /* 按鈕文字改為黑色，增加辨識度 */
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.jackpot-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 184, 0, 0.6);
}

/* --- Bonus Card 樣式保持，但調整大小以適應新版面 --- */
.bonus-card {
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 20px;
    padding: 25px 30px; /* 稍微縮小一點 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    max-width: 450px; /* 限制寬度不要太寬 */
}

.bonus-card-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFB800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.bonus-amount {
    font-family: 'Orbitron', 'Montserrat', monospace;
    font-size: 42px; /* 微調字體大小，避免破版 */
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFD700 100%);
    -webkit-text-fill-color: transparent;
}

.bonus-subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* 響應式：手機版 RWD */
@media (max-width: 768px) {
    .jackpot-container {
        grid-template-columns: 1fr; /* 手機版改為單欄 */
        border-radius: 24px;
        min-height: auto;
    }
    
    .jackpot-content {
        padding: 40px 25px;
        text-align: center;
    }

    .jackpot-title {
        font-size: 28px;
    }

    .bonus-card {
        margin: 0 auto; /* 金額卡片在手機版居中 */
    }
}

/* ========== 2. Header Section (Orange Mesh) ========== */
.mesh-gradient-bg {
    position: relative;
    min-height: 60vh;
    background: url('https://fw8.club/wp-content/uploads/2026/02/fw8_fir_bg-scaled.jpg') no-repeat center bottom / cover;
    clip-path: ellipse(160% 100% at 50% 0%);
    padding-bottom: 30px;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem;
    text-align: center;
}

/* ========== 2.1 PREMIUM SHIMMER SWEEP LOGO EFFECT (REFINED) ========== */
/* 
 * PREMIUM TECHNIQUE - JITTER-FREE ANIMATION
 * 
 * The shimmer effect uses CSS mask-image property to clip the light sweep
 * to ONLY the visible parts of the transparent PNG logo.
 * 
 * IMPROVEMENTS APPLIED:
 * ✅ ENLARGED: 500px logo (was 300px) with responsive scaling
 * ✅ ULTRA-SMOOTH: 8s total cycle (6s sweep + 2s pause) vs 4s
 * ✅ CUSTOM EASING: cubic-bezier(0.4, 0, 0.2, 1) eliminates robotic jumps
 * ✅ SOFT LIGHT: Wider gradient at 25° angle with soft edges
 * ✅ ORGANIC BLEND: mix-blend-mode: soft-light preserves brand colors
 * ✅ NO CLIPPING: Responsive padding prevents mobile edge cuts
 * 
 * How masking works:
 * 1. Base logo image displays the actual logo
 * 2. Shimmer overlay sits on top with absolute positioning
 * 3. mask-image uses the logo PNG's alpha channel to clip the shimmer
 * 4. Only where logo has pixels (opacity > 0) does the shimmer show
 * 5. Transparent areas = no shimmer (perfect contour following!)
 */

/* Container for shimmer logo - ENLARGED to 500px */
.logo-home-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-home-link:hover {
    transform: scale(1.02);
}

.shimmer-logo-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* ENLARGED from 300px for premium presence */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px; /* Prevent edge clipping on mobile */
}

/* Base logo image */
.base-logo {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    /* Smooth anti-aliasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Shimmer overlay layer - REFINED for ultra-smooth animation */
.shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    
    /* CRITICAL: Mask the shimmer to logo shape using PNG alpha channel */
    -webkit-mask-image: url('https://fw8.club/wp-content/uploads/2026/02/fw8_logo-scaled.png');
    mask-image: url('https://fw8.club/wp-content/uploads/2026/02/fw8_logo-scaled.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    
    /* IMPROVED: Softer, wider gradient at 25-degree angle */
    background: linear-gradient(
        25deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 70%,
        transparent 100%
    );
    
    /* Much wider gradient (3x) for smoother, slower sweep */
    background-size: 300% 300%;
    
    /* REFINED: Softer blend mode for organic feel with brand colors */
    mix-blend-mode: soft-light;
    
    /* ULTRA-SMOOTH ANIMATION: 8s total (6s sweep + 2s pause) */
    /* Custom easing eliminates jitter: cubic-bezier(0.4, 0, 0.2, 1) */
    animation: shimmer-sweep-premium 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    
    /* Maximum performance optimization */
    will-change: background-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* PREMIUM ANIMATION - Ultra smooth with 2-second pause between sweeps */
@keyframes shimmer-sweep-premium {
    0% {
        background-position: -300% 0; /* Start far off-screen left */
    }
    75% {
        /* Sweep completes at 75% mark (6 seconds of 8 total) */
        background-position: 300% 0; /* End far off-screen right */
    }
    100% {
        /* Hold position for remaining 25% (2 second pause) */
        background-position: 300% 0;
    }
}

/* Additional subtle glow effect that pulses with the shimmer */
.shimmer-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%
    );
    opacity: 0;
    animation: glow-pulse 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

/* Subtle glow pulse synchronized with shimmer sweep */
@keyframes glow-pulse {
    0%, 100% {
        opacity: 0;
    }
    37.5% {
        /* Peak glow at midpoint of sweep (3s mark of 8s cycle) */
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
}

/* Enhanced Safari/iOS support */
@supports (-webkit-touch-callout: none) {
    .shimmer-overlay {
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
}

/* Legacy Logo Container (kept for backward compatibility) */
.logo-container {
    max-width: 450px;
    width: 80%;
    margin: 0 auto;
}

.marquee-wrapper {
    max-width: 850px;
    width: 95%;
    margin: 2rem auto;
    overflow: hidden;
    background: linear-gradient(135deg, #ffb300, #ff8c00, #ff4500);
    border-radius: 50px;
    padding: 10px 0;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ========== UPDATED COUNTRIES SECTION STYLES ========== */

/* Countries Section Container */
.countries-section {
    padding: 2rem 1rem;
}

/* Country Grid - 6 columns on desktop */
.country-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Country Box - Each country container */
.country-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    animation: 3s upup;
    transition: all 0.3s ease-in-out;
}

/* Country Flag Image */
.country-box img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Country Name */
.country-name {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0;
    text-transform: capitalize;
}

/* Button Base Styles */
.country-box a.button {
    display: inline-block;
    padding: 12px 16px;
    color: #fff;
    border-radius: 9px;
    text-decoration: none;
    width: 100%;
    max-width: 140px;
    line-height: 1;
    position: relative;
    transition: all 0.3s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* FW8 Pro Button - Gold to Orange Gradient */
.country-box a.ibs-button {
    background: linear-gradient(135deg, #FFB800 0%, #FF8C00 50%, #FF6B00 100%);
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

/* FW8 Standard Button - Deep Blue to Purple Gradient */
.country-box a.ss-button {
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    box-shadow: 0 4px 15px rgba(27, 43, 91, 0.4);
}

/* Disabled Button - Gray */
.country-box a.button.disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* Button Hover Effect */
.country-box a.button:not(.disabled):hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.country-box a.ibs-button:not(.disabled):hover {
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.6);
}

.country-box a.ss-button:not(.disabled):hover {
    box-shadow: 0 8px 25px rgba(27, 43, 91, 0.6);
}

/* Glass Effect Overlay */
.glass_effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 9px 9px 0 0;
    z-index: 1;
}

/* Button Text */
.country-box a.button span {
    position: relative;
    z-index: 2;
}

/* Upup Animation - Rise from bottom with fade in */
@keyframes upup {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delay for each country box */
.country-box:nth-child(1) { animation-delay: 0s; }
.country-box:nth-child(2) { animation-delay: 0.1s; }
.country-box:nth-child(3) { animation-delay: 0.2s; }
.country-box:nth-child(4) { animation-delay: 0.3s; }
.country-box:nth-child(5) { animation-delay: 0.4s; }
.country-box:nth-child(6) { animation-delay: 0.5s; }
.country-box:nth-child(7) { animation-delay: 0.6s; }

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet - 4 columns */
@media (max-width: 1024px) {
    .country-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

/* Mobile - 2 columns */
@media (max-width: 768px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }

    .country-box {
        gap: 8px;
    }

    .country-box img {
        width: 70px;
        height: 52px;
    }

    .country-name {
        font-size: 14px;
    }

    .country-box a.button {
        padding: 10px 12px;
        font-size: 12px;
        max-width: 120px;
    }
}

/* Small Mobile - Adjust further */
@media (max-width: 480px) {
    .country-grid {
        gap: 10px;
        padding: 0 10px;
    }

    .country-box img {
        width: 60px;
        height: 45px;
    }

    .country-name {
        font-size: 13px;
    }

    .country-box a.button {
        padding: 8px 10px;
        font-size: 11px;
        max-width: 110px;
    }
}
/* ========== 3. Brand Visual Authority Box (Section A) ========== */
.brand-visual-section {
    padding: 60px 20px;
    background: #fff;
}

.visual-box-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.authority-visual-box {
    position: relative;
    background: #001d4a url('https://fw8.club/wp-content/uploads/2026/02/fw8-hero-bg-scaled.jpg') no-repeat center / cover;
    border-radius: 40px;
    overflow: hidden;
    padding: 40px;
    min-height: 550px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.smoke-effect-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: url('https://fw8.club/wp-content/uploads/2026/02/fw8-casino-bg.png') no-repeat right center / contain;
    opacity: 0.8;
    z-index: 2;
    mix-blend-mode: screen;
    pointer-events: none;
}

.visual-branding-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.logo-pairing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.mini-logo-fw8 { height: 55px; }
.mini-logo-pagcor { height: 45px; }
.cross-divider { color: #fff; font-weight: 900; font-size: 24px; }

.accredited-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.accredited-badge-group img { height: 35px; }

.visual-main-layout {
    position: relative;
    width: 100%;
    height: 100%;
}

.cert-side {
    position: absolute;
    top: 170px;
    left: 40px;
    z-index: 10;
}

.visual-cert-img {
    width: 280px;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.ambassador-side {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 580px;
    z-index: 10;
}

.visual-ambassador-img {
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

/* ========== 4. SEO Optimized Brand Content (Section B) ========== */
.brand-text-content {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
}

.content-container {
    max-width: 950px;
    margin: 0 auto;
}

.seo-main-title {
    font-size: 3rem;
    color: #002d72;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}

.seo-sub-title {
    font-size: 1.5rem;
    color: #444;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.brand-description-box {
    background: #FFF9E1;
    border-radius: 20px;
    padding: 35px 45px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-left: 8px solid #ff8c00;
}

.brand-description-box p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ========== 5. Popular Casino Games Section (NEW) ========== */
.popular-games-section {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.popular-games-section .section-header h2 {
    font-size: 2.8rem;
    color: #000000;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.popular-games-section .highlight-aw8 {
    color: #F18221;
}

.popular-games-section .intro-text {
    color: #333;
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto 60px;
    line-height: 1.8;
    text-align: center;
}

/* Games Grid Layout */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Game Card with Smooth Zoom-in Effect */
.game-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* Smooth Zoom-in Hover Effect */
.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

/* Game Image Wrapper */
.game-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.game-card:hover .game-image-wrapper img {
    transform: scale(1.1);
}

/* Game Card Content */
.game-content {
    padding: 25px 15% 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card h3 {
    color: #1B2B5B;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: left;
    padding-top: 3%;
    padding-left: 5%;
}

.game-card p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    flex-grow: 1;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
}

/* ========== 5.5 Casino Offers Section ========== */
.casino-offers-section {
    padding: 80px 20px;
    background: #F8F8F8;
    text-align: center;
}

.casino-offers-section .section-header h2 {
    font-size: 2.8rem;
    color: #1B2B5B;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.casino-offers-section .highlight-orange {
    color: #F18221;
}

.casino-offers-section .intro-text {
    color: #333;
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto 30px;
    line-height: 1.8;
    text-align: center;
}

/* Offers Grid Layout */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Offer Card with Smooth Zoom-in Effect */
.offer-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* Smooth Zoom-in Hover Effect */
.offer-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

/* Offer Image Wrapper */
.offer-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.offer-image-wrapper img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.offer-card:hover .offer-image-wrapper img {
    transform: scale(1.1);
}

/* Offer Card Content */
.offer-content {
    padding: 25px 25px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offer-card h3 {
    color: #1B2B5B;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: left;
}

.offer-card p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    flex-grow: 1;
    margin-bottom: 20px;
}

.offer-card p strong {
    color: #1B2B5B;
    font-weight: 700;
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #F18221 0%, #FF6B00 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 130, 33, 0.3);
    align-self: flex-start;
}

.cta-button:hover {
    background: linear-gradient(135deg, #FF6B00 0%, #F18221 100%);
    box-shadow: 0 6px 20px rgba(241, 130, 33, 0.5);
    transform: translateY(-2px);
}

/* ========== 5.7 Mobile APP Section (Text-First Design) ========== */
.mobile-app-section {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.mobile-app-section .section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.3;
}

.mobile-app-section .intro-text {
    color: #666;
    font-size: 1.05rem;
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.7;
    text-align: center;
}

/* App Features Grid Layout */
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

/* App Feature Card - Minimal, Text-Focused Design */
.app-feature-card {
    background: #fefbf3;
    border-radius: 20px;
    border: 2px solid #f5e6d3;
    padding: 30px 35px 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    text-align: left;
}

/* Elegant Hover & Click Effect */
.app-feature-card:hover {
    transform: translateY(-8px);
    border-color: #f9e9c3;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.1),
        0 0 25px rgba(249, 233, 195, 0.35);
}

.app-feature-card:active {
    transform: translateY(-12px) scale(1.01);
    border-color: #f9e9c3;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(249, 233, 195, 0.5);
}

/* Small Icon in Top-Left Corner (Secondary Element) */
.app-icon-small {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.app-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Title - Primary Focus */
.app-feature-card h3 {
    color: #000000;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* Description Text - Clear and Readable */
.app-feature-card p {
    color: #333333;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    margin: 0;
}

/* ========== 5.8 Awards & Recognition Section ========== */
.awards-section {
    padding: 60px 20px 80px;
    background: #ffffff;
    text-align: center;
}

.awards-section .section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.awards-section .intro-text {
    color: #333;
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto 60px;
    line-height: 1.8;
    text-align: center;
}

/* Awards Grid - Horizontal Row */
.awards-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Individual Award Card - Matches career.jpg style */
.award-card {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF9E6 100%);
    border: 2px solid #E8DDB5;
    border-radius: 18px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 220px;
    min-height: 180px;
}

.award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.award-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.award-image-wrapper img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

/* Awards Journey Cards - New Style */
.awards-journey-title {
    font-size: 2.2rem;
    color: #1B2B5B;
    font-weight: 800;
    margin: 60px 0 40px;
    text-align: center;
    text-transform: uppercase;
}

.awards-journey-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.journey-card {
    background: radial-gradient(circle at center, #0e43bf 0%, #072c84 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(37, 35, 98, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(37, 35, 98, 0.45);
}

.journey-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.journey-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.journey-card:hover .journey-image-wrapper img {
    transform: scale(1.08);
}

.journey-content {
    padding: 30px 15% 35px;
    color: #ffffff;
}

.journey-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F18221;
    margin-bottom: 15px;
}

.journey-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #E8E8E8;
}

/* ========== 6. Why Choose FW8 Features (Section C) ========== */
.why-choose-fw8 {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #002d72;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.intro-text { color: #666; font-size: 1.1rem; max-width: 850px; margin: 0 auto 60px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: 25px;
    padding: 65px 30px 35px;
    position: relative;
    box-shadow: 0 10px 45px rgba(0,0,0,0.07);
    border: 2px solid #efefef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.card-icon {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.feature-card.unique-bonuses { border-color: #ff8c00; }
.feature-card.fast-withdrawal { border-color: #008080; }
.feature-card.seamless-app { border-color: #4169e1; }
.feature-card.expert-support { border-color: #ffa500; }
.feature-card.secure-platform { border-color: #2ecc71; }
.feature-card.wide-range-games { border-color: #dc143c; }

.feature-card h3 { color: #002d72; margin-bottom: 18px; font-weight: 800; font-size: 1.5rem; }
.feature-card p { color: #555; font-size: 0.95rem; }

/* ========== 7. Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simplified-hero-section,
.simplified-content-section > * {
    animation: fadeIn 0.8s ease-out forwards;
}

.simplified-main-title {
    animation-delay: 0.2s;
}

.simplified-subtitle {
    animation-delay: 0.3s;
}

.simplified-info-box {
    animation-delay: 0.4s;
}

/* ========== 8. Responsive Web Design (RWD) ========== */
@media (max-width: 1024px) {
    .authority-visual-box { min-height: 850px; padding: 20px; border-radius: 30px; }
    .visual-branding-overlay { left: 50%; transform: translateX(-50%); text-align: center; top: 30px; }
    .logo-pairing { justify-content: center; }
    .cert-side { left: 50%; transform: translateX(-50%); top: 180px; }
    .ambassador-side { position: relative; width: 80%; right: 0; bottom: 0; margin: 40px auto 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Games Grid - 2 columns on tablets */
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    
    /* Offers Grid - 2 columns on tablets */
    .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    
    /* App Features Grid - 2 columns on tablets */
    .app-features-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px; 
    }
    
    /* Awards Grid - wrap on tablets */
    .awards-grid { gap: 20px; }
    .award-card { width: 200px; min-height: 160px; }
    
    /* Awards Journey Grid - 1 column on tablets */
    .awards-journey-grid { 
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .awards-journey-title {
        font-size: 2rem;
        margin: 50px 0 30px;
    }
}

@media (max-width: 768px) {
    /* Shimmer Logo Responsive - Scaled down for tablets */
    .shimmer-logo-container {
        max-width: 350px; /* Proportional scaling from 500px */
        padding: 0 15px; /* Prevent edge clipping */
    }

    /* Simplified Layout Responsive */
    .simplified-logo-header {
        padding: 20px 20px 15px;
    }
    
    .logo-row-top {
        gap: 15px;
    }

    .logo-fw8 {
        height: 60px;
    }

    .logo-pagcor-text {
        height: 50px;
    }

    .logo-separator {
        font-size: 28px;
    }

    .simplified-hero-section {
        margin-bottom: 30px;
    }

    .simplified-content-section {
        padding: 30px 20px 40px;
    }

    .simplified-main-title {
        font-size: 32px;
    }

    .simplified-subtitle {
        font-size: 18px;
    }

    .simplified-info-box {
        padding: 30px 25px;
    }

    .simplified-info-text {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Games Grid - 1 column on mobile */
    .games-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .popular-games-section .section-header h2 {
        font-size: 2rem;
    }
    
    .game-image-wrapper {
        height: 250px;
    }
    
    /* Offers Grid - 1 column on mobile */
    .offers-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* App Features Grid - 1 column on mobile */
    .app-features-grid { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    
    .mobile-app-section .section-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .app-feature-card {
        padding: 25px 30px 30px;
    }
    
    .app-icon-small {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }
    
    /* Awards Grid - 2x2 on mobile */
    .awards-grid { gap: 15px; }
    .award-card { width: calc(50% - 10px); min-height: 140px; padding: 20px 15px; }
    .awards-section .section-header h2 { font-size: 2rem; }
    
    .casino-offers-section .section-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
  

    /* Original Styles */
    .seo-main-title { font-size: 2.2rem; }
    .seo-sub-title { font-size: 1.2rem; }
    .features-grid { grid-template-columns: 1fr; }
    /* Keep the curved clip-path for mobile, only adjust height */
    .mesh-gradient-bg { min-height: auto; }
    .brand-description-box { padding: 25px; }
}

/* Mobile Landscape - 640px */
@media (max-width: 640px) {
    /* Shimmer Logo Mobile Landscape */
    .shimmer-logo-container {
        max-width: 280px; /* Intermediate size for mobile landscape */
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    /* Shimmer Logo Small Mobile */
    .shimmer-logo-container {
        max-width: 220px; /* Increased from 150px for better presence */
        padding: 0 10px; /* Prevent edge clipping */
    }

    /* Simplified Layout Mobile */
    .simplified-logo-header {
        padding: 15px 15px 10px;
    }

    .logo-row-top {
        flex-direction: column;
        align-items: center; /* Changed from flex-start to center for mobile */
        gap: 8px;
    }

    .logo-separator {
        display: none;
    }

    .logo-fw8 {
        height: 50px;
    }

    .logo-pagcor-text {
        height: 42px;
    }
    
    /* Add border radius to hero image on mobile */
    .simplified-hero-image {
        border-radius: 20px; /* Add rounded corners like desktop */
    }

    .simplified-main-title {
        font-size: 24px;
        letter-spacing: -0.3px;
    }

    .simplified-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .simplified-info-box {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .simplified-info-text {
        font-size: 14px;
    }
    
    /* Games Section Mobile */
    .popular-games-section .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .popular-games-section .intro-text {
        font-size: 0.95rem;
    }
    
    .game-card h3 {
        font-size: 1.4rem;
    }
    
    .game-card p {
        font-size: 0.9rem;
    }
    
    /* Offers Section Mobile */
    .casino-offers-section .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    /* Mobile APP Section Mobile */
    .mobile-app-section .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .mobile-app-section .intro-text {
        font-size: 0.95rem;
    }
    
    .app-feature-card {
        padding: 22px 25px 28px;
    }
    
    .app-icon-small {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }
    
    .app-feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .app-feature-card p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* Awards Section Mobile */
    .awards-section { padding: 40px 15px 60px; }
    .awards-section .section-header h2 { font-size: 1.5rem; line-height: 1.3; }
    .award-card { width: calc(50% - 8px); min-height: 120px; padding: 15px 10px; border-radius: 14px; }
    .award-image-wrapper img { max-height: 100px; }
    
    /* Awards Journey Mobile */
    .awards-journey-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin: 40px 0 25px;
    }
    
    .awards-journey-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .journey-image-wrapper {
        height: 220px;
    }
    
    .journey-content {
        padding: 25px 10% 30px;
    }
    
    .journey-card h4 {
        font-size: 1.2rem;
    }
    
    .journey-card p {
        font-size: 0.9rem;
    }
    
    .casino-offers-section .intro-text {
        font-size: 0.95rem;
    }
    
    .offer-card h3 {
        font-size: 1.3rem;
    }
    
    .offer-card p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 10px 25px;
        width: 100%;
        text-align: center;
    }
}

/* ========== 9. Register Banner Section ========== */
.register-banner-section {
    padding: 80px 20px;
    background: #ffffff;
}

.register-banner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('https://fw8.club/wp-content/uploads/2026/02/fw8-register-bg-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.register-content {
    padding: 60px 50px;
    z-index: 2;
}

.register-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.register-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 35px;
    font-weight: 400;
}

.register-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
}

.register-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 184, 0, 0.6);
    background: linear-gradient(135deg, #FFC400 0%, #FFA500 100%);
}

.register-image {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 10. Licensing Section ========== */
.licensing-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.licensing-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1B2B5B;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

.licensing-cards-grid {
    margin-bottom: 50px;
}

.licensing-details {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.licensing-point {
    background: #ffffff;
    border: 2px solid #E8DDB5;
    border-radius: 16px;
    padding: 30px 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.licensing-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.licensing-point h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #F18221;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.licensing-point h4::before {
    content: "✓";
    display: inline-block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    margin-right: 12px;
    font-size: 16px;
    font-weight: 900;
}

.licensing-point p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2C3E50;
    margin: 0;
}

/* ========== 11. Game Developers Marquee Section ========== */
.game-developers-section {
    padding: 80px 20px;
    background: #ffffff;
    overflow: hidden;
}

.developers-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #4a5568; /* Deep gray */
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Marquee Container with Fade Effect */
.marquee-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* Fade Effect - Left Edge */
.marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

/* Fade Effect - Right Edge */
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

/* Marquee Track - Infinite Scroll Container */
.marquee-track {
    display: flex;
    gap: 60px;
    width: fit-content;
    animation: marquee-scroll 40s linear infinite;
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

/* Individual Logo Item */
.marquee-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%);
}

/* Marquee Animation - Right to Left */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly half the width (8 logos + gaps) */
        transform: translateX(calc(-1 * (180px * 8 + 60px * 8)));
    }
}

/* ========== Register Banner Responsive Design ========== */
@media (max-width: 768px) {
    /* Jackpot Section - Mobile Layout */
    .jackpot-hero-section {
        padding: 50px 15px;
    }

    .jackpot-banner-wrapper {
        background-image: url('https://fw8.club/wp-content/uploads/2026/02/jackpot-banner-web-scaled.jpg');
        grid-template-columns: 1fr;
        min-height: 700px;
    }

    .jackpot-content {
        padding: 40px 30px;
        text-align: center;
    }

    .jackpot-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .jackpot-description {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .jackpot-cta-button {
        font-size: 16px;
        padding: 14px 40px;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .bonus-card {
        padding: 30px 25px;
        max-width: 100%;
        margin: 0 auto;
    }

    .bonus-card-header {
        font-size: 14px;
        margin-bottom: 15px;
        text-align: center;
    }

    .bonus-amount {
        font-size: 42px;
        margin-bottom: 10px;
        text-align: center;
    }

    .bonus-subtext {
        font-size: 12px;
        text-align: center;
    }

    .register-banner-section {
        padding: 50px 15px;
    }

    .register-banner-wrapper {
        background-image: url('https://fw8.club/wp-content/uploads/2026/02/fw8-register-bg_mob.jpg');
        grid-template-columns: 1fr;
        border-radius: 24px;
        min-height: 800px;
    }

    .register-content {
        padding: 40px 30px;
        text-align: center;
        order: 2;
        margin-bottom: 100%;
    }

    .register-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .register-description {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .register-cta-button {
        font-size: 16px;
        padding: 14px 40px;
        width: 100%;
        text-align: center;
    }

    .register-image {
        padding: 20px 30px 40px;
    }

    /* Licensing Section - 768px */
    .licensing-section {
        padding: 50px 15px;
    }

    .licensing-subtitle {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .licensing-cards-grid {
        margin-bottom: 40px;
    }

    .licensing-details {
        gap: 25px;
    }

    .licensing-point {
        padding: 25px 30px;
    }

    .licensing-point h4 {
        font-size: 18px;
    }

    .licensing-point p {
        font-size: 15px;
    }

    /* Game Developers Marquee - 768px */
    .game-developers-section {
        padding: 60px 15px;
    }

    .developers-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 80px;
    }

    .marquee-item {
        width: 140px;
        height: 80px;
        padding: 12px;
    }

    .marquee-track {
        gap: 40px;
        animation: marquee-scroll-tablet 35s linear infinite;
    }

    @keyframes marquee-scroll-tablet {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-1 * (140px * 8 + 40px * 8)));
        }
    }
}

@media (max-width: 480px) {
    /* Jackpot Section - Small Mobile */
    .jackpot-hero-section {
        padding: 40px 15px;
    }

    .jackpot-banner-wrapper {
        min-height: 650px;
    }

    .jackpot-content {
        padding: 35px 25px;
    }

    .jackpot-title {
        font-size: 26px;
        margin-bottom: 18px;
        letter-spacing: -0.3px;
    }

    .jackpot-description {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 25px;
    }

    .jackpot-cta-button {
        font-size: 15px;
        padding: 13px 35px;
        margin-bottom: 25px;
    }

    .bonus-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .bonus-card-header {
        font-size: 13px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .bonus-amount {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .bonus-subtext {
        font-size: 11px;
    }

    .register-banner-section {
        padding: 40px 15px;
    }

    .register-content {
        padding: 35px 25px;
    }

    .register-title {
        font-size: 24px;
        letter-spacing: -0.3px;
    }

    .register-description {
        font-size: 14px;
        line-height: 1.65;
    }

    .register-cta-button {
        font-size: 15px;
        padding: 13px 35px;
    }

    /* Licensing Section - 480px */
    .licensing-section {
        padding: 40px 15px;
    }

    .licensing-subtitle {
        font-size: 18px;
        line-height: 1.3;
    }

    .licensing-details {
        gap: 20px;
    }

    .licensing-point {
        padding: 22px 25px;
    }

    .licensing-point h4 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .licensing-point h4::before {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 14px;
        margin-right: 10px;
    }

    .licensing-point p {
        font-size: 14px;
        line-height: 1.65;
    }

    /* Game Developers Marquee - 480px */
    .game-developers-section {
        padding: 50px 15px;
    }

    .developers-title {
        font-size: 20px;
        margin-bottom: 35px;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 50px;
    }

    .marquee-item {
        width: 110px;
        height: 65px;
        padding: 10px;
    }

    .marquee-track {
        gap: 30px;
        animation: marquee-scroll-mobile 30s linear infinite;
    }

    @keyframes marquee-scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-1 * (110px * 8 + 30px * 8)));
        }
    }
}

/* ========== 12. FW8 Global Jackpot Section ========== */
.jackpot-hero-section {
    padding: 80px 20px;
    background: #ffffff;
}

.jackpot-banner-wrapper {
    margin: 0 auto;
    background-image: url('https://fw8.club/wp-content/uploads/2026/02/jackpot-banner-1-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.jackpot-content {
    padding: 20px 30px;
    z-index: 2;
}

.jackpot-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 25px;
    margin-left: 25px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.jackpot-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #FFFFFF;
    margin-left: 25px;
    margin-bottom: 35px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

.jackpot-cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    margin-left: 25px;
}

.jackpot-cta-button:hover {
    background: linear-gradient(135deg, #FF9500 0%, #FF8000 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 149, 0, 0.6);
}

/* Dynamic Bonus Card - Tech-Savvy & High-End Design */
.bonus-card {
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 
                0 0 40px rgba(255, 184, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    margin-left: 25px;
}

/* Animated glow effect */
.bonus-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
    animation: glow-rotate 8s linear infinite;
}

@keyframes glow-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bonus-card-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #FFB800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.bonus-amount {
    font-family: 'Orbitron', 'Montserrat', monospace;
    font-size: 52px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Smooth transition for number changes */
    transition: opacity 0.15s ease-out;
    /* Prevent layout shift during animation */
    min-width: 300px;
    text-align: center;
}

.bonus-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Tech grid pattern overlay */
.bonus-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 184, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 184, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

/* Very Small Screens - 375px (iPhone SE, small Android phones) */
@media (max-width: 375px) {
    .shimmer-logo-container {
        max-width: 180px; /* Compact but still prominent */
        padding: 0 10px;
    }
}
/* ========== FW8 Footer Section Styles ========== */

/* Main Footer Container */
.fw8-footer {
    background: linear-gradient(135deg, #1a237e 0%, #145f8c 50%, #311b92 100%);
    padding: 60px 20px 40px;
    color: #ffffff;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.fw8-footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== Top Row: Providers, Licences & Payment ========== */
.fw8-footer-top-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Footer Headings */
.fw8-footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo Grid - Universal Styling */
.fw8-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    align-items: center;
}

/* Small Logo Grid (for Licences & Payment) */
.fw8-logo-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

/* CRITICAL: Unified Logo Container - Prevents Distortion */
.fw8-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}


/* CRITICAL: Unified Logo Sizing - NO Distortion */
.fw8-logo-item img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1.1);
}

/* Providers Section */
.fw8-providers-section {
    /* Grid column handled by parent */
}

/* Licences & Payment Section */
.fw8-licences-payment-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.fw8-licences-section,
.fw8-payment-section {
    /* Nested sections */
}

/* ========== Bottom Row: Social, Links, Copyright & Offices ========== */
.fw8-footer-bottom-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* Left Column */
.fw8-footer-left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Social Media Icons */
.fw8-social-media {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fw8-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fw8-social-icon svg {
    width: 20px;
    height: 20px;
}

.fw8-social-icon:hover {
    background: rgba(255, 184, 0, 0.2);
    border-color: #FFB800;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.3);
}

/* Footer Links */
.fw8-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fw8-footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fw8-footer-links a:hover {
    color: #FFB800;
}

.fw8-link-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Copyright */
.fw8-copyright {
    margin-top: 5px;
}

.fw8-copyright p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ========== Offices Section ========== */
.fw8-offices-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.fw8-office {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fw8-office-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFB800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fw8-office-address {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Map Container */
.fw8-map-container {
    background: #8B5A23;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 50%;
}

.fw8-map-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.fw8-map-container iframe {
    display: block;
    width: 100%;
    filter: grayscale(20%) contrast(1.1);
}

/* ========== Responsive Design: Tablet ========== */
@media (max-width: 1024px) {
    .fw8-footer {
        padding: 50px 20px 35px;
    }

    .fw8-footer-top-row {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 50px;
        padding-bottom: 40px;
    }

    .fw8-footer-bottom-row {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .fw8-offices-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .fw8-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
}

/* ========== Responsive Design: Mobile ========== */
@media (max-width: 768px) {
    .fw8-footer {
        padding: 40px 15px 30px;
    }

    .fw8-footer-top-row {
        gap: 40px;
        margin-bottom: 40px;
        padding-bottom: 35px;
    }

    .fw8-footer-heading {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .fw8-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 12px;
    }

    .fw8-logo-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }

    .fw8-logo-item {
        padding: 12px;
        min-height: 60px;
    }

    .fw8-logo-item img {
        max-height: 35px;
    }

    .fw8-licences-payment-section {
        gap: 35px;
    }

    .fw8-footer-bottom-row {
        gap: 40px;
    }

    .fw8-footer-left-column {
        gap: 20px;
        text-align: center;
    }

    .fw8-social-media {
        justify-content: center;
        gap: 12px;
    }

    .fw8-social-icon {
        width: 40px;
        height: 40px;
    }

    .fw8-social-icon svg {
        width: 18px;
        height: 18px;
    }

    .fw8-footer-links {
        justify-content: center;
        font-size: 13px;
    }

    .fw8-copyright p {
        font-size: 12px;
    }

    .fw8-offices-section {
        gap: 30px;
    }

    .fw8-office-title {
        font-size: 15px;
    }

    .fw8-office-address {
        font-size: 13px;
    }

    .fw8-map-container {
        border-radius: 12px;
    }
}

/* ========== Responsive Design: Small Mobile ========== */
@media (max-width: 480px) {
    .fw8-footer {
        padding: 35px 12px 25px;
    }

    .fw8-footer-heading {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .fw8-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }

    .fw8-logo-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 8px;
    }

    .fw8-logo-item {
        padding: 10px;
        min-height: 55px;
        border-radius: 10px;
    }

    .fw8-logo-item img {
        max-height: 30px;
    }

    .fw8-footer-top-row {
        gap: 35px;
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .fw8-licences-payment-section {
        gap: 30px;
    }

    .fw8-footer-bottom-row {
        gap: 35px;
    }

    .fw8-footer-left-column {
        gap: 18px;
    }

    .fw8-social-icon {
        width: 38px;
        height: 38px;
    }

    .fw8-social-icon svg {
        width: 16px;
        height: 16px;
    }

    .fw8-footer-links {
        font-size: 12px;
        gap: 10px;
    }

    .fw8-link-separator {
        font-size: 12px;
    }

    .fw8-copyright p {
        font-size: 11px;
    }

    .fw8-office-title {
        font-size: 14px;
    }

    .fw8-office-address {
        font-size: 12px;
        line-height: 1.5;
    }

    .fw8-map-container {
        border-radius: 10px;
    }
}

/* ========== End of FW8 Footer Styles ========== */

/* ========================================================================
   FW8 Fixed Floating Widget (多層遮罩圖片旋轉技術)
   嚴格還原目標網站質感
   ======================================================================== */

/* 容器：固定在右下角 */
.fw8-float-wrapper {
    position: fixed;
    right: 25px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 顯示狀態 (滾動超過400px) */
.fw8-float-wrapper.fw8-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ========== 客服 & TG 按鈕：三層遮罩架構 ========== */

/* 外殼容器 (105px × 105px) */
.fw8-btn-wrap {
    position: relative;
    width: 105px;
    height: 105px;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fw8-btn-wrap:hover {
    transform: translateY(-5px) scale(1.05);
}

/* 第一層：旋轉光圈圖片 (::before) */
.fw8-btn-wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('https://fw8.club/wp-content/uploads/2026/02/circle.webp') no-repeat center center;
    background-size: 100%;
    animation: fw8-circle-around 3s linear infinite;
}

/* 第二層：黑色圓形襯底 (::after) */
.fw8-btn-wrap::after {
    content: "";
    position: absolute;
    z-index: -2;
    left: 5px;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: #000000;
}

/* 第三層：中心圖示容器 */
.fw8-icon-box {
    position: absolute;
    z-index: 20;
    width: 80%;
    height: 80%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    overflow: hidden;
}

/* 圖示圖片 */
.fw8-btn-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 客服按鈕浮動動畫 */
.fw8-cs-wrap {
    animation: fw8-float-bounce 3s ease-in-out infinite;
}

/* TG按鈕浮動動畫 (延遲0.5s) */
.fw8-tg-wrap {
    animation: fw8-float-bounce 3s ease-in-out infinite 0.5s;
}

/* ========== TOP 按鈕 (特殊處理：無光圈) ========== */

.fw8-top-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 43, 91, 0.5);
    transition: all 0.3s ease;
    z-index: 10;
}

.fw8-top-btn:hover {
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    box-shadow: 0 6px 25px rgba(255, 184, 0, 0.6);
    transform: translateY(-5px) scale(1.1);
}

/* TOP 箭頭圖示 */
.fw8-arrow-icon {
    width: 26px;
    height: 26px;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.fw8-top-btn:hover .fw8-arrow-icon {
    color: #000000;
}

/* ========== 動畫定義 ========== */

/* 光圈360度旋轉動畫 */
@keyframes fw8-circle-around {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 浮動跳動動畫 */
@keyframes fw8-float-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== 響應式設計：平板 ========== */
@media (max-width: 1024px) {
    .fw8-float-wrapper {
        right: 20px;
        bottom: 25px;
        gap: 12px;
    }
    
    .fw8-btn-wrap {
        width: 90px;
        height: 90px;
    }
    
    .fw8-top-btn {
        width: 55px;
        height: 55px;
    }
    
    .fw8-arrow-icon {
        width: 24px;
        height: 24px;
    }
}

/* ========== 響應式設計：手機版 ========== */
@media (max-width: 768px) {
    .fw8-float-wrapper {
        right: 15px;
        bottom: 20px;
        gap: 10px;
    }
    
    /* 光圈按鈕縮小 */
    .fw8-btn-wrap {
        width: 75px;
        height: 75px;
        padding: 4px;
    }
    
    .fw8-btn-wrap::after {
        left: 4px;
        right: 4px;
        top: 4px;
        bottom: 4px;
    }
    
    /* TOP按鈕縮小 */
    .fw8-top-btn {
        width: 50px;
        height: 50px;
        box-shadow: 0 3px 12px rgba(27, 43, 91, 0.4);
    }
    
    .fw8-arrow-icon {
        width: 22px;
        height: 22px;
    }
}

/* ========== 響應式設計：小型手機 ========== */
@media (max-width: 480px) {
    .fw8-float-wrapper {
        right: 12px;
        bottom: 15px;
        gap: 8px;
    }
    
    .fw8-btn-wrap {
        width: 65px;
        height: 65px;
    }
    
    .fw8-top-btn {
        width: 45px;
        height: 45px;
    }
    
    .fw8-arrow-icon {
        width: 20px;
        height: 20px;
    }
}

/* ========== End of FW8 Fixed Floating Widget ========== */
