﻿:root {
    --primary-blue: #123b68;
    --secondary-blue: #1d568b;
    --cyan: #31c5dc;
    --gold: #d8bd83;
    --teal: #54d3c2;
    --light-background: #f3f7fc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: #263445;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

body:not(.home-page) main {
    padding-top: 24px;
}

/* =========================================================
   CONSISTENT GLASS NAVIGATION ACROSS ALL PAGES
   ---------------------------------------------------------
   A solid dark-blue base color sits BEHIND a nearly-opaque
   gradient, so the navbar looks identical whether the page
   underneath is dark (home hero) or white (inner pages).
   backdrop-filter is kept for the frosted depth where there
   is content behind it, but it no longer drives the color.
   ========================================================= */

.site-nav {
    position: sticky;
    top: 0;
    width: 100%;
    /* Solid base guarantees the same color on white pages */
    background-color: #0e2a4e;
    /* Nearly-opaque gradient on top of the base */
    background-image: linear-gradient( 110deg, rgba(32, 88, 148, 0.94) 0%, rgba(18, 56, 102, 0.95) 50%, rgba(11, 34, 68, 0.96) 100% );
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0 0 14px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(4, 15, 36, 0.28);
    z-index: 1050;
}

/* Home page keeps the exact same navbar.
   No position override, no color override — identical everywhere. */
.home-page .site-nav {
    /* Intentionally empty: the base .site-nav rules apply as-is. */
}

.site-nav .navbar-brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.3px;
    transition: color .2s ease;
}

    .site-nav .navbar-brand:hover {
        color: #c9eaff;
    }

.site-nav .nav-link {
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
    padding: 1.2rem .95rem;
    border-bottom: 3px solid transparent;
    transition: all .2s ease;
}

    .site-nav .nav-link:hover,
    .site-nav .nav-link:focus {
        color: #fff;
        border-bottom-color: rgba(255, 255, 255, .5);
    }

    .site-nav .nav-link.active {
        color: #fff;
        border-bottom-color: #fff;
    }

.admin-login {
    border: 1px solid rgba(255, 255, 255, .7);
    background-color: rgba(255, 255, 255, .05);
    border-radius: 30px;
    padding: 7px 20px;
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s ease;
}

    .admin-login:hover {
        background-color: #fff;
        color: var(--primary-blue);
        border-color: #fff;
    }

.site-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, .45);
}

    .site-nav .navbar-toggler:focus {
        box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .2);
    }


.footer-logo {
    display: block;
    max-height: 70px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
  
}

/* HERO SECTION */

.home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: 65px;
    background: radial-gradient(ellipse at 12% 18%, rgba(16, 118, 224, .68), transparent 46%), radial-gradient(ellipse at 82% 85%, rgba(0, 128, 160, .35), transparent 45%), linear-gradient(130deg, #0f3266 0%, #0d1d42 52%, #071936 100%);
}

