/**
 * YG-THAIQ Home Page Styles
 * Modularized from home.php for maintainability
 * 
 * Sections:
 * 1. Hero Section (V24 Clean)
 * 2. YG-FATE FX System (Fireflies, Stars, Bats, Energy Effects)
 * 3. Content Section
 * 4. News Section (Enhanced)
 * 5. Responsive Styles
 */

/* =========================================
   1. HERO SECTION (V24 Clean)
========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 900px;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: calc(var(--nav-height) * -1);
    padding-bottom: 50px;
    overflow: hidden;
    perspective: 1000px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-char-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-char {
    position: absolute;
    bottom: 0;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.char-left {
    left: 5%;
    transform-origin: bottom left;
}

.char-right {
    right: 5%;
    transform-origin: bottom right;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-logo-img {
    max-width: 500px;
    width: 90%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.4));
    animation: pulseLogo 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 28px;
    color: #fff;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    font-weight: 600;
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0.6) 80%, transparent 100%);
    padding: 20px 0;
    border-top: 1px solid rgba(251, 191, 36, 0.3);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 1px;
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.4));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 50px rgba(251, 191, 36, 0.6));
    }
}

@keyframes floatBreathing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* =========================================
   2. YG-FATE FX SYSTEM
========================================= */

#fx-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

/* 2.1 SMART FIREFLIES (Multi-Point Flight) */
.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow:
        0 0 10px #fbbf24,
        0 0 20px #f59e0b,
        0 0 30px rgba(251, 191, 36, 0.4);
    opacity: 0;
    will-change: transform, opacity;
    animation: smartFlight var(--dur) ease-in-out infinite;
    animation-delay: var(--del);
    top: var(--start-y);
    left: var(--start-x);
}

@keyframes smartFlight {
    0% {
        transform: translate3d(0, 0, 0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(var(--x1), var(--y1), 0) scale(1.2);
    }
    50% {
        transform: translate3d(var(--x2), var(--y2), 0) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translate3d(var(--x3), var(--y3), 0) scale(1.1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--x4), var(--y4), 0) scale(0);
        opacity: 0;
    }
}

/* 2.2 SHOOTING STARS */
.shooting-star {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    filter: drop-shadow(0 0 5px #fff);
    transform: rotate(-45deg);
    opacity: 0;
    animation: shootStar var(--speed) linear forwards;
}

@keyframes shootStar {
    0% {
        transform: translate(0, 0) rotate(-45deg) scaleX(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-150vh, 150vh) rotate(-45deg) scaleX(1.5);
        opacity: 0;
    }
}

/* 2.3 BATS (V7 Organic Side-View) */
.bat-base {
    position: absolute;
    z-index: 6;
    animation: batMove var(--fly-time) linear forwards;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 2px #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bat {
    position: absolute;
    width: 35px;
    height: 35px;
    z-index: 90;
    animation: batCurvyMove var(--fly-time) linear forwards;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.bat-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.bat-wing-far,
.bat-wing-near {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 25 Q 25 5 45 15 L 35 25 Q 50 35 30 45 L 20 35 Q 5 45 10 25 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 25 Q 25 5 45 15 L 35 25 Q 50 35 30 45 L 20 35 Q 5 45 10 25 Z' fill='black'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    transform-origin: center center;
}

.bat-wing-far {
    opacity: 0.7;
    transform: scaleY(-0.5) rotate(10deg);
    animation: wingBeatFar 0.15s infinite alternate ease-in-out;
}

.bat-wing-near {
    z-index: 2;
    animation: wingBeatNear 0.15s infinite alternate ease-in-out;
}

@keyframes wingBeatNear {
    0% { transform: scaleY(1) rotate(-10deg); }
    100% { transform: scaleY(-0.8) rotate(5deg); }
}

@keyframes wingBeatFar {
    0% { transform: scaleY(0.5) rotate(5deg); }
    100% { transform: scaleY(-1) rotate(-10deg); }
}

@keyframes batCurvyMove {
    0% { left: -50px; transform: translateY(0); }
    25% { transform: translateY(-30px); }
    50% { transform: translateY(10px); }
    75% { transform: translateY(-20px); }
    100% { left: 110%; transform: translateY(0); }
}

@keyframes batCurvyMoveRight {
    0% { right: -50px; transform: scaleX(-1) translateY(0); }
    25% { transform: scaleX(-1) translateY(-30px); }
    50% { transform: scaleX(-1) translateY(10px); }
    75% { transform: scaleX(-1) translateY(-20px); }
    100% { right: 110%; transform: scaleX(-1) translateY(0); }
}

.bat-right-flip {
    animation-name: batCurvyMoveRight;
}

/* 2.4 ENERGY CHASE (เลเซอร์ยิงไล่ - Professional Firework Trail) */
.energy-orb-blue {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 3px #fff,
        0 0 6px #93c5fd,
        0 0 12px #3b82f6;
    z-index: 9999;
}

.energy-orb-blue::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 250px;
    height: 1.5px;
    background: linear-gradient(to left,
            rgba(255, 255, 255, 1) 0%,
            rgba(147, 197, 253, 0.9) 5%,
            rgba(59, 130, 246, 0.7) 15%,
            rgba(59, 130, 246, 0.4) 35%,
            rgba(59, 130, 246, 0.15) 60%,
            rgba(59, 130, 246, 0.05) 80%,
            transparent 100%);
    border-radius: 1px;
}

.energy-orb-red {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 3px #fff,
        0 0 6px #fca5a5,
        0 0 12px #ef4444;
    z-index: 9999;
}

.energy-orb-red::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 250px;
    height: 1.5px;
    background: linear-gradient(to left,
            rgba(255, 255, 255, 1) 0%,
            rgba(252, 165, 165, 0.9) 5%,
            rgba(239, 68, 68, 0.7) 15%,
            rgba(239, 68, 68, 0.4) 35%,
            rgba(239, 68, 68, 0.15) 60%,
            rgba(239, 68, 68, 0.05) 80%,
            transparent 100%);
    border-radius: 1px;
}

