/* ===================================================================
   CAREER MAKER INDIA — JEE MAIN EXAM PAGE
   Same design system as the course pages (navy + gold, Fraunces +
   Inter), with an azure "circuit blue" accent used only where this
   page needs to read as engineering/technical.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy-deep:  #0F1B33;
    --navy:       #1F3567;
    --navy-soft:  #2C4585;
    --gold:       #C79A3C;
    --azure:      #1D5FA8;
    --azure-deep: #14406F;
    --azure-soft: #DEEAF6;
    --paper:      #F4F5F8;
    --paper-alt:  #FFFFFF;
    --ink:        #16233F;
    --slate:      #57647D;
    --line:       #DEE2EA;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', sans-serif;

    --section-py: 84px;
    --section-py-sm: 52px;
    --radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =====================================================
   GLOBAL
===================================================== */

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy-deep);
    letter-spacing: -0.01em;
}

section > .container > h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 34px;
    position: relative;
    padding-bottom: 14px;
}

section > .container > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--azure);
    border-radius: 2px;
}

section {
    padding: var(--section-py) 0;
}

/* =====================================================
   HERO
===================================================== */

.exam-hero {
    position: relative;
    overflow: hidden;
    padding: 116px 0 80px;
    background: linear-gradient(160deg, #EAF1FA 0%, var(--paper) 65%);
}

.exam-hero::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(29,95,168,0.14), transparent 70%);
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 56px;
}

.hero-left {
    flex: 1.1;
}

.breadcrumb {
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 18px;
    opacity: 0;
    animation: rise 0.7s ease forwards;
}

.hero-left h4 {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--azure);
    background: var(--azure-soft);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
    opacity: 0;
    animation: rise 0.7s ease forwards 0.1s;
}

.hero-left h1 {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 4px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.2s;
}

.hero-left h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 16px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.26s;
}

.hero-left > p {
    font-size: 16px;
    color: var(--slate);
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 6px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.34s;
}

.hero-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 26px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.44s;
}

.hero-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--navy-deep);
}

.hero-btns {
    display: flex;
    gap: 14px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.54s;
}

.btn-primary {
    background: linear-gradient(120deg, var(--azure), var(--azure-deep));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(29,95,168,0.28);
}

.btn-outline {
    border: 1.5px solid var(--navy);
    background: transparent;
    color: var(--navy);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: #fff;
}

.btn-outline:hover::before {
    transform: scaleX(1);
}

.hero-right {
    flex: 1;
    position: relative;
    opacity: 0;
    animation: rise-scale 0.9s ease forwards 0.3s;
}

.hero-right img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(15,27,51,0.16);
}

.exam-card {
    position: absolute;
    right: -16px;
    bottom: -24px;
    background: var(--paper-alt);
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(15,27,51,0.16);
    border: 1px solid var(--line);
}

.exam-card p {
    margin: 0 0 6px;
    font-size: 13.5px;
    color: var(--slate);
}

.exam-card p:last-child {
    margin-bottom: 0;
}

.exam-card strong {
    color: var(--navy-deep);
    font-weight: 600;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes rise-scale {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =====================================================
   EXAM STATS
===================================================== */

.exam-stats {
    padding-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--navy-deep);
    padding: 26px 16px;
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(15,27,51,0.24);
    opacity: 0;
    animation: rise 0.8s ease forwards 0.5s;
}

.stats-grid > div {
    text-align: center;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0 8px;
    position: relative;
}

.stats-grid > div:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255,255,255,0.12);
}

/* =====================================================
   WHY EXAM
===================================================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.why-grid > div {
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy-deep);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-grid > div::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--azure-soft);
    border: 1px solid rgba(29,95,168,0.2);
}

.why-grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(15,27,51,0.1);
    border-color: transparent;
}

/* =====================================================
   EXAM DETAILS
===================================================== */

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.box {
    background: var(--paper-alt);
    padding: 30px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.box h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.box li {
    font-size: 14px;
    color: var(--slate);
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

.box li:last-child {
    border-bottom: none;
}

.box li b {
    color: var(--navy-deep);
    font-weight: 600;
}

/* =====================================================
   COLLEGES
===================================================== */

.college-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.college-card {
    background: var(--paper-alt);
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.college-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15,27,51,0.1);
    border-color: transparent;
}

.college-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.college-card p {
    font-size: 13px;
    color: var(--azure);
    font-weight: 600;
    margin-bottom: 18px;
}

.college-card button {
    border: 1.5px solid var(--navy);
    background: transparent;
    color: var(--navy);
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.college-card button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.college-card button:hover {
    color: #fff;
}

.college-card button:hover::before {
    transform: scaleX(1);
}

/* =====================================================
   CTA
===================================================== */

.cta {
    padding-top: 0;
}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(120deg, var(--navy-deep), var(--navy));
    color: #fff;
    padding: 40px 46px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15,27,51,0.25);
}

.cta-box::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29,95,168,0.35), transparent 70%);
}

.cta-box h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.cta-box button {
    background: var(--gold);
    color: var(--navy-deep);
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
    .stats-grid > div:nth-child(3n)::after { display: none; }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-py: var(--section-py-sm); }

    .hero-flex { flex-direction: column; }
    .hero-left h1 { font-size: 38px; }
    .exam-card { position: static; margin-top: 16px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .details-grid { grid-template-columns: 1fr; }
    .college-grid { grid-template-columns: 1fr; }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--azure);
    outline-offset: 2px;
}