/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* ----- BRAND COLORS (from logo) ----- */
:root {
    --muni-navy: #3c0a0a;
    --muni-gold: #c94c4c;
    --muni-navy-light: #5a1a1a;
    --muni-gold-light: #db5c62;
    --muni-gold-dark: #a83a3a;
    --muni-bg: #f5f6f8;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f8fafc 0%, #f5f6f8 100%);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- HEADER / NAVIGATION ----- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.navbar .container {
    display: flex;
    max-width: 1360px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 28px;
    position: relative;
}

/* ----- LOGO ----- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-text .uni-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #c94c4c;
    margin: 0;
    line-height: 1.1;
}

.logo-text .tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    margin-top: 2px;

    /* Don't cut the text */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    line-height: 1.3;
}

/* ----- NAV ACTIONS (right side container) ----- */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: 12px;
    flex: 0 0 auto;
    min-width: 0;
}

/* ----- NAV LINKS ----- */
.nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
}

.nav-links > li {
    flex-shrink: 0;
    position: relative;
}

.nav-links > li > a,
.nav-dropdown-trigger > a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.78rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 4px;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-dropdown-trigger > a:hover {
    color: var(--muni-navy);
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    cursor: pointer;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
    background: #f1f5f9;
    color: var(--muni-navy);
    outline: none;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.55rem;
    transition: transform 0.3s ease;
}

.nav-links > li.active .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.btn-outline {
    border: 2px solid var(--muni-navy);
    padding: 4px 10px;
    border-radius: 30px;
    color: var(--muni-navy) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--muni-navy);
    color: #fff !important;
}

/* ----- DROPDOWN ----- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    border: 1px solid #e9edf2;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 0;
    overflow: visible;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    padding: 10px 20px;
    display: block;
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: var(--muni-navy);
}

.nav-links > li:hover .dropdown-content,
.nav-links > li.active .dropdown-content {
    display: block;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

/* ----- SEARCH BAR (permanently small, top-right) ----- */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 12px;
    flex-shrink: 0;
}

.nav-search input {
    width: 100px !important;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.7rem;
    transition: width 0.3s ease, border-color 0.3s ease;
    opacity: 1 !important;
}

.nav-search input:focus {
    width: 150px;
    outline: none;
    border-color: var(--muni-gold);
    box-shadow: 0 0 0 3px rgba(201, 76, 76, 0.1);
}

.nav-search input::placeholder {
    color: #94a3b8;
    font-size: 0.65rem;
}

.nav-search button {
    display: none; /* Hide the toggle button */
}

/* ----- MENU TOGGLE (hamburger) ----- */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: var(--muni-navy);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    order: 3;
}

.menu-toggle:hover {
    background: #f8fafc;
}

.menu-toggle i {
    font-size: 1.2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----- HERO SECTION ----- */
.hero {
    background-color: white(--muni-navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0 90px;
    border-bottom: 4px solid var(--muni-gold);
    text-align: center;
    color: #fff;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    z-index: 0;
}

.hero .container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.hero h1 i {
    color: var(--muni-gold);
    margin-right: 10px;
}

.hero .subhead {
    font-size: 1.3rem;
    color: #fff;
    max-width: 700px;
    margin: 0 auto 12px;
    font-weight: 500;
}

.hero .description {
    max-width: 650px;
    color: #fff;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

.hero .btn-primary {
    background-color: var(--muni-gold);
    color: #fff;
    padding: 14px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: none;
}

.hero .btn-primary:hover {
    background-color: var(--muni-gold-dark);
    transform: scale(1.02);
}

/* Show only the selected graduate-program category when opened from the menu. */
.graduate-programs-page.view-masters .programs-overview,
.graduate-programs-page.view-masters .postgraduate-only,
.graduate-programs-page.view-postgraduate .programs-overview,
.graduate-programs-page.view-postgraduate .masters-only {
    display: none;
}

/* ----- SECTION COMMON ----- */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--muni-navy);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

.divider {
    width: 70px;
    height: 4px;
    background-color: var(--muni-gold);
    border-radius: 4px;
    margin: 0 auto 30px;
}

/* ----- PRIORITY SPOTLIGHT ----- */
.priority-spotlight {
    background: linear-gradient(135deg, rgba(60, 10, 10, 0.98), rgba(124, 29, 29, 0.96));
    padding: 36px 0 24px;
}

.priority-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.priority-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.priority-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.priority-card h3 {
    font-size: 1.35rem;
    color: var(--muni-navy);
    margin-bottom: 10px;
}

.priority-card p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

.priority-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.priority-pill.programs {
    background: rgba(201, 76, 76, 0.12);
    color: white(--muni-gold-dark);
}

.priority-pill.grants {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.priority-card .btn-secondary,
.priority-card .btn-primary {
    margin-top: auto;
}

/* ----- STATS ----- */
.stats {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
    padding: 76px 0;
    border-top: 1px solid #e5e7eb;
}

.stats .section-title,
.stats .section-subtitle {
    color: var(--muni-navy);
}

.stats .section-subtitle {
    margin-bottom: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: left;
}

.stats-grid .stat-item {
    position: relative;
    background: #1f2937;
    border-radius: 24px;
    padding: 32px 24px 28px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.stats-grid .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.18;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.35), transparent 40%);
}

.stats-grid .stat-item .card-number {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.14);
    line-height: 0.9;
}