@keyframes flyChaseLeft {
    0% { left: -50px; opacity: 0; }
    2% { opacity: 1; }
    98% { opacity: 1; }
    100% { left: 105%; opacity: 0; }
}

@keyframes flyChaseRight {
    0% { right: -50px; left: auto; opacity: 0; transform: scaleX(-1); }
    2% { opacity: 1; transform: scaleX(-1); }
    98% { opacity: 1; transform: scaleX(-1); }
    100% { right: 105%; left: auto; opacity: 0; transform: scaleX(-1); }
}

/* 2.5 ENERGY STREAK (คลื่นดาบ - Firework/Meteor Style) */
.energy-streak.blue {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 4px #fff,
        0 0 8px #93c5fd,
        0 0 15px #3b82f6;
    z-index: 9998;
}

.energy-streak.blue::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(to left,
            rgba(255, 255, 255, 1) 0%,
            rgba(147, 197, 253, 0.8) 5%,
            rgba(59, 130, 246, 0.6) 20%,
            rgba(59, 130, 246, 0.3) 45%,
            rgba(59, 130, 246, 0.1) 70%,
            transparent 100%);
    border-radius: 1px;
}

.energy-streak.red {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 4px #fff,
        0 0 8px #fca5a5,
        0 0 15px #ef4444;
    z-index: 9998;
}

.energy-streak.red::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(to left,
            rgba(255, 255, 255, 1) 0%,
            rgba(252, 165, 165, 0.8) 5%,
            rgba(239, 68, 68, 0.6) 20%,
            rgba(239, 68, 68, 0.3) 45%,
            rgba(239, 68, 68, 0.1) 70%,
            transparent 100%);
    border-radius: 1px;
}

/* For Right to Left: Tail on RIGHT */
.energy-streak.going-left::after {
    right: auto;
    left: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(150, 150, 150, 0.6) 10%,
            rgba(100, 100, 100, 0.3) 40%,
            transparent 100%);
}

.energy-streak.blue.going-left::after {
    background: linear-gradient(to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(147, 197, 253, 0.8) 5%,
            rgba(59, 130, 246, 0.6) 20%,
            rgba(59, 130, 246, 0.3) 45%,
            rgba(59, 130, 246, 0.1) 70%,
            transparent 100%);
}

.energy-streak.red.going-left::after {
    background: linear-gradient(to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(252, 165, 165, 0.8) 5%,
            rgba(239, 68, 68, 0.6) 20%,
            rgba(239, 68, 68, 0.3) 45%,
            rgba(239, 68, 68, 0.1) 70%,
            transparent 100%);
}

