/* ================= GLOBAL ================= */
body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

td {
    border: 1px solid #CED4D9 !important;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrows */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 38px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 5;
}

.prev { left: 12px; }
.next { right: 12px; }

.nav:hover {
    color: #ffd700;
}

/* ================= IMAGE SLIDER ================= */
.imageSlider {
    width: 100%;
}

.imageSlider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop */
@media (min-width: 768px) {
    .imageSlider {
        height: 550px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .imageSlider {
        height: auto;
    }

    .imageSlider img {
        height: auto;
        object-fit: contain;
    }
}

/* ================= SWIPER ================= */
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= NEWS SECTION ================= */
.news-header h2 {
    font-size: 36px;
    font-weight: 700;
}

.news-header h2 span {
    color: #1a4edb;
}

.news-header p {
    max-width: 600px;
    margin: 10px auto 40px;
    color: #555;
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.news-img {
    position: relative;
    height: 220px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a4edb;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: #888;
}

.news-content h3 {
    font-size: 18px;
    margin: 10px 0 15px;
    line-height: 1.4;
    color: #222;
}

.read-more {
    font-weight: 600;
    color: #1a4edb;
}

/* ================= PROGRAM LINKS ================= */
.program-link {
    text-decoration: none;
    width: 100%;
    padding: 5px 0;
    display: block;
}

.program-item {
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 8px;
}

.program-item:last-child {
    border-bottom: none;
}

.program-link:hover {
    color: #198754;
    transform: translateX(5px);
    transition: 0.3s;
}

/* ================= MOBILE NAV ================= */
.custom-mega-toggler {
    background: transparent;
    border: 0;
    color: #a6c035;
    font-size: 30px;
    padding: 6px 12px;
    cursor: pointer;
}

#navbarToggleExternalContent {
    display: none;
}

#navbarToggleExternalContent.is-open {
    display: block !important;
    position: fixed;
    inset: 0;
    background: #003c2f;
    z-index: 999999;
    overflow-y: auto;
}

.menu-close {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    color: #fff;
    z-index: 1000000;
    cursor: pointer;
}

.mobile-nav {
    background: #003c2f;
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow-y: auto;
}

.mobile-nav a,
.mobile-link {
    display: block;
    color: #252525;
    padding: 3px 0;
    text-decoration: none;
}

.mobile-link::after {
    content: "▾";
    float: right;
}

/* ================= RESEARCH / HERO BLOCK ================= */
.research-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
}

/* Optional smaller version */
.fixed-height {
    height: 320px;
}

/* Image */
.research-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay */
.research-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    z-index: 1;
}

/* Bottom content */
.research-content,
.research-content-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    z-index: 2;
}

/* Typography */
.research-content h2,
.research-content-bottom h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.research-content p,
.research-content-bottom p {
    margin: 0;
    font-size: 14px;
}

/* Mobile */
@media(max-width:768px){
    .research-hero {
        height: 300px;
        border-radius: 10px;
    }
}