* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    --primary: #3366FF;
    --primary-dark: #2952cc;
    --secondary: #22C55E;
    --accent: #9333EA;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --primary-light: #4a86e8;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Enhanced Navigation */
nav {
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
}

nav.scrolled {
    padding: 0.8rem 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem 0;
}

.nav-brand {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-brand img {
    max-width: 180px; 
    height: auto;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.nav-state-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.25s ease;
}

.nav-state-selector-btn:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.nav-state-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
    flex-shrink: 0;
}

.nav-state-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-state-label {
    white-space: nowrap;
}

.nav-state-caret {
    font-size: 0.65rem;
    color: #6b7280;
}

/* Vehicle type selector – single clear organism next to state */
.nav-vehicle-wrap {
    position: relative;
    display: inline-block;
}

.nav-vehicle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-vehicle-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.nav-vehicle-btn .nav-vehicle-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-vehicle-caret {
    font-size: 0.6rem;
    color: #6b7280;
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
}

.nav-vehicle-wrap.open .nav-vehicle-btn .nav-vehicle-caret {
    transform: rotate(180deg);
}

.nav-vehicle-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4rem;
    min-width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.nav-vehicle-wrap.open .nav-vehicle-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-vehicle-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-vehicle-option:hover {
    background: #f1f5f9;
    color: #111827;
}

.nav-vehicle-option.is-current {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.nav-vehicle-option .nav-vehicle-option-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes for sections */
.section-title,
.trust-title,
.test-quality-title,
.practice-title,
.features-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Caveat', cursive;
}

.section-title.animated,
.trust-title.animated,
.test-quality-title.animated,
.practice-title.animated,
.features-title.animated {
    opacity: 1;
    transform: translateY(0);
}

.trust-description,
.test-quality-text,
.practice-features,
.features-list {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.trust-description.animated,
.test-quality-text.animated,
.practice-features.animated,
.features-list.animated {
    opacity: 1;
    transform: translateY(0);
}

.test-quality-image,
.smart-practice-image,
.platform-features-image,
.quality-image,
.test-gallery-top,
.features-main-image,
.image-gallery,
.main-image {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.test-quality-image.animated,
.smart-practice-image.animated,
.platform-features-image.animated,
.quality-image.animated,
.test-gallery-top.animated,
.features-main-image.animated,
.image-gallery.animated,
.main-image.animated {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.license-card,
.reason-item,
.advantage-item,
.comparison-item,
.stat-item,
.practice-feature,
.feature-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.license-card.animated,
.reason-item.animated,
.advantage-item.animated,
.comparison-item.animated,
.stat-item.animated,
.practice-feature.animated,
.feature-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Landing Section - Matching Image Design - Compact */
.hero-landing-section {
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    padding: 5px 0 50px;
    margin-top: 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-landing-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-landing-content.animated {
    opacity: 1;
    transform: translateY(0);
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-family: 'Caveat', cursive;
}

.hero-headline .highlight {
    color: #1a1a1a;
    font-family: 'Caveat', cursive;
    position: relative;
    display: inline-block;
    line-height: 1.4;
}


.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    padding: 16px 20px;
    background: rgba(220, 242, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(51, 102, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-social-proof:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(51, 102, 255, 0.15);
    transform: translateY(-2px);
}

.hero-avatars {
    display: flex;
    margin-left: -10px;
    position: relative;
}

.hero-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -10px;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-avatars .hero-avatar:first-child {
    margin-left: 0;
}

.hero-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(51, 102, 255, 0.3);
}

.hero-stars {
    display: flex;
    gap: 3px;
    margin-left: 12px;
    padding: 4px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

.hero-star {
    color: #FFD700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
    transition: transform 0.2s ease;
}

.hero-star:hover {
    transform: scale(1.2) rotate(15deg);
}

.hero-social-text {
    font-size: 0.95rem;
    color: #333;
    margin-left: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
    padding-bottom: 20px;
}

.hero-cta-primary {
    display: inline-block;
    background: #3366FF;
    color: white;
    padding: 18px 80px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 102, 255, 0.3);
    border: none;
    cursor: pointer;
}

.hero-cta-primary:hover {
    background: #2952cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 102, 255, 0.4);
}

.hero-benefits {
    list-style: none;
    margin-bottom: 1.2rem;
}

.hero-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #333;
}

.hero-benefit-icon {
    width: 20px;
    height: 20px;
    background: #3366FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.hero-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-badge-logo {
    width: 120px;
    padding-bottom: 5px;
    height: auto;
}

.hero-phone-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    width: 100%;
    max-width: 600px;
    height: 600px;
    overflow: hidden;
}

.hero-phone-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), transparent);
    z-index: 10;
    pointer-events: none;
}

.hero-phone-display::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
    z-index: 10;
    pointer-events: none;
}

.hero-phone-display.animated {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.hero-slide-container {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 8px;
}

.hero-slide-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: slideVertical 42s linear infinite;
}

.hero-slide-section.section-1 .hero-slide-track {
    animation: slideVertical 40s linear infinite;
}

.hero-slide-section.section-2 .hero-slide-track {
    animation: slideVerticalDown 45s linear infinite;
    animation-delay: -2s;
}

.hero-slide-section.section-3 .hero-slide-track {
    animation: slideVertical 42s linear infinite;
    animation-delay: -4s;
}

.hero-phone-display:hover .hero-slide-track {
    animation-play-state: paused;
}

.hero-slide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border-radius: 8px;
    margin-bottom: 10px;
}

@keyframes slideVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes slideVerticalDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-phone-back {
    position: absolute;
    width: 420px;
    height: auto;
    z-index: 1;
    opacity: 0.7;
}

.hero-phone-front {
    position: relative;
    width: 500px;
    height: auto;
    z-index: 2;
}

/* Alabama State Hero Section */
.state-hero-section {
    background: linear-gradient(to bottom, #faffff 0%, #ffffff 60%, #f3f6ff 100%);
    padding: 10px 0 70px;
    position: relative;
    overflow: hidden;
}

.state-hero-section::before,
.state-hero-section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.35;
    pointer-events: none;
}

.state-hero-section::before {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 65%);
    top: -80px;
    right: -120px;
}

.state-hero-section::after {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 65%);
    bottom: -120px;
    left: -80px;
}

.state-hero-section.state-hero-section-alabama {
    background: #f9fbff;
}
.state-hero-section.state-hero-section-alabama::before,
.state-hero-section.state-hero-section-alabama::after {
    display: none;
}

.state-hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.state-hero-text {
    max-width: 720px;
}

.state-hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
}

.state-hero-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 720px;
    margin: 0 auto 1.8rem;
    text-align: center;
}

.state-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto 2.1rem;
}

.state-hero-metric {
    padding: 1.25rem 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.state-hero-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: rgba(37, 99, 235, 0.2);
}

.state-hero-metric-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.2;
}

.state-hero-metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.state-hero-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.state-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 56px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.state-hero-cta-btn:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
}

.state-hero-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

.state-hero-note-icon {
    color: #f59e0b;
    font-size: 1rem;
}

.state-hero-badge {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
}

.state-hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #e0ecff;
}

.state-hero-badge-pill i {
    font-size: 0.9rem;
}

.state-hero-badge-pill-alt {
    background: #ecfdf5;
    color: #047857;
}

/* Hero pill breadcrumb (state + handbook pages) */
.state-hero-crumb-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 1.2rem;
}
.state-hero-crumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    background: rgba(37, 99, 235, 0.07);
    color: #6b7280;
    transition: background 0.15s, color 0.15s;
}
.state-hero-crumb-pill:hover {
    background: #e0ecff;
    color: #1d4ed8;
}
.state-hero-crumb-pill-active {
    background: #e0ecff;
    color: #1d4ed8;
    cursor: default;
}
.state-hero-crumb-pill-sep {
    color: #cbd5e1;
    font-size: 0.62rem;
}

.state-hero-card {
    max-width: 360px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, #eff6ff 0%, #ffffff 55%, #e5e7eb 100%);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.state-hero-flag {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
}

.state-hero-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.state-hero-card-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #0f172a;
    position: relative;
    z-index: 1;
}

.state-hero-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.state-hero-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #374151;
    padding: 4px 2px 0;
}

.state-hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.3);
}

.state-hero-status-dot-live {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
    animation: state-hero-dot-live 1.8s ease-in-out infinite;
}

@keyframes state-hero-dot-live {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2);
    }
}

.state-hero-status-text {
    font-weight: 500;
}

.state-hero-status-badge {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.state-hero-status-badge-heavy {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.state-hero-card-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.state-hero-card-label-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.5);
}

/* States Flags Showcase Section */
.states-flags-section {
    padding: 80px 0 90px;
    background: #f9fbff;
}

