/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================================
   PIXEL ART GLOBAL STYLES
   ============================================== */

/* Force pixel rendering for all elements */
*,
*::before,
*::after {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Pixel-perfect borders and shadows */
.pixel-border {
    border-radius: 0 !important;
    border-style: solid;
    border-width: 2px;
}

.pixel-shadow {
    box-shadow: 4px 4px 0 #333 !important;
}

.pixel-shadow-large {
    box-shadow: 8px 8px 0 #333 !important;
}

/* Pixel button styles */
.pixel-btn {
    border-radius: 0;
    border: 3px solid;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.1s ease;
}

.pixel-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #333;
}

/* ==============================================
   DRAG PREVENTION SYSTEM (CSS)
   ============================================== */

/* Prevent text selection and dragging on protected elements */
.no-select, 
.logo, 
.nav-menu, 
.hero-title, 
.hero-subtitle, 
.section-title, 
.card-title, 
.item-title, 
.footer,
.event-timer,
.timer-digit,
.server-stats,
.stat-number {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto; /* Allow clicking but prevent dragging */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Make sure buttons and links still work */
button, 
a, 
.btn, 
.item-btn, 
.category-btn, 
.news-category-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

/* Allow text selection in content areas where needed */
.news-content p,
.news-excerpt,
.event-description,
.readable-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ==============================================
   MAIN STYLES
   ============================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    line-height: 1.4;
    color: #2a2a2a;
    background: #f0f0f0;
    overflow-x: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #3e3e3e;
    z-index: 1000;
    border-bottom: 4px solid #d4af37;
    box-shadow: 0 4px 0 #333, 0 8px 0 #222;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 2px solid #d4af37;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 0 #333;
    font-family: 'Orbitron', monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all 0.1s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #d4af37;
    background: #2a2a2a;
    border: 2px solid #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: #d4af37;
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login,
.btn-register {
    padding: 12px 24px;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 3px solid;
    transition: all 0.1s ease;
}

.btn-login {
    color: #d4af37;
    background: #2a2a2a;
    border-color: #d4af37;
}

.btn-login:hover {
    background: #d4af37;
    color: #2a2a2a;
    box-shadow: 3px 3px 0 #333;
}

.btn-register {
    background: #d4af37;
    color: #2a2a2a;
    border-color: #d4af37;
}

.btn-register:hover {
    background: #2a2a2a;
    color: #d4af37;
    box-shadow: 3px 3px 0 #d4af37;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 4px auto;
    transition: all 0.1s ease;
    background-color: #e0e0e0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Header height */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            #2a2a2a 0px,
            #2a2a2a 8px,
            #333 8px,
            #333 16px
        ),
        repeating-linear-gradient(
            90deg,
            #2a2a2a 0px,
            #2a2a2a 8px,
            #333 8px,
            #333 16px
        );
    background-size: 16px 16px;
    z-index: -2;
    image-rendering: pixelated;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, #d4af37 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #ffed4e 1px, transparent 1px);
    background-size: 32px 32px, 48px 48px;
    animation: pixelFloat 4s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(212, 175, 55, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 237, 78, 0.1) 50%, transparent 52%);
    background-size: 16px 16px, 24px 24px;
    animation: pixelShimmer 6s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes pixelFloat {
    0% { 
        transform: translateX(0);
    }
    100% { 
        transform: translateX(32px);
    }
}

@keyframes pixelShimmer {
    0% { 
        transform: translateX(0);
    }
    100% { 
        transform: translateX(24px);
    }
}

@keyframes heroShimmer {
    0% { background-position: -100px -100px, 100px 100px; }
    100% { background-position: 100px 100px, -100px -100px; }
}

