/*================ ACADEMICS SECTION ================*/
.academics-section {
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--ink) 100%);
    margin-top: 0;
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.academic-heading {
    font-size: 46px;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp .8s ease forwards .12s;
}

.heading-line {
    width: 0;
    height: 3px;
    background: var(--gold);
    margin: 18px auto 22px;
    border-radius: 10px;
    animation: lineGrow 1s ease forwards .4s;
}

.academic-text {
    max-width: 1900px;
    color: rgba(255,255,255,.7);
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp .8s ease forwards .2s;
    font-size: 20px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    to {
        width: 170px;
    }
}

.academic-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #0b0f19;
    opacity: 0;
    transform: translateY(36px);
    filter: blur(14px);
    animation: riseFocus 1s cubic-bezier(.22,.9,.32,1) forwards;
    transition: box-shadow .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.academic-card:nth-child(1) { animation-delay: .15s; }
.academic-card:nth-child(2) { animation-delay: .35s; }
.academic-card:nth-child(3) { animation-delay: .55s; }

@keyframes riseFocus {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.academic-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    filter: grayscale(25%);
    transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}

.academic-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 38%;
    background: linear-gradient(to top,
        rgba(11,15,25,.92) 0%,
        rgba(11,15,25,.35) 60%,
        transparent 100%);
    z-index: 1;
    transform: translateY(18%);
    transition: transform .55s cubic-bezier(.2,.8,.2,1), height .55s cubic-bezier(.2,.8,.2,1);
}

.academic-card:hover::before {
    height: 58%;
    transform: translateY(0);
}

.academic-card::after {
    content: "\2197";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-8px) rotate(-25deg);
    transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1), background .35s ease, border-color .35s ease, color .35s ease;
    pointer-events: none;
}

.academic-card:hover::after {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    background: var(--gold);
    border-color: var(--gold);
    color: #0b0f19;
}

.overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: #fff;
    z-index: 2;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.overlay h4 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.overlay h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 24px;
    height: 3px;
    background: var(--gold);
    transition: width .5s cubic-bezier(.2,.8,.2,1) .1s;
}

.overlay .view-more {
    display: block;
    max-height: 0;
    opacity: 0;
    font-size: 14px;
    letter-spacing: .5px;
    color: var(--gold);
    margin-top: 12px;
    overflow: hidden;
    transition: max-height .5s ease .1s, opacity .4s ease .1s;
}

.academic-card:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,.3);
    transform: translateY(-6px);
}

.academic-card:hover img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.academic-card:hover .overlay {
    transform: translateY(-14px);
}

.academic-card:hover .overlay h4::after {
    width: 60px;
}

.academic-card:hover .overlay .view-more {
    max-height: 30px;
    opacity: 1;
}

.row.g-4 {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

@media (prefers-reduced-motion: reduce) {
    .academic-card, .academic-heading, .academic-text, .heading-line {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}