.states-flags-container {
    position: relative;
    z-index: 1;
}

.states-flags-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.states-flags-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.8rem;
}

.states-flags-subtitle {
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.6;
}

.states-flags-carousel {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.states-flags-track {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    animation: scroll-flags 45s linear infinite;
}

.states-flags-carousel:hover .states-flags-track {
    animation-play-state: paused;
}

.states-flag-card {
    position: relative;
    min-width: 220px;
    max-width: 240px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.states-flag-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.states-flag-image {
    width: 72px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
    flex-shrink: 0;
}

.states-flag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.states-flag-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.states-flag-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

@keyframes scroll-flags {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .states-flags-section {
        padding: 60px 0 70px;
    }

    .states-flags-title {
        font-size: 1.7rem;
    }

    .states-flags-carousel {
        display: block;
        visibility: visible;
    }

    .states-flag-card,
    .states-flag-image,
    .states-flag-image img {
        display: block;
        visibility: visible;
    }

    .states-flag-card {
        min-width: 160px;
        padding: 0.7rem 0.8rem;
    }
}

@media (max-width: 992px) {
    .state-hero-section {
        padding: 70px 0 60px;
    }

    .state-hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .state-hero-title {
        font-size: 2.2rem;
    }

    .state-hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .state-hero-flag,
    .state-hero-flag img {
        display: block;
        visibility: visible;
    }

    .state-hero-flag {
        opacity: 0.4;
    }
}

@media (max-width: 576px) {
    .state-hero-section {
        padding: 60px 0 50px;
    }

    .state-hero-flag,
    .state-hero-flag img {
        display: block;
        visibility: visible;
    }

    .state-hero-flag {
        opacity: 0.45;
    }

    .state-hero-title {
        font-size: 1.8rem;
    }

    .state-hero-subtitle {
        font-size: 0.95rem;
    }

    .state-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .state-hero-metrics .state-hero-metric:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: calc((100% - 0.75rem) / 2);
    }
    .state-hero-metric {
        padding: 1rem 0.75rem;
    }
    .state-hero-metric-value {
        font-size: 1.2rem;
    }

    .state-hero-cta-btn {
        width: 100%;
        padding-inline: 24px;
    }
}

/* Responsive Styles for Hero Landing Section */
@media (max-width: 1200px) {
    .hero-landing-section {
        min-height: auto;
    }

    .hero-landing-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-phone-display {
        order: -1;
        margin-bottom: 30px;
        height: 500px;
    }

    .hero-headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-landing-section {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-landing-container {
        padding: 0 20px;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta-primary {
        padding: 15px 32px;
        font-size: 1rem;
    }

    .hero-cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-badge-logo {
        width: 120px;
    }

    .hero-phone-display {
        height: 400px;
        max-width: 100%;
    }

    .hero-slide-image {
        height: 180px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .hero-landing-section {
        min-height: auto;
        padding: 70px 0 30px;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-social-proof {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 10px;
        margin-top: 1.2rem;
    }

    .hero-avatar {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }

    .hero-stars {
        padding: 3px 6px;
        margin-left: 8px;
    }

    .hero-star {
        font-size: 0.95rem;
    }

    .hero-social-text {
        font-size: 0.85rem;
        margin-left: 8px;
    }

    .hero-phone-display {
        height: 350px;
    }

    .hero-slide-image {
        height: 150px;
        object-fit: cover;
    }
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}


/* Enhanced Why Fail Section */
.why-fail-section {
    padding: 180px 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    position: relative;
    overflow: hidden;
}

.why-fail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(51, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        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='%233366FF' 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") repeat;
    opacity: 0.5;
}

.why-fail-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.why-fail-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 700px;
}

.why-fail-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(51, 102, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-fail-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.why-fail-image:hover::after {
    opacity: 1;
}

.why-fail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.why-fail-image:hover img {
    transform: scale(1.05);
}

.why-fail-content {
    position: relative;
    padding-right: 2rem;
    max-width: 600px;
}

.why-fail-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.why-fail-content h2 span {
    display: block;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #2563EB 0%, #5a7dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.why-fail-content > p {
    font-size: 1.1rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
}

.reason-item {
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(51, 102, 255, 0.1);
}

.reason-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.reason-item:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(51, 102, 255, 0.15);
    color: var(--white);
    border-color: transparent;
}

.reason-item:hover::before {
    opacity: 1;
}

.reason-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.8rem;
    transition: color 0.3s ease;
    color: var(--primary);
}

.reason-item:hover h3 {
    color: var(--white);
}

.reason-item h3::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 1.6rem;
}

.reason-item:hover h3::before {
    transform: translateX(10px);
    color: var(--white);
}

.reason-item p {
    font-size: 0.9rem;
    padding-left: 1.8rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.reason-item:hover p {
    color: var(--white);
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced Solution Section */
.solution-section {
    padding: 150px 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    position: relative;
    overflow: hidden;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(51, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        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='%233366FF' 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") repeat;
    opacity: 0.5;
}

.solution-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.solution-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    height: 600px;
    transform: perspective(1000px) rotateY(8deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    order: -1;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
}

.advantage-item {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(51, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(51, 102, 255, 0.15);
    border-color: transparent;
}

.advantage-item:hover::before {
    opacity: 1;
}

.advantage-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563EB 0%, #5a7dff 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.advantage-item:hover .advantage-icon {
    color: var(--white);
    transform: rotateY(180deg);
}

.advantage-item:hover .advantage-icon::after {
    opacity: 1;
}

.advantage-content {
    flex: 1;
}

.advantage-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

.advantage-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    color: var(--dark);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-content h3,
.advantage-item:hover .advantage-content p {
    color: var(--white);
}

.advantage-item:hover .advantage-content p {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .advantage-item {
        padding: 1rem;
    }
    
    .advantage-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

.solution-content {
    max-width: 540px;
}

.solution-label {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, rgba(51, 102, 255, 0.1), rgba(147, 51, 234, 0.1));
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.solution-label i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #2563EB 0%, #5a7dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solution-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.solution-content h2 span {
    display: block;
    color: var(--primary);
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
}

.solution-content > p {
    font-size: 1.1rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Enhanced Comparison Section */
.comparison-section {
    padding: 100px 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    position: relative;
    overflow: hidden;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 2000px;
}

.comparison-item {
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    background: var(--white);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comparison-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.comparison-item.traditional {
    border: 2px solid rgba(220, 53, 69, 0.2);
    transform: perspective(1000px) rotateY(5deg);
}

.comparison-item.premium {
    border: 2px solid rgba(40, 167, 69, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
}

.comparison-item:hover {
    transform: perspective(1000px) rotateY(0) translateY(-10px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.15);
}

.comparison-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-family: 'Caveat', cursive;
}

.comparison-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.comparison-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 30px;
}

.comparison-item:hover .comparison-image {
    transform: translateZ(30px) scale(1.05);
}

.comparison-vs {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.9);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 3s infinite;
    transition: all 0.3s ease;
}

.comparison-vs span {
    position: relative;
    z-index: 2;
}

.comparison-vs:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.6), 0 0 0 12px rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 25px rgba(33, 150, 243, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.9);
    }
    50% {
        box-shadow: 0 15px 35px rgba(33, 150, 243, 0.6), 0 0 0 12px rgba(255, 255, 255, 0.9);
    }
    100% {
        box-shadow: 0 10px 25px rgba(33, 150, 243, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.9);
    }
}

/* Override the before/after lines as we have a new design */
.comparison-vs::before,
.comparison-vs::after {
    content: none;
}

@media (max-width: 992px) {
    .comparison-vs {
        width: 70px;
        height: 70px;
        font-size: 24px;
        margin: 40px 0;
    }
    
}

@media (max-width: 576px) {
    .comparison-vs {
        width: 60px;
        height: 60px;
        font-size: 20px;
        margin: 30px 0;
    }
}

.passing-rate {
    font-size: 5.5rem;
    font-weight: 800;
    text-align: center;
    margin: 2rem 0 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
    position: relative;
}

.traditional .passing-rate {
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(220, 53, 69, 0.2);
}

.premium .passing-rate {
    color: #28a745;
    text-shadow: 2px 2px 4px rgba(40, 167, 69, 0.2);
}

.passing-rate::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 2px;
    opacity: 0.3;
}

.traditional .passing-rate::after {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.premium .passing-rate::after {
    background: linear-gradient(90deg, #28a745, #6bff6b);
}

.passing-label {
    font-size: 1.2rem;
    color: var(--dark);
    text-align: center;
    opacity: 0.8;
    margin-top: 1rem;
    font-weight: 500;
}

.comparison-features {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.comparison-feature:hover {
    background: rgba(51, 102, 255, 0.05);
    transform: translateX(5px);
}

.traditional .feature-icon {
    color: #ff6b6b;
    font-size: 1.2rem;
}

.premium .feature-icon {
    color: #4CAF50;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .comparison-vs {
        margin: 2rem auto;
    }

    .comparison-item.traditional,
    .comparison-item.premium {
        transform: none;
    }

    .comparison-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .comparison-image {
        height: 250px;
    }

    .passing-rate {
        font-size: 4.5rem;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .comparison-vs {
        margin: 2rem auto;
    }
}

/* ─── Site Footer ─────────────────────────────────────────────── */
.site-footer {
    background: #3366ff;
    color: #fff;
    overflow: hidden;
    position: relative;
    border: 30px solid #3366ff;
    margin: 0;
}

/* ── body area ── */
.site-footer__panel {
    position: relative;
    background: #0d0d0d;
    border-radius: 18px;
    overflow: hidden;
}

.site-footer__body {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 56px 0 8px;
}

.site-footer__side-icon {
    position: absolute;
    left: -6%;
    top: 50%;
    transform: translateY(calc(-50% + 24px));
    width: clamp(380px, 52vw, 780px);
    height: auto;
    max-height: 115%;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    border-radius: 28px;
    overflow: hidden;
}

.site-footer__container {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

/* brand column */
.site-footer__brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1.5 1 240px;
    max-width: 360px;
}

.site-footer__logo-link {
    display: inline-block;
    opacity: 0.92;
}

.site-footer__logo-link:hover {
    opacity: 1;
}

.site-footer__tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    max-width: 300px;
}

.site-footer__social {
    display: flex;
    gap: 10px;
}

.site-footer__social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.8rem;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.site-footer__social-link:hover {
    border-color: #3366ff;
    color: #fff;
    background: #3366ff;
}

/* nav columns */
.site-footer__nav-col {
    display: flex;
    flex-direction: column;
    flex: 1 1 150px;
    max-width: 220px;
}

.site-footer__col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.18s;
}

.site-footer__links a:hover {
    color: #3366ff;
}

/* newsletter column */
.site-footer__newsletter-col {
    display: flex;
    flex-direction: column;
    flex: 1.5 1 240px;
    max-width: 360px;
    margin-left: auto;
}

.site-footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__newsletter-row {
    display: flex;
    gap: 8px;
}

.site-footer__email {
    flex: 1;
    min-width: 0;
    padding: 9px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.18s;
}

.site-footer__email::placeholder {
    color: rgba(255,255,255,0.35);
}

.site-footer__email:focus {
    border-color: #3366ff;
}

.site-footer__signup-btn {
    padding: 9px 20px;
    background: #3366ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s;
}

.site-footer__signup-btn:hover {
    background: #1a4fd6;
}

.site-footer__newsletter-note {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
}

/* ── large wordmark ── */
.site-footer__wordmark {
    position: relative;
    font-size: clamp(72px, 13vw, 180px);
    font-weight: 800;
    line-height: 0.62;
    color: #3366ff;
    padding: 8px 0 0;
    margin: 0;
    text-align: center;
    user-select: none;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    background: transparent;
    border-radius: 0;
}

.site-footer__wordmark::before {
    content: '';
    display: block;
    width: 92%;
    max-width: 1280px;
    height: 1px;
    margin: 0 auto 20px;
}

/* ── bottom bar ── */
.site-footer__bottom {
    background: #3366ff;
    padding: 0;
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.01em;
    text-align: center;
}

/* ── responsive ── */
@media (max-width: 1024px) {
    .site-footer__container {
        gap: 36px;
    }
    .site-footer__newsletter-col {
        margin-left: 0;
        flex-basis: 100%;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .site-footer__container {
        gap: 28px;
    }
    .site-footer__brand-col,
    .site-footer__nav-col,
    .site-footer__newsletter-col {
        flex-basis: 100%;
        max-width: none;
    }
    .site-footer__wordmark {
        font-size: clamp(56px, 18vw, 100px);
    }
    .site-footer__side-icon {
        width: min(70vw, 420px);
        opacity: 0.35;
    }
    .site-footer__bottom-inner {
        text-align: center;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .why-fail-container,
    .solution-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .reasons-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .why-fail-content h2 {
        font-size: 3rem;
    }
}

/* Add these styles after the nav styles and before the hero section */
.menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1010;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-btn span:nth-child(1) {
    top: 0;
}

.menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn span:nth-child(3) {
    bottom: 0;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 45%;
}

/* State selector modal */
.state-selector-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    padding: 1.5rem;
}

.state-selector-modal.open {
    display: flex;
}

.state-selector-modal-dialog {
    background: #ffffff;
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
    padding: 1.5rem 1.75rem 1.75rem;
}

.state-selector-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.state-selector-modal-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    color: #111827;
}

.state-selector-modal-header p {
    font-size: 0.9rem;
    color: #6b7280;
}

.state-selector-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.2s ease, color 0.2s ease;
}

.state-selector-close-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.state-selector-search {
    position: relative;
    margin-bottom: 1rem;
}

.state-selector-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
}

