/*
Theme Name: ยูฟ่าเกม Premium Theme
Theme URI: https://ufagame.top
Description: A premium, highly optimized, and SEO-friendly WordPress Theme for ยูฟ่าเกม (UFA Game). Built with modern mobile-first responsive design, dark gold luxury aesthetics, glassmorphism UI widgets, and Customizer controls.
Version: 1.0.0
Author: Antigravity Team
Author URI: https://ufagame.top
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ufagame
*/

/* ==========================================================================
   1. DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-deep: #080808;
    --bg-dark: #121212;
    --bg-panel: #1a1a1a;
    --bg-panel-light: #242424;

    /* Gold Gradients & Colors */
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #AA8010;
    --gold-glow: rgba(212, 175, 55, 0.45);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #AA8010 100%);
    --gold-gradient-hover: linear-gradient(135deg, #FFF099 0%, #FFD700 50%, #D4AF37 100%);

    /* Text Colors */
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --text-muted: #777777;

    /* Status Colors */
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f1c40f;

    /* Typography & Spacing */
    --font-primary: 'Prompt', 'Kanit', sans-serif;
    --container-width: 1200px;

    /* Glassmorphism settings */
    --glass-bg: rgba(26, 26, 26, 0.65);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --card-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & BASE LAYOUT
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-deep);
    color: var(--text-gray);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Webkit Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* Typography & Global Tags */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--gold-light);
}

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

/* Global Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (STICKY & GLASSMORPHISM)
   ========================================================================== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    padding: 0;
}

.header-wrapper.scrolled {
    background: rgba(8, 8, 8, 0.95);
    padding: 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.header-wrapper.scrolled .header-container {
    height: 60px;
}

/* Responsive adjustments for header dimensions & buttons */
@media (max-width: 991px) {
    .header-container {
        height: 70px;
    }

    .header-wrapper.scrolled .header-container {
        height: 56px;
    }

    .header-actions .btn-login,
    .header-actions .btn-register {
        display: none !important;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--gold-light);
}

/* Desktop Navigation Menu */
.nav-menu-wrapper {
    display: none;
}

@media (min-width: 992px) {
    .nav-menu-wrapper {
        display: block;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links .current-menu-item>a::after {
    width: 100%;
}

.nav-links .current-menu-item>a {
    color: var(--gold-light);
}

/* Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    gap: 8px;
}

.btn-login {
    background: transparent;
    color: var(--gold-light);
    border: 1.5px solid var(--gold);
}

.btn-login:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

.btn-register {
    background: var(--gold-gradient);
    color: var(--bg-deep);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-register:hover {
    background: var(--gold-gradient-hover);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-register:active {
    transform: translateY(0);
}

/* Hamburger toggle menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold-light);
    transition: var(--transition-smooth);
    transform-origin: center;
}

/* Hamburger "X" Close state */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Nav Overlay Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 30px 40px;
    border-left: 1px solid var(--glass-border);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-links a {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-links a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

/* Body overlay when menu is open */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.body-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

/* Dark gradient overlay to make text pop */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.7) 0%, rgba(8, 8, 8, 0.92) 80%, #080808 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-ctas .btn {
    padding: 12px 36px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   5. GAME CATEGORIES SECTION (GRID LAYOUT)
   ========================================================================== */
.categories-section {
    background-color: var(--bg-deep);
    padding: 60px 0;
    position: relative;
}

.categories-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.categories-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Category Card */
.category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.category-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.3) 100%);
}

.category-content {
    padding: 20px;
    text-align: center;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.category-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    margin: -44px auto 12px;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon-box {
    background: var(--gold-gradient);
    color: var(--bg-deep);
    border-color: var(--gold-light);
    transform: rotate(360deg);
}

.category-icon {
    width: 22px;
    height: 22px;
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.category-btn {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-btn::after {
    content: '→';
    transition: transform 0.2s ease;
}

.category-card:hover .category-btn::after {
    transform: translateX(4px);
}

/* ==========================================================================
   6. SEO CONTENT AREA
   ========================================================================== */
.seo-section {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 70px 0;
}

.seo-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--glass-shadow);
}

@media (min-width: 768px) {
    .seo-card {
        padding: 40px 50px;
    }
}

.seo-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .seo-card-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 50px;
    }
}

.seo-card-right img {
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.seo-card-right img:hover {
    border-color: var(--gold-light);
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.15);
}

/* SEO Stats Widget */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 35px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.stats-item {
    background: rgba(8, 8, 8, 0.4);
    border: 1.5px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition-smooth);
}

.stats-item:hover {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.12);
}

.stats-icon {
    width: 26px;
    height: 26px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

.seo-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.seo-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gold-gradient);
}