@keyframes flyStreakLR {
    0% { left: -100px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

@keyframes flyStreakRL {
    0% { right: -100px; left: auto; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { right: 110%; left: auto; opacity: 0; }
}

/* 2.6 Lightning Flash */
.lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    animation: lightningFlash 0.2s ease-out forwards;
}

.lightning-flash.white { background: rgba(255, 255, 255, 0.3); }
.lightning-flash.blue { background: rgba(59, 130, 246, 0.2); }
.lightning-flash.red { background: rgba(239, 68, 68, 0.2); }
.lightning-flash.purple { background: rgba(147, 51, 234, 0.25); }
.lightning-flash.dark { background: rgba(0, 0, 0, 0.3); }

@keyframes lightningFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* 2.7 ENERGY CLASH (MEGA EXPLOSION) */
.energy-clash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.clash-core {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 20%, currentColor 100%);
    box-shadow:
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px currentColor;
    transition: all 0.1s linear;
    z-index: 10000;
    --angle: 0deg;
}

.clash-core.orthodox {
    color: #3b82f6;
    box-shadow:
        0 0 20px #60a5fa,
        0 0 40px #3b82f6,
        0 0 80px #1d4ed8;
}

.clash-core.unorthodox {
    color: #ef4444;
    box-shadow:
        0 0 20px #f87171,
        0 0 40px #ef4444,
        0 0 80px #b91c1c;
}

.clash-core::after {
    content: none;
}

/* Screen Shake */
.screen-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Mega Explosion (Center Flash) */
.mega-explosion {
    position: fixed;
    top: var(--exp-y);
    left: var(--exp-x);
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #fff 0%, #fef3c7 40%, rgba(251, 191, 36, 0.8) 70%, transparent 100%);
    border-radius: 50%;
    z-index: 10001;
    animation: expandExplosion 0.8s ease-out forwards;
    box-shadow: 0 0 50px #fff, 0 0 100px #fbbf24;
}

@keyframes expandExplosion {
    0% { width: 10px; height: 10px; opacity: 1; }
    50% { width: 600px; height: 600px; opacity: 0.8; }
    100% { width: 1200px; height: 1200px; opacity: 0; }
}

/* Energy Crosses (Beams) */
.energy-cross {
    position: fixed;
    top: var(--exp-y);
    left: var(--exp-x);
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 10000;
    opacity: 0;
    animation: crossFlash 0.6s ease-out forwards;
    box-shadow: 0 0 20px currentColor;
}

.energy-cross.blue {
    color: #3b82f6;
    background: linear-gradient(90deg, transparent, #fff, #3b82f6, transparent);
}

.energy-cross.red {
    color: #ef4444;
    background: linear-gradient(90deg, transparent, #fff, #ef4444, transparent);
}

.energy-cross.horizontal {
    width: 0;
    height: 4px;
    animation-name: crossExpandH;
}

.energy-cross.vertical {
    width: 4px;
    height: 0;
    animation-name: crossExpandV;
}

@keyframes crossExpandH {
    0% { width: 0; opacity: 1; }
    50% { width: 150vw; opacity: 1; }
    100% { width: 200vw; opacity: 0; }
}

@keyframes crossExpandV {
    0% { height: 0; opacity: 1; }
    50% { height: 150vh; opacity: 1; }
    100% { height: 200vh; opacity: 0; }
}

/* Radial Sparks */
.radial-spark {
    position: fixed;
    top: var(--exp-y);
    left: var(--exp-x);
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, currentColor, transparent);
    transform-origin: top center;
    z-index: 10000;
    opacity: 0;
    animation: shootSpark 0.7s ease-out forwards;
}

.radial-spark.s1 { transform: rotate(0deg) translateY(-20px); }
.radial-spark.s2 { transform: rotate(45deg) translateY(-20px); }
.radial-spark.s3 { transform: rotate(90deg) translateY(-20px); }
.radial-spark.s4 { transform: rotate(135deg) translateY(-20px); }
.radial-spark.s5 { transform: rotate(180deg) translateY(-20px); }
.radial-spark.s6 { transform: rotate(225deg) translateY(-20px); }
.radial-spark.s7 { transform: rotate(270deg) translateY(-20px); }
.radial-spark.s8 { transform: rotate(315deg) translateY(-20px); }

@keyframes shootSparkRadial {
    0% { height: 10px; opacity: 1; transform: rotate(var(--r)) translateY(0); }
    100% { height: 0; opacity: 0; transform: rotate(var(--r)) translateY(300px); }
}

/* Energy Wave (Shockwave ring) */
.energy-wave {
    position: fixed;
    top: var(--exp-y);
    left: var(--exp-x);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: shockwave 0.8s ease-out forwards;
}

@keyframes shockwave {
    0% { width: 0; height: 0; opacity: 1; border-width: 10px; }
    100% { width: 150vw; height: 150vw; opacity: 0; border-width: 0; }
}

/* 2.8 WRAITH OF THE VOID (DARK LORD) */
.wraith-container {
    position: absolute;
    top: 10%;
    width: 200px;
    height: 200px;
    z-index: 8;
    animation: wraithFloat 15s linear forwards;
}

.wraith-core {
    width: 100px;
    height: 100px;
    background: #000;
    border-radius: 50%;
    margin: 50px;
    position: relative;
    box-shadow: 0 0 20px #000, inset 0 0 30px #2e1065;
    animation: voidPulse 2s infinite alternate;
}

.wraith-aura {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, transparent 40%, #7e22ce 60%, transparent 70%);
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(10px);
    animation: auraBurn 1s infinite linear;
}

.wraith-smoke {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 20px;
    height: 20px;
    background: #222;
    border-radius: 50%;
    opacity: 0;
    filter: blur(5px);
    animation: smokeTrail 2s linear infinite;
}

@keyframes wraithFloat {
    from { right: -200px; }
    to { right: 110%; }
}

@keyframes voidPulse {
    from { transform: scale(1); box-shadow: 0 0 20px #000; }
    to { transform: scale(1.1); box-shadow: 0 0 50px #581c87; }
}

@keyframes auraBurn {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes smokeTrail {
    0% { opacity: 0.5; transform: scale(1) translate(0, 0); }
    100% { opacity: 0; transform: scale(3) translate(100px, -50px); }
}

/* =========================================
   3. BUTTONS & SCROLL INDICATOR
========================================= */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-download-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 250px;
    height: 60px;
    background: linear-gradient(to right, #f59e0b, #ea580c);
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-download-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(234, 88, 12, 0.8);
    background: linear-gradient(to right, #fbbf24, #f97316);
}

.btn-info-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 180px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-info-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.client-info {
    margin-top: 15px;
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes scrollWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* =========================================
   4. CONTENT SECTION (Enhanced)
========================================= */
.content-section {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    padding-top: 100px;
    padding-bottom: 50px;
    z-index: 20;
    background-color: #0a0a0a;
    box-shadow: 0 -50px 100px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.8) 20%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 0;
}

.content-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.content-char {
    position: absolute;
    filter: grayscale(20%) brightness(0.8);
    transition: all 0.5s ease;
}

.c-char-left {
    left: -280px;
    bottom: -50px;
    height: 750px;
    transform: scaleX(-1);
}

.c-char-right {
    right: -80px;
    bottom: -50px;
    height: 700px;
    z-index: 2;
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: -80px auto 50px;
    position: relative;
    z-index: 15;
    padding: 0 20px;
}

.feature-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.1);
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(20, 20, 20, 0.95);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.2);
}

.feature-icon {
    font-size: 32px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 13px;
    color: #94a3b8;
}

/* =========================================
   5. NEWS SECTION (Enhanced)
========================================= */
.news-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0;
}

.news-tabs {
    display: flex;
    gap: 30px;
}

.news-tab {
    padding-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.news-tab:hover {
    color: #fff;
}

.news-tab.active {
    color: var(--accent-gold);
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-gold);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Enhanced News Card Style (Uniform Size) */
.news-item-row {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
}

.news-item-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.news-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 100%;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item-row:hover .news-thumb img {
    transform: scale(1.1);
}

.news-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 5px;
    overflow: hidden;
}

.news-header-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.news-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.news-head {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: auto;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: auto;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

.news-meta i {
    margin-right: 5px;
    color: var(--accent-gold);
}

.news-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.news-tag {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: #cbd5e1;
}

/* Category Colors */
.cat-general { color: #94a3b8; border-color: #94a3b8; }
.cat-event { color: #eab308; border-color: #eab308; }
.cat-update { color: #3b82f6; border-color: #3b82f6; }
.cat-promotion { color: #ef4444; border-color: #ef4444; }
.cat-gameguide { color: #22c55e; border-color: #22c55e; }
.cat-upclass { color: #a855f7; border-color: #a855f7; }
.cat-quest { color: #06b6d4; border-color: #06b6d4; }

/* Hidden utility for tabs */
.news-group {
    display: none;
}

.news-group.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   6. RESPONSIVE STYLES
========================================= */
@media (min-width: 768px) {
    .news-item-row {
        flex-direction: row;
        height: 180px;
        min-height: 180px;
    }

    .news-thumb {
        width: 270px;
        height: 100%;
        flex-shrink: 0;
    }
}

@media (max-width: 1200px) {
    .char-left,
    .char-right {
        opacity: 0.6;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-char {
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .hero-char,
    .content-char {
        display: none;
    }

    .feature-grid,
    .news-grid,
    .news-group.active {
        grid-template-columns: 1fr;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-tabs {
        gap: 20px;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .news-thumb {
        height: 200px;
        width: 100%;
    }
}
