/* ========================================
   ThaiGrow Gold Theme
   ======================================== */

/* CSS Variables */
:root {
    --primary: #d4a017;
    --primary-dark: #9a6b00;
    --primary-light: #f5c84b;
    --secondary: #1f1600;
    --accent: #f8b400;
    --accent-red: #dc2626;
    --accent-green: #16a34a;
    --gold: #d4a017;
    --gold-dark: #8a5a00;
    --gold-light: #ffe08a;
    --gold-soft: #fff8e1;
    --bg: #fffaf0;
    --bg-white: #ffffff;
    --bg-light: #fff3c4;
    --text: #241600;
    --text-light: #7a5a12;
    --text-muted: #a17b23;
    --border: #f0d68a;
    --border-light: #fff0bd;
    --shadow: 0 8px 24px rgba(138,90,0,0.08);
    --shadow-md: 0 12px 28px rgba(138,90,0,0.12);
    --shadow-lg: 0 18px 40px rgba(138,90,0,0.16);
    --shadow-xl: 0 24px 60px rgba(138,90,0,0.2);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --max-width: 1280px;
    --header-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Thai', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,224,138,0.5), transparent 32%),
        linear-gradient(180deg, #fffaf0 0%, #fff7df 45%, #fff 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 9999;
}

.top-bar .dropdown {
    position: relative;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* ========================================
   Main Header & Navigation
   ======================================== */
.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .navbar {
    padding: 0;
    height: var(--header-height);
}

/* Logo */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.logo-icon {
    color: #fff;
    background: rgba(255,255,255,0.15);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}
.logo.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Navigation Links */
.navbar-nav {
    gap: 0.25rem;
    align-items: center;
    min-width: 0;
}

.nav-item {
    position: relative;
    min-width: 0;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: var(--transition-fast);
    position: relative;
    max-width: 118px;
    min-height: 48px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
}

.nav-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Dropdown */
.dropdown-toggle::after {
    border: none;
    width: auto;
    height: auto;
    margin-left: 0.25rem;
    font-family: 'Material Design Icons';
    content: '';
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat center;
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    z-index: 99999 !important;
}

/* Top bar dropdown fix */
.top-bar .dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

.top-bar .dropdown {
    position: relative;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bg-light);
    color: var(--primary);
}

/* Simple Hover Dropdown */
.simple-dropdown {
    position: relative;
}

.simple-dropdown .simple-menu {
    display: block;
    min-width: 220px;
    width: max-content;
    max-width: 280px;
    padding: 0.5rem;
    margin-top: 0;
    top: 100%;
    left: 0;
    right: auto;
    border: 1px solid rgba(212,160,23,0.22);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 99999;
}

.simple-dropdown:hover .simple-menu,
.simple-dropdown:focus-within .simple-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.simple-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.simple-menu .dropdown-item:hover {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

/* Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 2rem 0;
    border: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-top: 0;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.mega-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.mega-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

/* Search Button */
.btn-search {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-search:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Mobile Toggle */
.navbar-toggler {
    padding: 0.5rem;
    color: #fff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    min-height: calc(100vh - var(--header-height) - 400px);
    padding: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

/* Footer Form */
.footer-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.75rem 1rem;
}

.footer-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-light);
    box-shadow: none;
    color: #fff;
}

.footer-form .btn {
    padding: 0.75rem 1.25rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: var(--radius-sm);
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .navbar-brand {
        margin-right: 1rem;
    }

    .nav-link {
        max-width: 104px;
        padding: 0.5rem 0.55rem !important;
        font-size: 0.84rem;
    }

    .navbar-nav {
        gap: 0.15rem;
    }
}

/* ========================================
   Gold Home Layout
   ======================================== */
.main-header {
    background: linear-gradient(135deg, #5f3b00 0%, #9a6b00 45%, #d4a017 100%);
    border-bottom: 1px solid rgba(255,224,138,0.45);
}

.top-bar,
.footer {
    background: linear-gradient(135deg, #1f1600 0%, #4a2f00 55%, #7a5100 100%) !important;
}

.nav-link:hover,
.nav-link.active,
.btn-search:hover {
    background: rgba(255,224,138,0.22);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.mega-menu {
    background: linear-gradient(180deg, #fff 0%, #fff8e1 100%);
}

.mega-item {
    border-color: rgba(212,160,23,0.22);
    background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
}

.mega-item:hover {
    border-color: var(--gold);
}

.footer-title::after,
.footer-links a::before {
    background: var(--gold-light);
}

.card {
    border-color: rgba(212,160,23,0.18);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
}

.card:hover {
    border-color: rgba(212,160,23,0.45);
}

.btn-primary,
.btn-warning,
.btn-gold-outline:hover {
    background: linear-gradient(135deg, #f8b400 0%, #d4a017 50%, #9a6b00 100%);
    border: none;
    color: #fff;
}

.btn-primary:hover,
.btn-warning:hover {
    background: linear-gradient(135deg, #9a6b00 0%, #d4a017 100%);
}

.btn-outline-primary,
.btn-gold-outline {
    color: var(--gold-dark);
    border: 1px solid rgba(212,160,23,0.55);
    background: rgba(255,248,225,0.8);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--gold);
    border-color: var(--gold);
}

.badge.bg-primary,
.badge.bg-warning,
.gold-badge {
    background: linear-gradient(135deg, #f8b400 0%, #d4a017 100%) !important;
    color: #2a1a00 !important;
}

.hero-gold {
    padding: 5.5rem 0 6.5rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,224,138,0.5), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(248,180,0,0.28), transparent 30%),
        linear-gradient(135deg, #2b1a00 0%, #7a5100 42%, #d4a017 100%);
    position: relative;
    overflow: hidden;
}

.hero-gold::after {
    content: '';
    position: absolute;
    inset: auto -10% -35% 35%;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 62%);
    pointer-events: none;
}

.hero-gold .hero-badge {
    background: rgba(255,248,225,0.18);
    border-color: rgba(255,224,138,0.35);
    color: #fff8e1;
}

.hero-gold .hero-title {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    letter-spacing: -0.04em;
    text-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.hero-gold .hero-title span {
    color: #ffe08a;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.hero-gold .hero-desc {
    color: rgba(255,255,255,0.84);
    max-width: 640px;
}

.gold-market-panel {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,224,138,0.32);
    box-shadow: 0 30px 80px rgba(0,0,0,0.22);
    backdrop-filter: blur(14px);
}

.panel-title {
    color: #ffe08a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.market-card {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,224,138,0.12));
    border: 1px solid rgba(255,224,138,0.3);
    color: #fff;
}

.market-card:hover {
    color: #fff;
    transform: translateY(-4px);
    background: rgba(255,224,138,0.22);
}

.market-card strong {
    display: block;
    color: #ffe08a;
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.55rem;
}

.market-card span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.86;
}

.home-gold-layout {
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.gold-section {
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(212,160,23,0.18);
    box-shadow: var(--shadow);
}

.gold-feature-section {
    box-shadow: var(--shadow-lg);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gold-heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
}

.gold-heading p {
    margin: 0.35rem 0 0;
    color: var(--text-light);
}

.gold-feature-card,
.gold-card,
.gold-news-item,
.gold-category-card {
    border: 1px solid rgba(212,160,23,0.2);
    background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.gold-feature-card:hover,
.gold-card:hover,
.gold-news-item:hover,
.gold-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212,160,23,0.5);
}

.gold-feature-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gold-feature-body {
    padding: 1.6rem;
}

.gold-feature-body h3,
.gold-card h3,
.gold-news-item h4 {
    font-weight: 800;
    line-height: 1.35;
    color: var(--text);
}

.gold-feature-body h3 a,
.gold-card h3 a,
.gold-news-item h4 a {
    color: inherit;
}

.gold-feature-body h3 a:hover,
.gold-card h3 a:hover,
.gold-news-item h4 a:hover {
    color: var(--gold-dark);
}

.gold-feature-body p,
.gold-card p,
.gold-news-item p {
    color: var(--text-light);
}

.gold-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.gold-news-stack {
    display: grid;
    gap: 1rem;
}

.gold-news-item {
    padding: 1.25rem;
}

.gold-news-item span {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.78rem;
}

.gold-card {
    padding: 1.25rem;
}

.gold-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--gold-dark);
    background: var(--gold-soft);
    margin-bottom: 1rem;
}

.gold-card h3 {
    font-size: 1rem;
    margin: 0.8rem 0 0.6rem;
}

.gold-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.gold-badge.soft {
    background: var(--gold-soft) !important;
    color: var(--gold-dark) !important;
    border: 1px solid rgba(212,160,23,0.22);
}

.gold-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.gold-category-card {
    min-height: 150px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text);
}

.gold-category-card iconify-icon {
    color: var(--gold-dark);
}

.gold-category-card strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.35;
}