.seo-text {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.seo-text p {
    margin-bottom: 20px;
}

.seo-text strong {
    color: var(--gold-light);
    font-weight: 600;
}

/* Bullet list styling */
.seo-features-list {
    list-style: none;
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .seo-features-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.seo-feature-item {
    background: rgba(8, 8, 8, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-feature-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-light);
    flex-shrink: 0;
}

.seo-feature-text {
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 500;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer-wrapper {
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    padding-top: 60px;
    color: var(--text-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}

.footer-col-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
    border-left: 3px solid var(--gold);
}

.footer-about-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

/* Payments list logo */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bank-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: var(--transition-smooth);
}

.bank-item:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.bank-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Contact information list */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: var(--gold-light);
}

.footer-line-badge {
    background: #00B900;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-line-badge:hover {
    background: #009900;
    color: #ffffff;
}

/* Bottom Bar Copyright */
.footer-bottom {
    background: #040404;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (min-width: 768px) {
    .footer-bottom-flex {
        flex-direction: row;
    }
}

/* ==========================================================================
   8. INDEX POSTS LIST PAGE (WORDPRESS DEFAULT)
   ========================================================================== */
.main-content-layout {
    padding-top: 120px;
    padding-bottom: 80px;
}

.posts-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .posts-layout-grid {
        grid-template-columns: 2.5fr 1fr;
    }
}

.posts-loop-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-item-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 600px) {
    .post-item-card {
        flex-direction: row;
    }

    .post-item-thumb {
        width: 220px;
        min-height: 100%;
        flex-shrink: 0;
    }
}

.post-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-meta-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
}

.post-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-meta-icon {
    width: 13px;
    height: 13px;
}

.post-item-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.post-item-excerpt {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-readmore {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 500;
    align-self: flex-start;
}

/* Sidebar styling */
.sidebar-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: fit-content;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--gold);
}

.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget ul a {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: block;
    padding: 4px 0;
}

/* ==========================================================================
   9. ARTICLES SECTION (HOMEPAGE GRID)
   ========================================================================== */
.articles-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.article-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover .article-img {
    transform: scale(1.08);
}

.article-img-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-panel) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    min-height: 180px;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em;
    /* Ensure alignment */
}

.article-title a {
    color: inherit;
}

.article-title a:hover {
    color: var(--gold-light);
}

.article-excerpt {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8em;
}

.article-more-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.article-more-btn:hover {
    color: var(--text-white);
}

.article-more-btn i {
    transition: transform 0.2s ease;
}

.article-more-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   10. MOBILE BOTTOM NAVIGATION BAR & EXTRA RESPONSIVE FIXES
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 66px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1.5px solid rgba(212, 175, 55, 0.25);
    z-index: 997;
    /* Lowered z-index to stay under mobile overlay menu */
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7);
}

/* Bottom nav is displayed globally on all screen sizes */

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Bottom alignment for labels */
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    width: 20%;
    text-align: center;
    height: 100%;
    cursor: pointer;
    padding-bottom: 8px;
    /* Padding for perfect vertical align */
}

.mobile-bottom-nav-item .mobile-bottom-nav-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
    color: var(--gold-light);
}

.mobile-bottom-nav-item:hover .mobile-bottom-nav-icon,
.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    color: var(--gold-light);
}

/* Floating middle CTA button (Register) */
.mobile-bottom-nav-item.item-register {
    z-index: 1000;
}

.register-circle-btn {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep) !important;
    box-shadow: 0 4px 15px var(--gold-glow);
    border: 3.5px solid #0a0a0a;
    transition: var(--transition-smooth);
}

.mobile-bottom-nav-item.item-register:hover .register-circle-btn {
    background: var(--gold-gradient-hover);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.7);
    transform: translateX(-50%) translateY(-2px);
}

.mobile-bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Handle notches for modern devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        height: calc(66px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Page body padding to prevent bottom nav overlap on all viewports */
body {
    padding-bottom: 80px !important;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* Additional Responsive Optimizations */
@media (max-width: 576px) {
    .section-padding {
        padding: 50px 0;
    }

    .categories-title {
        font-size: 1.45rem;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        margin-bottom: 25px;
    }

    .hero-ctas .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
        width: 100%;
        /* Stack CTA buttons on very small mobile screens */
    }

    .hero-section {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .seo-card {
        padding: 24px 16px;
    }

    .seo-title {
        font-size: 1.35rem;
    }

    .seo-text {
        font-size: 0.85rem;
    }
}

.widget ul a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

/* FAQ Accordion Section */
.faq-section {
    background-color: var(--bg-deep);
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
}

.faq-accordion {
    max-width: 850px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active {
    border-color: var(--gold);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.12);
    background: rgba(18, 18, 18, 0.6);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--gold-light);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    color: var(--gold);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 28px;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 18px;
}