/* ============================================================
   COMMON.CSS — shared across index.html, activities.html, publications.html
   Sovereign Blue Palette
   #2B4EAE  Royal Blue (primary)
   #6D1A36  Burgundy (secondary)
   #FAF8F5  Cream (neutral)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --blue: #2B4EAE;
    --burgundy: #6D1A36;
    --cream: #FAF8F5;
    --dark: #12172b;
    --text: #333333;
    --white: #ffffff;
    --blue-lt: #a8c4ff;
    --banner-h: 0px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p,
li,
a,
span,
label,
input,
select,
textarea,
button,
small {
    font-family: 'Inter', 'Arial', sans-serif;
}

button {
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
}

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

/* ===================== TOP ANNOUNCEMENT BANNER ===================== */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: linear-gradient(90deg, var(--blue), var(--burgundy));
    color: #fff;
    padding: 11px 46px 11px 16px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}

.top-banner span {
    color: #fff;
}

.top-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 800;
    white-space: nowrap;
    margin-left: 6px;
}

.top-banner a:hover {
    color: var(--blue-lt);
}

.banner-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    opacity: 0.85;
}

.banner-close:hover {
    opacity: 1;
}

/* ===================== NAV (boxed) ===================== */
nav {
    position: fixed;
    top: calc(var(--banner-h, 0px) + 16px);
    left: 50%;
    transform: translateX(-50%);
    width: min(1300px, 92%);
    z-index: 1000;
    background: var(--white);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(18, 23, 43, 0.10);
    transition: top 0.3s ease;
}

/* ---- Logo ---- */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 20px 0;
}

.logo-svg {
    height: 52px;
    width: auto;
    flex-shrink: 0;
}

.logo-img {
    height: 73px;
    width: auto;
    flex-shrink: 0;
}

.logo-img2 {
    height: 93px;
    width: auto;
    flex-shrink: 0;
    padding-bottom: 10px;
}

/* ---- Nav links ---- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.78rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.25s;
    position: relative;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--burgundy);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--burgundy);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 9px 22px;
    border-radius: 3px;
    letter-spacing: 1px !important;
    transition: background 0.25s !important;
}

.nav-cta:hover {
    background: var(--burgundy) !important;
}

.nav-cta::after {
    display: none !important;
}

/* ---- Mobile menu toggle (hamburger) ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================== SHARED SECTION HEADERS ===================== */
.sh-tag {
    font-size: 0.67rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--burgundy);
    font-weight: 700;
    display: block;
    margin-bottom: 11px;
}

.divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--blue));
    margin: 0 auto 22px;
    border-radius: 2px;
}

/* Scroll-reveal */
.rev {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

.rev.vis {
    opacity: 1;
    transform: none;
}

/* ===================== SUBPAGE HEADER (activities / publications) ===================== */
.page-head {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 8% 55px;
    padding-top: calc(168px + var(--banner-h, 0px));
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--dark) 0%, #1c2340 60%, var(--burgundy) 130%);
    transition: padding-top 0.3s ease;
}

.page-head-inner {
    max-width: 780px;
}

.page-head .sh-tag {
    color: var(--blue-lt);
}

.page-head h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.page-head p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
    font-size: 1rem;
}

.page-head .divider {
    background: linear-gradient(90deg, var(--blue-lt), var(--white));
}

.back-home {
    display: inline-block;
    margin-top: 26px;
    color: var(--blue-lt);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(168, 196, 255, 0.5);
    padding-bottom: 3px;
    transition: color 0.25s, border-color 0.25s;
}

.back-home:hover {
    color: var(--white);
    border-color: var(--white);
}

/* ===================== FOOTER ===================== */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.62);
    padding: 58px 8% 30px;
}

.ft-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 42px;
}

.ft-brand h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 13px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.ft-brand p {
    font-size: 0.83rem;
    line-height: 1.82;
}

.ft-col h4 {
    color: var(--white);
    font-size: 0.76rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.ft-col ul {
    list-style: none;
}

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

.ft-col ul li a {
    color: rgba(255, 255, 255, 0.56);
    text-decoration: none;
    font-size: 0.83rem;
    transition: color 0.28s;
}

.ft-col ul li a:hover {
    color: var(--blue-lt);
}

.ft-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 24px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.77rem;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 960px) {
    .ft-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===================== FLOATING BUTTONS ===================== */
.float-btns {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.float-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 20px 0 14px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: transform 0.25s, opacity 0.25s, box-shadow 0.25s;
}

.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.float-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #fff;
}

.float-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
}

.float-label {
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn .float-label {
    font-size: 0.95rem;
}

.scrolltop-btn {
    background: linear-gradient(135deg, var(--blue), var(--burgundy));
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.scrolltop-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===================== RESPONSIVE (SHARED) ===================== */
@media (max-width: 700px) {
    nav {
        padding: 0 18px;
        width: 94%;
    }

    .logo-link {
        padding: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: calc(var(--banner-h, 0px) + 120px);
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 380px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        background: var(--white);
        border-radius: 14px;
        box-shadow: 0 16px 44px rgba(18, 23, 43, 0.2);
        padding: 18px 22px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

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

    .nav-links a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .top-banner {
        font-size: 0.72rem;
        padding: 9px 40px 9px 10px;
    }

    .page-head {
        padding: 110px 5% 45px;
        padding-top: calc(150px + var(--banner-h, 0px));
    }

    .float-btns {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .float-btn {
        height: 44px;
        padding: 0 16px 0 12px;
        gap: 8px;
    }

    .float-label {
        font-size: 0.7rem;
    }
}
