/* home.css — Homepage-specific styles for Impetus Learning */

/* ── DEFAULT DARK TEXT for light-background sections ─────────── */
/* body color is white; override for all non-navy sections */
.stats-strip,
.impetus-edge,
.results-teaser,
.how-it-works {
    color: var(--navy);
}

/* ── SECTION TITLE / TAG forced navy on light backgrounds ─────── */
.impetus-edge .section-title,
.impetus-edge .section-tag,
.results-teaser .section-title,
.results-teaser .section-tag,
.how-it-works .section-title,
.how-it-works .section-tag {
    color: var(--navy) !important;
}

.impetus-edge .section-tag,
.results-teaser .section-tag,
.how-it-works .section-tag,
.testimonials-home .section-tag {
    font-size: 0.95rem !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

.impetus-edge .section-title,
.results-teaser .section-title,
.how-it-works .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
    margin-bottom: 24px !important;
}


.home-hero {
    position: relative;
    min-height: 100vh;
    background: transparent !important;
    display: flex;
    align-items: center;
    padding: 140px 5% 80px;
    overflow: hidden;
}

/* Grid overlay removed for video backdrop clarity */

.home-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-copy { flex: 1.2; }

.hero-pill {
    display: inline-block;
    background: rgba(240,165,0,0.15);
    border: 1px solid rgba(240,165,0,0.4);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.85;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-trust {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(240, 165, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    gap: 8px;
}

.hero-trust span {
    color: var(--gold);
    font-weight: 700;
}

/* Proof Card */
.hero-proof-card {
    flex: 0 0 360px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.proof-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.proof-stat {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.proof-stat span { font-size: 1.5rem; }

.proof-exam {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.proof-journey {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    line-height: 1.6;
}

.proof-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proof-tags span {
    background: rgba(240,165,0,0.1);
    border: 1px solid rgba(240,165,0,0.2);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.proof-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    border-left: 2px solid var(--gold);
    padding-left: 14px;
    margin: 0;
    line-height: 1.6;
}

.proof-attr {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.proof-pending-note {
    font-size: 0.72rem;
    color: #FFA500;
    opacity: 0.7;
}

/* ── HERO TOPPER CARD ─────────────────────────────────────────── */
/* ── HERO TOPPER CARD ─────────────────────────────────────────── */
.hero-topper-card {
    flex: 0 0 380px;
    background: #162E58; /* Deep blue background like the image */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Subtle light border */
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, border-color 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.hero-topper-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.topper-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topper-card-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topper-avatar-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: #060E1C; /* Dark navy text inside gold circle */
    font-weight: 800;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.topper-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topper-card-name-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.topper-card-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.topper-card-featured-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.topper-card-score-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.topper-card-score-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topper-card-score-right {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.topper-score-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topper-card-big-score {
    font-family: 'Playfair Display', serif;
    font-size: 4rem; /* Big gold number */
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.topper-card-score-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.topper-card-headline {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 10px 0 0;
    line-height: 1.3;
}

.topper-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
    margin: 10px 0;
}

.topper-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topper-card-tags span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── STATS STRIP ──────────────────────────────────────────────── */
.stats-strip {
    background: #F8F9FB;
    padding: 0;
}

.stats-strip-inner {
    display: flex;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.strip-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    gap: 10px;
}

.strip-divider {
    width: 1px;
    background: #E2E8F0;
    align-self: stretch;
    margin: 20px 0;
}

.strip-num {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
}

.strip-statement {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.strip-label {
    font-size: 0.9rem;
    color: #64748B;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ── IMPETUS EDGE ─────────────────────────────────────────────── */
.impetus-edge {
    background: #FFFFFF;
    padding: 120px 5%;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-sub {
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 70px;
    max-width: 650px;
    line-height: 1.7;
}

.edge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.edge-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 36px 28px;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.edge-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.edge-card:hover {
    box-shadow: 0 12px 30px rgba(6, 14, 28, 0.06);
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3); /* Soft gold border */
}

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

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

.edge-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.edge-icon i { width: 22px; height: 22px; }

.edge-card h3 {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--navy);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.edge-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.75;
}

/* ── RESULTS TEASER ───────────────────────────────────────────── */
.results-teaser {
    background: #F0F6FF;
    padding: 120px 5%;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-outline-navy {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: 0.3s;
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.result-featured {
    background: #162E58;
    border-radius: 20px;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s;
    height: 100%;
    border: 1.5px solid transparent;
}

.result-featured:not(.result-featured-light):hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.25);
}

/* Light Variant for Results Featured Card (Atharv) */
.result-featured.result-featured-light {
    background: #FFFFFF;
    color: var(--navy);
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 15px 40px rgba(6, 14, 28, 0.04);
}

.result-featured.result-featured-light:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 45px rgba(6, 14, 28, 0.08), 0 0 20px rgba(212, 175, 55, 0.05);
}

.result-featured-light .result-name {
    color: var(--navy);
}

.result-featured-light .result-score {
    color: var(--navy);
}

.result-featured-light .result-exam {
    color: #64748B;
}

.result-featured-light .result-sub {
    color: #475569;
}

.result-featured-light .result-badge {
    background: rgba(6, 14, 28, 0.06);
    border: 1px solid rgba(6, 14, 28, 0.15);
    color: var(--navy);
}

.result-featured-light .result-featured-photo-box {
    border: 1px solid #E2E8F0;
    box-shadow: 0 8px 24px rgba(6, 14, 28, 0.04);
    background: #F8FAFC;
}

.result-badge {
    background: rgba(240,165,0,0.15);
    border: 1px solid rgba(240,165,0,0.3);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
}

.result-score {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.result-score span { font-size: 2rem; }

.result-exam { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.result-name { font-size: 1.5rem; font-weight: 700; color: white; }
.result-sub { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.result-supporting {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy);
    background: rgba(27,58,107,0.08);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
}

.result-student-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.result-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0;
}

.result-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.result-featured-photo-box {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #060E1C;
}

.result-featured-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-featured:hover .result-featured-img {
    transform: scale(1.04);
}

.result-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Supporting Cards Columns (Info Left, Large Photo Right) */
.result-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.result-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-card-photo-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card-large-img {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 6px 16px rgba(6, 14, 28, 0.08);
    display: block;
    transition: transform 0.3s;
}

.result-card:hover .result-card-large-img {
    transform: scale(1.06);
}

.result-context {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
}

.result-scores {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.result-scores span {
    background: #F0F6FF;
    border: 1px solid #C7DEFF;
    color: var(--navy);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.result-duration {
    font-size: 0.8rem;
    color: #94A3B8;
    font-style: italic;
}

/* See More Results Link Card */
a.see-more-card {
    text-decoration: none;
    border: 1px dashed rgba(27, 58, 107, 0.25);
    background: rgba(27, 58, 107, 0.02) !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

a.see-more-card:hover {
    background: rgba(27, 58, 107, 0.06) !important;
    border-style: solid;
    border-color: var(--navy);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(6, 14, 28, 0.08);
}

.see-more-label {
    background: var(--gold) !important;
    color: #1B3A6B !important;
}

.see-more-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    transition: transform 0.3s, background-color 0.3s;
}

a.see-more-card:hover .see-more-icon-box {
    transform: translateX(6px);
    background: var(--gold);
    color: #1B3A6B;
}

.see-more-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.see-more-desc {
    font-size: 0.88rem !important;
    color: #64748B !important;
    line-height: 1.5;
}

.see-more-link-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonials-home {
    background: #F8FAFC; /* Clean, premium light blue-gray background */
    padding: 120px 5%;
}

.testimonials-home .section-title {
    color: var(--navy) !important;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
    margin-bottom: 24px !important;
}

.testimonials-home .section-tag {
    color: var(--gold) !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.test-home-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

/* outline button in testimonials header */
.testimonials-home .btn-outline-navy {
    border-color: var(--navy);
    color: var(--navy);
}

.testimonials-home .btn-outline-navy:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.test-featured-pending {
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: center;
    justify-content: space-between;
    background: #162E58; /* Deep blue background as in user's image */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px 36px;
    margin-bottom: 50px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.pending-copy-left {
    flex: 1.2;
    text-align: left;
}

.pending-copy-left .featured-quote-text {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    font-style: normal; /* Straight text as in image */
}

.featured-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.featured-avatar-circle {
    width: 46px;
    height: 46px;
    background: var(--gold); /* Gold/yellow circle */
    color: #060E1C; /* Navy text */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.featured-user-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 2px;
}

.featured-user-details p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.pending-video-right {
    flex: 1;
    max-width: 360px;
    width: 100%;
}

.pending-video-right .home-featured-video {
    width: 100%;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pending-video-box {
    flex: 1;
    aspect-ratio: 16/9;
    background: rgba(240, 165, 0, 0.04);
    border: 1px dashed rgba(240, 165, 0, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #B45309; /* Warm brown-gold text */
    font-size: 0.9rem;
}

.pending-play {
    width: 64px; height: 64px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.pending-copy { flex: 1; }
.pending-label {
    font-size: 0.95rem;
    color: #B45309; /* Warm brown-gold */
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 700;
}
.pending-attr {
    font-size: 0.85rem;
    color: #64748B;
}

.test-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.test-home-card {
    background: #FFFFFF; /* Pure white */
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.test-home-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.test-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 27, 51, 0.06);
    border-color: rgba(212, 175, 55, 0.3); /* Soft gold border */
}

.test-home-card:hover::before {
    opacity: 1;
}

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

.test-home-quote-icon {
    color: rgba(240, 165, 0, 0.1);
}
.test-home-quote-icon i { width: 32px; height: 32px; }

.test-home-stars {
    display: flex; gap: 4px; color: var(--gold);
}
.test-home-stars i,
.test-home-stars svg {
    width: 16px;
    height: 16px;
    fill: #F0A500 !important; /* solid filled star */
    stroke: #F0A500 !important;
}

.test-home-card p {
    font-size: 0.95rem;
    color: #475569; /* Crisp, readable slate */
    line-height: 1.8;
    font-style: italic;
    flex: 1;
}

.test-home-attr {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
}
.test-home-attr strong { font-size: 0.92rem; color: var(--navy); }
.test-home-attr span { font-size: 0.8rem; color: #64748B; }

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.how-it-works {
    background: #F8F9FB;
    padding: 120px 5%;
}

.steps-row {
    display: flex;
    gap: 0;
    margin-top: 70px;
    position: relative;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.step-circle {
    width: 56px; height: 56px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    margin-bottom: 28px;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.step-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 1px;
    background: #CBD5E1;
    z-index: 1;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.75;
}

.cta-banner {
    background: var(--brand-navy);
    padding: 100px 5%;
}

.cta-inner {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: white;
    line-height: 1.2;
    max-width: 700px;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    line-height: 1.75;
}

.btn-cta-gold {
    background: var(--gold);
    color: #1B3A6B;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
    letter-spacing: 0.5px;
}
.btn-cta-gold:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240,165,0,0.3);
}

.cta-subnote {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4) !important;
}

/* ── FOOTER ADDITIONS ─────────────────────────────────────────── */
.footer-email a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-email a:hover { color: var(--gold); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .edge-grid { grid-template-columns: 1fr 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .result-supporting { flex-direction: row; flex-wrap: wrap; }
    .result-card { flex: 1 1 260px; }
    .steps-row { flex-wrap: wrap; gap: 40px; }
    .step { flex: 0 0 calc(50% - 20px); }
    .step-connector { display: none; }
}

@media (max-width: 900px) {
    .home-hero-inner { flex-direction: column; }
    .hero-proof-card { flex: none; width: 100%; max-width: 500px; }
    .hero-topper-card { flex: none; width: 100%; max-width: 420px; margin: 20px auto 0; }
    /* Nav fix: hide text of CTA btn on small nav bars */
    .nav-cta-btn { font-size: 0.78rem; padding: 10px 14px; }
    .stats-strip-inner { flex-direction: column; }
    .strip-stat { padding: 30px 20px; }
    .strip-divider { width: 100%; height: 1px; margin: 0; }
    .test-home-grid { grid-template-columns: 1fr; }
    .test-featured-pending { flex-direction: column; }
    .results-header { flex-direction: column; align-items: flex-start; }
    .test-home-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .edge-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .step { flex: 0 0 100%; }
    .result-supporting { flex-direction: column; }
    .impetus-edge, .results-teaser, .testimonials-home, .how-it-works, .cta-banner { padding: 60px 5%; }
    .home-hero { padding: 100px 5% 50px; }
    .test-featured-pending { padding: 24px 16px; }
    .result-featured { padding: 32px 20px; }
}

@media (max-width: 480px) {
    .topper-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .topper-percentile {
        font-size: 2rem;
    }
    .result-score {
        font-size: 3.2rem !important;
    }
    .result-score span {
        font-size: 1.4rem !important;
    }
}


/* ── MODAL POP-UP (JOY KAKODKAR STATE TOPPER) ──────────────────── */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 14, 28, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}

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

.modal-card {
    background: #0D1B33;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 780px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(6, 14, 28, 0.7); /* Dark semi-transparent background for high contrast on student image */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 100; /* Ensure button sits above the image */
    transition: background 0.3s, transform 0.3s;
}

.modal-close-btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: rotate(90deg);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-content-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 420px;
}

.modal-img-col {
    flex: 1.1;
    position: relative;
    background: #060E1C;
}

.modal-student-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-info-col {
    flex: 1.3;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    color: white;
}

.modal-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-stat {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.modal-stat span {
    font-size: 1.5rem;
}

.modal-exam {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.modal-journey {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    line-height: 1.6;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tags span {
    background: rgba(240,165,0,0.1);
    border: 1px solid rgba(240,165,0,0.2);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    border-left: 2px solid var(--gold);
    padding-left: 14px;
    margin: 0;
    line-height: 1.6;
}

.modal-attr {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

/* Responsive modal and results card rules */
@media (max-width: 768px) {
    .modal-backdrop {
        align-items: flex-start;
        padding: 20px 0;
    }
    .modal-content-wrapper {
        flex-direction: column;
    }
    .modal-img-col {
        height: 280px;
        flex: none;
    }
    .modal-info-col {
        padding: 30px 24px;
    }
    .modal-card {
        width: 92%;
        max-width: 480px;
        margin: 20px auto;
    }
    .modal-stat {
        font-size: 2.8rem;
    }
    
    /* Mobile supporting cards layout */
    .result-card-content {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }
    .result-card-large-img {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }
    .result-card-photo-col {
        width: 100%;
        justify-content: flex-start;
    }
    .result-score {
        font-size: 3.8rem !important;
    }
    .result-score span {
        font-size: 1.6rem !important;
    }
}

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