.state-selector-search input {
    width: 100%;
    padding: 0.6rem 0.9rem 0.6rem 2.2rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.state-selector-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.state-selector-list-wrapper {
    flex: 1;
    overflow: auto;
    margin-top: 0.5rem;
}

.state-selector-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.state-selector-item-btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: none;
    background: #f9fafb;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    color: #111827;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.state-selector-item-btn:hover {
    background: #e5f0ff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

.state-selector-item-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
    flex-shrink: 0;
}

.state-selector-item-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.state-selector-item-name {
    flex: 1;
    text-align: left;
}

@media (max-width: 576px) {
    .state-selector-modal-dialog {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .state-selector-list {
        grid-template-columns: 1fr;
    }
}

/* State selector modal: hide state flag images on mobile */
@media (max-width: 768px) {
    .state-selector-modal .state-selector-item-flag {
        display: none !important;
    }
}


/* Add these tablet-specific styles after the existing media queries */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Navigation adjustments for tablets */
    .nav-container {
        padding: 0.3rem 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }
    
    .nav-brand img {
        max-width: 150px;
        padding: 10px 0px;
    }

    .nav-menu {
        gap: 2rem;
    }


    /* Why fail section adjustments */
    .why-fail-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-fail-image {
        height: 500px;
        margin: 0 auto;
        max-width: 700px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .reason-item {
        padding: 1.2rem;
    }

    .reason-item h3 {
        font-size: 1.1rem;
        padding-left: 1.8rem;
    }

    .reason-item p {
        font-size: 0.95rem;
        padding-left: 1.8rem;
    }

    /* Solution section adjustments */
    .solution-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .solution-image {
        height: 500px;
        margin: 0 auto;
        max-width: 700px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .advantage-item {
        padding: 1.2rem;
    }

    .advantage-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .advantage-content h3 {
        font-size: 1.1rem;
    }

    .advantage-content p {
        font-size: 0.95rem;
    }

    /* Comparison section adjustments */
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-vs {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 1rem auto;
    }

    .comparison-item {
        max-width: 600px;
        margin: 0 auto;
    }

}

/* Landscape Mode for Tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .reasons-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reason-item,
    .advantage-item {
        padding: 1.2rem;
    }

    .reason-item h3,
    .advantage-content h3 {
        font-size: 1.1rem;
    }

    .reason-item p,
    .advantage-content p {
        font-size: 0.95rem;
    }
}

/* iPad Pro and Larger Tablets */
@media only screen and (min-width: 1024px) and (max-width: 1366px) {
    .reasons-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .reason-item,
    .advantage-item {
        padding: 1.4rem;
    }

    .reason-item h3,
    .advantage-content h3 {
        font-size: 1.2rem;
    }

    .reason-item p,
    .advantage-content p {
        font-size: 1rem;
    }
}

/* Responsive Design */
/* Laptop (1366px and below) */
@media (max-width: 1366px) {
    .container {
        width: 90%;
        max-width: 1200px;
    }

    .feature-item, .advantage-item {
        padding: 1.5rem;
    }
}

/* Mobile Phone (576px and below) */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .feature-grid, .advantage-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .comparison-feature {
        padding: 0.5rem;
    }

    .feature-icon {
        margin-right: 0.5rem;
    }

}

.practice-dropdown {
    position: relative;
}

.practice-tests-btn {
    background-color: #22C55E;
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.practice-tests-btn i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

.practice-tests-btn i:first-child {
    color:rgb(255, 255, 255);
    margin-right: 0.4rem;
}

.practice-tests-btn .fa-chevron-down {
    margin-left: 0.3rem;
    margin-right: 0;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.practice-dropdown.active .practice-tests-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.practice-tests-btn:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.practice-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.practice-dropdown.active .practice-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.practice-dropdown-menu li {
    margin: 0;
}

.practice-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.practice-dropdown-menu a:hover {
    background-color: #faffff;
    color: #22C55E;
    padding-left: 1.5rem;
}

.practice-dropdown-menu a .menu-icon-img {
    width: 25px;
    height: 25px;
    text-align: center;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

.practice-dropdown-menu a:hover .menu-icon-img {
    transform: scale(1.1);
}

.premium-login-btn {
    background-color: #4CAF50;
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.premium-login-btn i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.premium-login-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Nav menu specific practice tests button */
.nav-menu .practice-dropdown {
    position: relative;
}

.nav-menu .practice-tests-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: #22C55E;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 0.85rem;
}

.nav-menu .practice-tests-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.4);
}

.nav-menu .practice-tests-btn::after {
    display: none;
}

.nav-menu .practice-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 235px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-menu .practice-dropdown.active .practice-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nav menu specific premium login button */
.nav-menu .premium-login-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(51, 102, 255, 0.2);
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 0.85rem;
}

.nav-menu .premium-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(51, 102, 255, 0.3);
}

