/* ===================================================================
   CAREER MAKER INDIA — JEE ADVANCED PAGE
   Same engineering-exam system as JEE Main (navy + azure), with a
   gold highlight on the stats band — a small "IIT prestige" cue that
   sets this apart from JEE Main without breaking the family look.
   =================================================================== */

@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 {
    padding: var(--section-py) 0;
}

/* =====================================================
   HERO
===================================================== */

.exam-hero {
    position: relative;
    overflow: hidden;
}

.exam-hero.advanced {
    padding: 118px 0 76px;
    background: linear-gradient(160deg, #0F1B33 0%, #1B2C52 55%, #21365F 100%);
}

.exam-hero.advanced::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(199,154,60,0.16), transparent 70%);
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 56px;
}

.breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    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(--gold);
    background: rgba(199,154,60,0.14);
    border: 1px solid rgba(199,154,60,0.3);
    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;
    color: #fff;
    margin-bottom: 16px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.2s;
}

.hero-left > p {
    font-size: 16px;
    color: rgba(255,255,255,0.72);
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 4px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.32s;
}

.hero-tags {
    opacity: 0;
    animation: rise 0.8s ease forwards 0.44s;
}

.hero-tags span {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    padding: 7px 15px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 12px;
}

.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(0,0,0,0.35);
}

.quote-box {
    position: absolute;
    right: 20px;
    bottom: 20px;
    max-width: 220px;
    background: var(--paper-alt);
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.quote-box p {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 14px;
    font-style: italic;
    color: var(--navy-deep);
    line-height: 1.4;
}

.quote-box span {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}

@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); }
}

/* =====================================================
   STATS
===================================================== */

.exam-stats {
    padding-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--paper-alt);
    padding: 34px 24px;
    border-radius: 20px;
    margin-top: -56px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 55px rgba(15,27,51,0.16);
    border: 1px solid var(--line);
    opacity: 0;
    animation: rise 0.8s ease forwards 0.5s;
}

.stat {
    text-align: center;
    position: relative;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--line);
}

.stat h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 4px;
}

.stat p {
    font-size: 13px;
    color: var(--slate);
    margin: 0;
    font-weight: 500;
}

/* =====================================================
   SEARCH
===================================================== */

.search-box {
    padding-top: 56px;
}

.search-box .container {
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--paper-alt);
    box-shadow: 0 12px 34px rgba(15,27,51,0.08);
    border: 1px solid var(--line);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.tabs button {
    background: none;
    border: none;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--slate);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.tabs button:hover {
    color: var(--azure);
}

.tabs .active {
    color: var(--azure);
    border-bottom: 2px solid var(--azure);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 6px;
}

.search-grid select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
}

.search-grid select:focus {
    outline: none;
    border-color: var(--navy-soft);
    box-shadow: 0 0 0 3px rgba(44,69,133,0.12);
}

.search-btn {
    background: linear-gradient(120deg, var(--azure), var(--azure-deep));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(29,95,168,0.28);
}

/* =====================================================
   EXAM INFO
===================================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    background: var(--paper-alt);
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15,27,51,0.1);
    border-color: transparent;
}

.info-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 14px;
}

.info-card p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
    margin-bottom: 18px;
}

.info-card ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.info-card li {
    font-size: 14px;
    color: var(--slate);
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card button {
    margin-top: auto;
    align-self: flex-start;
    border: none;
    background: none;
    color: var(--azure);
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    transition: gap 0.2s ease;
}

.info-card button:hover {
    text-decoration: underline;
}

/* =====================================================
   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(199,154,60,0.28), 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);
}

/* =====================================================
   FEATURES
===================================================== */

.features {
    background: var(--paper-alt);
    padding-top: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.feature-grid > div {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--navy-deep);
    padding: 0 16px;
    position: relative;
}

.feature-grid > div::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--azure-soft);
    border: 1px solid rgba(29,95,168,0.2);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
    :root { --section-py: var(--section-py-sm); }

    .hero-flex { flex-direction: column; }
    .hero-left h1 { font-size: 38px; }
    .quote-box { position: static; margin-top: 16px; max-width: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .stat:not(:last-child)::after { display: none; }

    .search-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }

    .feature-grid { grid-template-columns: 1fr 1fr; }
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--azure);
    outline-offset: 2px;
}