.molecular-background {
    position: absolute;
    top: 2%;
    right: -2%;
    width: 68%;
    height: 98%;
    opacity: .22;
    pointer-events: none;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(11, 27, 58, .15) 0%, rgba(7, 22, 48, .4) 100%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

    .hero-label .label-cyan {
        color: #39c5e6;
    }

    .hero-label .label-gold {
        color: #d8bd83;
    }

    .hero-label .label-dot {
        color: #d8bd83;
        padding: 0 6px;
    }

.home-hero h1 {
    line-height: 1.18;
    letter-spacing: -.5px;
}

.hero-highlight {
    display: block;
    margin-top: 4px;
    background: linear-gradient(90deg, #e5c687 0%, #8ad4ab 52%, #47d1c8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: rgba(226, 236, 252, .85);
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.85;
    max-width: 780px;
}

/* HERO BUTTONS */

.hero-primary-btn {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    background: linear-gradient(95deg, #16bfa8 0%, #2678df 100%);
    box-shadow: 0 8px 24px rgba(20, 175, 195, .28);
    transition: all .25s ease;
}

    .hero-primary-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(20, 175, 195, .42);
    }

.hero-secondary-btn {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(190, 218, 250, .75);
    border-radius: 10px;
    padding: 13px 28px;
    background-color: rgba(255, 255, 255, .04);
    transition: all .25s ease;
}

    .hero-secondary-btn:hover {
        color: #102f50;
        background-color: #fff;
        border-color: #fff;
        transform: translateY(-2px);
    }

/* GENERAL SECTIONS */

.section-background {
    background-color: #f3f7fc;
}

.section-label {
    color: #1d568b;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.section-heading h2 {
    color: #123b68;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: #1d568b;
    border-radius: 5px;
    margin: 16px auto 0;
}

/* PROFESSOR PROFILE */

.professor-image-wrapper {
    display: inline-block;
    padding: 10px;
    background-color: #f3f7fc;
    border-radius: 12px;
}

.professor-image {
    width: 100%;
    max-width: 380px;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.profile-description {
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 620px;
}

/* VISION AND MISSION */

.statement-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(18, 59, 104, .06);
    border: 1px solid #e8edf4;
}

.statement-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaf2fb;
    color: #1d568b;
    font-size: 1.5rem;
    border-radius: 10px;
    margin-bottom: 22px;
}

.statement-card p {
    line-height: 2;
}

/* FOOTER */

.site-footer {
    background-color: #102f50;
    color: rgba(255, 255, 255, .8);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-description {
    font-size: .9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .7);
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: .9rem;
    transition: color .2s ease;
}

    .footer-link:hover {
        color: var(--cyan);
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding-bottom: 15px;
    }

    .site-nav .nav-link {
        padding: .65rem .2rem;
    }

        .site-nav .nav-link.active {
            border-bottom-color: transparent;
            color: var(--cyan);
        }

    .site-nav .admin-login {
        display: inline-block;
        margin-top: 10px;
    }

    /* Hero no longer needs extra padding for an absolute navbar */
    .home-page .home-hero {
        padding-top: 115px;
    }
}

