/* ============================================================
   RESULTS PAGE - FIGMA REDESIGN
============================================================ */

:root {
    --brand-navy: #1D3557;
    --brand-navy-card: #233C61; /* Slightly lighter for inner cards */
    --brand-dark: #0A1128;
    --brand-yellow: #FFC107;
    --brand-blue-accent: #4F80E1;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --bg-white: #FFFFFF;
    --bg-offwhite: #F4F8FB; /* Very light blue/grey as seen in Figma */
}

/* Utility overrides */
.text-gold { color: var(--brand-yellow) !important; }
.bg-white { background-color: var(--bg-white) !important; }
.bg-offwhite { background-color: var(--bg-offwhite) !important; }
.container { 
    max-width: 1150px; 
    margin: 0 auto; 
    padding: 0 5%; 
    width: 100%;
}
.center-text { text-align: center; }
.mb-50 { margin-bottom: 50px; }

/* ------------------------------------------------------------
   NAVBAR OVERRIDES
------------------------------------------------------------ */
#navbar {
    background-color: var(--brand-navy) !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.logo-text { font-size: 1.5rem; font-weight: 700; text-decoration: none; letter-spacing: -0.5px; }
.logo-text .impetus { color: var(--bg-white); }
.logo-text .learning { color: var(--brand-yellow); }

.nav-links a { color: rgba(255,255,255,0.8); font-weight: 500; }
.nav-links a:hover { color: var(--bg-white); }
.nav-links a.active { color: var(--brand-yellow) !important; opacity: 1; }

.nav-cta-btn {
    background: var(--brand-yellow); color: var(--brand-dark);
    padding: 10px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: 0.3s;
}
.nav-cta-btn:hover { background: var(--bg-white); transform: translateY(-2px); }

/* ------------------------------------------------------------
   HERO SECTION & FILTERS
------------------------------------------------------------ */
.results-hero {
    background: radial-gradient(circle at center top, #1F3860 0%, #0A1128 100%);
    padding: 160px 0 100px; /* More space for the overlap */
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}


.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bg-white);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--bg-white);
}

.filter-btn.active {
    background: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
    border-color: var(--brand-yellow) !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5) !important;
    transform: translateY(-3px) scale(1.05) !important;
    opacity: 1 !important;
}

.filter-btn.highlight-tab {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    border-color: var(--brand-yellow);
    opacity: 0.75;
}


/* ------------------------------------------------------------
   FEATURED RESULT CARD (OVERLAPPING)
------------------------------------------------------------ */
.featured-result-wrapper {
    padding-bottom: 80px;
}

.relative-container {
    position: relative;
    top: 20px; /* Shifted down to resolve overlap */
    z-index: 10;
}

