/* =========================== MENU ======================== */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-navbar {
    background: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.navbar-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    font-weight: 700;
    color: #100568;
}
/* ===== DROPDOWN ===== */
.submenu {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    background: #fff;
    min-width: 180px;

    display: none;
    list-style: none;
    margin: 0;
    padding: 0;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 3px solid #100568;
    z-index: 9999;
}

.submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #100568;
    font-weight: 600;
}

.dropdown-menu li a:hover {
    background: #100568;
    color: white;
}

/* ===== LOGO ===== */

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo img {
    height: 95px;   /* adjust size like reference */
    width: auto;
    position: relative;
    top: 30px;       /* 👈 moves logo slightly down */
}

/* ====== RESPONSIVE DESIGN === */
@media (max-width: 992px) {

    .nav-menu {
        gap: 20px;
    }

    .logo img {
        height: 70px;
    }
}

@media (max-width: 768px) {

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

}

@media (max-width: 480px) {

    .nav-menu li a {
        font-size: 15px;
    }

    .logo img {
        height: 55px;
    }
}


/* Smooth link click feel */
.nav-menu li a:active {
    transform: scale(0.95);
    display: inline-block;
}

/* hide mobile elements on desktop */
.mobile-title,
.hamburger {
    display: none;
}

/* ===== MOBILE VIEW ================================ */
    @media (max-width: 768px) {

        /* show mobile elements */
        .mobile-title {
            flex: 1;
            display: block;   /* IMPORTANT */
            text-align: center;
            font-weight: 700;
            color: #100568;
            font-size: 13px;
            font-family: 'Times New Roman', sans-serif;
            line-height: 1.2;
            letter-spacing: 1px;
            padding: 0 8px;
            text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.403);
            overflow: visible;
            text-overflow: unset;  
        }

        .hamburger {
            display: block;
            font-size: 26px;
            cursor: pointer;
        }

        /* hide desktop menus */
        .nav-menu {
            display: none;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            background: #fff;
            padding: 10px 15px;
             /* 👇 IMPORTANT FIX */
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        }

        .nav-menu.active {
            display: flex;
        }

        /* 🔥 REMOVE ALL POSITIONING HACKS */
    .left-menu,
    .right-menu {
        position: static;
        margin: 0;
    }

    /* spacing between menus */
    .right-menu {
        margin-top: 10px;
    }

        /* layout fix */
        .navbar-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
            width: 100%;
        }

        /* top bar: hide email */
        .top-bar-content span:nth-child(2) {
            display: none;
        }
        
        .logo {
            flex-shrink: 0;
        }
        
        .logo img {
            height: 60px;
            top: 0;
        }
        
    }

/* =================================================
   MOBILE HEADER EXTRA (NEW ADDITION)
================================================= */

.mobile-header-extra {
    display: none;
}

/* ========== MOBILE VIEW =========== */
@media (max-width: 768px) {

    /* SHOW MOBILE HEADER EXTRA */
    .mobile-header-extra {
        display: block;
        background: #fff;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    /* MOBILE MENU PANEL */
    .mobile-menu-panel {
        display: none;
        background: #fff;
        text-align: center;
        border-top: 1px solid #eee;
    }

    .mobile-menu-panel ul {
        list-style: none;
        padding: 10px 0;
        margin: 0;
    }

    .mobile-menu-panel ul li {
        padding: 12px 0;
    }

    .mobile-menu-panel ul li a {
        text-decoration: none;
        color: #100568;
        font-weight: 600;
        font-size: 15px;
        display: block;
    }

    /* OPEN STATE */
    .mobile-menu-panel.active {
        display: block;
    }
}

/* ===================== AFFILIATIONS SECTION ===================== */

.affiliations-section {
    padding: 80px 20px;
    background: #fff;
    margin-top: 90px; /* space for fixed header */
}

/* ROW CENTER */
.affiliations-section .row {
    display: flex;
    justify-content: center;
}

.xyz {
    background: #ffffff;
    padding: 15px;
    text-align: center; 
    font-family: 'Roboto', sans-serif;
}

.xyz h2 {
    color: #212529;
    margin: 0;
    font-size: 40px;
    font-weight: 600;
}
 
/* MAIN CONTAINER (3 PARTS) */
.cards-container {
    display: flex;
    flex-wrap: wrap; /* IMPORTANT */
    gap: 30px;
    max-width: 1100px;
    width: 100%;
    padding: 10px;
    margin: auto;
}

/* EACH CARD */
.card {
    flex: 1 1 calc(33.333% - 20px); /* 3 cards desktop */
    min-width: 280px; /* prevents breaking */
    background: #fff;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* IMAGE (TOP PART) */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* TEXT (BOTTOM PART) */
.card-content {
    border-top: 1px solid #ddd;
    padding: 20px;
}

.card-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* IMAGE */
.profile-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

/* CONTENT */
.profile-card .card-content {
  padding: 20px 15px;
}

/* NAME */
.profile-card h3 {
    font-size: 20px;
    color: #080808;
    margin-bottom: 20px;
    text-align: left;
}

/* DESCRIPTION */
.profile-card p {
    font-size: 18px;
    color: #212529;
    line-height: 1.6;
    text-align: left;
}

.card-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #1976d2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.card-btn:hover {
    background: #0d5bb5;
    text-decoration: none;
    color: #fff;
}

.card-header {
    background: #100568;
    color: #fff;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-card:empty {
    visibility: hidden;
}
/* ===================== RESPONSIVE ===================== */

/* Tablet */
@media (max-width: 992px) {
    .card {
        flex: 1 1 calc(50% - 15px);
    }

    .card img {
        height: 220px;
    }

    .xyz h2 {
        font-size: 32px;
    }

}

/* Mobile */
@media (max-width: 768px) {

    .affiliations-section {
        padding: 50px 15px;
        margin-top: 70px;
    }

    .cards-container {
        gap: 20px;
    }

    .card {
        flex: 1 1 100%;
    }

    .xyz h2 {
        font-size: 26px;
    }

    .profile-card img {
        width: 100%;
        height: 300px;
        transform: none; /* FIX */
        object-fit: contain;
    }

    .profile-card h3 {
        font-size: 18px;
    }

    .profile-card p {
        font-size: 14px;
    }

    .card-btn {
        font-size: 14px;
        padding: 10px;
    }

    .profile-card:empty {
        display: none;
    }
}

@media (min-width: 1200px) {
    .cards-container {
        max-width: 1200px;
    }

    .card img {
        height: 260px;
    }
}

/* ===================== FOOTER ===================== */
.footer {
    background: #100568;
    color: #f7f7f7;
}

.footer-main {
    padding: 70px 0 30px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 3px;
    background: #00bfff;
    margin-bottom: 20px;
}

/* CONTACT */
.footer-contact p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 10px;

}

.footer-contact a {
    color: #f7f7f7;
    text-decoration: none;
}

/* SOCIAL ICONS (NEW) */
.social-icons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #00bfff;
    transform: translateY(-3px);
}

/* LOCATIONS LIST (FIXED) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f7;
}

.footer-links i {
    color: #ffffff;
}

/* BOTTOM */
.footer-bottom {
    background: #0a043f;
    padding: 20px 0;
    text-align: center;
    color: #ddd;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 992px) {

    .footer-main {
        padding: 60px 0 20px;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .footer h4 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {

    .footer-main {
        padding: 50px 0 20px;
        text-align: left;
    }

    .footer-contact p {
        font-size: 14px;
    }

    .footer-links li {
        justify-content: left;
        font-size: 14px;
    }

    .social-icons {
        justify-content: left;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 13px;
    }
}