/* 1. GLOBAL SETTINGS */
:root {--navy: #082d52;--blue: #145da0;--gold: #e7ad32;--ink: #17283b;--muted: #5c6b7a;--paper: #f5f8fb;--white: #fff;--radius: 18px;--shadow: 0 12px 35px rgba(8, 45, 82, 0.10);}

* {box-sizing: border-box;}

html {scroll-behavior: smooth;}

body {margin: 0;color: var(--ink);font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-size: 16px;line-height: 1.7;background: #fff;}

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

a {color: var(--blue);text-decoration: none;}

a:hover {text-decoration: underline;}

.container {width: min(1160px, calc(100% - 36px));margin-inline: auto;}

/* 2. HEADER AND TOP CONTACT BAR */
.site-header {position: sticky;top: 0;z-index: 99;background: rgba(255, 255, 255, 0.98);box-shadow: 0 2px 14px rgba(8, 45, 82, 0.08);backdrop-filter: blur(12px);}

/* Contact bar */
.topbar {background: var(--navy);color: #fff;font-size: 13px;padding: 6px 0;}

.topbar .container {display: flex;justify-content: space-between;align-items: center;gap: 12px;flex-wrap: wrap;}

.topbar a {color: #fff;text-decoration: none;}

.topbar a:hover,
.topbar a:focus {color: var(--gold);text-decoration: none;}

/* Main navigation row */
.navrow {position: relative;display: flex;align-items: center;justify-content: space-between;gap: 18px;height: 78px;min-height: 0;padding: 0;}

/* University logo and branding */
.brand {display: flex;align-items: center;gap: 12px;color: var(--navy);font-weight: 800;font-size: 17px;line-height: 1.2;flex-shrink: 0;text-decoration: none;margin: 0;}

.brand:hover,
.brand:focus {text-decoration: none;}

/* LAMAU header logo size */
.site-header .brand img {width: auto;height: 60px;max-height: 60px;object-fit: contain;flex-shrink: 0;}

/* Tablet */
@media (max-width: 1100px) {.site-header .brand img {height: 54px;max-height: 54px;}}

/* Mobile */
@media (max-width: 600px) {.site-header .brand img {height: 46px;max-height: 46px;}}

.brand-text {display: block;}

.brand-name {display: block;color: var(--navy);font-size: 17px;font-weight: 800;}

.brand small {display: block;margin-top: 4px;color: var(--muted);font-size: 10px;font-weight: 650;letter-spacing: 0.08em;text-transform: uppercase;}

/* Main navigation menu */
.main-nav {margin-left: auto;}

.main-nav ul {display: flex;align-items: center;justify-content: flex-end;gap: 16px;list-style: none;margin: 0;padding: 0;flex-wrap: nowrap;}

.main-nav li {list-style: none;margin: 0;padding: 0;}

.main-nav a {display: inline-block;padding: 8px 0;color: var(--navy);font-size: 14px;font-weight: 700;line-height: 1.2;white-space: nowrap;text-decoration: none;transition: color 0.2s ease;}

/* Navigation hover and focus */
.main-nav a:hover,
.main-nav a:focus {color: var(--gold);text-decoration: none;}

/* Current menu item */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {color: var(--blue);text-decoration: none;}

/* Mobile menu button */
.menu-toggle {display: none;background: #fff;border: 1px solid #dce5ed;border-radius: 8px;padding: 9px 12px;color: var(--navy);font-weight: 700;cursor: pointer;}

/* 3. BUTTONS */
.button,.wp-block-button__link {display: inline-flex;align-items: center;justify-content: center;padding: 12px 19px;border-radius: 999px;background: var(--gold);color: #17283b;font-weight: 750;border: 0;transition: transform 0.2s, background 0.2s;}

.button:hover,.wp-block-button__link:hover {background: #f2c65d;text-decoration: none;transform: translateY(-1px);}

.button-outline {background: transparent;border: 1px solid rgba(255, 255, 255, 0.7);color: #fff;}

/* 4. HERO SECTION */
.hero {position: relative;overflow: hidden;background:linear-gradient(110deg, rgba(4, 31, 57, 0.9), rgba(8, 45, 82, 0.55)),url('assets/img/bg-img/lamau1.JPG') center/cover;color: #fff;padding: clamp(80px, 11vw, 150px) 0;}

.hero-content {max-width: 760px;}

.eyebrow {display: inline-block;color: var(--gold);font-weight: 800;letter-spacing: 0.12em;text-transform: uppercase;font-size: 12px;}

.hero h1 {color: #fff;font-size: clamp(36px, 5.5vw, 66px);line-height: 1.08;letter-spacing: -0.035em;margin: 16px 0;}

.hero p {font-size: clamp(17px, 2vw, 20px);color: rgba(255, 255, 255, 0.9);max-width: 670px;}

.actions {display: flex;gap: 12px;flex-wrap: wrap;margin-top: 28px;}

/* 5. GENERAL SECTIONS */
.section {padding: 76px 0;}

.section-soft {background: var(--paper);}

.section-head {max-width: 720px;margin-bottom: 32px;}

.section h2 {font-size: clamp(28px, 4vw, 42px);line-height: 1.2;color: var(--navy);margin: 8px 0 14px;letter-spacing: -0.025em;}

.section p {color: var(--muted);}

/* 6. CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 23px;
}

.card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 21px;
}

.card p {
    margin: 0 0 16px;
}

.text-link {
    font-weight: 750;
}

/* ==========================================
   7. NOTICE / ADMISSIONS PANEL
========================================== */

.notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--navy);
    border-radius: var(--radius);
    color: #fff;
    padding: 30px;
}

.notice h2 {
    color: #fff;
    margin: 0 0 8px;
}

.notice p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.notice .button {
    flex-shrink: 0;
}

/* ==========================================
   8. BLOG POSTS AND CONTENT
========================================== */

.content-area {
    padding: 50px 0 70px;
    min-height: 45vh;
}

.content-area .entry-title {
    font-size: clamp(30px, 4vw, 44px);
    color: var(--navy);
    line-height: 1.2;
}

.content-area .entry-content {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.content-area .entry-content a {
    text-decoration: underline;
}

.content-area .entry-content img {
    border-radius: 10px;
}

.content-area .entry-content h2,
.content-area .entry-content h3 {
    color: var(--navy);
}

/* Blog pagination */

.pagination {
    margin-top: 28px;
}

/* ==========================================
   9. FOOTER
========================================== */

.site-footer {
    background: #061f38;
    color: rgba(255, 255, 255, 0.78);
    padding: 20px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.site-footer a {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 30px;
    padding-top: 18px;
    font-size: 13px;
}

/* ==========================================
   10. ACCESSIBILITY
========================================== */

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.screen-reader-text:focus {
    left: 12px;
    top: 12px;
    background: #fff;
    padding: 12px;
    z-index: 1000;
}

/* ==========================================
   11. TABLET RESPONSIVE STYLES
========================================== */

@media (max-width: 1100px) {
    .navrow {
        gap: 12px;
    }

    .brand {
        font-size: 15px;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand img {
        width: 58px;
        height: 46px;
        max-height: 46px;
    }

    .main-nav ul {
        gap: 11px;
    }

    .main-nav a {
        font-size: 13px;
    }
}

/* ==========================================
   12. MOBILE NAVIGATION
========================================== */

@media (max-width: 900px) {
    .navrow {
        height: 70px;
        min-height: 0;
        padding: 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        background: #fff;
        padding: 16px 22px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        display: block;
    }

    .main-nav li {
        padding: 8px 0;
    }

    .main-nav a {
        font-size: 15px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================
   13. SMALL MOBILE SCREENS
========================================== */

@media (max-width: 600px) {
    .cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .brand {
        font-size: 14px;
        gap: 10px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand img {
        width: 48px;
        height: 42px;
        max-height: 42px;
    }

    .brand small {
        font-size: 9px;
    }

    .topbar .container {
        display: block;
    }

    .hero {
        padding: 78px 0;
    }

    .card img {
        height: 200px;
    }
}

/* ==========================================
   LAMAU PRIMARY NAVIGATION DROPDOWNS
========================================== */

/* Allow dropdowns to appear outside the navigation row */
.site-header,
.site-header .navrow,
.site-header .main-nav {
    overflow: visible;
}

/* Make parent menu items the dropdown positioning reference */
.site-header .main-nav .menu > li {
    position: relative;
}

/* Hide dropdown menus by default on desktop */
.site-header .main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(8, 45, 82, 0.14);
    z-index: 999;
    list-style: none;
}

/* Show dropdown on hover and keyboard focus */
.site-header .main-nav .menu > li:hover > .sub-menu,
.site-header .main-nav .menu > li:focus-within > .sub-menu {
    display: block;
}

/* Dropdown menu items */
.site-header .main-nav .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Dropdown links */
.site-header .main-nav .sub-menu a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    color: var(--navy);
    text-decoration: none;
}

/* Dropdown hover */
.site-header .main-nav .sub-menu a:hover,
.site-header .main-nav .sub-menu a:focus {
    background: var(--paper);
    color: var(--blue);
    text-decoration: none;
}

/* Add a small dropdown indicator to parent items */
.site-header .main-nav .menu > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 11px;
}

/* Mobile navigation */
@media (max-width: 900px) {
    .site-header .main-nav .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 4px 0 4px 16px;
        margin: 6px 0 0;
        border: 0;
        border-left: 2px solid var(--gold);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .site-header .main-nav .sub-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .site-header .main-nav .menu > li:hover > .sub-menu,
    .site-header .main-nav .menu > li:focus-within > .sub-menu {
        display: block;
    }

    /* Centre University Profile sections */
body.page .entry-content > .wp-block-group.lamau-profile {
    width: 100%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* University Council member list */
.lamau-council-list {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

/* Individual member card */
.lamau-council-list > .wp-block-group {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 108px;
    margin: 0 !important;
    padding: 12px;

    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e2e8ef;
    border-left: 4px solid #e7ad32;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(8, 45, 82, 0.06);
}

/* Member image */
.lamau-council-list > .wp-block-group figure {
    width: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.lamau-council-list > .wp-block-group img {
    width: 82px !important;
    height: 82px !important;
    object-fit: cover;
    border-radius: 8px;
}

/* Member name and role */
.lamau-council-list > .wp-block-group h4 {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Two-column Council layout on desktop */
@media (min-width: 768px) {
    .lamau-council-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Single column on mobile */
@media (max-width: 767px) {
    .lamau-council-list {
        grid-template-columns: 1fr;
    }

    .lamau-council-list > .wp-block-group {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .lamau-council-list > .wp-block-group figure,
    .lamau-council-list > .wp-block-group img {
        width: 72px !important;
        height: 72px !important;
    }
}

/* ========================================
   MOBILE MENU SUBMENU CONTROLS
======================================== */

@media (max-width: 768px) {

    /* Keep each parent link and its arrow together */
    .main-nav li.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .main-nav li.menu-item-has-children > a {
        flex: 1;
        min-width: 0;
    }

    /* Individual submenu arrow button */
    .main-nav .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #082d52;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .main-nav .submenu-toggle:hover,
    .main-nav .submenu-toggle:focus-visible {
        background: rgba(8, 45, 82, 0.08);
        outline-offset: 2px;
    }

    /* Collapse submenus by default */
    .main-nav li.menu-item-has-children > .sub-menu {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding-left: 18px;
    }

    /* Expand only the submenu whose arrow was tapped */
    .main-nav li.menu-item-has-children > .sub-menu.submenu-open {
        display: block;
    }
}

/* Remove the boxed dropdown button on desktop */
@media (min-width: 901px) {
    .site-header .main-nav .submenu-toggle {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none;
        padding: 0 !important;
        width: 16px;
        min-width: 16px;
        height: auto;
        font: inherit;
        font-size: 11px;
        color: #082d52;
    }

    .site-header .main-nav .submenu-toggle:hover,
    .site-header .main-nav .submenu-toggle:focus {
        background: transparent !important;
        color: #e7ad32;
    }

    /* Remove the duplicate arrow generated by CSS */
    .site-header .main-nav .menu > li.menu-item-has-children > a::after {
        content: none !important;
    }
}

}

/* =========================================
   LAMAU SITE-WIDE LAYOUT REFINEMENTS
   ========================================= */

/* 1. HEADER SPACING */

.site-header {
    box-shadow: 0 2px 12px rgba(8, 45, 82, 0.07);
}

.topbar {
    padding: 3px 0 !important;
    font-size: 12px !important;
}

.navrow {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 !important;
    gap: 14px !important;
}

.site-header .brand img {
    max-height: 54px !important;
}

/* 2. MAIN CONTENT AREA */

.content-area {
    padding: 16px 0 25px !important;
    min-height: 0 !important;
}

/* Remove unnecessary default spacing before the first content block */

.content-area .entry-content > *:first-child {
    margin-block-start: 0 !important;
}

/* Reduce excessive spacing after the final content block */

.content-area .entry-content > *:last-child {
    margin-block-end: 0 !important;
}

/* Prevent unnecessary bottom spacing in page content */

body.page .content-area {
    padding-bottom: 25px !important;
}

/* 3. FOOTER SPACING */

.site-footer {
    padding: 28px 0 12px !important;
}

.footer-grid {
    gap: 20px !important;
    align-items: start;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0 !important;
    margin-bottom: 11px !important;
}

.site-footer p {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.site-footer ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0;
}

.site-footer li {
    margin-bottom: 6px;
}

.footer-bottom {
    margin-top: 17px !important;
    padding-top: 11px !important;
}

/* 4. TABLET ADJUSTMENTS */

@media (max-width: 900px) {

    .navrow {
        height: 62px !important;
        min-height: 62px !important;
    }

    .content-area {
        padding: 14px 0 22px !important;
    }

    .site-footer {
        padding: 26px 0 12px !important;
    }

}

/* 5. MOBILE ADJUSTMENTS */

@media (max-width: 600px) {

    .topbar {
        padding: 4px 0 !important;
    }

    .navrow {
        height: 58px !important;
        min-height: 58px !important;
    }

    .content-area {
        padding: 12px 0 18px !important;
    }

    .site-footer {
        padding: 23px 0 10px !important;
    }

    .footer-grid {
        gap: 18px !important;
    }

    .footer-bottom {
        margin-top: 15px !important;
        padding-top: 10px !important;
    }

}