.gold-category-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.gold-tags-section {
    background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
}

.gold-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.gold-tag-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(212,160,23,0.28);
    color: var(--gold-dark);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.gold-tag-cloud a:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

.gold-tag-cloud span {
    opacity: 0.65;
    font-size: 0.85em;
}

@media (max-width: 1199.98px) {
    .gold-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-gold {
        padding: 3.5rem 0 5rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gold-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .gold-category-grid,
    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .gold-category-grid,
    .market-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    :root {
        --header-height: 70px;
    }
    
    .navbar-collapse {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 1rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        gap: 0.25rem;
        align-items: stretch;
    }
    
    .nav-link {
        padding: 0.625rem 1rem !important;
        max-width: none;
        min-height: auto;
        justify-content: flex-start;
        text-align: left;
    }

    .nav-text {
        display: block;
        overflow: visible;
    }

    .simple-dropdown .simple-menu {
        position: static;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0.25rem 0 0.5rem;
        padding: 0.25rem 0.75rem;
        border: 0;
        border-radius: var(--radius);
        background: rgba(255,248,225,0.12);
        box-shadow: none !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .simple-menu .dropdown-item {
        color: rgba(255,255,255,0.9);
        padding: 0.55rem 0.75rem;
    }

    .simple-menu .dropdown-item:hover {
        color: #fff;
        background: rgba(255,255,255,0.12);
    }
    
    .mega-menu {
        display: none;
    }
    
    .mega-menu {
        position: static;
        width: 100%;
        padding: 1rem;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
    }
    
    .mega-item {
        margin-bottom: 0.75rem;
    }
    
    .navbar-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 767.98px) {
    .top-bar .row > div:first-child {
        display: none;
    }
    
    .logo-subtitle {
        display: none !important;
    }
    
    .footer-top .row > div {
        margin-bottom: 2rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title span {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.hero-actions .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
}

.hero-actions .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.hero-actions .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 100px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
    color: #fff;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title span {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        justify-content: flex-start;
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: auto;
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
    }
}

/* Gold theme final overrides */
.hero-section.hero-gold {
    padding: 5.5rem 0 6.5rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,224,138,0.5), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(248,180,0,0.28), transparent 30%),
        linear-gradient(135deg, #2b1a00 0%, #7a5100 42%, #d4a017 100%);
}

.hero-section.hero-gold .hero-title {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    letter-spacing: -0.04em;
}

.hero-section.hero-gold .hero-title span {
    color: #ffe08a;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.hero-section.hero-gold .hero-desc {
    max-width: 640px;
    color: rgba(255,255,255,0.84);
}

.hero-section.hero-gold .hero-actions {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .hero-section.hero-gold {
        padding: 3.5rem 0 5rem;
    }
}