@media (max-width: 767.98px) {
    .home-hero h1 {
        font-size: 2.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .molecular-background {
        width: 110%;
        right: -35%;
        opacity: .14;
    }

    .professor-image {
        height: 350px;
    }

    .statement-card {
        padding: 25px;
    }
}

@media (max-width: 575.98px) {
    .site-nav .navbar-brand {
        font-size: 1.15rem;
    }

    .home-page .home-hero {
        padding-top: 105px;
    }
}
/* =========================================================
   NEW SECTION STYLES: PROFESSOR, VISION, MISSION
   ========================================================= */

/* PROFESSOR PROFILE - MODERN SPLIT LAYOUT */
.professor-section {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fc 100%);
    position: relative;
    overflow: hidden;
}

    .professor-section::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(49, 197, 220, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.professor-image-wrapper {
    position: relative;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(145deg, #ffffff, #e6eef8);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(18, 59, 104, 0.15);
    border: 1px solid rgba(29, 86, 139, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

    .professor-image-wrapper:hover {
        transform: perspective(1000px) rotateY(0deg) translateY(-5px);
        box-shadow: 0 30px 50px rgba(18, 59, 104, 0.2);
    }

.professor-image {
    width: 100%;
    max-width: 380px;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #fff;
}

.professor-accent {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: var(--teal);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.4;
}

/* VISION & MISSION - CREATIVE CARDS */
.statement-section {
    background-color: #fff;
    position: relative;
}

    .statement-section.alt-bg {
        background-color: #f8fafc;
    }

.section-heading {
    margin-bottom: 3.5rem;
}

    .section-heading .section-label {
        display: inline-block;
        padding: 6px 16px;
        background: rgba(29, 86, 139, 0.08);
        color: var(--primary-blue);
        border-radius: 30px;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .section-heading h2 {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--primary-blue);
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    border-radius: 4px;
    margin: 0 auto;
}

.statement-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(18, 59, 104, 0.08);
    border: 1px solid rgba(29, 86, 139, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    .statement-card::after {
        content: '\F4B3'; /* Bootstrap Icon code for a generic graphic */
        font-family: 'bootstrap-icons';
        position: absolute;
        right: 20px;
        bottom: -30px;
        font-size: 10rem;
        color: rgba(29, 86, 139, 0.03); /* Very faint blue */
        z-index: 0;
        pointer-events: none;
    }


    .statement-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(18, 59, 104, 0.12);
    }

    .statement-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--cyan), var(--teal));
    }

.statement-card-inner {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
     z-index: 1;
}

@media (min-width: 768px) {
    .statement-card-inner {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.statement-icon-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf2fb, #dce8f5);
    color: var(--secondary-blue);
    font-size: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(29, 86, 139, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.statement-card:hover .statement-icon-box {
    transform: scale(1.05) rotate(5deg);
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    color: #fff;
}

.statement-content {
    flex-grow: 1;
}

    .statement-content p {
        font-size: 1.15rem;
        line-height: 1.8;
        color: #4a5a6e;
        margin: 0;
    }

/* Specific tweaks for Vision (Blue tint) */
.vision-card::before {
    background: linear-gradient(90deg, #1d568b, #31c5dc);
}

.vision-card .statement-icon-box {
    background: linear-gradient(135deg, #e3edf9, #cde0f5);
    color: #1d568b;
}

.vision-card:hover .statement-icon-box {
    background: linear-gradient(135deg, #1d568b, #31c5dc);
    color: #fff;
}

/* Specific tweaks for Mission (Teal tint) */
.mission-card::before {
    background: linear-gradient(90deg, #54d3c2, #16bfa8);
}

.mission-card .statement-icon-box {
    background: linear-gradient(135deg, #e0f5f2, #c8f0eb);
    color: #16bfa8;
}

.mission-card:hover .statement-icon-box {
    background: linear-gradient(135deg, #54d3c2, #16bfa8);
    color: #fff;
}
.mission-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

    .mission-list li {
        font-size: 1.1rem;
        color: #4a5a6e;
        margin-bottom: 12px;
        line-height: 1.6;
        display: flex;
        align-items: flex-start;
    }

        .mission-list li i {
            margin-top: 4px; /* Aligns the checkmark with the text */
        }
/* =========================================================
   MEMBERS PAGE & PROFILE PAGE
   ---------------------------------------------------------
   One single block for all member images (no duplicates,
   no !important). Boxes use aspect-ratio so every photo is
   cropped to the same shape at every screen width.
   Markup contract (see the .cshtml files):
     <container>
        <div class="member-image-placeholder">...</div>   <- always rendered, sits behind
        <img class="member-image" ... />                  <- covers the placeholder
     </container>
   If the <img> fails to load, onerror removes it and the
   placeholder shows instead of a broken-image icon.
   ========================================================= */

/* --- MEMBERS LIST PAGE --- */
.member-card {
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden; /* Prevents image from spilling out */
    border: 1px solid rgba(18, 59, 104, 0.08);
}

    .member-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(18, 59, 104, 0.12) !important;
    }
/* Add this to your CSS */
.view-profile-link {
    display: inline-block;
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.member-card:hover .view-profile-link {
    color: var(--teal);
    transform: translateX(4px);
}

/* List box: same shape for every card */
.member-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f7fc, #e2eaf4);
}

/* Everything that lives inside an image box fills it completely */
.member-image,
.member-image-placeholder,
.member-profile-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.member-image,
.member-profile-image {
    object-fit: cover; /* crop to fill, never stretch */
    object-position: center 20%; /* bias toward faces instead of dead center */
}

.member-image {
    transition: transform 0.5s ease;
}

.member-card:hover .member-image {
    transform: scale(1.05);
}

.member-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MEMBER DETAILS PAGE --- */
.member-profile {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(18, 59, 104, 0.08);
    border: 1px solid rgba(18, 59, 104, 0.08);
    overflow: hidden; /* Stops the image from spilling over the text */
}

/* Fills the full height of the card (the row is a flex container),
   with a floor so short bios still get a decent photo */
.member-profile-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    background: linear-gradient(135deg, #f3f7fc, #e2eaf4);
}

/* Mobile: columns stack, so use a fixed shape instead of full height */
@media (max-width: 767.98px) {
    .member-profile-image-wrapper {
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }
}

/* Typography Harmonization */
.member-name-title {
    color: var(--primary-blue); /* Dark Navy Blue */
    font-weight: 800;
    letter-spacing: -0.5px;
}

.member-position-subtitle {
    color: var(--secondary-blue); /* Medium Blue */
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-biography {
    color: #4a5a6e; /* Soft gray for readability */
    font-size: 1.05rem;
    line-height: 1.9;
}

/* --- PUBLICATIONS LIST --- */
.research-item {
    border-radius: 16px;
    border: 1px solid rgba(18, 59, 104, 0.1);
    background: #fff;
    transition: all 0.25s ease;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

    .research-item:hover {
        border-color: var(--secondary-blue);
        box-shadow: 0 8px 24px rgba(18, 59, 104, 0.08);
        transform: translateX(5px);
        background: #fbfdff;
    }

.research-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.15rem;
    transition: color 0.2s ease;
}

.research-item:hover .research-title {
    color: var(--teal);
}

.empty-state {
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed rgba(29, 86, 139, 0.3);
    padding: 3rem;
    text-align: center;
    color: #6b7c93;
}

.research-publication-card {
    transition: border-color 0.2s ease;
}

    .research-publication-card:hover {
        border-color: var(--secondary-blue) !important;
    }
/* =========================================================
   RESEARCH PAGE SPECIFIC STYLES
   ========================================================= */

/* --- Index Page: Research Cards --- */
.research-card-link {
    display: block;
    height: 100%;
}

.research-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(18, 59, 104, 0.08);
    box-shadow: 0 4px 15px rgba(18, 59, 104, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

    .research-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(18, 59, 104, 0.1);
        border-color: var(--secondary-blue);
    }

    .research-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--cyan), var(--teal));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .research-card:hover::before {
        opacity: 1;
    }

.research-card-body {
    padding: 2rem;
}

.research-year-badge {
    display: inline-block;
    background: var(--light-background);
    color: var(--primary-blue);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid rgba(29, 86, 139, 0.1);
}

.research-card-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.research-card:hover .research-card-title {
    color: var(--secondary-blue);
}

.research-card-subtitle {
    color: #6b7c93;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Details Page --- */
.back-link {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

    .back-link:hover {
        color: var(--secondary-blue) !important;
        transform: translateX(-3px);
    }

.year-badge-large {
    background: var(--light-background);
    color: var(--primary-blue);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(29, 86, 139, 0.1);
}

.research-detail-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(18, 59, 104, 0.08);
    box-shadow: 0 10px 30px rgba(18, 59, 104, 0.05);
    position: relative;
}

    .research-detail-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--secondary-blue), var(--cyan));
        border-radius: 20px 20px 0 0;
    }

.member-strip-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(18, 59, 104, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .member-strip-card:hover {
        border-color: var(--secondary-blue);
        box-shadow: 0 5px 15px rgba(18, 59, 104, 0.05);
        background: #fbfdff;
    }

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(95deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(18, 59, 104, 0.2);
    transition: all 0.25s ease;
}

    .btn-primary-custom:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(18, 59, 104, 0.3);
    }

.member-avatar {
    width: 40px; /* Matches the size of the icon you had */
    height: 40px;
    border-radius: 50%; /* Makes it a perfect circle */
    object-fit: cover; /* Prevents the image from stretching */
    border: 2px solid rgba(18, 59, 104, 0.1); /* Optional: adds a subtle border */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .research-detail-card {
        padding: 1.5rem;
    }

    .research-card-body {
        padding: 1.5rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}
/* =========================================================
   NEWS PAGE SPECIFIC STYLES
   ========================================================= */

/* --- Index Page: News Cards --- */
.news-card-link {
    display: block;
    height: 100%;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(18, 59, 104, 0.08);
    box-shadow: 0 4px 15px rgba(18, 59, 104, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(18, 59, 104, 0.1);
        border-color: var(--secondary-blue);
    }

/* Image Handling */
.news-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f7fc;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ADDED: Focus on the upper-middle of the image (faces) just like Projects */
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f7fc, #e2eaf4);
}

/* Card Body */
.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date-badge {
    display: inline-block;
    background: var(--light-background);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid rgba(29, 86, 139, 0.1);
}

.news-card-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
    color: var(--secondary-blue);
}

.news-card-summary {
    color: #6b7c93;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.read-more-link {
    display: inline-block;
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.news-card:hover .read-more-link {
    color: var(--teal);
    transform: translateX(4px);
}

/* --- News Details Page --- */

/* The Premium Frame for the image */
.news-detail-image-frame {
    /* Limit width so portraits don't look tiny */
    max-width: 800px;
    margin: 0 auto 3rem auto; /* Center it and add bottom spacing */
    /* Dark matte background to make the white space look intentional */
    background: linear-gradient(135deg, #0e2a4e 0%, #1d568b 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(18, 59, 104, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-detail-image {
    max-width: 100%;
    max-height: 600px; /* Prevents massive images from taking over the screen */
    /* 'contain' ensures the ENTIRE image is visible, no matter the shape */
    object-fit: contain;
    display: block;
    border-radius: 12px;
    /* Drop shadow to make the image pop off the dark background */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .news-detail-image-frame {
        padding: 1rem;
        border-radius: 16px;
    }

    .news-detail-image {
        max-height: 350px;
    }
}

/* --- Article Body Typography --- */
.news-article-body {
    /* Constrain the text width for better readability */
    max-width: 800px;
    margin: 0 auto;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #374151;
}

    .news-content p {
        margin-bottom: 1.5rem;
    }

    .news-content h2,
    .news-content h3 {
        color: var(--primary-blue);
        font-weight: 700;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .news-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 2rem 0;
    }

    .news-content blockquote {
        border-left: 4px solid var(--teal);
        padding-left: 1.5rem;
        margin: 2rem 0;
        font-style: italic;
        color: var(--secondary-blue);
        font-size: 1.2rem;
    }

/* Reusing back-link from research page, but ensuring it's defined if needed */
.back-link {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    color: #6b7c93;
}

    .back-link:hover {
        color: var(--secondary-blue) !important;
        transform: translateX(-3px);
    }


/* =========================================================
   PROJECTS PAGE SPECIFIC STYLES
   ========================================================= */

/* --- Index Page: Project Cards --- */
.project-card-link {
    display: block;
    height: 100%;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(18, 59, 104, 0.08);
    box-shadow: 0 4px 15px rgba(18, 59, 104, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(18, 59, 104, 0.1);
        border-color: var(--secondary-blue);
    }

/* Image Handling */
.project-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10; /* Keep the consistent shape */
    overflow: hidden;
    background: #f3f7fc;
}

    .project-image-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        /* A subtle shadow at the bottom */
        background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.15) 100%);
        pointer-events: none;
    }

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Focus on the upper-middle of the image for faces */
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f7fc, #e2eaf4);
}

/* Card Body */
.project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.project-card:hover .project-card-title {
    color: var(--secondary-blue);
}

.view-project-link {
    display: inline-block;
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.project-card:hover .view-project-link {
    color: var(--teal);
    transform: translateX(4px);
}

/* --- Project Details Page (Side-by-Side with Fixed Image Area) --- */
.project-detail-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(18, 59, 104, 0.08);
    border: 1px solid rgba(18, 59, 104, 0.08);
    overflow: hidden;
}

/* The image container */
.project-detail-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* CHANGED: Dark blue matte to match the News page */
    background: linear-gradient(135deg, #0e2a4e 0%, #1d568b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Also update the image drop-shadow so it shows up on the dark background */
.project-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CHANGED: Darker shadow for the dark background */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

    /* Slight zoom on hover for interactivity */
    .project-detail-image:hover {
        transform: scale(1.02);
    }

/* Mobile adjustment: switch to a fixed height box when stacked */
@media (max-width: 991.98px) {
    .project-detail-image-wrapper {
        height: 350px; /* Fixed height on mobile so the page doesn't get too long */
        min-height: 0;
    }
}

.project-detail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Area */
.project-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem; /* Ensure consistent padding on desktop */
}

@media (max-width: 767.98px) {
    .project-detail-content {
        padding: 1.5rem;
    }
}

.project-badge {
    display: inline-block;
    background: linear-gradient(95deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: #fff;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.project-description-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4a5a6e;
    white-space: pre-line;