.stats-grid .stat-item h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 16px;
}

.stats-grid .stat-item .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #f8fafc;
    margin-bottom: 10px;
}

.stats-grid .stat-item .stat-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #e2e8f0;
}

.stats-grid .stat-item:nth-child(1) {
    background: linear-gradient(135deg, #c94c4c, #8f1d1d);
}

.stats-grid .stat-item:nth-child(2) {
    background: linear-gradient(135deg, #0f766e, #134e4a);
}

.stats-grid .stat-item:nth-child(3) {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.stats-grid .stat-item:nth-child(4) {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

/* ----- CARDS ----- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid #e9edf2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--muni-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* Profile photos use their original framing so faces and heads are never cropped. */
.profile-card .profile-photo {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    border-radius: 0;
    margin-bottom: 12px;
}

.profile-card .profile-photo-placeholder {
    display: grid;
    place-items: center;
    color: whitesmoke;
    font-size: 3rem;
}

.card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--muni-navy);
    margin-bottom: 8px;
}

.card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.card .btn-link {
    color: var(--muni-navy);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.card .btn-link:hover {
    color: var(--muni-gold);
}

.card .btn-link i {
    font-size: 0.8rem;
}

/* ----- PROGRAM CARDS ----- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.program-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.program-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.program-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f8fafc;
    color: var(--muni-gold);
    font-size: 1.4rem;
}

.program-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.program-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.program-card p {
    margin-bottom: 18px;
    color: #475569;
    line-height: 1.8;
}

.program-spec {
    display: grid;
    gap: 12px;
    color: #334155;
    font-size: 0.95rem;
}

.program-spec div {
    display: flex;
    gap: 10px;
}

.program-requirements {
    background: #e2e8f0;
    padding: 18px 20px;
    border-radius: 18px;
    margin-top: 18px;
}

.program-requirements h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #b91c1c;
    font-size: 1rem;
}

.program-requirements p {
    margin: 0;
    color: #334155;
    line-height: 1.8;
}

.program-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* ----- RESEARCH SECTION ----- */
.research-section {
    background: #f3f4f6;
    padding: 70px 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 24px;
}

.research-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.project-image {
    width: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 26px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.12);
    margin-bottom: 16px;
}

.research-card:nth-child(1) .project-category { background: rgba(201,76,76,0.95); }
.research-card:nth-child(2) .project-category { background: rgba(15,118,110,0.95); }
.research-card:nth-child(3) .project-category { background: rgba(29,78,216,0.95); }
.research-card:nth-child(4) .project-category { background: rgba(245,158,11,0.95); }

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--muni-navy);
    margin-bottom: 12px;
}

.project-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.project-content .btn-link {
    font-weight: 700;
}

/* ----- TWO COLUMN LAYOUT ----- */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
    margin-top: 20px;
}

.col-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--muni-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-header i {
    color: var(--muni-gold);
}

.feature-item {
    background: #fff;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-left: 6px solid var(--muni-gold);
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-left-color: var(--muni-navy);
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--muni-navy);
    margin-bottom: 4px;
}

.feature-item p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.feature-item i {
    color: var(--muni-gold);
    margin-right: 8px;
}