.hero-container {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.title-main {
    display: block;
    color: #e0e0e0;
    text-shadow: 
        2px 2px 0 #333,
        4px 4px 0 #222;
}

.title-sub {
    display: block;
    color: #d4af37;
    text-shadow: 
        2px 2px 0 #333,
        4px 4px 0 #222;
}

.hero-description {
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 2rem;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 1px 1px 0 #333;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 3px solid;
    letter-spacing: 1px;
}

.btn-primary {
    background: #d4af37;
    color: #2a2a2a;
    border-color: #d4af37;
}

.btn-primary:hover {
    background: #2a2a2a;
    color: #d4af37;
    box-shadow: 4px 4px 0 #d4af37;
    transform: translate(-2px, -2px);
}

.btn-secondary {
    background: #2a2a2a;
    border-color: #d4af37;
    color: #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #2a2a2a;
    box-shadow: 4px 4px 0 #333;
    transform: translate(-2px, -2px);
}

/* Server Stats - Luxury Design */
.server-stats {
    margin-top: 4rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-item {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 240px;
    justify-content: space-between;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(212, 175, 55, 0.4) 25%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(212, 175, 55, 0.4) 75%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(212, 175, 55, 0.02) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover::before,
.stat-item:hover::after {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.25);
}

.stat-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
}

.stat-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(255, 215, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.3) 0%, 
        rgba(255, 215, 0, 0.2) 50%, 
        rgba(212, 175, 55, 0.3) 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    color: #FFD700;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(255, 215, 0, 0.1) 100%);
}

.stat-item:hover .stat-icon::before {
    opacity: 1;
}

.stat-icon.server-status {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.1) 0%, 
        rgba(16, 185, 129, 0.05) 100%);
    color: #22C55E;
}

.stat-icon.server-status::before {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.3) 0%, 
        rgba(16, 185, 129, 0.2) 50%, 
        rgba(34, 197, 94, 0.3) 100%);
}

.stat-item:hover .stat-icon.server-status {
    color: #16A34A;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.15) 0%, 
        rgba(16, 185, 129, 0.1) 100%);
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(51, 51, 51, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.875rem;
    font-family: 'Kanit', sans-serif;
    line-height: 1.2;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.75rem;
    font-family: 'Kanit', sans-serif;
    letter-spacing: -0.75px;
    line-height: 1.1;
}

.stat-value.status-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 1.375rem;
    font-weight: 650;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.stat-value.rates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    width: 100%;
    max-width: 160px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #4B5563;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.rate-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.rate-item:hover::before {
    left: 100%;
}

.rate-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.rate-value {
    font-weight: 700;
    color: #D4AF37;
    font-size: 1.125rem;
    letter-spacing: -0.25px;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-trend {
    font-size: 0.75rem;
    color: rgba(51, 51, 51, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.stat-trend i {
    color: #22C55E;
    font-size: 0.675rem;
}

/* Rates Card Styling */
.rates-card {
    position: relative;
    overflow: hidden;
}

.rates-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    border-radius: 12px 12px 0 0;
}

.rates-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

.rates-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
        min-height: 220px;
    }
    
    .stat-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
        border-radius: 20px;
    }
    
    .stat-icon::before {
        border-radius: 20px;
    }
    
    .stat-icon-wrapper {
        margin-bottom: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        letter-spacing: 0.8px;
    }
    
    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
    }
    
    .stat-value.status-text {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }
    
    .stat-value.rates {
        font-size: 0.9rem;
        max-width: 140px;
        gap: 0.375rem;
    }
    
    .rate-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .rate-item strong {
        font-size: 1rem;
    }
    
    .stat-trend {
        font-size: 0.7rem;
        padding-top: 0.375rem;
    }
    
    .section-divider {
        margin: 0.1rem 0;
    }
    
    .section-divider::after {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-header .section-title {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.section-header .view-all {
    flex-shrink: 0;
    margin-left: auto;
}

.section-header .section-subtitle {
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(255, 255, 255, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    margin-left: auto;
}

.section-title .title-subtitle {
    color: #666;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    font-family: 'Share Tech Mono', monospace;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2a2a2a;
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
    padding: 1.5rem 2.5rem;
    background: #e0e0e0;
    border-radius: 0;
    border: 4px solid #d4af37;
    box-shadow: 8px 8px 0 #333;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.1s ease;
    text-transform: uppercase;
}

.section-title::before {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.6) 0%, 
        rgba(255, 215, 0, 0.8) 25%, 
        rgba(212, 175, 55, 0.6) 50%,
        rgba(255, 215, 0, 0.8) 75%,
        rgba(212, 175, 55, 0.6) 100%);
    border-radius: 22px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.02) 0%, 
        rgba(255, 215, 0, 0.03) 50%, 
        rgba(212, 175, 55, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.section-title:hover {
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0 #333;
    border-color: #ffed4e;
}

.section-title:hover::before {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.8) 0%, 
        rgba(255, 215, 0, 1) 25%, 
        rgba(212, 175, 55, 0.8) 50%,
        rgba(255, 215, 0, 1) 75%,
        rgba(212, 175, 55, 0.8) 100%);
}