.nav-menu .premium-login-btn::after {
    display: none;
}

.nav-menu li:last-child {
    margin-left: auto;
}

.premium-login-btn i {
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .premium-login-btn {
        margin-top: 0.5rem;
        justify-content: center;
    }
}

/* App-style navigation: drawer up to 1440px, bottom bar up to 1024px */
.nav-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.45);
}
.nav-menu-overlay.active { display: block; }
.nav-drawer-only,
.nav-item-icon { display: none; }
.nav-drawer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 14px;
    border-bottom: 1px solid #edf0f7;
    margin-bottom: 6px;
}
.nav-drawer-brand img { max-width: 120px; height: auto; }
.nav-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f4f6f8;
    color: #374151;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-drawer-close:hover { background: #e6ebf4; }

/* App-style bottom bar (public pages, phones and tablets) */
.pub-bnav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    background: #fff;
    border-top: 1px solid #edf0f7;
    box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.07);
    flex-direction: row;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pub-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 8px 4px;
    color: #98a2b3;
    text-decoration: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.14s ease;
}
.pub-bnav-item:hover,
.pub-bnav-item.is-active { color: #3366FF; }
.pub-bnav-icon {
    width: 38px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: background 0.14s ease, transform 0.14s ease;
}
.pub-bnav-item.is-active .pub-bnav-icon { background: rgba(51, 102, 255, 0.1); }
.pub-bnav-item:active .pub-bnav-icon { transform: scale(0.92); }
.pub-bnav-label { font-size: 0.7rem; font-weight: 600; line-height: 1; }
.pub-bnav-cta,
.pub-bnav-cta:hover { color: #16a34a; }
.pub-bnav-cta .pub-bnav-icon { background: rgba(34, 197, 94, 0.12); }
@media (max-width: 1024px) {
    .pub-bnav { display: flex; }
}

@media (max-width: 1440px) {
    .menu-btn { display: block; }
    .menu-btn--pub.active { opacity: 0; pointer-events: none; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(88vw, 400px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 8px;
        padding: 84px 16px 32px;
        margin: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14);
    }
    .nav-menu--pub { padding-top: 20px; }
    .nav-menu.active { right: 0; }

    .nav-menu > li,
    .nav-menu .practice-dropdown,
    .nav-menu .nav-vehicle-wrap {
        width: 100%;
        margin: 0;
        display: block;
    }
    .nav-menu > li.nav-drawer-only { display: block; }
    .nav-menu .nav-item-icon { display: inline-block; width: 20px; margin: 0; color: #6b7280; text-align: center; }
    .nav-menu-divider { height: 1px; background: #edf0f7; margin: 6px 0; }

    .nav-menu > li > a,
    .nav-menu .nav-state-selector-btn,
    .nav-menu .nav-vehicle-btn,
    .nav-menu .practice-tests-btn,
    .nav-menu .premium-login-btn {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        min-height: 52px;
        margin: 0;
        padding: 0 16px;
        border: 1px solid #edf0f7;
        border-radius: 14px;
        background: #fff !important;
        color: #1a1a1a !important;
        box-shadow: none;
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: left;
        transform: none;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-menu > li > a:hover,
    .nav-menu .nav-state-selector-btn:hover,
    .nav-menu .nav-vehicle-btn:hover,
    .nav-menu .practice-tests-btn:hover {
        background: #f4f7ff !important;
        border-color: #c7d8fb;
        color: #3366FF !important;
        transform: none;
        box-shadow: none;
    }
    .nav-menu > li > a:active,
    .nav-menu .practice-tests-btn:active { transform: scale(0.98); }
    .nav-menu a::after { display: none !important; }

    .nav-menu > li > .premium-login-btn {
        justify-content: center;
        border-color: transparent;
        background: linear-gradient(135deg, #22C55E, #16a34a) !important;
        color: #fff !important;
    }
    .nav-menu > li > .premium-login-btn:hover {
        background: linear-gradient(135deg, #16a34a, #15803d) !important;
        border-color: transparent;
        color: #fff !important;
    }

    .nav-menu .practice-tests-btn i,
    .nav-menu .premium-login-btn i,
    .nav-menu .nav-state-caret,
    .nav-menu .nav-vehicle-caret { color: inherit; margin: 0; font-size: 0.85rem; }
    .nav-menu .practice-tests-btn .fa-chevron-down,
    .nav-menu .nav-state-caret,
    .nav-menu .nav-vehicle-caret { margin-left: auto; }

    .nav-menu .practice-dropdown-menu,
    .nav-menu .nav-vehicle-dropdown {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 8px 0 0;
        padding: 6px;
        background: #f8fafc;
        border: 1px solid #edf0f7;
        border-radius: 12px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-menu .practice-dropdown.active .practice-dropdown-menu,
    .nav-menu .nav-vehicle-wrap.open .nav-vehicle-dropdown { display: grid; gap: 6px; }

    .nav-menu .practice-dropdown-menu a,
    .nav-menu .nav-vehicle-option {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 0 14px;
        border: 1px solid #edf0f7;
        border-radius: 10px;
        background: #fff;
        color: #1a1a1a;
        font-size: 0.9rem;
        font-weight: 600;
        text-align: left;
    }
    .nav-menu .practice-dropdown-menu a:hover,
    .nav-menu .nav-vehicle-option:hover,
    .nav-menu .nav-vehicle-option.is-current {
        background: #f4f7ff;
        border-color: #c7d8fb;
        color: #3366FF;
        padding-left: 14px;
    }
}

@media (max-width: 1024px) {
    html { -webkit-text-size-adjust: 100%; }
    a, button { -webkit-tap-highlight-color: transparent; }
}
/* Why Millions Trust Section */
.trust-section {
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    margin-top: 40px;
}

.trust-title {
    font-size: 4rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Caveat', cursive;
}

.trust-title .highlight {
    color: #1a1a1a;
    font-family: 'Caveat', cursive;
    position: relative;
    display: inline-block;
    line-height: 1.4;
}


.trust-description {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.trust-description .highlight {
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
    display: inline-block;
    line-height: 1.4;
}



.license-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    border-top: none;
}

.license-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 300px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    border-top: none;
    background-image: radial-gradient(#f5f7ff 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: -10px -10px;
}

.license-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    z-index: -1;
}

.license-card::before {
    content: none;
}

.license-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(51, 102, 255, 0.15);
}

.license-card:hover::before {
    content: none;
}

.license-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.license-card h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    bottom: -8px;
    left: 25%;
    border-radius: 2px;
}

.license-image {
    height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 15px 0 25px;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    -webkit-filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.license-card:hover .license-image {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    -webkit-filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.license-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: rgba(51, 102, 255, 0.1);
}

.license-link:after {
    content: none;
}

.license-link:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(51, 102, 255, 0.3);
}

.license-link i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.license-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .license-options {
        flex-wrap: wrap;
        justify-content: center;
    }

    .license-card {
        width: calc(50% - 20px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .trust-title {
        font-size: 2.5rem;
    }

    .trust-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .license-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    .feature-grid, .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .comparison-container {
        flex-direction: column;
    }

    .comparison-item {
        width: 100%;
        margin-bottom: 2rem;
    }

    .premium {
        margin-top: 0;
    }

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

    .about-content, .features-content {
        flex-direction: column;
    }

    .about-text, .about-image,
    .features-text, .features-image {
        width: 100%;
    }

    .about-image, .features-image {
        margin-top: 2rem;
    }
}

/* State Test Quality Section */
.test-quality-section {
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.test-quality-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(51, 102, 255, 0.05);
    z-index: 0;
}

.test-quality-section::after {
    content: '<?php echo date('Y'); ?>';
    position: absolute;
    bottom: 5%;
    right: 8%;
    font-size: 24rem;
    font-weight: 900;
    color: rgba(51, 102, 255, 0.1);
    z-index: 0;
    line-height: 0.8;
    font-family: Arial, sans-serif;
    animation: float 8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(51, 102, 255, 0.1);
    letter-spacing: -10px;
    background-image: linear-gradient(135deg, rgba(51, 102, 255, 0.3) 0%, rgba(51, 102, 255, 0.08) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(51, 102, 255, 0.08);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.test-quality-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.test-quality-text {
    flex: 1.2;
    max-width: 600px;
}

.test-quality-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3366ff;
    background-color: rgba(51, 102, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 1.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.test-quality-title {
    font-size: 3rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 3rem;
    line-height: 1.2;
    font-family: 'Caveat', cursive;
}

.test-quality-title .highlight {
    color: #1a1a1a;
    font-family: 'Caveat', cursive;
    position: relative;
    display: inline-block;
    line-height: 1.4;
}


.test-quality-feature {
    margin-bottom: 2.5rem;
    padding-left: 1.2rem;
    border-left: 3px solid rgba(51, 102, 255, 0.5);
    transition: all 0.3s ease;
}

.test-quality-feature:hover,
.test-quality-feature.active-feature {
    transform: translateX(5px);
    border-left-color: #3366ff;
    background-color: rgba(51, 102, 255, 0.03);
    padding: 15px 15px 15px 1.2rem;
    border-radius: 0 8px 8px 0;
}

.test-quality-feature h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.test-quality-feature h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3366ff;
    margin-right: 12px;
}

.test-quality-feature p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    padding-left: 20px;
}

.test-quality-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.test-quality-gallery {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 3;
    perspective: 1000px;
}

.test-gallery-top {
    position: absolute;
    width: 90%;
    height: auto;
    top: -180px;
    right: -30px;
    z-index: 3;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(5deg);
    transition: all 0.5s ease;
    border: 8px solid white;
}

.test-gallery-top:hover {
    transform: rotate(2deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.test-gallery-top::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: #3366ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quality-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.quality-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(51, 102, 255, 0.2);
}

.test-quality-image::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #3366ff 0%, #00ccff 100%);
    border-radius: 12px;
    top: 10%;
    left: 10%;
    z-index: 1;
    opacity: 0.1;
    transform: rotate(-3deg);
}

.test-quality-image::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border: 2px dashed rgba(51, 102, 255, 0.3);
    border-radius: 12px;
    top: 15%;
    left: 15%;
    z-index: 1;
}

@media (max-width: 1200px) {
    .test-quality-section {
        background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    }
    
    .test-quality-title {
        font-size: 2.8rem;
    }
    
    .test-gallery-top {
        top: -140px;
        right: -20px;
    }
    
    .test-quality-section::after {
        font-size: 18rem;
        right: 3%;
        bottom: 8%;
        letter-spacing: -8px;
    }
}

@media (max-width: 992px) {
    .test-quality-content {
        flex-direction: column;
        gap: 60px;
    }
    
    .test-quality-text, .test-quality-image {
        max-width: 100%;
        width: 100%;
    }
    
    .test-quality-title {
        font-size: 2.5rem;
    }
    
    .test-quality-image::before,
    .test-quality-image::after {
        display: none;
    }
    
    .test-quality-gallery {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .test-gallery-top {
        top: -100px;
        right: 0;
        left: 0;
        margin: 0 auto;
        width: 80%;
    }
    
    .test-quality-section::after {
        font-size: 14rem;
        bottom: 5%;
        right: 50%;
        transform: translateX(50%);
        color: rgba(51, 102, 255, 0.15);
        letter-spacing: -5px;
    }
}

@media (max-width: 768px) {
    .test-quality-section {
        padding: 80px 0;
    }
    
    .test-quality-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .test-quality-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .test-quality-feature {
        padding-left: 1rem;
        margin-bottom: 2rem;
    }
    
    .test-quality-feature h3 {
        font-size: 1.2rem;
    }
    
    .test-quality-feature p {
        font-size: 1rem;
        padding-left: 15px;
    }
    
    .quality-image {
        max-width: 100%;
    }
    
    .test-quality-gallery {
        max-width: 90%;
        margin-top: 0;
    }
    
    .test-gallery-top {
        top: -80px;
        width: 85%;
        border-width: 5px;
    }
    
    .test-gallery-top::after {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 5px;
        right: 5px;
    }
    
    .test-quality-section::after {
        font-size: 10rem;
        opacity: 0.2;
        letter-spacing: -3px;
        bottom: 10%;
    }
}

@media (max-width: 576px) {
    .test-gallery-top {
        top: -60px;
        transform: rotate(3deg);
    }
    
    .test-option input {
        transform: scale(0.8);
    }
    
    .test-quality-section::after {
        font-size: 8rem;
        opacity: 0.25;
        letter-spacing: -2px;
    }
}

@media screen and (max-width: 1200px) {
    .test-quality-section {
        background: linear-gradient(to right, #faffff 0%, #faffff 100%);
        padding: 100px 5%;
    }
    .test-quality-section::after {
        font-size: 18rem;
        right: 3%;
        bottom: 8%;
        letter-spacing: -8px;
        background-image: linear-gradient(135deg, rgba(51, 102, 255, 0.3) 0%, rgba(51, 102, 255, 0.08) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-stroke: 1px rgba(51, 102, 255, 0.1);
        text-shadow: 0 0 15px rgba(51, 102, 255, 0.15);
    }
}

@media screen and (max-width: 992px) {
    /* Existing code for max-width 992px */
    .test-quality-section::after {
        font-size: 14rem;
        right: 5%;
        bottom: 10%;
        opacity: 0.15;
        letter-spacing: -5px;
        background-image: linear-gradient(135deg, rgba(51, 102, 255, 0.4) 0%, rgba(51, 102, 255, 0.15) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-stroke: 1px rgba(51, 102, 255, 0.12);
        text-shadow: 0 0 12px rgba(51, 102, 255, 0.2);
    }
    /* More existing code for max-width 992px */
}

@media screen and (max-width: 768px) {
    /* Existing code for max-width 768px */
    .test-quality-section::after {
        font-size: 10rem;
        right: 5%;
        bottom: 10%;
        opacity: 0.2;
        letter-spacing: -3px;
        background-image: linear-gradient(135deg, rgba(51, 102, 255, 0.5) 0%, rgba(51, 102, 255, 0.2) 100%);
        -webkit-text-stroke: 1px rgba(51, 102, 255, 0.15);
        text-shadow: 0 0 10px rgba(51, 102, 255, 0.25);
    }
    /* More existing code for max-width 768px */
}

@media screen and (max-width: 576px) {
    /* Existing code for max-width 576px */
    .test-quality-section::after {
        font-size: 8rem;
        right: 5%;
        bottom: 5%;
        opacity: 0.25;
        letter-spacing: -2px;
        background-image: linear-gradient(135deg, rgba(51, 102, 255, 0.6) 0%, rgba(51, 102, 255, 0.25) 100%);
        -webkit-text-stroke: 1px rgba(51, 102, 255, 0.2);
        text-shadow: 0 0 8px rgba(51, 102, 255, 0.3);
    }
    /* More existing code for max-width 576px */
}

/* Modern vs Traditional Approach Comparison */
.approach-comparison-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--white) 0%, #f5faff 100%);
    position: relative;
    overflow: hidden;
}

.approach-comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(51, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
    opacity: 0.7;
}

.approach-comparison-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.approach-column {
    flex: 1;
    padding: 50px 40px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.approach-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 5;
}

.approach-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.old-approach {
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.old-approach::before {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.our-approach {
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.our-approach::before {
    background: linear-gradient(90deg, #28a745, #6bff6b);
}

.approach-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 25px;
}

.approach-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.approach-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.approach-icon.negative {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

.approach-icon.positive {
    background: linear-gradient(135deg, #28a745, #6bff6b);
}

.approach-icon i {
    font-size: 2rem;
}

.approach-items-container {
    position: relative;
}

.approach-item {
    margin-bottom: 30px;
    padding: 15px 15px 15px 20px;
    border-left: none;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
    background-color: rgba(245, 247, 250, 0.5);
}

.old-approach .approach-item {
    border-left: 4px solid rgba(220, 53, 69, 0.5);
}

.our-approach .approach-item {
    border-left: 4px solid rgba(40, 167, 69, 0.5);
}

.approach-item:hover {
    transform: translateX(8px);
    background-color: rgba(245, 247, 250, 0.8);
}

.approach-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.approach-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.approach-item-icon.negative {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

.approach-item-icon.positive {
    background: linear-gradient(135deg, #28a745, #6bff6b);
}

.approach-item-icon i {
    font-size: 1.2rem;
}

.approach-item-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

.approach-item p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 0 47px;
}

.approach-item-count {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    z-index: 5;
}

.old-approach .approach-item-count {
    background: #dc3545;
}

.our-approach .approach-item-count {
    background: #28a745;
}

@media (max-width: 992px) {
    .approach-comparison-wrapper {
        flex-direction: column;
    }
    
    .approach-column {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }
    
    .old-approach {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .approach-comparison-section {
        padding: 80px 0;
    }
    
    .approach-column {
        padding: 40px 25px;
    }
    
    .approach-header h3 {
        font-size: 1.6rem;
    }
    
    .approach-item-header h4 {
        font-size: 1.15rem;
    }
    
    .approach-item p {
        font-size: 1rem;
        margin-left: 47px;
    }
    
    .approach-icon {
        width: 50px;
        height: 50px;
    }
    
    .approach-icon i {
        font-size: 1.5rem;
    }
}

/* Smart Practice Benefits Section */
.smart-practice-section {
    padding: 100px 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    position: relative;
    overflow: visible;
}

.smart-practice-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.smart-practice-image {
    position: relative;
}

/* Enhanced image gallery styles */
.image-gallery {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    z-index: 2;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.smart-practice-image .main-image {
    overflow: visible;
}

.smart-practice-image .main-image img {
    width: 145%;
    max-width: none;
    margin-left: -22.5%;
}

.main-image:hover img {
    transform: scale(1.03);
}

.secondary-images {
    display: block;
    position: relative;
    z-index: 3;
    margin-top: 20px;
}

/* Style for the new single image layout */
.secondary-images .secondary-image {
    width: 100%;
    height: 180px;
}

@media (max-width: 992px) {
    .secondary-images .secondary-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .secondary-images .secondary-image {
        height: 140px;
    }
}

.secondary-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    height: 180px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
}

.secondary-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.secondary-image:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #FF5722, #FF9800);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
    z-index: 3;
}

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.2;
}

.image-dots {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--primary) 10%, transparent 11%),
                      radial-gradient(var(--primary) 10%, transparent 11%);
    background-size: 15px 15px;
    background-position: 0 0, 30px 30px;
    opacity: 0.2;
    z-index: -1;
}

.stats-card {
    position: absolute;
    right: -30px;
    bottom: 180px;
    background: linear-gradient(135deg, #2cff00, #0047ff);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(77, 123, 243, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 4;
    max-width: 180px;
    transform: rotate(5deg);
}

@media (max-width: 992px) {
    .smart-practice-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .secondary-images {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-card {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .secondary-images {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        max-width: 100%;
        transform: none;
    }
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stats-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
    max-width: 120px;
}

.smart-practice-text {
    flex: 1.2;
    max-width: 600px;
}

.practice-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3366ff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.practice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(51, 102, 255, 0.1);
    border-radius: 50%;
}

.practice-icon i {
    font-size: 0.9rem;
    color: #3366ff;
}

.practice-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: #222;
    font-weight: 800;
    font-family: 'Caveat', cursive;
}

.practice-title .highlight {
    color: #1a1a1a;
    position: relative;
    font-family: 'Caveat', cursive;
    display: inline-block;
    line-height: 1.4;
}


.practice-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.practice-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.practice-feature:hover {
    transform: translateX(10px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3366ff, #5a7dff);
    border-radius: 12px;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(51, 102, 255, 0.2);
    transition: all 0.3s ease;
}

.practice-feature:hover .feature-icon {
    transform: rotate(10deg);
    box-shadow: 0 10px 25px rgba(51, 102, 255, 0.3);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.8rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.practice-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 3rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3366ff, #5a7dff);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(51, 102, 255, 0.2);
}

.practice-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(51, 102, 255, 0.3);
}

.practice-cta i {
    transition: transform 0.3s ease;
}

.practice-cta:hover i {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .smart-practice-section {
        padding: 90px 5%;
    }
    
    .practice-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .smart-practice-content {
        flex-direction: column-reverse;
        gap: 50px;
    }
    
    .smart-practice-image, .smart-practice-text {
        max-width: 100%;
        width: 100%;
    }

    .smart-practice-image .main-image img {
        width: 100%;
        margin-left: 0;
    }
    
    .practice-title {
        font-size: 2.2rem;
    }
    
    .image-wrapper {
        transform: none;
    }
}

@media (max-width: 768px) {
    .smart-practice-section {
        padding: 70px 0;
    }
    
    .practice-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
    
    .stats-card {
        bottom: -15px;
        right: -15px;
        padding: 15px 20px;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .practice-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .practice-title {
        font-size: 1.6rem;
    }
    
    .practice-features {
        gap: 1.5rem;
    }
    
    .practice-feature {
        gap: 15px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .stats-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        width: fit-content;
    }
}

/* Platform Features Section */
.platform-features-section {
    padding: 100px 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    position: relative;
    overflow: hidden;
}

.platform-features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.platform-features-text {
    max-width: 600px;
}

.features-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3366ff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.features-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(51, 102, 255, 0.1);
    border-radius: 50%;
}

.features-icon i {
    font-size: 0.9rem;
    color: #3366ff;
}

.features-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #222;
    font-weight: 800;
    font-family: 'Caveat', cursive;
}

.features-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.features-title .highlight {
    color: #1a1a1a;
    position: relative;
    font-family: 'Caveat', cursive;
    display: inline-block;
    line-height: 1.4;
}

.features-title .highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://odoocdn.com/openerp_website/static/src/img/highlights/yellow_highlight_bold_05.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    z-index: -1;
    transform: skew(-2deg);
    padding: 0.2em 0.3em;
    margin: -0.2em -0.3em;
    pointer-events: none;
}



.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 12px;
}

.feature-item:hover {
    transform: translateX(10px);
    background-color: rgba(245, 247, 250, 0.8);
}

.feature-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3366ff, #5a7dff);
    border-radius: 12px;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(51, 102, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-item-icon {
    transform: rotate(10deg);
    box-shadow: 0 10px 25px rgba(51, 102, 255, 0.3);
}

.feature-item-content {
    flex: 1;
}

.feature-item-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.8rem;
}

.feature-item-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.features-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 3rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3366ff, #5a7dff);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(51, 102, 255, 0.2);
}

.features-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(51, 102, 255, 0.3);
}

.features-cta i {
    transition: transform 0.3s ease;
}

.features-cta:hover i {
    transform: translateX(5px);
}

.platform-features-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-main-image {
    width: 155%;
    max-width: none;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    margin-left: -27.5%;
}

.features-main-image:hover {
    transform: translateY(-10px);
}

.features-image-decoration {
    position: absolute;
    width: 90%;  /* Increased from 80% to 90% to match the larger image */
    height: 90%;  /* Increased from 80% to 90% */
    border: 4px dashed rgba(51, 102, 255, 0.2);
    border-radius: 20px;
    top: -20px;
    right: -20px;
    z-index: 1;
    animation: rotate 60s linear infinite;
}

.features-stats-badge {
    position: absolute;
    bottom: -15px;
    right: 30px;
    background: linear-gradient(135deg, #3366ff, #5a7dff);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(51, 102, 255, 0.3);
    z-index: 3;
}

.badge-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.badge-text {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .platform-features-section {
        padding: 90px 5%;
    }
    
    .features-title {
        font-size: 2.5rem;
    }

    .features-stats-badge {
        right: 20px;
        padding: 12px 18px;
    }

    .badge-icon {
        font-size: 1.8rem;
    }

    .badge-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .platform-features-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .platform-features-text,
    .platform-features-image {
        max-width: 100%;
        width: 100%;
    }

    .platform-features-text {
        order: 1;
    }

    .platform-features-image {
        order: 0;
        margin-bottom: 2rem;
    }
    
    .features-title {
        font-size: 2.2rem;
    }
    
    .features-main-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .features-image-decoration {
        width: 70%;
        height: 80%;
        top: -15px;
        right: 10%;
    }
}

@media (max-width: 768px) {
    .platform-features-section {
        padding: 70px 0;
    }
    
    .features-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .features-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-item-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-item-content p {
        font-size: 1rem;
    }
    
    .features-cta {
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
    }

    .features-stats-badge {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
    }

    .badge-icon {
        font-size: 1.5rem;
    }

    .badge-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .features-title {
        font-size: 1.6rem;
    }
    
    .features-list {
        gap: 1.2rem;
    }
    
    .feature-item {
        gap: 15px;
        padding: 12px;
    }
    
    .feature-item-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .features-main-image {
        max-width: 100%;
    }

    .features-image-decoration {
        display: none;
    }

    .features-stats-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -25px;
        width: fit-content;
        z-index: 5;
    }
}

/* The Challenge Bank™ section (inside al-module) */
.al-challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}
.al-challenge-intro {
    font-size: 1rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}
.al-challenge-image-wrap {
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    max-width: 360px;
    margin-left: auto;
}
.al-challenge-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 280px;
}
@media (max-width: 992px) {
    .al-challenge-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .al-challenge-image-wrap {
        order: -1;
        max-width: 340px;
        margin: 0 auto;
    }
}
@media (max-width: 576px) {
    .al-challenge-image {
        max-height: 220px;
    }
}

/* Challenge Bank options with icons */
.al-challenge-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.al-challenge-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.al-challenge-action:hover {
    background: #fff;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
    transform: translateX(4px);
}
.al-challenge-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.al-challenge-action-icon i {
    font-size: 1.1rem;
    color: #fff;
}
.al-challenge-action-icon-retry {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}
.al-challenge-action-icon-track {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}
.al-challenge-action-icon-master {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}
.al-challenge-action-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.al-challenge-action-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.al-challenge-action-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}
@media (max-width: 576px) {
    .al-challenge-action {
        padding: 0.75rem 0.9rem;
        gap: 0.85rem;
    }
    .al-challenge-action-icon {
        width: 40px;
        height: 40px;
    }
    .al-challenge-action-icon i {
        font-size: 1rem;
    }
}

/* The extra support – 3 downloadable guides */
.al-extra-support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}
.al-extra-support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.al-extra-support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}
.al-extra-support-image-wrap {
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
}
.al-extra-support-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    display: block;
    object-fit: contain;
}
.al-extra-support-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    padding: 0 0.75rem;
}
.al-extra-support-desc {
    font-size: 0.8rem;
    color: #64748b;
    padding-bottom: 1rem;
}
@media (max-width: 768px) {
    .al-extra-support-grid {
        grid-template-columns: 1fr;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* End of theory exam preparation */
.al-theory-end-section {
    margin-top: 32px;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.al-theory-end-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%);
}
.al-theory-end-inner {
    max-width: 520px;
    margin: 0 auto;
}
.al-theory-end-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.al-theory-end-icon-wrap i {
    font-size: 1.75rem;
    color: #059669;
}
.al-theory-end-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #047857;
    background: #ecfdf5;
    margin-bottom: 0.75rem;
}
.al-theory-end-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
}
.al-theory-end-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 1.75rem;
}
.al-theory-end-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.al-theory-end-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}
.al-theory-end-cta i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.al-theory-end-cta:hover i {
    transform: translateX(4px);
}
@media (max-width: 576px) {
    .al-theory-end-section {
        padding: 2.25rem 1.5rem;
    }
    .al-theory-end-icon-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }
    .al-theory-end-icon-wrap i {
        font-size: 1.5rem;
    }
    .al-theory-end-title {
        font-size: 1.4rem;
    }
}