.feature-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* ----- INNOVATION BOX ----- */
.innovation-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border-left: 6px solid var(--muni-gold);
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

.innovation-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.innovation-box h3 {
    color: var(--muni-navy);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.innovation-box h3 i {
    color: var(--muni-gold);
    margin-right: 10px;
}

.innovation-box p {
    color: #475569;
}

/* ----- SUMMARY SECTION ----- */
.summary-section {
    padding: 70px 0;
}

.summary-section .card-grid {
    gap: 28px;
}

.summary-card {
    border-left: 4px solid var(--muni-gold);
    padding: 28px;
}

.summary-card h3 {
    margin-bottom: 16px;
    color: var(--muni-navy);
}

.summary-card p {
    color: #475569;
    line-height: 1.8;
}

/* ----- NEWS SECTION ----- */
.news-section {
    background: #f0f2f7;
    padding: 70px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.news-card {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #e7eaee;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.news-card .date {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.news-card h4 {
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.news-card p {
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--muni-gold-dark);
    border: 1px solid var(--muni-gold);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--muni-gold);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ----- CONTACT SECTION ----- */
.contact-section {
    background: #f8f9fa;
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 30px;
}

.contact-info,
.contact-form-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info:hover,
.contact-form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.contact-intro {
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muni-gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--muni-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex: 0 0 56px;
}

.contact-label {
    color: #111827;
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-details {
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
}

.contact-details a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-details a:hover {
    color: #f8fafc;
    text-decoration: underline;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--muni-navy);
}

.contact-item p {
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

.contact-item a {
    color: var(--muni-navy);
    text-decoration: none;
}

.contact-form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--muni-navy);
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--muni-gold);
    box-shadow: 0 0 0 4px rgba(201, 76, 76, 0.08);
}

.contact-form-card textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--muni-gold);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form-card button:hover {
    background: var(--muni-gold-dark);
    transform: translateY(-1px);
}

/* ----- FOOTER ----- */
.footer-section {
    background-color: #060606;
    color: #e5e7eb;
    padding: 70px 0 28px;
    border-top: 4px solid var(--muni-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 34px;
    margin-bottom: 24px;
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--muni-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.footer-col p {
    color: #cfd4da;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--muni-gold);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icons a:hover {
    transform: translateY(-2px);
    color: #fff;
}

.social-icons a.clicked {
    transform: scale(0.96);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.social-icons a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 76, 76, 0.18);
    transform: translateY(-2px);
}

.social-icons a.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icons a.twitter:hover {
    background: #00acee;
    border-color: #00acee;
}

.social-icons a.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.footer-subscribe p {
    margin-bottom: 18px;
    color: #c0c0c0;
}

.subscribe-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.subscribe-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #3c0a0a;
    border-radius: 12px;
    background: #fff;
    color: #1e293b;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-form button:hover {
    background-color: var(--muni-gold-dark);
    transform: translateY(-1px);
}

