/* ==========================================================================
   FuKazee KCSE August Tuition - landing page styles.

   Loaded AFTER the site-wide styles.css. Everything here is deliberately
   scoped to the page body so the shared site header and footer keep their
   own styling. Only tokens the site sheet does not already define are
   declared below; the rest (--orange-500, --line, --radius-*, --white-100,
   --ink-100, --gold-400, --teal-500) are inherited from styles.css.
   ========================================================================== */

:root {
    --navy-900: #081420;
    --navy-800: #0f2538;
    --navy-700: #14304a;
    --navy-600: #1a3d5c;

    --orange-300: #ffa07a;
    --teal-400: #38b000;
    --gold-500: #e9c46a;

    --white-200: #f8fafc;
    --ink-200: #94a3b8;

    --panel-bg: rgba(20, 49, 73, 0.78);
    --panel-border: rgba(255, 255, 255, 0.12);
    --radius-pill: 9999px;
}

/* The landing markup was authored against a global margin/padding reset.
   Apply it only to page content so header and footer spacing survives. */
main *,
main *::before,
main *::after,
.modal-overlay *,
.image-modal-overlay *,
.quiz-modal-overlay *,
.sticky-mobile-cta * {
    margin: 0;
    padding: 0;
}

/* Buttons: .button, .button-primary and .button-ghost already exist in the
   site sheet and style the header CTA, so only the page-only variants and
   the in-page ghost treatment are defined here. */
main .button-ghost,
.quiz-modal-overlay .button-ghost,
.sticky-mobile-cta .button-ghost {
    background: transparent;
    color: var(--white-100);
    border: 2px solid var(--orange-500);
}

main .button-ghost:hover,
.quiz-modal-overlay .button-ghost:hover,
.sticky-mobile-cta .button-ghost:hover {
    background: rgba(255, 111, 60, 0.15);
    transform: translateY(-2px);
}

.button-dark {
    background: #0d1e2d;
    color: var(--white-100);
    border: 1px solid var(--line);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.button-dark:hover {
    background: #14304a;
    border-color: var(--orange-400);
    transform: translateY(-2px);
}

.button-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.button-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.button-lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.12rem;
}

.button-full {
    width: 100%;
}

/* Section Common (page content only; the shared header/footer are untouched) */
main section {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem auto;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 111, 60, 0.12);
    border: 1px solid rgba(255, 111, 60, 0.3);
    color: var(--orange-400);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.35rem;
    line-height: 1.25;
    color: var(--white-100);
    margin-bottom: 0.85rem;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--ink-100);
    line-height: 1.55;
}

/* Clean Hero Section */
.hero-clean {
    padding: 3.5rem 0 4rem 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 111, 60, 0.10) 0%, rgba(8, 20, 32, 0.25) 55%, rgba(8, 20, 32, 0.85) 100%),
        linear-gradient(180deg, rgba(8, 20, 32, 0.55) 0%, rgba(8, 20, 32, 0.68) 60%, rgba(8, 20, 32, 0.97) 100%),
        url("assets/Images/hero-kcse-students.jpg") center 28% / cover no-repeat;
}

.hero-clean-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    background: #0b1a29;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white-100);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-clean h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--white-100);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hero-clean-tagline {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--orange-400);
    margin-bottom: 1rem;
}

.hero-clean-desc {
    max-width: 680px;
    margin: 0 auto 2.25rem auto;
    font-size: 1.12rem;
    color: var(--ink-100);
    line-height: 1.6;
}

.hero-clean-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* Hero Pill Row */
.hero-pill-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto;
}

.hero-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: rgba(13, 30, 45, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white-100);
}

.grade-shift-hero-banner {
    background: linear-gradient(135deg, rgba(255, 111, 60, 0.18) 0%, rgba(233, 196, 106, 0.15) 100%);
    border: 1px solid rgba(255, 111, 60, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.grade-shift-hero-banner h4 {
    font-size: 1.1rem;
    color: var(--gold-400);
    margin-bottom: 0.25rem;
    text-align: left;
}

.grade-shift-hero-banner p {
    font-size: 0.92rem;
    color: var(--ink-100);
    margin: 0;
    text-align: left;
}

.grade-shift-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.grade-shift-tag {
    padding: 0.35rem 0.75rem;
    background: var(--orange-500);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.82rem;
}

/* ==========================================================================
   Crisp Video & Image Thumbnail Styling Fixes
   ========================================================================== */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.gallery-tab {
    padding: 0.55rem 1.15rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink-100);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-tab:hover, .gallery-tab.active {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: #fff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange-400);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

/* Clean, Un-cropped Vertical Video Thumbnails */
.video-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #06111a;
    overflow: hidden;
}

.video-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.video-card:hover .video-thumb-container img {
    transform: scale(1.05);
}

.video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s;
}

.video-card:hover .video-card-play {
    background: rgba(0, 0, 0, 0.15);
}

.video-card-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 111, 60, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 111, 60, 0.5);
}

