/* =====================================================
   BDG Game - Main Stylesheet
   Casino Affiliate Website for India
   ===================================================== */

/* =====================================================
   CSS VARIABLES (USER CONTROLLED)
   ===================================================== */
:root {
    /* Brand Colors */
    --primary-color: #d9ac4f;
    --primary-dark: #c4933f;
    --primary-light: #fae59f;
    --main-gradient: linear-gradient(90deg, #FAE59F 0%, #C4933F 100%);
    --gradient-text-color: #8f5206;

    /* Background Colors */
    --bg-color: #242424;
    --bg-secondary: #1a1a1a;
    --bg-card: #2d2d2d;
    --header-bg: #333332;
    --footer-bg: #1a1a1a;

    /* Text Colors */
    --text-color: #f5f3f0;
    --text-muted: #a0a0a0;
    --text-dark: #242424;

    /* Button Variables */
    --btn-radius: 1.06667rem;
    --btn-login-bg: transparent;
    --btn-login-border: .01333rem solid #d9ac4f;
    --btn-register-bg: linear-gradient(90deg, #FAE59F 0%, #C4933F 100%);
    --btn-text-color: #8f5206;

    /* Spacing */
    --section-padding: 4rem 0;
    --container-width: 1200px;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;

    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(217, 172, 79, 0.3);
}

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style-position: inside;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--main-gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--primary-color);
}

/* =====================================================
   LAYOUT COMPONENTS
   ===================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--bg-secondary);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 45px;
    width: auto;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-login {
    background: var(--btn-login-bg);
    border: var(--btn-login-border);
    color: var(--primary-color);
}

.btn-login:hover {
    background: rgba(217, 172, 79, 0.1);
    color: var(--primary-light);
}

.btn-register,
.btn-primary {
    background: var(--btn-register-bg);
    color: var(--btn-text-color);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-register:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--btn-text-color);
}

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

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(217, 172, 79, 0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    margin: 0 auto 2rem;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--main-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gradient-text-color);
    font-size: 1.25rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* =====================================================
   STEPS
   ===================================================== */
.steps-container {
    counter-reset: step-counter;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    counter-increment: step-counter;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--main-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gradient-text-color);
}

.step-number::before {
    content: counter(step-counter);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
}

/* Step Image Placeholder */
.step-image-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.step-image-placeholder img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* =====================================================
   TABLES
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: var(--main-gradient);
    color: var(--gradient-text-color);
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table tr:hover {
    background: rgba(217, 172, 79, 0.05);
}

.comparison-table tr:first-child td {
    background: rgba(217, 172, 79, 0.1);
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonial {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(217, 172, 79, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
}

/* =====================================================
   AUTHOR BOX
   ===================================================== */
.author-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border: 1px solid rgba(217, 172, 79, 0.2);
    margin: 2rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--main-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--gradient-text-color);
    font-weight: 700;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.9375rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.author-experience {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.author-bio {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* =====================================================
   PROS & CONS
   ===================================================== */
.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pros-list,
.cons-list {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.pros-list {
    border-top: 4px solid #4caf50;
}

.cons-list {
    border-top: 4px solid #f44336;
}

.pros-list h4 {
    color: #4caf50;
}

.cons-list h4 {
    color: #f44336;
}

.pros-list ul,
.cons-list ul {
    list-style: none;
}

.pros-list li,
.cons-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.pros-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: 700;
}

.cons-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #f44336;
    font-weight: 700;
}

/* =====================================================
   GAME CATEGORIES
   ===================================================== */
.game-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-category {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.game-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.game-category h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.125rem;
}

.game-category p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* =====================================================
   FEATURES GRID
   ===================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(217, 172, 79, 0.2);
}

.cta-box h3 {
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =====================================================
   NOTICE BOX
   ===================================================== */
.notice-box {
    background: rgba(217, 172, 79, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.notice-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

.notice-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* =====================================================
   RESPONSIBLE GAMING NOTICE
   ===================================================== */
.responsible-notice {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.responsible-notice p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--main-gradient);
    color: var(--gradient-text-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: var(--footer-bg);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* =====================================================
   LEGAL PAGES & SUPPORTIVE PAGES CONTENT
   ===================================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.legal-content p {
    margin-bottom: 1.25rem;
}

.legal-update {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Supportive pages content spacing */
.section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.section h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.section h2 + p,
.section h3 + p {
    margin-top: 0;
}

/* Ensure proper spacing between content blocks */
.section p + h2,
.section ul + h2,
.section ol + h2,
.section .steps-container + h2,
.section .features-grid + h2,
.section .card-grid + h2 {
    margin-top: 3rem;
}

.section p + h3,
.section ul + h3,
.section ol + h3 {
    margin-top: 2.5rem;
}

/* Fix heading spacing in supportive pages */
.section .container > h2:not(:first-child) {
    margin-top: 3rem;
}

.section .container > h3:not(:first-child) {
    margin-top: 2.5rem;
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumbs-list a {
    color: var(--text-muted);
}

.breadcrumbs-list a:hover {
    color: var(--primary-color);
}

.breadcrumbs-list li:last-child {
    color: var(--primary-color);
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   STRATEGIES LIST
   ===================================================== */
.strategies-list {
    counter-reset: strategy;
}

.strategy-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.strategy-item h4 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strategy-item h4::before {
    counter-increment: strategy;
    content: counter(strategy);
    width: 32px;
    height: 32px;
    background: var(--main-gradient);
    color: var(--gradient-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.strategy-item p {
    color: var(--text-muted);
    margin: 0;
    padding-left: 2.75rem;
}

/* =====================================================
   SUPPORT CATEGORIES
   ===================================================== */
.support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.support-item {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    color: var(--text-muted);
    font-size: 0.9375rem;
    border-left: 3px solid var(--primary-color);
}

/* =====================================================
   TOC (Table of Contents)
   ===================================================== */
.toc {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toc-header:hover {
    background: rgba(217, 172, 79, 0.05);
}

.toc-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.125rem;
}

.toc-toggle {
    background: var(--main-gradient);
    border: none;
    color: var(--gradient-text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform var(--transition-normal);
}

.toc.active .toc-toggle {
    transform: rotate(45deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.toc.active .toc-content {
    max-height: 800px;
}

.toc-content-inner {
    padding: 0 1.5rem 1.5rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem 2rem;
}

.toc li {
    margin-bottom: 0.25rem;
}

.toc a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.toc a:hover {
    color: var(--primary-color);
}

.toc a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =====================================================
   MEDIA QUERIES
   ===================================================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-container {
        padding: 0 0.75rem;
    }

    .header-logo img {
        height: 38px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-logo {
        max-width: 150px;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
