:root {
    --primary: #0f4c81;
    --primary-light: #2a6aa3;
    --primary-dark: #0b355b;
    --secondary: #12a39b;
    --secondary-light: #31bfb7;
    --accent: #f97316;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--slate-800);
    overflow-x: hidden;
    background-color: white;
}

.fw-900 {
    font-weight: 900 !important;
}

/* Navbar Premium */
.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar-premium.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--slate-900) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    display: block;
    height: 64px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--slate-700) !important;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn-nav-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
    transition: all 0.3s;
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(249, 115, 22, 0.35);
}

/* Hero Section */
.hero-premium {
    position: relative;
    padding: 12rem 0 8rem;
    background: var(--slate-50);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-premium::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(15, 76, 129, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: -400px;
    right: -300px;
    z-index: 0;
}

.hero-premium::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(18, 163, 155, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -300px;
    left: -200px;
    z-index: 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--slate-100);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-700);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
}

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

.hero-mockup {
    width: 100%;
    max-width: 560px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Feature Cards Premium */
.feature-box {
    padding: 3rem;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--slate-100);
    transition: all 0.4s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.feature-icon-premium {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.feature-box:hover .feature-icon-premium {
    background: var(--primary);
    color: white;
}

/* Section Styling */
.section-premium {
    padding: 8rem 0;
}

.section-tag {
    display: block;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title-premium {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 4rem;
}

.stats-value {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}

/* How It Works (Process Flow) */
.process-flow__step {
    text-align: center;
    padding: 0 0.5rem;
    position: relative;
}

.process-flow__number {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.25);
}

.process-flow__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 45px);
    width: calc(100% - 90px);
    height: 2px;
    background: var(--slate-200);
}

@media (max-width: 767px) {
    .process-flow__step:not(:last-child)::after {
        display: none;
    }
}

.stats-label {
    font-size: 0.95rem;
    color: var(--slate-700);
    font-weight: 600;
}

/* Blog */
.pt-140 {
    padding-top: 140px !important;
}

.pb-80 {
    padding-bottom: 80px !important;
}

.blog-search-bar .form-control,
.blog-search-bar .form-select {
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--slate-200);
}

.blog-card {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.blog-cover-link {
    display: block;
}

.blog-cover-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(15, 76, 129, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.blog-date {
    color: var(--slate-700);
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--slate-900);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--slate-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-read-more {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

.blog-empty-state {
    border: 1px dashed var(--slate-200);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: #fff;
}

.blog-empty-state h2,
.blog-empty-state h3 {
    color: var(--slate-900);
    margin-bottom: 0.75rem;
}

.blog-empty-state p {
    color: var(--slate-700);
    margin-bottom: 0;
}

.blog-detail-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.blog-detail-header {
    margin-bottom: 1.25rem;
}

.blog-detail-title {
    color: var(--slate-900);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--slate-700);
    font-weight: 600;
}

.blog-detail-cover {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--slate-100);
    margin-bottom: 1.5rem;
}

.blog-detail-content {
    color: var(--slate-800);
    line-height: 1.75;
    font-size: 1.08rem;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    color: var(--slate-900);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-detail-content p {
    margin-bottom: 1rem;
}

.blog-related {
    border-top: 1px solid var(--slate-200);
    padding-top: 1.5rem;
}

/* Exam Counter */
.exam-hero-premium {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(80% 75% at 90% 10%, rgba(18, 163, 155, 0.15), transparent 62%),
        radial-gradient(70% 70% at 0% 25%, rgba(15, 76, 129, 0.18), transparent 65%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fb 55%, #f6fafc 100%);
}

.exam-hero-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    pointer-events: none;
}

.exam-hero-shape.shape-a {
    width: 320px;
    height: 320px;
    right: -110px;
    top: 120px;
    background: radial-gradient(circle at 30% 30%, rgba(15, 76, 129, 0.35), rgba(15, 76, 129, 0.06));
}

.exam-hero-shape.shape-b {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(18, 163, 155, 0.3), rgba(18, 163, 155, 0.06));
}

.exam-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1.2rem;
}

.exam-hero-subtitle {
    max-width: 620px;
    margin-bottom: 1.25rem;
}

.exam-info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.exam-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 76, 129, 0.15);
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--slate-700);
    backdrop-filter: blur(8px);
}

.exam-info-chip i {
    color: var(--primary);
}

.exam-counter-surface {
    border-radius: 26px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
}

.exam-counter-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 20px;
    padding: 1.15rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.exam-counter-card.exam-lgs {
    border-color: rgba(15, 76, 129, 0.25);
}

