/* GLOBAL RESETS */

/* --- HEADER SECTION (Matches Changes.pdf) --- */


/* --- HERO SECTION (The Sketch Layout) --- */
/* --- HERO SECTION FIXED --- */

/* 1. Force the Container Height */


/* 2. CRITICAL FIX: Force Carousel Images to fill 400px perfectly */
/* =========================================================
   HERO SLIDER (Aspect Ratio & Object-Fit Fix)
   ========================================================= */
.hero-wrapper {
    width: 100%;
    background: #00000000;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Carousel takes exact image size and forces aspect ratio */
.full-width-carousel .item img {
    width: 100%;
    aspect-ratio: 2 / 1; /* Forces 2:1 ratio strictly (e.g. 1600x800, 800x400) */
    object-fit: fill; /* Stretches the image without cropping it to fit the box */
    border: 8px solid #ffffff;
    display: block;
}

/* 3. Notice Board Layout */
/* =========================================================
   NOTICE BOARD TABS
   ========================================================= */
.notice-board-modern {
    background: #fff;
    border-top: 4px solid #102039;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 25px;
    margin-bottom: 25px;
}
.notice-tabs { background-color: #f8f9fa; border-bottom: 2px solid #ddd; }
.notice-tabs > li > a { color: #102039; font-weight: 600; padding: 15px 25px; border-radius: 0; border: none; }
.notice-tabs > li.active > a, .notice-tabs > li.active > a:hover {
    background-color: #fff;
    border: none;
    border-bottom: 3px solid #FFD700;
    color: #102039;
}
.notice-scrollable-area { height: 400px; overflow-y: auto; padding: 15px; }
.custom-alert { margin: 15px; }


/* 4. VC Content Section */
/* ===== NEW LEADERS SECTION (50/50 Split) ===== */
.leaders-section-modern {
    margin: 50px 0;
}

/* Flexbox helper to make columns equal height on desktop */
@media (min-width: 992px) {
    .display-flex {
        display: flex;
        align-items: stretch;
    }
}

.leader-col {
    margin-bottom: 20px; /* Fallback margin for mobile */
}

.leader-card {
    background: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Softer, deeper shadow */
    border-radius: 8px;
    border-top: 4px solid #102039; /* Navy top border accent */
    height: 100%; /* Stretches to match flex container */
    display: flex;
    flex-direction: column;
}

.leader-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.leader-img {
    width: 120px;
    height: 150px; /* Height is larger than width for a portrait rectangle */
    border-radius: 8px; /* Gives the rectangle slightly rounded, modern corners */
    object-fit: cover;
    border: 3px solid #FFD700; /* Gold frame */
    margin-right: 20px;
}

.leader-info h4 {
    color: #102039;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    font-size: 18px;
}

.leader-info span {
    color: #f39c12;
    font-size: 14px;
    font-weight: 600;
}

.leader-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.leader-body p {
    color: #444;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes the 'Read More' button to the bottom if column sizes differ */
}

.btn-read-more {
    background-color: #102039;
    border-color: #102039;
    align-self: flex-start; /* Ensures the button doesn't stretch across the container */
    margin-top: auto;
}

.btn-read-more:hover {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #102039;
}


/* ===== ABOUT UNIVERSITY SECTION ===== */
.about-section-modern {
    background: #fff;
    margin: 30px 50px; /* Same horizontal margin as director section */
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Slightly lighter shadow */
    border-radius: 10px;
    border-left: 5px solid #FFD700;
}

.about-content h3 {
    color: #102039;
    font-weight: bold;
    margin-bottom: 20px;
}

.shadow-img {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== PROGRAM & NEWS CARDS ===== */
.section-title {
    color: #102039;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 30px;
}

.program-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%; /* Uniform height */
}

    .program-card i {
        font-size: 40px;
        color: #FFD700;
        margin-bottom: 15px;
    }

    .program-card h4 {
        color: #102039;
        font-weight: 700;
        text-transform: uppercase;
    }

    .program-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        border-color: #FFD700;
    }

    .program-card .btn-primary {
        background: #102039;
        border: none;
        border-radius: 25px;
        margin-top: 15px;
    }

        .program-card .btn-primary:hover {
            background: #FFD700;
            color: #102039;
        }

    .program-card .btn-default {
        background: transparent;
        border: 2px solid #102039;
        color: #102039;
        border-radius: 25px;
        margin-top: 15px;
    }

        .program-card .btn-default:hover {
            background: #102039;
            color: #fff;
        }


/* --- FOOTER --- */
footer {
    background: #102039;
    color: #ccc;
    padding: 40px 0 20px;
    border-top: 5px solid #FFD700;
    margin-top: 40px;
}

    footer h4 {
        color: #fff;
        font-weight: bold;
        margin-bottom: 15px;
    }

    footer li {
        margin-bottom: 10px;
    }

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #555;
    font-size: 14px;
}

/*NEWS Section*/
/*------------------------------------------------------*/
/* --- MODERN NEWS CARDS --- */
.modern-news-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px; /* Slight rounding to soften edges */
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 75%; /* Ensures all cards in the row are the same height */
}

.modern-news-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-image-wrapper {
    width: 100%;
    height: 150px; /* Fixed height for consistent image sizing */
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    transition: transform 0.4s ease;
}

.modern-news-card:hover .news-image-wrapper img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.news-content {
    padding: 25px 20px 20px 20px;
    flex-grow: 1; /* Pushes the footer to the bottom */
}

.news-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title-link {
    text-decoration: none;
    color: #222;
}

.news-title-link:hover, .news-title-link:focus {
    text-decoration: none;
    color: #102039; /* University Navy Blue */
}

.news-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: inherit;
    transition: color 0.2s ease;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.news-footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
}

.news-author {
    font-size: 13px;
    color: #888;
}

.news-author strong {
    color: #555;
    font-weight: 600;
}

.news-icons {
    display: flex;
    gap: 12px; /* Space between icons */
}

.news-icons i {
    color: #b0b0b0;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.news-icons a {
    color: inherit;
    text-decoration: none;
}

/* Hover colors for the icons */
.news-icons i.fa-share:hover { color: #3498db; }
.news-icons i.fa-comment:hover { color: #2ecc71; }
.news-icons i.fa-heart:hover { color: #e74c3c; }



/* Accreditation Section */
/* =========================================================
   NEW: LOGO STRIP SECTION
   ========================================================= */
.partner-logos-section {
    background-color: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.partner-logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logo-box {
    display: block;
}

.logo-box img {
    height: 75px;
    width: auto;
    transition: all 0.4s ease;
    object-fit: contain;
}

/* =========================================================
   NAVBAR 2 (Secondary - White Block)
   ========================================================= */
.secondary-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.secondary-navbar .navbar-nav > li > a {
    /* background: linear-gradient(90deg, #4facfe, #00f2fe); */ /*This is NEW Style of Coloring*/
    background-color: #87CEEB; /*This is Older Style of Coloring*/
    margin-top: 5px;
    margin-bottom: 5px;
    color: #102039 !important;
    font-weight: 700;
    padding: 15px 20px;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.secondary-navbar .navbar-nav > li > a:hover,
.secondary-navbar .navbar-nav > li.open > a {
    background-color: #B23A2F !important;
    color: #ffffff !important;
}

.nav-grey-highlight {
    color: #888 !important;
    font-weight: 500 !important;
}

.main-nav-centered {
    display: inline-block;
    float: none;
}

.dropdown-menu {
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-menu > li > a {
    padding: 10px 20px;
    font-weight: 500;
}