/* Responsive styling for section-title */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        padding: 1.2rem 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
        padding: 1rem 1.5rem;
    }
}

.section-subtitle {
    color: rgba(51, 51, 51, 0.7);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    letter-spacing: 0.25px;
}

.view-all {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 50%, 
        transparent 100%);
    transition: left 0.3s ease;
}

.view-all:hover::before {
    left: 100%;
}

.view-all:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.view-all i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(3px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .news-grid {
        gap: 1rem;
        max-width: 350px;
        padding: 0 0.5rem;
    }
}

.news-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 420px; /* Fixed height for all cards */
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(212, 175, 55, 0.4) 25%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(212, 175, 55, 0.4) 75%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(212, 175, 55, 0.02) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.news-card:hover::before,
.news-card:hover::after {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.25);
}

.news-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 180px; /* Fixed height for images */
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-content {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
}

.news-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.2) 50%, 
        transparent 100%);
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(51, 51, 51, 0.6);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 650;
    margin-bottom: 0.75rem;
    color: #1F2937;
    line-height: 1.3;
    letter-spacing: -0.25px;
    font-family: 'Kanit', sans-serif;
}

.news-excerpt {
    color: rgba(51, 51, 51, 0.75);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    flex: 1; /* Take available space */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.25px;
    padding: 8px 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto; /* Push to bottom */
    align-self: flex-start;
}

.news-link:hover {
    background: linear-gradient(135deg, #D4AF37, #FFD700 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Events Section */
.events-section {
    padding: 1rem 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 0.98) 25%,
        rgba(255, 255, 255, 1) 50%,
        rgba(248, 250, 252, 0.98) 75%,
        rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 2px,
            rgba(212, 175, 55, 0.02) 2px,
            rgba(212, 175, 55, 0.02) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 215, 0, 0.015) 2px,
            rgba(255, 215, 0, 0.015) 4px
        );
    background-size: 40px 40px, 60px 60px;
    animation: eventsPattern 15s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

.events-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(255, 215, 0, 0.02) 30%, 
        transparent 70%);
    border-radius: 50%;
    animation: eventsPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes eventsPattern {
    0% { background-position: 0px 0px, 0px 0px; }
    100% { background-position: 40px 40px, -60px 60px; }
}

@keyframes eventsPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.1; }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.event-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(212, 175, 55, 0.4) 25%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(212, 175, 55, 0.4) 75%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(212, 175, 55, 0.02) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.event-card:hover::before,
.event-card:hover::after {
    opacity: 1;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.25);
}

.event-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 200px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-timer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timer-item {
    text-align: center;
    min-width: 35px;
}

.timer-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-family: 'Kanit', sans-serif;
}

