/* ===================================================================
   CAREER MAKER INDIA — LAW COURSE PAGE
   Same design system as MBA/Medical pages (navy + gold, Fraunces +
   Inter), with a deep burgundy accent — the classic legal-brand tone —
   used only where this page needs to read as "law".
   =================================================================== */

@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;
    --burgundy:      #7A2432;
    --burgundy-deep: #5C1B26;
    --burgundy-soft: #F3E3E1;
    --paper:      #F4F5F8;
    --paper-alt:  #FFFFFF;
    --ink:        #16233F;
    --slate:      #57647D;
    --line:       #DEE2EA;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', sans-serif;

    --section-py: 88px;
    --section-py-sm: 56px;
    --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-header h2 {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-bottom: 14px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--burgundy);
    border-radius: 2px;
}

section {
    padding: var(--section-py) 0;
}

/* =====================================================
   HERO
===================================================== */

.course-hero {
    position: relative;
    overflow: hidden;
}

.law-hero {
    padding: 118px 0 64px;
    background: linear-gradient(160deg, #F6ECEA 0%, var(--paper) 65%);
}

.law-hero::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(122,36,50,0.12), transparent 70%);
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 56px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 18px;
    opacity: 0;
    animation: rise 0.7s ease forwards;
}

.hero-text h4 {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--burgundy);
    background: var(--burgundy-soft);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
    opacity: 0;
    animation: rise 0.7s ease forwards 0.1s;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    opacity: 0;
    animation: rise 0.8s ease forwards 0.2s;
}

.hero-text > p {
    font-size: 16.5px;
    color: var(--slate);
    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: var(--paper-alt);
    border: 1px solid var(--line);
    color: var(--navy);
    padding: 7px 15px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 12px;
}

.hero-img {
    flex: 1;
    opacity: 0;
    animation: rise-scale 0.9s ease forwards 0.3s;
}

.hero-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15,27,51,0.16);
}

@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
===================================================== */

.stats {
    position: relative;
    z-index: 2;
    margin-top: -56px;
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--navy-deep);
    padding: 34px 20px;
    border-radius: 20px;
    box-shadow: 0 25px 55px rgba(15,27,51,0.26);
    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: rgba(255,255,255,0.12);
}

.stat h3 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.stat p {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* =====================================================
   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(--burgundy);
}

.tabs .active {
    color: var(--burgundy);
    border-bottom: 2px solid var(--burgundy);
}

.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(--burgundy), var(--burgundy-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(122,36,50,0.28);
}

/* =====================================================
   SPECIALIZATION
===================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.section-header a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--burgundy);
    text-decoration: none;
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 30px;
}

.spec-card {
    background: var(--paper-alt);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.spec-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--burgundy);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.spec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15,27,51,0.1);
    border-color: transparent;
}

.spec-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.spec-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

.spec-card > p {
    font-size: 13px;
    color: var(--slate);
    background: var(--paper);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.spec-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.spec-info span:first-child {
    color: var(--slate);
}

.spec-info span:last-child {
    color: var(--navy);
    font-weight: 700;
}

.spec-card button {
    width: 100%;
    border: 1.5px solid var(--burgundy);
    background: transparent;
    color: var(--burgundy);
    padding: 10px 0;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.spec-card button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.spec-card button:hover {
    color: #fff;
}

.spec-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: 42px 48px;
    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(122,36,50,0.35), transparent 70%);
}

.cta-box h3 {
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 6px;
}

.cta-box p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.cta 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 button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* =====================================================
   FEATURES
===================================================== */

.features {
    background: var(--paper-alt);
}

.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(--burgundy-soft);
    border: 1px solid rgba(122,36,50,0.2);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
    :root { --section-py: var(--section-py-sm); }

    .hero-flex {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        border-radius: 16px;
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .spec-list {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}