@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800&family=Cinzel:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #d98b2b; /* Ember / Amber */
  --primary-glow: rgba(217, 139, 43, 0.5);
  --secondary-color: #17110a; /* Dark Earth */
  --tertiary-color: #0c0905; /* Deepest Earth - AAA dark */
  --text-main: #f4ece0;
  --text-muted: #9e9384;
  --surface-color: rgba(25, 19, 13, 0.7);
  --surface-border: rgba(217, 139, 43, 0.15);
  --surface-hover: rgba(45, 33, 21, 0.85);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--tertiary-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, .logo, .subtitle, .badge, .step-number, .news-date {
  font-family: 'Cinzel', serif;
}

h1:lang(th), h2:lang(th), h3:lang(th) {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--tertiary-color);
}
::-webkit-scrollbar-thumb {
  background: #3a2a1a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--tertiary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: float 2s ease-in-out infinite;
}

.loader-text {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 30px;
}
.loader-text span {
    color: var(--primary-color);
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: load 2s ease-in-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Ambient Background */
#ember-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(217, 139, 43, 0.08) 0%, transparent 60%),
                url('../images/hero_bg.png') no-repeat center center/cover;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Premium Card / Glass */
.premium-card {
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.premium-card:hover {
    border-color: rgba(217, 139, 43, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(217, 139, 43, 0.05);
}

/* Vertical Sidebar */
.sidebar { z-index: 1000;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(12, 9, 5, 0.85);
    border-right: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 0;
    z-index: 1000;
}

.sidebar-top {
    padding: 0 30px;
}

.logo { justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.logo i {
    color: var(--primary-color);
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(217,139,43,0.5));
}

.logo span {
    color: var(--primary-color);
}

.vertical-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vertical-nav a,
.vertical-nav ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Kanit', sans-serif;
}

.vertical-nav a i {
    font-size: 18px;
    transition: var(--transition);
}

.vertical-nav a:hover, .vertical-nav a.active,
.vertical-nav ul li a:hover, .vertical-nav ul li a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(217, 139, 43, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--primary-color);
}

.vertical-nav a:hover i, .vertical-nav a.active i,
.vertical-nav ul li a:hover i, .vertical-nav ul li a.active i {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.sidebar-bottom {
    padding: 0 30px;
}

/* CTA Buttons */
.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
}

.cta-btn.glowing {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(217, 139, 43, 0.2);
}

.cta-btn.glowing:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 30px var(--primary-glow);
}

.cta-btn.primary-btn {
    background: var(--primary-color);
    color: #000;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(217, 139, 43, 0.4);
}

.cta-btn.primary-btn:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.cta-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content Area */
.content-wrapper {
    margin-left: var(--sidebar-width);
    position: relative;
    min-height: 100vh;
}