.exam-counter-card.exam-yks {
    border-color: rgba(18, 163, 155, 0.25);
}

.exam-counter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
}

.exam-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.4rem;
    background: rgba(15, 76, 129, 0.1);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.exam-yks .exam-pill {
    background: rgba(18, 163, 155, 0.14);
    color: #0b6f69;
}

.exam-date-line {
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.88rem;
}

.exam-state {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: #eef2ff;
    border: 1px solid #dbeafe;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.countdown-boxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.countdown-box {
    border-radius: 14px;
    padding: 0.85rem 0.4rem;
    text-align: center;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
    border: 1px solid #d8e4f0;
}

.countdown-box strong {
    display: block;
    font-size: clamp(1.2rem, 2.2vw, 1.85rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

.countdown-box span {
    color: var(--slate-700);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exam-progress {
    height: 10px;
    border-radius: 999px;
    background: #e8f0f7;
    border: 1px solid #dae7f3;
    overflow: hidden;
}

.exam-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.8s ease;
}

.exam-counter-note {
    margin: 0.9rem 0 0;
    color: var(--slate-700);
    font-size: 0.88rem;
    font-weight: 700;
}

.exam-detail-card,
.exam-plan-panel,
.exam-faq-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.exam-mini-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    background: rgba(15, 76, 129, 0.11);
}

.exam-mini-item {
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.95rem;
    border: 1px solid var(--slate-200);
}

.exam-mini-item strong {
    display: block;
    color: var(--slate-900);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.exam-mini-item span {
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.exam-plan-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.exam-step {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
}

.exam-step span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.exam-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.exam-step p {
    margin-bottom: 0;
    color: var(--slate-700);
    line-height: 1.55;
}

.exam-faq-card .accordion-item {
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.exam-faq-card .accordion-item:last-child {
    margin-bottom: 0;
}

.exam-faq-card .accordion-button {
    font-weight: 700;
    color: var(--slate-900);
    background: #fff;
}

.exam-faq-card .accordion-button:not(.collapsed) {
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary-dark);
}

.exam-faq-card .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Split CTA Section */
.split-sections {
    display: flex;
    min-height: 600px;
}

.split-panel {
    flex: 1;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
    color: white;
}

.split-panel.student {
    background: linear-gradient(135deg, #0f4c81 0%, #0b355b 100%);
}

.split-panel.teacher {
    background: linear-gradient(135deg, #12a39b 0%, #0b6f69 100%);
}

.split-panel:hover {
    transform: translateY(-6px);
}

.split-content {
    position: relative;
    z-index: 2;
}

.split-panel h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.split-panel p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.btn-white {
    background: white;
    color: var(--slate-900);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Pricing Cards Premium */
.pricing-card-premium {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid var(--slate-100);
    transition: all 0.4s;
    position: relative;
}

.pricing-card-premium.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.1);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Footer Premium */
.footer-premium {
    background: var(--slate-900);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-links-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: white;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Mobile Small (max 575px) - iPhone SE, older Android */
@media (max-width: 575px) {

    /* Typography */
    .hero-title {
        font-size: 1.75rem !important;
        /* 28px */
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem !important;
        /* 15px */
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .section-title-premium {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .split-panel h3 {
        font-size: 1.5rem !important;
    }

    /* Spacing */
    .hero-premium {
        padding: 6rem 0 3rem !important;
        min-height: auto;
    }

    .section-premium {
        padding: 3rem 0 !important;
    }

    .feature-box {
        padding: 1.5rem !important;
    }

    .split-panel {
        padding: 2.5rem 1.25rem !important;
        min-height: 350px;
    }

    /* Buttons - Touch Friendly */
    .btn-nav-primary {
        width: 100%;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem;
        min-height: 48px;
    }

    .btn-white {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
        width: 100%;
        text-align: center;
    }

    .hero-premium .d-flex {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .hero-premium .btn {
        width: 100%;
    }

    /* Hide floating elements */
    .floating-card {
        display: none !important;
    }

    /* Hero mockup */
    .hero-mockup {
        margin-top: 2rem;
        border-width: 4px;
    }

    /* Stats - Single column */
    .stats-item .fs-1 {
        font-size: 2rem !important;
    }

    .stats-item .text-muted {
        font-size: 0.875rem;
    }

    /* Feature icons */
    .feature-icon-premium {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-box h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .feature-box p {
        font-size: 0.875rem;
    }

    .pt-140 {
        padding-top: 110px !important;
    }

    .pb-80 {
        padding-bottom: 52px !important;
    }

    .blog-cover-image {
        height: 190px;
    }
}

/* Mobile Medium (576px - 767px) - Most modern phones */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2rem !important;
        /* 32px */
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .section-title-premium {
        font-size: 2rem !important;
    }

    .hero-premium {
        padding: 7rem 0 4rem !important;
    }

    .section-premium {
        padding: 4rem 0 !important;
    }

    .split-panel {
        padding: 3rem 2rem !important;
        min-height: 400px;
    }

    .btn-nav-primary {
        width: auto;
        min-width: 200px;
    }
}

/* Tablet (768px - 991px) - iPad, Android tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .section-title-premium {
        font-size: 2.25rem !important;
    }

    .hero-premium {
        padding: 8rem 0 5rem !important;
    }

    .section-premium {
        padding: 5rem 0 !important;
    }

    .split-sections {
        flex-direction: column;
    }

    .split-panel {
        padding: 4rem 3rem !important;
    }

    .split-panel:hover {
        flex: 1;
        /* No expand on tablet */
    }
}

/* Desktop under 992px  - Laptop, small desktop */
@media (max-width: 991px) {

    /* Navbar mobile menu */
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-toggler {
        border: 2px solid var(--primary);
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }

    .navbar-brand img {
        height: 52px;
    }

    .navbar-premium .navbar-toggler-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* Center hero content on smaller screens */
    .hero-premium {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-premium .d-flex.gap-3 {
        justify-content: center;
    }

    .exam-hero-premium {
        text-align: center;
    }

    .exam-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .exam-info-chips {
        justify-content: center;
    }

    .exam-counter-surface {
        margin-top: 0.75rem;
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-premium {
        padding: 4rem 0 2rem !important;
        min-height: auto !important;
    }

    .section-premium {
        padding: 2rem 0 !important;
    }

    .navbar-premium {
        padding: 0.5rem 0;
    }
}


/* ============================================
   INNER PAGES RESPONSIVENESS (About, Contact, etc.)
   ============================================ */

@media (max-width: 767px) {

    /* Spacing utilities responsiveness */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .section-badge {
        margin-bottom: 1.5rem;
    }

    /* Gaps */
    .g-5 {
        --bs-gutter-y: 2rem !important;
    }

    /* Mission & Vision Cards */
    .card.p-5 {
        padding: 2rem !important;
        /* About page mission card */
    }

    .card .row.g-4 .col-6 {
        width: 100% !important;
        /* Stack stats on very small mobile */
        margin-bottom: 1rem;
    }

    /* Values Section Icons */
    .icon-box {
        width: 50px !important;
        height: 50px !important;
        padding: 1rem !important;
    }

    /* CTA buttons on inner pages */
    .btn-lg.rounded-pill {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Contact Page Specifics */
@media (max-width: 991px) {
    #contact-info {
        margin-bottom: 3rem;
    }
}

/* Pricing & FAQ Specific Responsiveness */
@media (max-width: 767px) {
    .pricing-toggle {
        flex-direction: column;
        width: 100%;
    }

    .pricing-toggle .btn {
        width: 100%;
    }

    .pricing-card.popular {
        transform: scale(1) !important;
        /* Remove scale on mobile to avoid layout issues */
        margin: 2rem 0;
    }

    .faq-question {
        padding: 1rem !important;
        font-size: 0.9rem;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* Checkout & Final UI Optimizations */
@media (max-width: 991px) {
    .order-summary {
        position: static !important;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .card-header {
        padding: 1.25rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .price-display {
        font-size: 1.75rem !important;
    }

    /* Horizontal scroll for any tables on pages */
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    table {
        min-width: 300px;
    }

    .blog-search-bar .btn-nav-primary {
        width: 100%;
    }

    .blog-detail-content {
        font-size: 1rem;
    }

    .exam-counter-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .countdown-boxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exam-info-chip {
        width: 100%;
        justify-content: center;
    }

    .exam-counter-surface {
        padding: 0.65rem;
    }

    .exam-state {
        align-self: flex-start;
    }

    .exam-hero-title {
        font-size: 2rem;
    }
}

/* Utility classes for better mobile experience */
@media (max-width: 767px) {
    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-w-100 {
        width: 100% !important;
    }
}

/* Print styles */
@media print {

    .navbar-premium,
    .floating-card {
        display: none !important;
    }

    .hero-premium,
    .section-premium {
        padding: 2rem 0 !important;
    }
}
