/* =========================
   HERO
========================= */
.residency-hero{
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0b2454 0%, #123b86 50%, #2c74d8 100%);
    overflow: hidden;
    color: #fff;
}

.residency-hero::before{
    content: "";
    position: absolute;
    top: -120px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.residency-hero::after{
    content: "";
    position: absolute;
    left: -100px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.residency-hero-overlay{
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 30%),
                radial-gradient(circle at bottom left, rgba(255,255,255,0.08), transparent 35%);
}

.residency-badge{
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.residency-title{
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 22px;
}

.residency-text{
    font-size: 1.08rem;
    line-height: 1.9;
    max-width: 700px;
    color: rgba(255,255,255,0.93);
}

.residency-buttons{
    margin-top: 30px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-side-card{
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 28px;
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
}

.hero-side-icon{
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.hero-side-icon img{
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.hero-side-card h3{
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-side-card ul{
    margin: 0;
    padding-left: 18px;
}

.hero-side-card ul li{
    margin-bottom: 10px;
    color: rgba(255,255,255,0.92);
}

/* =========================
   GENERAL SECTIONS
========================= */
.res-section{
    padding: 95px 0;
}

.light-section{
    background: #f5f8fd;
}

.section-chip{
    display: inline-block;
    background: #eaf2ff;
    color: #1a4fa0;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.white-chip{
    background: rgba(255,255,255,0.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}

.section-title{
    font-size: 2.35rem;
    line-height: 1.2;
    color: #0d2c6c;
    font-weight: 800;
    margin-bottom: 18px;
}

.section-subtitle{
    max-width: 760px;
    margin: 0 auto;
    color: #667792;
    line-height: 1.85;
    font-size: 1.04rem;
}

.section-text{
    color: #5b6c84;
    line-height: 1.9;
    font-size: 1.04rem;
}

/* =========================
   OVERVIEW CARDS
========================= */
.overview-card{
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 14px 40px rgba(13,44,108,0.10);
    height: 100%;
    text-align: center;
    transition: 0.3s ease;
}

.overview-card:hover{
    transform: translateY(-6px);
}

.overview-icon{
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: #eff5ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-icon img{
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.overview-card h4{
    color: #0d2c6c;
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.overview-card p{
    color: #5f6f86;
    line-height: 1.75;
    margin: 0;
}

/* =========================
   INFO CARDS
========================= */
.info-card{
    background: #fff;
    border-radius: 24px;
    padding: 26px 22px;
    box-shadow: 0 12px 30px rgba(13,44,108,0.08);
}

.info-card h4{
    color: #0d2c6c;
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.info-card ul{
    margin: 0;
    padding-left: 18px;
}

.info-card ul li{
    color: #5f6f86;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* =========================
   REQUIREMENTS TIMELINE
========================= */
.requirements-wrap{
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

.requirements-wrap::before{
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #2b74d8, #cfe1ff);
    border-radius: 10px;
}

.requirement-item{
    position: relative;
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.requirement-number{
    min-width: 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d2c6c, #2b74d8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(43,116,216,0.25);
    position: relative;
    z-index: 2;
}

.requirement-content{
    background: #fff;
    border-radius: 22px;
    padding: 24px 24px;
    box-shadow: 0 12px 30px rgba(13,44,108,0.08);
    flex: 1;
}

.requirement-content h4{
    color: #0d2c6c;
    font-weight: 800;
    margin-bottom: 10px;
}

.requirement-content p{
    margin: 0;
    color: #5f6f86;
    line-height: 1.8;
}

/* =========================
   INVESTMENT
========================= */
.investment-card{
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(13,44,108,0.10);
}

.investment-card table thead th{
    font-size: 0.96rem;
    color: #0d2c6c;
    font-weight: 800;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f8;
}

.investment-card table tbody td{
    padding: 18px 8px;
    color: #52627a;
    border-bottom: 1px solid #f1f4f8;
    font-size: 1rem;
}

.investment-card table tbody tr:last-child td{
    border-bottom: none;
}

.investment-tools{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.tool-pill{
    display: inline-block;
    padding: 10px 16px;
    background: #edf4ff;
    color: #1a4fa0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
}

/* =========================
   USMLE SECTION
========================= */
.usmle-section{
    background: linear-gradient(135deg, #0b2454 0%, #123a83 50%, #174ea9 100%);
}

.exam-block{
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.exam-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.exam-head h3{
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.exam-head p{
    margin: 0;
    color: rgba(255,255,255,0.78);
}

.exam-badge{
    display: inline-block;
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.16);
}

.exam-card{
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.exam-card h4{
    color: #0d2c6c;
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.exam-card p{
    color: #5f6f86;
    line-height: 1.8;
    margin: 0;
}

.exam-card ul{
    margin: 0;
    padding-left: 18px;
}

.exam-card ul li{
    color: #5f6f86;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* =========================
   CTA
========================= */
.residency-cta{
    background: linear-gradient(135deg, #102c63 0%, #2356af 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.residency-cta h2{
    font-size: 2.35rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 16px;
}

.residency-cta p{
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.92);
    line-height: 1.85;
    font-size: 1.04rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px){
    .residency-title{
        font-size: 2.5rem;
    }

    .section-title{
        font-size: 2rem;
    }
}

@media (max-width: 767.98px){
    .residency-hero{
        min-height: auto;
    }

    .residency-title{
        font-size: 2rem;
    }

    .residency-text{
        font-size: 1rem;
    }

    .section-title{
        font-size: 1.7rem;
    }

    .res-section{
        padding: 70px 0;
    }

    .requirement-item{
        gap: 16px;
    }

    .requirement-number{
        min-width: 48px;
        width: 48px;
        height: 48px;
        font-size: 0.92rem;
    }

    .requirements-wrap::before{
        left: 23px;
    }

    .residency-cta h2{
        font-size: 1.9rem;
    }
}