/* Sections */
section {
    padding: 120px 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.subtitle,
.section-header .subtitle {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-desc {
    color: var(--text-muted);
    font-size: clamp(15px, 1.2vw, 18px);
    max-width: 700px;
    margin-top: 15px;
    margin-bottom: 40px;
}

.section-header.center .section-desc {
    margin-left: auto; margin-right: auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(217, 139, 43, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(50px, 7vw, 90px); line-height: 1.1;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: linear-gradient(to right, #fff, #c9bda9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
}

.hero p {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 50px;
}

.hero .hero-buttons {
    display: flex;
    gap: 20px;
    max-width: 500px;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-family: 'Kanit', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mouse {
    width: 20px; height: 30px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 2px; height: 6px;
    background: var(--primary-color);
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    100% { top: 15px;  }
}

/* How to Play */
.how-to-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step-card {
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.step-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(217, 139, 43, 0.1);
    width: 70px; height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(217, 139, 43, 0.2);
}

.step-number {
    position: absolute;
    top: -15px; right: 10px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 0;
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* Guide Section */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.guide-card {
    display: flex;
    flex-direction: column;
}

.guide-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.guide-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(0.85) contrast(1.15) saturate(1.1) sepia(0.1);
}

.guide-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%), linear-gradient(to top, var(--bg-dark) 0%, rgba(10,10,10,0) 40%);
    pointer-events: none;
    z-index: 1;
}


.guide-card:hover .guide-img img {
    transform: scale(1.12);
    filter: brightness(1.1) contrast(1.2) saturate(1.3) sepia(0);
}


.guide-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%), linear-gradient(to top, var(--bg-dark) 0%, rgba(10,10,10,0) 40%);
    pointer-events: none;
    z-index: 1;
}


.guide-badge {
    z-index: 2;
    position: absolute;
    top: 15px; right: 15px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 18px;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-badge.red { background: rgba(229, 80, 57, 0.8); border: 1px solid #e55039; }
.guide-badge.green { background: rgba(120, 224, 143, 0.8); border: 1px solid #78e08f; }
.guide-badge.blue { background: rgba(130, 204, 221, 0.8); border: 1px solid #82ccdd; }

.guide-content {
    padding: 30px;
    padding: 35px 30px;
    flex: 1;
}

.guide-content h3 {
    font-size: clamp(16px, 1.5vw, 20px);
    margin-bottom: 10px;
    color: #fff;
}

.guide-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.guide-list {
    list-style: none;
    border-top: 1px solid var(--surface-border);
    padding-top: 20px;
}

.guide-list li {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-list li i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 12px;
}

/* Rules Section */
.rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.rules-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: max-content;
}

.tab-btn { user-select: none; -webkit-user-select: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 18px 20px;
    text-align: left;
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
}

.tab-btn i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab-btn.active {
    background: rgba(217, 139, 43, 0.1);
    color: #fff;
    border-color: rgba(217, 139, 43, 0.3);
}

.tab-btn.active i {
    color: var(--primary-color) !important;
}

.rules-content {
    padding: 50px;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 20px;
}

.rule-header i {
    font-size: 32px;
}

.rule-header h3 {
    font-size: 26px;
    color: #fff;
}

.aaa-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.aaa-list li h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aaa-list li h4 i {
    color: var(--primary-color);
    font-size: 14px;
}

.aaa-list li p {
    color: var(--text-muted);
    font-size: 15px;
    padding-left: 24px;
}

/* Iron Rules */
.iron-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.iron-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iron-list li {
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.iron-list li i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .iron-rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Dino Rules Grid */
.dino-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dino-rule-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
}

.dino-rule-card:hover {
    border-color: var(--primary-color);
    background: rgba(217, 139, 43, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.dino-rule-card h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.dino-rule-card h4 i {
    color: #fff;
    opacity: 0.8;
}

.dino-rule-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dino-rule-card li {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.4;
}

.dino-rule-card li i {
    margin-top: 3px;
    font-size: 12px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.news-card {
    display: flex;
    padding: 20px;
    gap: 25px;
    align-items: center;
}

.news-img {
    width: 140px; height: 140px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.news-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 0; right: 0;
    background: var(--primary-color);
    color: #000;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 4px 0 0 0;
}

.news-content h3 {
    font-size: clamp(15px, 1.2vw, 18px);
    margin-bottom: 10px;
    color: #fff;
}

.news-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: #fff;
    gap: 12px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-toggle {
    width: 20px; height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: var(--transition);
}

.faq-toggle::after {
    content: '';
    position: absolute;
    width: 2px; height: 20px;
    background: var(--primary-color);
    top: -9px; left: 9px;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 30px;
}

.faq-answer p {
    padding: 0 0 25px 35px;
    color: var(--text-muted);
    font-size: 15px;
}

.faq-answer code {
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-color);
    font-family: monospace;
}

.faq-item.active .faq-answer {
    max-height: 3000px;
}

.faq-item.active .faq-toggle::after {
    transform: rotate(90deg);
    
}

/* Footer */
footer {
    padding: 80px 80px 30px;
    border-top: 1px solid var(--surface-border);
    background: rgba(0,0,0,0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: 'Cinzel', serif;
}
.footer-logo span { color: var(--primary-color); }

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px; height: 45px;
    border-radius: 8px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    font-family: 'Kanit', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

/* Animations */
@keyframes fadeIn {
    from {  transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1200px) {
    .rules-layout { grid-template-columns: 1fr; }
    .rules-nav { flex-direction: row; flex-wrap: wrap; }
    .tab-btn { user-select: none; -webkit-user-select: none; flex: 1; justify-content: center; }
}

@media (max-width: 992px) {
    .sidebar { z-index: 1000;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        width: 100%; height: auto;
        position: fixed;
        padding: 20px;
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid var(--surface-border);
    }
    .logo-container { margin-bottom: 0; }
    .mobile-nav-toggle { display: block; }
    
    .vertical-nav { 
        display: none; 
        margin-top: 20px; 
    }
    .vertical-nav.show {
        display: block;
    }
    .vertical-nav ul {
        flex-direction: column;
    }

    .sidebar-bottom { display: none; }
    .content-wrapper { margin-left: 0; margin-top: 80px; }
    section { padding: 80px 30px; }
    .hero { padding: 0 30px; text-align: center; }
    .hero h1 { font-size: clamp(32px, 5vw, 50px); margin: 0 auto 30px; }
    .hero p { margin: 0 auto 40px; }
    .hero .hero-buttons { margin: 0 auto; justify-content: center; }
    .scroll-indicator { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card { flex-direction: column; text-align: center; }
    .news-img { width: 100%; height: 200px; }
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
}

/* Scroll Animations */
.premium-card {
    
    
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}
.premium-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 9, 5, 0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    transform: translateY(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 80vh;
    overflow-y: auto;
}
.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}
.modal-close:hover {
    background: var(--primary-color);
    color: #000;
}
.modal-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.modal-body {
    font-size: 18px;
    color: #fff;
    line-height: 1.8;
}
.read-more-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.read-more-btn:hover {
    background: var(--primary-color);
    color: #000;
}


.news-content {
    padding: 30px;
}
/* =========================================
   AAA CINEMATIC UI ENHANCEMENTS
   ========================================= */

/* Deep Glassmorphism & Glowing Cards */
.premium-card {
    background: linear-gradient(145deg, rgba(25, 19, 13, 0.85), rgba(12, 9, 5, 0.95)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(217, 139, 43, 0.15) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-card:hover {
    border-color: rgba(217, 139, 43, 0.6) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 30px rgba(217, 139, 43, 0.25), inset 0 1px 0 rgba(217, 139, 43, 0.2) !important;
    transform: translateY(-6px) !important;
}

/* Cinematic Typography */
.section-header h2 {
    font-size: 3.5rem !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 6px !important;
    background: linear-gradient(to right, #ffffff, #d98b2b, #ffffff) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0px 10px 30px rgba(217, 139, 43, 0.4) !important;
    animation: shine 6s linear infinite !important;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.section-header .subtitle {
    color: var(--primary-color) !important;
    letter-spacing: 8px !important;
    text-shadow: 0 0 15px var(--primary-color) !important;
}

/* Stunning Buttons */
.tab-btn.active, .download-btn, .read-more-btn {
    background: linear-gradient(135deg, #f3a13d 0%, #b86910 100%) !important;
    color: #110c05 !important;
    font-weight: 800 !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    box-shadow: 0 0 20px rgba(217, 139, 43, 0.4), inset 0 1px 0 rgba(255,255,255,0.6) !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5) !important;
    letter-spacing: 1px !important;
}

.tab-btn.active:hover, .download-btn:hover, .read-more-btn:hover {
    background: linear-gradient(135deg, #ffb861 0%, #d98b2b 100%) !important;
    box-shadow: 0 0 35px rgba(217, 139, 43, 0.8), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    transform: scale(1.03) translateY(-2px) !important;
}

/* Supercharged Image Hover Effects */
.guide-card:hover .guide-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 60px rgba(217, 139, 43, 0.6);
    z-index: 3;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Scrollbar Enhancement */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--tertiary-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: #ffb861;
}

/* Modal AAA Upgrade */
.modal-content.premium-card {
    background: rgba(15, 11, 7, 0.98) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 80px rgba(217, 139, 43, 0.3), inset 0 0 30px rgba(217, 139, 43, 0.1) !important;
}

/* Alive Animations */
.logo {
    animation: floatLogo 6s ease-in-out infinite !important;
}

@keyframes floatLogo {
    0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 10px rgba(217,139,43,0.3)); }
    50% { transform: translateY(-5px) scale(1.02); filter: drop-shadow(0 0 25px rgba(217,139,43,0.7)); }
    100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 10px rgba(217,139,43,0.3)); }
}

.hero-bg {
    animation: pulseBg 15s ease-in-out infinite alternate !important;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.05); opacity: 0.25; }
}

/* Make badges pop more */
.guide-badge {
    box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(4px) !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
}
.lang-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(217,139,43,0.3);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.lang-btn img {
    border-radius: 2px;
}
.lang-btn:hover {
    background: rgba(217,139,43,0.2);
    transform: translateY(-2px);
}
.lang-btn.active {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(217,139,43,0.5);
}

/* Hide Google Translate UI Elements completely */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon, .goog-te-gadget-simple, .goog-te-menu-value, #goog-gt-tt {
    display: none !important;
}
body {
    top: 0px !important;
}
.VIpgJd-Zvi9od-ORHb-OEVmcd {
    display: none !important;
}
font {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Slider Language Switcher */
.lang-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 20px;
}
.lang-label {
    font-family: 'Kanit', sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.3s ease;
}
.lang-toggle {
    width: 50px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(217,139,43,0.3);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.lang-slider {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(217,139,43,0.8);
}
.lang-toggle:hover .lang-slider {
    box-shadow: 0 0 15px rgba(217,139,43,1);
}

/* GPU Acceleration for Animations */
.guide-card, .news-card, .faq-item, .dino-rule-card, .step-card { will-change: transform, opacity; }

