/* for whole page default styling */
    :root {
        /* Primary colors */
        --primary: #0284c7;
        --primary-light: rgba(2, 132, 199, 0.15);
        --warning: #f59e0b;
        --error: #ef4444;

        /* Backgrounds */
        --bg-primary: #f8fafc;
        --bg-card: #ffffff;

        /* Text */
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #94a3b8;

        /* Borders & shadows */
        --border: #e2e8f0;
        --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.06);
        --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.12);
        --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

        /* Gradients */
        --gradient-primary: linear-gradient(135deg, #0284c7, #6366f1);
        --gradient-button: linear-gradient(135deg, #0284c7, #2563eb);
    }

/* styling for whole page in dark mode */

    [data-theme="dark"] {
        /* Primary colors */
        --primary: #3b82f6;
        --primary-light: rgba(59, 130, 246, 0.18);
        --warning: #fbbf24;
        --error: #f87171;

        /* Backgrounds */
        --bg-primary: #020617;
        --bg-card: #020617;

        /* Text */
        --text-primary: #e5e7eb;
        --text-secondary: #9ca3af;
        --text-muted: #6b7280;

        /* Borders & shadows */
        --border: #1e293b;
        --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.6);
        --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.7);
        --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.8);

        /* Gradients */
        --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
        --gradient-button: linear-gradient(135deg, #2563eb, #7c3aed);
    }
    
    /* ============================
   THEME VARIABLES EXTENSION
   ============================ */

/* Theme Colors Extension */
:root {
    /* Extended Light Theme Variables */
    --accent-color: #0284c7;
    --accent-color-rgb: 2, 132, 199;
    --secondary-color: #6366f1;
    --secondary-color-rgb: 99, 102, 241;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --heading-color: #0f172a;
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    /* Extended Dark Theme Variables */
    --accent-color: #3b82f6;
    --accent-color-rgb: 59, 130, 246;
    --secondary-color: #8b5cf6;
    --secondary-color-rgb: 139, 92, 246;
    --card-bg: #020617;
    --text-color: #e5e7eb;
    --heading-color: #f8fafc;
    --navbar-bg: rgba(2, 6, 23, 0.95);
}

/* ============================
   FIX NAVBAR WIDTH
   ============================ */
.navbar {
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    padding: 0 2rem;
    margin: 0;
    left: 0;
    right: 0;
}

/* Ensure navbar doesn't get cut off */
body {
    overflow-x: hidden;
    width: 100%;
}

/* ============================
   THEME TOGGLE STYLES
   ============================ */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    color: white;
    transform: rotate(15deg);
    box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.5);
}

.theme-toggle:active {
    transform: scale(0.95) rotate(15deg);
}

/* Theme icon transitions */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    transition: all 0.3s ease;
    position: absolute;
}