.video-card-body {
    padding: 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-card-category {
    font-size: 0.78rem;
    color: var(--orange-400);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.video-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--white-100);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.video-card-caption {
    font-size: 0.86rem;
    color: var(--ink-100);
    margin: 0;
    line-height: 1.45;
}

/* WhatsApp Proof Screenshots Section */
.proof-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.whatsapp-proof-card {
    background: var(--panel-bg);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.whatsapp-proof-card:hover {
    transform: translateY(-6px);
    border-color: #25D366;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.2);
}

.whatsapp-img-container {
    position: relative;
    cursor: pointer;
    background: #06111a;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.whatsapp-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.whatsapp-img-container:hover img {
    transform: scale(1.05);
}

.whatsapp-card-body {
    padding: 1.15rem;
}

.whatsapp-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.whatsapp-shift-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white-100);
    margin-bottom: 0.5rem;
}

.whatsapp-card-quote {
    font-size: 0.88rem;
    color: var(--ink-100);
    font-style: italic;
    margin-bottom: 0.65rem;
    line-height: 1.5;
}

.whatsapp-author {
    font-size: 0.8rem;
    color: var(--gold-400);
    font-weight: 700;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.pricing-card {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--orange-500);
    background: linear-gradient(180deg, rgba(255, 111, 60, 0.12) 0%, rgba(20, 49, 73, 0.9) 100%);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1rem;
    background: var(--orange-500);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.pricing-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white-100);
    margin-bottom: 0.35rem;
}

.pricing-price {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--white-100);
    margin: 1rem 0 0.4rem 0;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-features li {
    font-size: 0.92rem;
    color: var(--ink-100);
    margin-bottom: 0.75rem;
}

/* Stanbic Bank Card */
.stanbic-paybill-card {
    background: linear-gradient(135deg, #0033a0 0%, #001f66 100%);
    border: 2px solid #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    color: #ffffff;
    text-align: center;
    margin: 2rem 0 0 0;
    box-shadow: 0 10px 30px rgba(0, 51, 160, 0.4);
}

.stanbic-header {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.stanbic-detail-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin-bottom: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.stanbic-detail-item small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.stanbic-detail-item strong {
    display: block;
    font-size: 1.35rem;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.06em;
}

/* Modals */
.modal-overlay, .image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 32, 0.92);
    backdrop-filter: blur(14px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active, .image-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container, .image-modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.image-modal-container {
    max-width: 720px;
    background: transparent;
    text-align: center;
}

.image-modal-container img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video-frame {
    width: 100%;
    aspect-ratio: 9/16;
}

.modal-video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Application Quiz Modal Styles */
.quiz-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 32, 0.95);
    backdrop-filter: blur(18px);
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.quiz-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quiz-container {
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    background: var(--panel-solid);
    border: 1px solid rgba(255, 111, 60, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    position: relative;
    padding: 2rem 1.75rem;
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 1.5rem 1rem;
    }
}

.quiz-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white-100);
    margin-bottom: 0.25rem;
}

.quiz-header p {
    font-size: 0.88rem;
    color: var(--ink-100);
    margin: 0;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    margin: 1rem 0 1.5rem 0;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    width: 12.5%;
    background: linear-gradient(90deg, var(--orange-500), var(--gold-400));
    transition: width 0.35s ease;
    border-radius: var(--radius-pill);
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-question-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white-100);
    margin-bottom: 1.15rem;
    line-height: 1.35;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.2rem;
    background: rgba(10, 24, 36, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--white-100);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.quiz-option-btn:hover {
    border-color: var(--orange-400);
    background: rgba(255, 111, 60, 0.12);
}

.quiz-option-btn.selected {
    border-color: var(--orange-500);
    background: linear-gradient(135deg, rgba(255, 111, 60, 0.25) 0%, rgba(20, 49, 73, 0.8) 100%);
}

.quiz-option-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--line);
    flex-shrink: 0;
}

.quiz-option-btn.selected .quiz-option-radio {
    border-color: var(--orange-500);
    background: var(--orange-500);
}

/* Subject Grid Pills */
.subject-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.subject-pill {
    padding: 0.65rem 0.75rem;
    background: rgba(10, 24, 36, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-100);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subject-pill.selected {
    background: var(--teal-500);
    color: #ffffff;
    border-color: var(--teal-400);
}

.recommendation-box {
    background: linear-gradient(135deg, rgba(233, 196, 106, 0.15) 0%, rgba(15, 37, 56, 0.9) 100%);
    border: 1px solid var(--gold-400);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.recommendation-box h4 {
    color: var(--gold-400);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.recommendation-box p {
    font-size: 0.92rem;
    color: var(--white-100);
    margin: 0;
}

.quiz-footer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.quiz-btn-prev {
    padding: 0.75rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--white-100);
    font-weight: 600;
    cursor: pointer;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(8, 20, 32, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 0.75rem 1rem;
    display: none;
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .hero-clean h1 { font-size: 2.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .sticky-mobile-cta { display: flex; }

    /* Keep the sticky bar from covering the footer's last rows. */
    .site-footer { padding-bottom: 6rem; }
}