.footer-map {
    margin-top: 18px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map iframe {
    width: 100%;
    height: 180px;
    display: block;
    border: 0;
}

.map-container {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.map-container:hover {
    border-color: var(--muni-gold);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    display: block;
    border: 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.92rem;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
    margin-top: 22px;
}

.footer-bottom strong {
    color: var(--muni-gold);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 6px 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-actions {
        margin-left: 0;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo img {
        height: 40px;
    }

    .logo-text .uni-name {
        font-size: 0.9rem;
    }
    
    .logo-text .tagline {
        font-size: 0.63rem;
    }

    /* --- Mobile: show hamburger --- */
    .menu-toggle {
        display: inline-flex;
        order: 3;
    }

    /* --- Mobile: nav links stack vertically --- */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 0 2px;
        border-top: 1px solid #eef2f7;
        margin-top: 4px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        flex: 1 1 100%;
        order: 10;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 18px;
    }

    .nav-links.open {
        display: flex;
        max-height: 560px;
        opacity: 1;
        padding: 12px 14px;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    }

    .nav-links > li {
        width: 100%;
        position: static;
    }

    .nav-links > li > a,
    .nav-dropdown-trigger > a {
        padding: 10px 0;
        width: 100%;
        border-radius: 8px;
    }

    .nav-links > li > a:hover,
    .nav-dropdown-trigger > a:hover {
        background: #f8fafc;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-trigger > a {
        flex: 1;
    }

    .dropdown-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-links > li > a.btn-outline {
        display: inline-flex;
        width: fit-content;
        margin-top: 4px;
    }

    /* --- Mobile: search stays small but visible --- */
    .nav-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        order: 2;
    }

    .nav-search {
        margin-left: 8px;
        flex: 0 0 auto;
    }

    .nav-search input {
        width: 80px !important;
        height: 26px;
        font-size: 0.65rem;
        padding: 0 8px;
    }

    .nav-search input:focus {
        width: 120px;
    }

    .nav-search button {
        display: none;
    }

    /* --- Mobile dropdown --- */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        margin-top: 4px;
        width: 100%;
        background: transparent;
    }

    .nav-links > li.active > .dropdown-content {
        display: block;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown-content a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* --- Mobile sections --- */
    section {
        padding: 48px 0;
    }

    .hero {
        padding: 56px 0 64px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 6vw, 2.7rem);
    }

    .hero .description {
        font-size: 1rem;
    }

    .hero .btn-primary {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .priority-grid {
        grid-template-columns: 1fr;
    }

    .priority-card {
        padding: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid .stat-item {
        min-height: 200px;
        padding: 24px 20px;
    }

    .card-grid,
    .program-grid,
    .research-grid,
    .news-grid {
        gap: 18px;
    }

    .card,
    .program-card,
    .research-card,
    .news-card,
    .priority-card,
    .contact-info,
    .contact-form-card {
        border-radius: 18px;
    }

    .section-title {
        font-size: clamp(1.55rem, 4.2vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.98rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .subscribe-form {
        max-width: 320px;
        margin: 12px auto 0;
    }
    
    .subscribe-form input {
        width: 100%;
    }

    .map-container iframe {
        height: 180px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-card {
        padding: 24px;
    }

    /* --- Page specific responsive --- */
    .page-header h1,
    .page-content h2,
    #postgraduate-diplomas h2 {
        font-size: clamp(1.7rem, 7vw, 2.3rem) !important;
        line-height: 1.2;
    }

    .page-header .container > div {
        padding: 32px 20px !important;
        border-radius: 18px !important;
    }

    .page-header .container > div > div,
    .page-content section > div > div:last-child {
        gap: 10px !important;
    }

    .program-grid {
        gap: 20px;
    }

    .program-card {
        padding: 24px;
        border-radius: 18px;
    }

    .program-spec div {
        display: block;
    }

    .program-spec strong {
        display: block;
        margin-bottom: 2px;
    }

    #about .card-grid .card img,
    #research-projects .card-grid .card img {
        height: 200px;
    }

    #partners > .container > div:last-child {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    #partners > .container > div:last-child > .card {
        height: 108px !important;
        padding: 12px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .card-grid,
    .stats-grid,
    .program-grid,
    .research-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 42px 0 54px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero .subhead {
        font-size: 1rem;
    }

    .hero .description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        display: none;
    }

    .card,
    .program-card,
    .research-card,
    .news-card,
    .contact-info,
    .contact-form-card {
        padding: 18px;
    }

    .stats-grid .stat-item {
        min-height: 180px;
        padding: 20px 16px;
    }

    .stats-grid .stat-item h2 {
        font-size: 2rem;
    }

    .map-container iframe {
        height: 150px;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .page-header {
        padding: 72px 0 48px !important;
    }

    .page-header .btn-secondary,
    .page-content .btn-secondary,
    .page-content .btn-primary,
    #postgraduate-diplomas .btn-secondary {
        width: 100%;
        text-align: center;
    }

    #about > .container > div[style*="grid-template-columns"],
    #about .card-grid,
    #research-projects .card-grid {
        grid-template-columns: 1fr !important;
    }

    #partners > .container > div:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #partners > .container > div:last-child > .card {
        height: 96px !important;
    }

    #about .card-grid .card img,
    #research-projects .card-grid .card img {
        height: 190px;
    }

    .program-card-top {
        gap: 12px;
        margin-bottom: 16px;
    }

    .program-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .program-card h3 {
        font-size: 1.2rem;
        overflow-wrap: anywhere;
    }

    .program-requirements {
        padding: 16px;
        border-radius: 14px;
    }

    .nav-search input {
        width: 60px !important;
    }

    .nav-search input:focus {
        width: 100px;
    }
}