/* Light theme icon states */
[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

/* Dark theme icon states */
[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* ============================
   APPLY THEME TO BODY
   ============================ */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ============================
   THEME-SPECIFIC ADJUSTMENTS
   ============================ */

/* Navbar theming */
.navbar {
    background: linear-gradient(to bottom, 
        var(--navbar-bg) 0%, 
        rgba(var(--accent-color-rgb), 0.1) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

/* FAQ Header theming */
.faq-header {
    background: linear-gradient(135deg,
            rgba(var(--accent-color-rgb), 0.9) 0%,
            rgba(var(--secondary-color-rgb), 0.9) 100%);
}

/* FAQ Cards theming */
.faq-card {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.faq-card h3 {
    color: var(--heading-color);
}

.faq-card p,
.faq-card li {
    color: var(--text-color);
}

/* Search bar theming */
.faq-search {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

/* Category buttons theming */
.faq-category-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

/* Stats theming */
.stat-item {
    background: rgba(var(--accent-color-rgb), 0.08);
}

.stat-number {
    color: var(--accent-color);
}

/* Expand button theming */
.expand-btn {
    background: rgba(var(--accent-color-rgb), 0.08);
    color: var(--accent-color);
}

.expand-btn:hover {
    background: rgba(var(--accent-color-rgb), 0.15);
}

/* ============================
   SMOOTH TRANSITIONS
   ============================ */
* {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
}

/* ============================
   RESPONSIVE FIXES
   ============================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 0.75rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}


  /* styling for navbar */
    :root {
        /* Glass navbar */
        --glass-bg: rgba(255, 255, 255, 0.75);
        --navbar-gradient-bottom: rgba(255, 255, 255, 0.55);
        --glass-border: rgba(15, 23, 42, 0.08);
        --navbar-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
        --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.35);
    }

    [data-theme="dark"] {
        /* Glass navbar */
        --glass-bg: rgba(2, 6, 23, 0.75);
        --navbar-gradient-bottom: rgba(2, 6, 23, 0.6);
        --glass-border: rgba(148, 163, 184, 0.15);
        --navbar-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
        --shadow-glow: 0 0 22px rgba(59, 130, 246, 0.45);
    }

    /* Premium FAQ Styles */
    * {
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', sans-serif;
        overflow-x: hidden;
    }

    /* Enhanced Header */
    .faq-header {
        text-align: center;
        padding: 5rem 2rem 4rem;
        background: linear-gradient(135deg,
                rgba(var(--accent-color-rgb, 99, 102, 241), 0.9) 0%,
                rgba(var(--secondary-color-rgb, 139, 92, 246), 0.9) 100%);
        margin-bottom: 3rem;
        border-radius: 0 0 40px 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        position: relative;
        overflow: hidden;
    }

    .faq-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        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.05'%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.3;
    }

    .faq-header h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1.2rem;
        background: linear-gradient(to right, #fff 0%, #f0f9ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1;
    }

    .faq-header p {
        font-size: 1.3rem;
        max-width: 700px;
        margin: 0 auto;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 300;
        position: relative;
        z-index: 1;
        line-height: 1.6;
    }

    .faq-header .header-decoration {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, transparent, #fff, transparent);
        border-radius: 2px;
    }

    /* Search Bar */
    .faq-search-container {
        max-width: 800px;
        margin: -2rem auto 3rem;
        padding: 0 2rem;
        position: relative;
        z-index: 10;
    }

    .faq-search-wrapper {
        position: relative;
        width: 100%;
    }

    .faq-search {
        width: 100%;
        padding: 1.2rem 1.5rem 1.2rem 3.5rem;
        border-radius: 15px;
        border: none;
        background: var(--card-bg);
        color: var(--text-color);
        font-size: 1.1rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        backdrop-filter: blur(10px);
    }

    .faq-search:focus {
        outline: none;
        box-shadow: 0 12px 40px rgba(var(--accent-color-rgb, 99, 102, 241), 0.2);
        transform: translateY(-2px);
    }

    .faq-search::placeholder {
        color: var(--text-muted);
        font-weight: 300;
    }

    .search-icon {
        position: absolute;
        left: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-color);
        font-size: 1.2rem;
        z-index: 2;
    }

    /* Categories */
    .faq-categories {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 3rem;
        padding: 0 2rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-category-btn {
        padding: 0.8rem 1.8rem;
        background: var(--card-bg);
        border: none;
        border-radius: 12px;
        color: var(--text-color);
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        font-size: 0.95rem;
    }

    .faq-category-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .faq-category-btn.active {
        background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
        color: white;
        box-shadow: 0 8px 25px rgba(var(--accent-color-rgb, 99, 102, 241), 0.3);
    }

    /* FAQ Container */
    .faq-container {
        max-width: 1300px;
        margin: 0 auto 6rem;
        padding: 0 2rem;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 2rem;
    }

    /* FAQ Cards - Premium Design */
    .faq-card {
        background: var(--card-bg);
        border-radius: 20px;
        padding: 2.2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        flex-direction: column;
        height: 100%;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(var(--accent-color-rgb, 99, 102, 241), 0.1);
    }

    .faq-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .faq-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

    .faq-card:hover::before {
        opacity: 1;
    }

    .faq-card.expanded {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .faq-icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg,
                rgba(var(--accent-color-rgb, 99, 102, 241), 0.1) 0%,
                rgba(var(--secondary-color-rgb, 139, 92, 246), 0.1) 100%);
        color: var(--accent-color);
        font-size: 1.8rem;
        transition: all 0.3s ease;
    }

    .faq-card:hover .faq-icon-wrapper {
        transform: scale(1.1) rotate(5deg);
        background: linear-gradient(135deg,
                rgba(var(--accent-color-rgb, 99, 102, 241), 0.15) 0%,
                rgba(var(--secondary-color-rgb, 139, 92, 246), 0.15) 100%);
    }

    .faq-card h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 1.2rem;
        color: var(--heading-color);
        line-height: 1.4;
    }

    .faq-content {
        flex-grow: 1;
        margin-bottom: 1.5rem;
    }

    .faq-card p {
        margin-bottom: 1.2rem;
        line-height: 1.7;
        color: var(--text-color);
        font-weight: 400;
    }

    .faq-card ul {
        padding-left: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .faq-card li {
        margin-bottom: 0.7rem;
        line-height: 1.6;
        color: var(--text-color);
        position: relative;
        padding-left: 0.5rem;
    }

    .faq-card li::before {
        content: '•';
        color: var(--accent-color);
        font-weight: bold;
        position: absolute;
        left: -1rem;
    }

    .faq-card code {
        background: rgba(var(--accent-color-rgb, 99, 102, 241), 0.08);
        padding: 0.2rem 0.6rem;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        font-size: 0.9rem;
        color: var(--accent-color);
        border: 1px solid rgba(var(--accent-color-rgb, 99, 102, 241), 0.2);
    }

    .faq-card strong {
        color: var(--secondary-color);
        font-weight: 600;
    }

    .faq-card a {
        color: var(--accent-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .faq-card a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

    .expand-btn {
        margin-top: auto;
        padding: 0.8rem 1.5rem;
        background: rgba(var(--accent-color-rgb, 99, 102, 241), 0.08);
        border: none;
        border-radius: 10px;
        color: var(--accent-color);
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .expand-btn:hover {
        background: rgba(var(--accent-color-rgb, 99, 102, 241), 0.15);
        transform: translateY(-2px);
    }

    .expand-btn i {
        transition: transform 0.3s ease;
    }

    .expand-btn.expanded i {
        transform: rotate(180deg);
    }

    /* Light mode adjustments */
    .light-mode .faq-header {
        background: linear-gradient(135deg,
                rgba(var(--accent-color-rgb, 99, 102, 241), 0.85) 0%,
                rgba(var(--secondary-color-rgb, 139, 92, 246), 0.85) 100%);
    }

    .light-mode .faq-card {
        background: white;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    }

    .light-mode .faq-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

    .light-mode .faq-search {
        background: white;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    }

    .light-mode .faq-category-btn {
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    /* No results message */
    .no-results {
        grid-column: 1 / -1;
        text-align: center;
        padding: 4rem 2rem;
        color: var(--text-muted);
        font-size: 1.2rem;
    }

    .no-results i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--accent-color);
        opacity: 0.5;
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
        .faq-container {
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        }
    }

    @media (max-width: 768px) {
        .faq-header {
            padding: 4rem 1.5rem 3rem;
            border-radius: 0 0 30px 30px;
        }

        .faq-header h1 {
            font-size: 2.5rem;
        }

        .faq-header p {
            font-size: 1.1rem;
        }

        .faq-search-container {
            margin: -1.5rem auto 2.5rem;
            padding: 0 1.5rem;
        }

        .faq-search {
            padding: 1rem 1.5rem 1rem 3rem;
        }

        .faq-categories {
            padding: 0 1.5rem;
            margin-bottom: 2.5rem;
        }

        .faq-category-btn {
            padding: 0.7rem 1.4rem;
            font-size: 0.9rem;
        }

        .faq-container {
            grid-template-columns: 1fr;
            padding: 0 1.5rem;
            margin-bottom: 4rem;
            gap: 1.8rem;
        }

        .faq-card {
            padding: 1.8rem;
        }
    }

    @media (max-width: 480px) {
        .faq-header {
            padding: 3rem 1rem 2.5rem;
        }

        .faq-header h1 {
            font-size: 2rem;
        }

        .faq-header p {
            font-size: 1rem;
        }

        .faq-search-container {
            padding: 0 1rem;
        }

        .faq-categories {
            padding: 0 1rem;
            gap: 0.7rem;
        }

        .faq-category-btn {
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
        }

        .faq-container {
            padding: 0 1rem;
            gap: 1.5rem;
        }

        .faq-card {
            padding: 1.5rem;
        }

        .faq-icon-wrapper {
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            margin-bottom: 1.2rem;
        }

        .faq-card h3 {
            font-size: 1.2rem;
        }
    }

    /* Animation for card appearance */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .faq-card {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }

    .faq-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .faq-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .faq-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .faq-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .faq-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .faq-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    .faq-card:nth-child(7) {
        animation-delay: 0.7s;
    }

    .faq-card:nth-child(8) {
        animation-delay: 0.8s;
    }

    /* Stats counter */
    .faq-stats {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 3rem;
        padding: 0 2rem;
        flex-wrap: wrap;
    }

    .stat-item {
        text-align: center;
        padding: 1rem 2rem;
        background: rgba(var(--accent-color-rgb, 99, 102, 241), 0.05);
        border-radius: 15px;
        min-width: 140px;
    }

    .stat-number {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--accent-color);
        line-height: 1;
        margin-bottom: 0.3rem;
    }

    .stat-label {
        font-size: 0.9rem;
        color: var(--text-muted);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Improve FAQ readability on browser zoom out */
.faq-card {
  min-width: 280px;
}

.faq-card p,
.faq-card li {
  font-size: 1rem;
  line-height: 1.6;
}