/* Alabama Resources (inside al-module): intro + icon rows + CTA left, image right */
.al-module .al-resources-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 0.25rem;
}
.al-module .al-resources-content {
    max-width: 100%;
}
.al-resources-intro {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}
.al-resources-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.al-resources-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e2e8f0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.al-resources-action:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.al-resources-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.al-resources-action-icon i {
    font-size: 1.15rem;
    color: #fff;
}
.al-resources-action-pdf {
    background: #0ea5e9;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}
.al-resources-action-mp3 {
    background: #8b5cf6;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35);
}
.al-resources-action-download {
    background: #047857;
    box-shadow: 0 3px 10px rgba(4, 120, 87, 0.35);
}
.al-resources-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.al-resources-action-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.al-resources-action-desc {
    font-size: 0.8rem;
    color: #64748b;
}
.al-resources-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}
.al-resources-cta:hover {
    color: #1d4ed8;
    gap: 10px;
}
.al-resources-cta i {
    font-size: 0.75rem;
}
.al-resources-image-wrap {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
    max-width: 280px;
    margin-left: auto;
}
.al-resources-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 400px;
}
@media (max-width: 992px) {
    .al-module .al-resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .al-resources-image-wrap {
        order: -1;
        max-width: 260px;
        margin: 0 auto;
    }
    .al-resources-image {
        max-height: 200px;
    }
}
@media (max-width: 576px) {
    .al-resources-action {
        padding: 10px 14px;
        gap: 12px;
    }
    .al-resources-action-icon {
        width: 42px;
        height: 42px;
    }
    .al-resources-cta {
        margin-top: 1rem;
    }
}