.timer-label {
    font-size: 0.7rem;
    color: rgba(51, 51, 51, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-badge.hot {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.event-badge.new {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.event-badge.boost {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    transform: rotate(-5deg);
    animation: boostPulse 2s ease-in-out infinite;
    margin-left: -20px;
}

@keyframes boostPulse {
    0%, 100% { 
        transform: rotate(-5deg) scale(1);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
    50% { 
        transform: rotate(-5deg) scale(1.05);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    }
}

.event-badge.epic {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.event-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 650;
    margin-bottom: 0.75rem;
    color: #1F2937;
    line-height: 1.3;
    letter-spacing: -0.25px;
    font-family: 'Kanit', sans-serif;
}

.event-description {
    margin-bottom: 1.5rem;
    color: rgba(51, 51, 51, 0.75);
    line-height: 1.5;
    font-size: 0.9rem;
}

.event-rewards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.reward-item {
    text-align: center;
    flex: 1;
    max-width: 80px;
}

.reward-item img {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.reward-item img:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reward-item span {
    font-size: 0.75rem;
    color: rgba(51, 51, 51, 0.7);
    font-weight: 500;
    line-height: 1.2;
    display: block;
}

.event-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.25px;
    padding: 12px 24px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.event-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.3s ease;
}

.event-btn:hover::before {
    left: 100%;
}

.event-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Classes Section */
.classes-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 50%, 
        rgba(248, 249, 250, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.classes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.015) 0%, transparent 50%);
    pointer-events: none;
}

.classes-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        conic-gradient(from 0deg at 20% 30%, 
            transparent 0deg,
            rgba(212, 175, 55, 0.03) 60deg,
            transparent 120deg,
            rgba(255, 215, 0, 0.02) 180deg,
            transparent 240deg,
            rgba(212, 175, 55, 0.03) 300deg,
            transparent 360deg
        ),
        conic-gradient(from 180deg at 80% 70%, 
            transparent 0deg,
            rgba(255, 215, 0, 0.02) 90deg,
            transparent 180deg,
            rgba(212, 175, 55, 0.025) 270deg,
            transparent 360deg
        );
    background-size: 200px 200px, 150px 150px;
    animation: classesRotate 30s linear infinite;
    pointer-events: none;
    opacity: 0.4;
}

@keyframes classesRotate {
    0% { 
        transform: rotate(0deg); 
        background-position: 0% 0%, 100% 100%;
    }
    50% { 
        background-position: 50% 50%, 50% 50%;
    }
    100% { 
        transform: rotate(360deg); 
        background-position: 100% 100%, 0% 0%;
    }
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.class-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    border-radius: 24px;
    text-align: center;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(212, 175, 55, 0.4) 25%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(212, 175, 55, 0.4) 75%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.class-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(212, 175, 55, 0.02) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.class-card:hover::before,
.class-card:hover::after {
    opacity: 1;
}

.class-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.25);
}

.class-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.75rem;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #D4AF37, #FFD700) border-box;
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.class-card:hover .class-image img {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.class-content {
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.class-name {
    font-size: 1.5rem;
    font-weight: 650;
    margin-bottom: 1rem;
    color: #1F2937;
    letter-spacing: -0.25px;
    font-family: 'Kanit', sans-serif;
}

.class-description {
    color: rgba(51, 51, 51, 0.75);
    margin-bottom: 1.75rem;
    min-height: 60px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.class-stats {
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.stat-label {
    width: 70px;
    font-weight: 600;
    color: #4B5563;
    font-size: 0.8rem;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-bar {
    flex: 1;
    height: 10px;
    background: linear-gradient(145deg, 
        rgba(229, 231, 235, 0.8) 0%, 
        rgba(209, 213, 219, 0.6) 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 2px 6px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 100%);
    border-radius: 8px 8px 0 0;
}

.class-card:hover .stat-fill {
    box-shadow: 
        0 3px 8px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.class-btn {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    letter-spacing: 0.25px;
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.class-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.3s ease;
}

.class-btn:hover::before {
    left: 100%;
}

.class-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Shop Section */
.shop-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 50%, 
        rgba(248, 249, 250, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.shop-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.015) 0%, transparent 50%);
    pointer-events: none;
}

.shop-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(60deg, transparent 0%, transparent 40%, rgba(212, 175, 55, 0.02) 50%, transparent 60%, transparent 100%),
        linear-gradient(120deg, transparent 0%, transparent 40%, rgba(255, 215, 0, 0.015) 50%, transparent 60%, transparent 100%),
        linear-gradient(30deg, transparent 0%, transparent 45%, rgba(212, 175, 55, 0.01) 50%, transparent 55%, transparent 100%);
    background-size: 80px 120px, 100px 140px, 60px 90px;
    animation: shopWaves 25s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes shopWaves {
    0%, 100% { 
        background-position: 0% 0%, 0% 0%, 0% 0%;
        transform: translateY(0px);
    }
    25% { 
        background-position: 25% 25%, -25% 25%, 50% 25%;
        transform: translateY(-10px);
    }
    50% { 
        background-position: 50% 50%, -50% 50%, 100% 50%;
        transform: translateY(0px);
    }
    75% { 
        background-position: 75% 75%, -75% 75%, 150% 75%;
        transform: translateY(10px);
    }
}

.shop-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.category-btn {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #4B5563;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.25px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 50%, 
        transparent 100%);
    transition: left 0.3s ease;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn.active,
.category-btn:hover {
    background: linear-gradient(135deg, #D4AF37, #FFD700 100%);
    border-color: rgba(212, 175, 55, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.shop-item {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
}

.shop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(212, 175, 55, 0.4) 25%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(212, 175, 55, 0.4) 75%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shop-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(212, 175, 55, 0.02) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.shop-item:hover::before,
.shop-item:hover::after {
    opacity: 1;
}

.shop-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.25);
}

.item-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.item-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-item:hover .item-image img {
    transform: scale(1.05);
}

.item-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.item-content {
    padding: 2rem 1.75rem;
       text-align: left;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    position: relative;
}

.item-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.2) 50%, 
        transparent 100%);
}

.item-name {
    font-size: 1.25rem;
    font-weight: 650;
    margin-bottom: 0.75rem;
    color: #1F2937;
    line-height: 1.3;
    letter-spacing: -0.25px;
    font-family: 'Kanit', sans-serif;
}

.item-description {
    font-size: 0.9rem;
    color: rgba(51, 51, 51, 0.7);
    margin-bottom: 1.25rem;
    min-height: 45px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.item-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-current {
    font-size: 1.375rem;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: -0.5px;
    font-family: 'Kanit', sans-serif;
}

.price-original {
    font-size: 1rem;
    color: rgba(51, 51, 51, 0.5);
    text-decoration: line-through;
    font-weight: 500;
}

.item-btn {
    width: 100%;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.3),
        0 4px 12px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.item-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.3s ease;
}

.item-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, 
        rgba(35, 35, 35, 1) 0%, 
        rgba(30, 30, 30, 0.98) 25%,
        rgba(35, 35, 35, 1) 50%,
        rgba(30, 30, 30, 0.98) 75%,
        rgba(35, 35, 35, 1) 100%);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 1px,
            rgba(212, 175, 55, 0.03) 1px,
            rgba(212, 175, 55, 0.03) 2px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 1px,
            rgba(255, 215, 0, 0.02) 1px,
            rgba(255, 215, 0, 0.02) 2px
        );
    background-size: 40px 40px, 60px 60px;
    animation: footerGrid 20s linear infinite;
    pointer-events: none;
    opacity: 0.4;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(255, 215, 0, 0.03) 50%, 
        transparent 100%);
    pointer-events: none;
    animation: footerGlow 8s ease-in-out infinite;
}

