:root {
    /* Colors (Midnight Blue & Gold Theme) */
    --primary-blue-start: #0f172a;
    /* Deep Navy (Page BG / Primary) */
    --primary-blue-end: #1e293b;
    /* Lighter Navy */
    --accent-gold: #c5a059;
    /* Metallic Gold */
    --accent-silver: #e2e8f0;
    /* Light Silver (Secondary) */

    --bg-color: #0f172a;
    /* Deep Navy Background */
    --white: #FFFFFF;
    /* White Cards */

    --text-dark: #334155;
    /* Slate 700 for text */
    --text-light: #f8fafc;
    /* Slate 50 */
    --heading-color: #ffffff;
    /* White for page headers */
    --card-heading: #0f172a;
    /* Navy for card headers */

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-gold: linear-gradient(135deg, #c5a059 0%, #d4af37 100%);
    --gradient-primary: var(--gradient-blue);

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: "Microsoft JhengHei", "Arial Black", sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Header */
.main-header {
    background: #020617;
    /* Very Dark Navy */
    color: var(--heading-color);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #1e293b;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.hamburger-menu,
.mobile-menu-bar {
    display: none;
}

/* Navigation */
.main-nav {
    background: #ffffff;
    /* White Nav */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent-gold);
}

.main-nav ul {
    display: flex;
    justify-content: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 12px 24px;
    color: #334155;
    /* Dark Links */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--accent-gold);
    color: #ffffff;
}

/* Buttons */
.btn-cta {
    background: var(--gradient-gold);
    /* Gold Button */
    color: #0f172a;
    /* Navy Text */
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(197, 160, 89, 0.4);
    background: #fff;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #0f172a;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: filter 0.2s, transform 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-lg);
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
}

/* Force dark headings inside white cards */
.card h1,
.card h2,
.card h3,
.card h4 {
    color: var(--card-heading);
}

.card p {
    color: var(--text-dark);
}

/* Intro Card specific */
.intro-card {
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

/* Divider */
.divider {
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

/* Feature Grid (Why Choose Us) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
    color: var(--card-heading);
}

.feature-item p {
    color: var(--text-dark);
}

/* Pillar Grid (Four Pillars) */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pillar-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.pillar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--card-heading);
}

.pillar-card p {
    color: var(--text-dark);
}

/* Provider List */
.provider-list {
    margin: 20px 0;
    padding-left: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.provider-list li {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-gold);
}

/* CTA Card */
.cta-card {
    text-align: center;
    background: var(--gradient-blue);
    border: 1px solid #1e293b;
}

.cta-card h2,
.cta-card p {
    color: #fff !important;
}

/* Footer */
.main-footer {
    background: #0f172a;
    /* Dark Slate */
    color: #cbd5e1;
    padding-top: 80px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.footer-col p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col a {
    color: #cbd5e1;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.footer-col a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
    text-decoration: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info span {
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.copyright-bar {
    background: #020617;
    text-align: center;
    padding: 24px 0;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;
        padding: 10px 15px;
        gap: 15px;
        position: relative;
    }

    /* Mobile Menu Bar (New) */
    .mobile-menu-bar {
        display: block;
        background: #ffffff;
        border-bottom: 2px solid var(--accent-gold);
        padding: 10px 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-menu-bar .container {
        display: flex;
        justify-content: center;
        /* Center hamburger */
        padding: 0 15px;
    }

    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        color: #0f172a;
        /* Dark color for white background */
        font-size: 1.5rem;
        cursor: pointer;
    }

    .logo img {
        height: 36px;
    }

    .btn-cta {
        padding: 8px 18px;
        font-size: 0.85rem;
        margin: 0;
        white-space: nowrap;
    }

    /* Mobile Nav Drawer */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 70%;
        /* Side drawer width */
        height: 100vh;
        background: #0f172a;
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 80px;
        /* Space for header */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        right: 0;
        /* Slide in */
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        /* Vertical stack */
        width: 100%;
        gap: 0;
        overflow-x: hidden;
        white-space: normal;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
        text-align: left;
        color: white;
        /* Ensure visibility on dark bg */
    }

    .main-nav a.active {
        color: var(--accent-gold);
        background: rgba(255, 255, 255, 0.05);
    }

    .main-content {
        padding: 20px 0;
    }

    .card {
        padding: 20px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .footer-content,
    .feature-grid,
    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info li {
        justify-content: center;
    }

    .provider-list li {
        border-left: none;
        border-top: 3px solid var(--accent-gold);
        padding-left: 0;
        padding-top: 10px;
    }
}

/* Banner Styles */
.banner-16-9 {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 4px solid var(--accent-gold);
    outline: 4px solid var(--primary-blue-start);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(197, 160, 89, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Withdrawal Table Styles */
.withdrawal-section {
    width: 100%;
    max-width: var(--container-width);
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.withdrawal-section h2 {
    color: var(--primary-blue-start);
    text-align: center;
}

.withdrawal-table {
    width: 100%;
    margin-top: var(--spacing-sm);
    display: block;
}

.withdrawal-table thead,
.withdrawal-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* Slot Grid - Responsive */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on mobile */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .slot-grid {
        grid-template-columns: 1fr;
        /* 1 col on very small screens */
    }
}

.withdrawal-table tbody {
    display: block;
    height: 300px;
    overflow: hidden;
    /* Controlled by JS for auto-scroll */
    position: relative;
}

/* Wrapper for horizontal scroll on mobile */
.withdrawal-section {
    width: 100%;
    max-width: var(--container-width);
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    /* Enable horizontal scroll if table is wide */
}

.withdrawal-table th,
.withdrawal-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.withdrawal-table th {
    background-color: #f8fafc;
    color: var(--primary-blue-start);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.withdrawal-table tr {
    color: var(--text-dark);
}

.withdrawal-table tr:hover {
    background-color: #f1f5f9;
}

.withdrawal-amount {
    color: #16a34a;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Author Bio */
.author-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    /* Adjust padding if card class has its own */
}

.author-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name {
    font-size: 1rem;
    color: #0f172a;
    /* Dark Navy */
}

.author-name strong {
    font-weight: 700;
}

.author-date {
    font-size: 0.9rem;
    color: #3b82f6;
    /* Blue */
    margin-top: 2px;
}

/* Slot Grid Card Styles */
.slot-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-blue-start);
}

.slot-thumb {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.slot-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slot-info {
    width: 100%;
}

.slot-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--card-heading);
    margin-bottom: 5px;
}

.slot-provider {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}