.featured-card {
    background: linear-gradient(145deg, #162442 0%, #0A1128 100%);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: 24px;
    display: flex;
    padding: 60px;
    gap: 70px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}


.featured-info {
    flex: 1.2;
}

.gold-pill-small {
    background: rgba(255, 193, 7, 0.1);
    color: var(--brand-yellow);
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.score-block {
    margin-bottom: 30px;
}

.massive-score {
    font-size: 6.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.score-label {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

.student-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.student-meta {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
}

.featured-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.featured-header-flex .student-name {
    margin-bottom: 5px;
}

.featured-header-flex .student-meta {
    margin-bottom: 0;
}

.featured-poster {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 2px solid rgba(255, 193, 7, 0.4);
    margin: 0 auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.featured-poster:hover {
    transform: translateY(-5px);
}

.student-story {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.featured-testimonial {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-box {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-family: serif;
    color: rgba(255, 193, 7, 0.15);
    line-height: 1;
    pointer-events: none;
}

.quote-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.parent-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.parent-avatar {
    width: 40px;
    height: 40px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parent-details {
    display: flex;
    flex-direction: column;
}

.parent-details strong {
    font-size: 0.95rem;
}

.parent-details span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.video-placeholder {
    border: 1px dashed rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.02);
    border-radius: 16px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: var(--bg-white);
    color: var(--bg-white);
    background: rgba(255,255,255,0.05);
}

.play-circle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.play-circle .icon-small { width: 16px; height: 16px; margin-left: 3px; }

/* ------------------------------------------------------------
   QUOTE STRIP
------------------------------------------------------------ */
.quote-strip {
    padding: 60px 0 100px;
}

.center-highlight-quote {
    max-width: 900px;
    margin: 0 auto;
    border-left: 4px solid var(--brand-navy);
    padding: 20px 30px;
    font-size: 1.4rem;
    color: var(--brand-navy);
    line-height: 1.6;
    background: #E8F0F8; /* Deeper highlight bg */
}

/* ------------------------------------------------------------
   CONSISTENT EXCELLENCE GRID
------------------------------------------------------------ */
.excellence-grid-section {
    padding: 100px 0;
}

.kicker-blue {
    color: var(--brand-blue-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.section-title-dark {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 10px 0 15px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-card {
    background: var(--bg-white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    align-self: start;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.grid-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -100px);
    left: var(--mouse-x, -100px);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.grid-card > * {
    position: relative;
    z-index: 1;
}

.grid-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.3);
}

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

.blue-tag {
    color: var(--brand-blue-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-info .card-name {
    margin-bottom: 5px;
}

.card-header-info .card-meta {
    margin-bottom: 0;
}

.card-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #F4F8FB;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.divider {
    height: 1px;
    background: #E2E8F0;
    margin-bottom: 25px;
}

.stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.pill-green {
    background: #E8F5E9; color: #2E7D32;
    padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}
.pill-yellow {
    background: #FFF8E1; color: #F57F17;
    padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}
.pill-blue {
    background: #E3F2FD; color: #1565C0;
    padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}

.card-quote {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.card-footer {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ------------------------------------------------------------
   BEFORE AND AFTER NUMBERS
------------------------------------------------------------ */
.numbers-section {
    padding: 100px 0 120px;
}

.numbers-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.number-card {
    background: var(--bg-white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 40px 30px;
    flex: 1;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.small-grey {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.arrow-down {
    color: var(--text-gray);
    margin-bottom: 15px;
}
.arrow-down i { width: 18px; height: 18px; }

.big-blue {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 10px;
}

.sub-subject {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.pill-green-solid {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
}

/* ------------------------------------------------------------
   BOTTOM CTA SECTION (Shared Styles)
------------------------------------------------------------ */
.bottom-cta {
    background-color: var(--brand-navy);
    padding: 100px 0;
    color: var(--bg-white);
}
.cta-inner { 
    max-width: 1150px; 
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 5%;
}
.cta-title { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 0px; max-width: 700px; }
.cta-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 15px; line-height: 1.6; max-width: 600px; }
.btn-cta-gold {
    display: inline-block; background: var(--brand-yellow); color: var(--brand-dark);
    padding: 18px 45px; border-radius: 8px; font-weight: 700; font-size: 1.05rem; text-decoration: none; margin-bottom: 20px; transition: 0.3s;
}
.btn-cta-gold:hover { background: var(--bg-white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.cta-fineprint { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* ------------------------------------------------------------
   FOOTER (Shared Styles)
------------------------------------------------------------ */
.site-footer {
    background-color: var(--brand-dark); padding: 80px 10%; color: var(--bg-white);
}
.site-footer .footer-top { display: flex; justify-content: space-between; gap: 60px; }
.footer-col { flex: 1; }
.brand-col { flex: 1.5; }
.footer-col h4 { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 25px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-col a { display: block; color: rgba(255,255,255,0.8); text-decoration: none; margin-bottom: 15px; font-size: 0.95rem; transition: 0.3s; }
.footer-col a:hover { color: var(--brand-yellow); }
.tagline { color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 25px; font-size: 0.95rem; max-width: 350px; }

/* ------------------------------------------------------------
   RESPONSIVE DESIGN
------------------------------------------------------------ */
@media (max-width: 992px) {
    .featured-card { flex-direction: column; padding: 30px; gap: 30px; }
    .hero-title { font-size: 2.5rem; }
    .massive-score { font-size: 4rem; }
    .site-footer .footer-top { flex-direction: column; gap: 40px; }
}

@media (max-width: 600px) {
    .featured-card { padding: 24px 16px !important; gap: 24px !important; }
    .grid-card { padding: 24px 16px !important; }
    .excellence-grid-section { padding: 60px 0 !important; }
    .bottom-cta { padding: 60px 0 !important; }
    .section-title-dark { margin: 5px 0 10px !important; line-height: 1.15; }
    .results-hero { padding: 120px 0 60px !important; }
    .featured-testimonial { gap: 15px !important; }
    .testimonial-box { padding: 24px !important; }
}

@media (max-width: 480px) {
    .massive-score { font-size: 3.2rem !important; }
    .filter-btn { padding: 8px 16px !important; font-size: 0.85rem !important; }
    .filter-pills { gap: 10px !important; }
}

/* ------------------------------------------------------------
   DATA CARD (Card 6 in Grid)
------------------------------------------------------------ */
.data-card {
    background: var(--bg-white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .data-card {
        grid-column: span 2;
        padding: 40px;
    }
    
    .data-card .data-rows {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.data-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.data-card-subtitle {
    font-size: 13px;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.data-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.data-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-row-subject {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-blue-accent);
}

.data-row-numbers {
    display: flex;
    align-items: center;
    gap: 12px;
}

.num-before, .num-after {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-navy);
}

.arrow-gold {
    color: var(--brand-yellow);
    font-weight: bold;
}

.delta-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.data-row-meta {
    font-size: 12px;
    color: var(--text-gray);
}

.data-card-footer {
    font-size: 12px;
    font-style: italic;
    color: var(--text-gray);
    border-top: 1px solid #E2E8F0;
    padding-top: 15px;
    margin-top: auto;
}

/* Specific positioning override for Atharv's headshot to prevent cropping his head */
img[src*="atharv.jpeg"] {
    object-position: top center;
}