@keyframes footerGrid {
    0% { background-position: 0px 0px, 0px 0px; }
    100% { background-position: 40px 40px, -60px 60px; }
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(1.1); }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: -1rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    padding-right: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-text h3 {
    color: #D4AF37;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 2px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.logo-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-title i {
    color: #FFD700;
    font-size: 0.9rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.footer-links a i {
    color: rgba(212, 175, 55, 0.7);
    width: 16px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #D4AF37;
    transform: translateX(8px);
}

.footer-links a:hover i {
    color: #FFD700;
    transform: scale(1.1);
}

.footer-contact {
    padding-left: 1rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: #fff;
    font-size: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    color: #D4AF37;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-title {
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link.facebook {
    background: linear-gradient(135deg, rgba(59, 89, 152, 0.8), rgba(59, 89, 152, 0.6));
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.social-link.discord {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.8), rgba(114, 137, 218, 0.6));
}

.social-link.discord:hover {
    background: linear-gradient(135deg, #7289da, #8ea1e1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.4);
}

.social-link.youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.6));
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-link.line {
    background: linear-gradient(135deg, rgba(0, 195, 0, 0.8), rgba(0, 195, 0, 0.6));
}

.social-link.line:hover {
    background: linear-gradient(135deg, #00c300, #00d100);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 195, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(212, 175, 55, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
    margin-bottom: 1rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.copyright strong {
    color: #D4AF37;
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #D4AF37;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1;
        margin-bottom: 0;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .contact-cards {
        align-items: center;
    }
    
    .contact-card {
        justify-content: center;
        max-width: 300px;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding-top: 100px; /* Increased padding-top */
        height: auto;
        min-height: 80vh;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-container {
        padding-top: 2rem; /* Added padding-top */
    }

    .hero-title {
        font-size: 2.2rem; /* Adjusted font-size */
    }

    .hero-description {
        font-size: 0.9rem; /* Adjusted font-size */
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .events-grid,
    .classes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .logo-text h3 {
        font-size: 1.4rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom-links span {
        display: none;
    }
}

/* Section Divider */
.section-divider {
    margin: 2rem 0;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: repeating-linear-gradient(90deg, 
        #d4af37 0px,
        #d4af37 8px,
        transparent 8px,
        transparent 16px
    );
    transform: translateY(-50%);
}

.section-divider::after {
    content: '♦';
    background: #2a2a2a;
    color: #d4af37;
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #d4af37;
    box-shadow: 4px 4px 0 #333;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: all 0.1s ease;
}

.section-divider:hover::after {
    transform: scale(1.1);
    color: #FFD700;
    box-shadow: 6px 6px 0 #333;
}

/* Section Divider Animation */
@keyframes dividerGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(212, 175, 55, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 
            0 6px 30px rgba(212, 175, 55, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

@keyframes diamondRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.section-divider::after {
    animation: dividerGlow 3s ease-in-out infinite;
}

.section-divider:hover::after {
    animation: dividerGlow 1.5s ease-in-out infinite, diamondRotate 2s linear infinite;
}

/* Floating Particles Animation - Global Effects */
@keyframes floatingParticles {
    0% { 
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatingParticles2 {
    0% { 
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    15% { 
        opacity: 0.8;
    }
    85% { 
        opacity: 0.8;
    }
    100% { 
        transform: translateY(-100px) translateX(-50px) rotate(-360deg);
        opacity: 0;
    }
}

/* Add floating particles to specific sections */
.news-section, .classes-section, .shop-section {
    position: relative;
    padding-top: 1rem;
}

.news-section:after,
.classes-section:after,
.shop-section:after {
    content: '✦';
    position: absolute;
    top: 0;
    left: 10%;
    color: rgba(212, 175, 55, 0.3);
    font-size: 20px;
    animation: floatingParticles 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.classes-section:after {
    content: '◆';
    left: 30%;
    animation: floatingParticles2 30s linear infinite;
    animation-delay: -10s;
    color: rgba(255, 215, 0, 0.4);
}

.shop-section:after {
    content: '★';
    left: 70%;
    animation: floatingParticles 20s linear infinite;
    animation-delay: -5s;
    color: rgba(212, 175, 55, 0.35);
    font-size: 16px;
}

/* Additional subtle animations for variety */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes gentleWave {
    0%, 100% { transform: translateX(0px) scaleX(1); }
    25% { transform: translateX(10px) scaleX(1.05); }
    75% { transform: translateX(-10px) scaleX(0.95); }
}

/* Apply to pseudo elements for enhanced effects */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 80%;
    width: 6px;
    height: 6px;
    background: rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    animation: subtleFloat 12s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        20px 20px 0 rgba(255, 215, 0, 0.2),
        -20px -20px 0 rgba(212, 175, 55, 0.2);
    z-index: 1;
}

.events-section .event-card::before {
    content: '';
    position: absolute;
    top: 10px;
       right: 10px;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    animation: gentleWave 8s ease-in-out infinite;
    box-shadow: 
        0 0 10px rgba(212, 175, 55, 0.4),
        10px 0 0 rgba(255, 215, 0, 0.3),
        -10px 0 0 rgba(212, 175, 55, 0.3);
    z-index: 1;
}

/* News Categories */
.news-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.news-category-btn {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: #4B5563;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.25px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Kanit', sans-serif;
}

.news-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 50%, 
        transparent 100%);
    transition: left 0.3s ease;
}

.news-category-btn:hover::before {
    left: 100%;
}

.news-category-btn.active,
.news-category-btn:hover {
    background: linear-gradient(135deg, #D4AF37, #FFD700 100%);
    border-color: rgba(212, 175, 55, 0.3);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.news-card {
    animation: fadeInUp 0.6s ease forwards;
    transition: all 0.4s ease;
}

.news-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Animation for news filtering */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced news badge colors */
.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
}

/* Specific badge colors */
.news-card[data-category="event"] .news-badge {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.news-card[data-category="update"] .news-badge {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.news-card[data-category="promotion"] .news-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.news-card[data-category="maintenance"] .news-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Responsive design for news categories */
@media (max-width: 768px) {
    .news-categories {
        gap: 0.75rem;
        margin-bottom: 2rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 1rem 0.5rem 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .news-categories::-webkit-scrollbar {
        display: none;
    }
    
    .news-category-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .news-categories {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .news-category-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust to header height */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .nav-buttons {
        display: none; /* Hide original buttons */
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding-top: 100px; /* Increased padding-top */
        height: auto;
        min-height: 80vh;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-container {
        padding-top: 2rem; /* Added padding-top */
    }

    .hero-title {
        font-size: 2.2rem; /* Adjusted font-size */
    }

    .hero-description {
        font-size: 0.9rem; /* Adjusted font-size */
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .events-grid,
    .classes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .logo-text h3 {
        font-size: 1.4rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom-links span {
        display: none;
    }
}