.alabama-modules-section {
    padding: 90px 0 100px;
    background: #f9fbff;
}

.alabama-modules-container {
    max-width: 1200px;
    margin: 0 auto;
}

.alabama-modules-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.alabama-modules-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.8rem;
}

.alabama-modules-subtitle {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

.alabama-modules-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 30px;
}

.al-module {
    background: radial-gradient(circle at top left, #eff6ff 0%, #ffffff 45%, #eef2ff 100%);
    border-radius: 24px;
    padding: 26px 26px 24px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.al-module:last-child {
    margin-bottom: 0;
}

.al-module::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.al-module-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.al-module-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
}

.al-module-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.al-module-header small {
    margin-left: auto;
    font-size: 0.85rem;
    color: #6b7280;
}

.al-module-description {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 18px;
}

.al-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px 20px;
}

.al-practice-card {
    background: radial-gradient(circle at top left, #eef2ff 0%, #ffffff 40%, #f9fafb 100%);
    border-radius: 18px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.al-practice-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.45);
    background: radial-gradient(circle at top left, #e0ecff 0%, #ffffff 35%, #eef2ff 100%);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
}

.al-practice-thumb {
    width: 100%;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
}

.al-practice-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.al-practice-tag {
    font-size: 0.8rem;
    color: #6b7280;
}

.al-practice-card strong {
    font-size: 0.9rem;
    color: #111827;
}

.al-pill {
    margin-top: auto;
    align-self: flex-start;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.al-pill-primary {
    background: rgba(37, 99, 235, 0.14);
    color: #2563eb;
}

.al-pill-locked {
    background: rgba(245, 158, 11, 0.14);
    color: #c05621;
}

.al-practice-card-locked {
    opacity: 0.85;
}

/* Test-style cards (compact) */
.al-card-grid .al-practice-card-test {
    min-width: 0;
    padding: 10px 10px 8px;
    border-radius: 12px;
    gap: 6px;
    position: relative;
}
.al-practice-card-test:hover {
    transform: translateY(-3px);
}

/* Premium badge on locked cards */
.al-practice-premium-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: #047857;
    box-shadow: 0 1px 4px rgba(4, 120, 87, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.al-practice-premium-badge i {
    font-size: 0.55rem;
    opacity: 0.95;
}

.al-practice-card-test .al-practice-thumb {
    height: 72px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Locked card: blurred image + lock icon overlay */
.al-practice-card-is-locked .al-practice-thumb img {
    filter: blur(1px);
    transform: scale(1.08);
}
.al-practice-thumb-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
}
.al-practice-thumb-lock i {
    font-size: 1.5rem;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.al-test-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 2px;
}
.al-test-card-header .al-practice-tag {
    font-weight: 600;
    color: #111827;
    font-size: 0.75rem;
}
.al-test-card-header .al-pill {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    font-size: 0.7rem;
}
.al-test-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}
.al-test-btn-start {
    background: rgba(37, 99, 235, 0.14);
    color: #2563eb;
}
.al-test-btn-start:hover {
    background: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}
.al-test-btn-locked {
    background: rgba(156, 163, 175, 0.2);
    color: #6b7280;
    cursor: not-allowed;
    pointer-events: none;
}
a.al-test-btn-account {
    background: rgba(156, 163, 175, 0.2);
    color: #374151;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
}
a.al-test-btn-account:hover {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}
.al-test-btn-locked i {
    opacity: 0.9;
}
.al-card-grid:has(.al-practice-card-test) {
    gap: 12px 14px;
}
@media (min-width: 600px) {
    .al-card-grid:has(.al-practice-card-test) {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Mobile: 2 tests per line, show image completely */
@media (max-width: 599px) {
    .al-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }
    .al-card-grid:has(.al-practice-card-test) {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }
    .al-practice-thumb,
    .al-practice-card-test .al-practice-thumb {
        height: 82px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .al-practice-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    .al-practice-card-test {
        padding: 8px 8px 6px;
    }
    .al-practice-card-test .al-test-card-header .al-practice-tag {
        font-size: 0.7rem;
    }
    .al-practice-card-test .al-pill {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .al-test-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .alabama-modules-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 576px) {
    .alabama-modules-section {
        padding: 70px 0 80px;
    }

    .alabama-modules-title {
        font-size: 1.8rem;
    }

    .al-module {
        padding: 22px 18px 20px;
    }
}

/* Platform Features Section */
.platform-features-section {
    padding: 100px 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    position: relative;
    overflow: hidden;
}

/* Compact features badges */
.features-compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(51, 102, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(51, 102, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-badge:hover {
    transform: translateY(-3px);
    background: rgba(51, 102, 255, 0.1);
    box-shadow: 0 5px 15px rgba(51, 102, 255, 0.15);
}

.feature-badge .badge-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3366ff, #5a7dff);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
}

.feature-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3366ff;
}

@media (max-width: 768px) {
    .features-compact-list {
        gap: 10px;
    }
    
    .feature-badge {
        padding: 8px 15px;
    }
    
    .feature-badge .badge-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .feature-badge span {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .features-compact-list {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .nav-brand img {
        max-width: 150px; /* Smaller logo for mobile devices */
        padding: 10px 0px;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    /* More existing code for max-width 768px */
}

@media (max-width: 576px) {
    .nav-brand {
        font-size: 0.9rem;
    }
    
    .nav-brand img {
        max-width: 150px; /* Even smaller logo for very small devices */
        padding: 10px 0px;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
    }
    
    .practice-tests-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .premium-login-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
    
    /* More existing code for max-width 576px */
}

/* Style for the new comparison section */
.visual-comparison-section {
    padding: 120px 0;
    position: relative;
    overflow: visible;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    font-family: 'Montserrat', sans-serif;
}

.visual-comparison-section h2,
.visual-comparison-section p,
.visual-comparison-section .feature-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.simple-comparison {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.left-option, .right-option {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.comparison-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #333;
    letter-spacing: -0.5px;
    font-family: 'Caveat', cursive;
}

.comparison-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 600;
}

.comparison-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 30px;
}

.comparison-image--premium {
    max-width: 760px;
}

@media (min-width: 993px) {
    .right-option { flex: 1.4; }
    .comparison-image--premium {
        width: 128%;
        max-width: 760px;
        margin-left: -14%;
    }
}

/* Restored original price badge design */
.price-badge {
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #f44336;
    color: white;
    font-size: 40px;
    font-weight: 700;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.premium-price {
    background-color: #4CAF50;
    flex-direction: column;
    width: 140px;
    height: 140px;
    right: 25%;
    left: auto;
    transform: translate(50%, -50%);
}

.price-label {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.feature-text {
    font-size: 16px;
    color: #424242;
    font-weight: 600;
}

.comparison-vs {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2196f3;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Laptop (large screens) */
@media (max-width: 1366px) {
    .visual-comparison-section {
        padding: 100px 0;
    }
    
    .comparison-image {
        max-width: 450px;
    }

    .comparison-image--premium {
        max-width: 700px;
    }
    
    .comparison-title {
        font-size: 26px;
    }
    
    .comparison-subtitle {
        font-size: 17px;
    }
    
    .price-badge {
        font-size: 36px;
        width: 110px;
        height: 110px;
    }
    
    .premium-price {
        width: 130px;
        height: 130px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .visual-comparison-section {
        padding: 90px 0;
    }
    
    .simple-comparison {
        flex-direction: column;
        max-width: 650px;
        margin: 0 auto;
        gap: 80px;
    }
    
    .left-option, .right-option {
        width: 100%;
        max-width: 100%;
    }
    
    .comparison-title {
        font-size: 24px;
    }
    
    .comparison-subtitle {
        font-size: 16px;
    }
    
    .comparison-image {
        max-width: 400px;
    }

    .comparison-image--premium {
        max-width: 460px;
    }
    
    .price-badge {
        font-size: 32px;
        width: 100px;
        height: 100px;
    }
    
    .premium-price {
        width: 120px;
        height: 120px;
    }
    
    .price-label {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 32px;
    }
    
    .comparison-vs {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 20px auto 40px;
    }
    
    .feature-text {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .visual-comparison-section {
        padding: 70px 0;
    }
    
    .simple-comparison {
        max-width: 100%;
        padding: 0 15px;
        gap: 60px;
    }
    
    .comparison-title {
        font-size: 22px;
    }
    
    .comparison-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .comparison-image {
        max-width: 100%;
    }
    
    .price-badge {
        font-size: 28px;
        width: 90px;
        height: 90px;
    }
    
    .premium-price {
        width: 110px;
        height: 110px;
    }
    
    .price-label {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .comparison-vs {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 15px auto 30px;
    }
    
    .feature-text {
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .visual-comparison-section {
        padding: 60px 0;
    }
    
    .comparison-title {
        font-size: 20px;
    }
    
    .comparison-subtitle {
        font-size: 14px;
    }
    
    .price-badge {
        font-size: 24px;
        width: 80px;
        height: 80px;
    }
    
    .premium-price {
        width: 100px;
        height: 100px;
    }
    
    .price-label {
        font-size: 14px;
    }
    
    .price-amount {
        font-size: 24px;
    }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.premium-overlay {
    background: linear-gradient(to bottom, rgba(0,65,148,0.05) 0%, rgba(0,65,148,0.25) 100%);
}

.comparison-side:hover .image-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.3) 100%);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(to right, #faffff 0%, #faffff 100%);
    position: relative;
    overflow: hidden;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.faq-title.animated {
    opacity: 1;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(51, 102, 255, 0.1);
}

.faq-item.active {
    border-color: rgba(51, 102, 255, 0.3);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(248, 250, 252, 0.8);
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3366FF, #1a4fd6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #1a4fd6, #3366FF);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

.faq-answer-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-container {
        padding: 0 20px;
    }

    .faq-title {
        font-size: 2.5rem;
    }

    .faq-subtitle {
        font-size: 1rem;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question-text {
        font-size: 0.95rem;
        padding-right: 15px;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 18px 20px;
    }
}

.state-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.state-modal.active,
.state-modal.open {
    display: flex;
}

.state-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.state-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.state-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e6ebf1;
}

.state-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.state-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f4f6f8;
    border-radius: 8px;
    cursor: pointer;
    color: #667085;
}

.state-modal-search {
    position: relative;
    padding: 16px 24px;
    border-bottom: 1px solid #e6ebf1;
}

.state-modal-search i {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 14px;
}

.state-modal-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
}

.state-modal-search input:focus {
    outline: none;
    border-color: #3366FF;
    background: #fff;
}

.state-modal-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow-y: auto;
    padding: 12px;
    max-height: calc(80vh - 140px);
}

@media (min-width: 1600px) {
    .state-modal-content {
        max-width: 820px;
    }

    .state-modal-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.state-item {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.state-item:hover {
    background: #f4f7ff;
    color: #3366FF;
}

.state-flag {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile and tablet polish ===== */
.menu-btn::before {
    content: '';
    position: absolute;
    inset: -12px;
}

@media (max-width: 1024px) {
    .site-footer__links { gap: 6px; }
    .site-footer__links a { display: inline-block; padding: 7px 0; }
}

/* Smart practice visuals: show the full dashboard image and keep the badge in flow */
@media (max-width: 992px) {
    .secondary-images .secondary-image { height: auto; }
    .secondary-image img { height: auto; object-fit: contain; }
    .stats-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 16px auto 0;
        max-width: 220px;
        transform: none;
    }
    .features-main-image { width: 100%; max-width: 100%; margin-left: 0; }
}

/* Platform image and its success badge stack on phones */
@media (max-width: 576px) {
    .platform-features-image { flex-direction: column; }
    .features-stats-badge { margin-top: -22px; }
    .state-hero-card-label-pill { font-size: 0.68rem; }
}

/* Footer wordmark fits inside the panel on phones */
@media (max-width: 600px) {
    .site-footer__wordmark { font-size: clamp(40px, 15vw, 90px); }
}

/* Tablets: three test cards in one row, comparison side by side */
@media (min-width: 640px) and (max-width: 992px) {
    .license-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    .license-card {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 24px 14px;
    }
    .license-image { max-width: 100%; height: auto; }

    .simple-comparison {
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        gap: 12px;
        padding: 0 16px;
    }
    .left-option, .right-option { padding: 0; }
    .comparison-vs { margin: 0; flex: 0 0 52px; width: 52px; height: 52px; font-size: 18px; }
    .comparison-image, .comparison-image--premium { max-width: 100%; }
}
