/* Performance Optimizations */
html {
    scroll-behavior: smooth;
}

/* CSS Custom Properties for Theming */
:root {
    --primary: #007A87;
    --primary-dark: #0A2F3F;
    --primary-light: #E6FAFC;
    --text: #333;
    --text-light: #666;
    --bg: #f4f4f4;
    --white: #fff;
    --border: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: 0.3s ease;
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Visually Hidden - Accessible but not visible */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden:focus,
.visually-hidden:active {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Remove default outline only if focus-visible is supported */
:focus:not(:focus-visible) {
    outline: none;
}

/* General Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    box-sizing: border-box;
    font-display: swap;
    font-size: 14px;
}

@media (min-width: 360px) {
    body {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    body {
        font-size: 16px;
    }
}

* {
    box-sizing: border-box;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Enable GPU acceleration for animations */
button, a, .card, .dropdown-link {
    will-change: transform;
    transform: translateZ(0);
    transition: background 0.2s ease-out, color 0.2s ease-out;
}

/* Card performance optimization */
.card {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    margin: auto;
    overflow: visible;
}

@media (min-width: 768px) {
    .container {
        width: 85%;
    }
}

@media (min-width: 1024px) {
    .container {
        width: 80%;
    }
}

/* Color Variables */
:root {
    --primary: #007A87;      /* Ocean Blue */
    --primary-dark: #0A2F3F; /* Darker Ocean Blue */
    --primary-light: #00C4D4; /* Lighter Ocean Blue */
    --accent: #19E3EE;       /* Golden Accent */
    --bg: #f7fafc;
    --text: #222;
    --text-light: #fff;
    --card-bg: #fff;
    --card-radius: 12px;
    --card-shadow: 0 2px 8px #0001;
    --container-width: 1200px;
    --content-width: 900px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    --font-main: 'Montserrat', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 2rem;
    --line-height: 1.6;
}

/* Header - Mobile First */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: none;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
    position: relative;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex: 1;
    min-width: 0;
    gap: 6px;
    max-width: 180px;
}

.logo img {
    width: 40px;
    height: 32px;
    margin-right: 0;
    flex-shrink: 0;
}

.logo span {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--text-light);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100px;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

@media (min-width: 360px) {
    .logo span {
        font-size: 0.85em;
        max-width: 110px;
    }
}

@media (min-width: 480px) {
    .logo span {
        font-size: 0.95em;
        max-width: 130px;
    }
}

@media (min-width: 768px) {
    .logo {
        max-width: none;
        gap: 12px;
    }
    
    .logo img {
        width: 50px;
        height: 40px;
    }
    
    .logo span {
        font-size: 1.1em;
        max-width: none;
        font-weight: 800;
        letter-spacing: 0.5px;
        background: linear-gradient(135deg, #fff 0%, #e8f4ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
    }
}

@media (min-width: 1024px) {
    .logo {
        max-width: none;
        gap: 16px;
    }
    
    .logo img {
        width: 60px;
        height: 48px;
    }
    
    .logo span {
        font-size: 1.3em;
        font-weight: 800;
        letter-spacing: 0.7px;
        line-height: 1.3;
        white-space: nowrap;
    }
}

/* Mobile-First Navigation - Hidden by default on mobile, visible on tablet+ */
.main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    flex-direction: column;
    gap: 8px;
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
    pointer-events: auto;
    opacity: 1;
}

.main-nav.active {
    max-height: 700px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.menu-open .mobile-menu-toggle::before {
    content: "✕";
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 100;
    width: 100%;
}

.nav-item.dropdown {
    position: relative;
}

.nav-item .nav-link {
    color: #0A2F3F;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95em;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    white-space: nowrap;
    position: relative;
    z-index: 100;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    letter-spacing: 0.5px;
    background: rgba(0, 119, 190, 0.12);
    opacity: 1;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.25) 0%, rgba(0, 168, 232, 0.15) 100%);
    color: #071C27;
    transform: translateX(4px);
}

.nav-item.dropdown > .nav-link::after {
    content: "";
    margin-left: auto;
    font-size: 0.6em;
    color: var(--primary-dark);
}

/* Mobile Dropdown Menu - Stacked */
.dropdown-menu {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: none;
    border-radius: 0 0 8px 8px;
    min-width: auto;
    padding: 0 0 0 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    z-index: 10000;
}

.nav-item.dropdown.expanded > .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablet and Desktop Navigation */
@media (min-width: 768px) {
    .main-nav {
        max-height: none;
        overflow: visible;
        width: auto;
        flex-direction: row;
        gap: 6px;
        display: flex;
        position: static;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        align-items: center;
    }

    .main-nav.active {
        max-height: none;
    }

    .nav-item {
        width: auto;
    }

    .nav-item .nav-link {
        font-size: 0.9rem;
        padding: 8px 14px;
        border-radius: 6px;
        width: auto;
        min-height: 36px;
        color: #fff;
        background: rgba(255, 255, 255, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: none;
    }

    .nav-item .nav-link:hover {
        background: rgba(25, 227, 238, 0.2);
        color: var(--accent);
        transform: translateY(-2px);
    }

    .nav-item.dropdown > .nav-link::after {
        content: "∨";
        font-size: 0.75em;
        margin-left: 6px;
        opacity: 0.8;
    }

    .nav-item.dropdown {
        position: relative;
    }
}

/* Mobile Dropdown Menu */
.dropdown-menu {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(25, 227, 238, 0.6);
    border-radius: 8px;
    min-width: auto;
    padding: 8px 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 4px;
    z-index: 10000;
    margin-left: 12px;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item.dropdown.expanded > .dropdown-menu {
    display: block;
}

/* Desktop Dropdown Menu */
@media (min-width: 768px) {
    .dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        min-width: 220px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        z-index: 10000;
        padding: 10px 0;
        border: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
    }

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown:focus-within .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item.dropdown.expanded > .dropdown-menu {
        display: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-section {
    display: flex;
    flex-direction: column;
}

.dropdown-section + .dropdown-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
}

/* Mobile Dropdown Links */
.dropdown-link {
    display: block;
    color: #0A2F3F;
    text-decoration: none;
    padding: 11px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    border-left: 3px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 1;
}

.dropdown-link:hover {
    background: rgba(0, 119, 190, 0.15);
    color: #071C27;
    border-left-color: #007A87;
    padding-left: 18px;
}

/* Desktop Dropdown Links */
@media (min-width: 768px) {
    .dropdown-link {
        color: var(--primary-dark);
        background: transparent;
        padding: 10px 18px;
        font-size: 0.9rem;
        border-left: 3px solid transparent;
    }

    .dropdown-link:hover {
        background: rgba(0, 119, 190, 0.08);
        color: var(--primary);
        border-left-color: var(--primary);
        padding-left: 18px;
    }
}

/* Enhanced Home Dropdown */
.dropdown-menu-featured {
    min-width: 280px;
}

.dropdown-header {
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.dropdown-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 8px 0;
}

/* Donate Button */
.donate-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #00C4D4 100%) !important;
    color: #000 !important;
    border-radius: 8px;
    padding: 10px 18px !important;
    font-weight: 700;
    opacity: 1 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(25, 227, 238, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    letter-spacing: 0.5px;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #00C4D4 0%, var(--accent) 100%) !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 227, 238, 0.4) !important;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .logo {
        min-width: auto;
        margin-bottom: 0;
    }

    .logo img {
        width: 50px;
        height: 40px;
    }
    .logo span {
        max-width: none;
        font-size: 1em;
    }

    .main-nav {
        gap: 10px;
        width: auto;
        justify-content: flex-end;
    }

    .nav-item .nav-link {
        font-size: 0.95rem;
        padding: 10px 14px;
    }

    .dropdown-link {
        font-size: 0.9rem;
        padding: 12px 15px;
        transition: all 0.2s ease;
    }

    .dropdown-link:hover {
        background: #EEFBFC;
    }

    .donate-btn {
        font-size: 0.95rem !important;
        padding: 10px 16px !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(25, 227, 238, 0.2);
        transition: all 0.3s ease !important;
    }

    .donate-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(25, 227, 238, 0.3) !important;
    }

    .nav-item .nav-link {
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-item .nav-link:hover {
        border-bottom-color: var(--accent);
        transform: translateY(-2px);
    }
}

@media (min-width: 1024px) {
    .logo img {
        width: 80px;
        height: 60px;
        margin-right: 15px;
    }

    .main-nav {
        gap: 12px;
    }

    .nav-item .nav-link {
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .dropdown-menu {
        min-width: 240px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

    .dropdown-link {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    .donate-btn {
        font-size: 0.95rem !important;
        padding: 10px 18px !important;
    }
}

/* Ensure both header and footer navigation links are styled properly */
.main-nav .nav-link, .footer-links .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s;
    opacity: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.main-nav .nav-link.active, .main-nav .nav-link:focus, .main-nav .nav-link:hover,
.footer-links .nav-link.active, .footer-links .nav-link:focus, .footer-links .nav-link:hover {
    background: rgba(0, 119, 190, 0.2);
    color: #007A87;
    opacity: 1;
    text-decoration: none;
}

/* Hero Section - Mobile First */
.hero {
    position: relative;
    height: 35vh;
    min-height: 200px;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,119,190,0.25);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 90%;
    padding: 15px;
}

.hero-content h2 {
    font-size: 1.25em;
    margin-bottom: 10px;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Small Mobile - 320px and up */
@media (min-width: 320px) {
    .hero {
        height: 40vh;
        min-height: 220px;
    }

    .hero-content h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .hero-content {
        max-width: 85%;
        padding: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        height: 60vh;
        min-height: 420px;
    }

    .hero-content h2 {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .hero-content {
        max-width: 800px;
        padding: 30px;
    }
}

.button, .cta.button, .see-more {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button:hover, .cta.button:hover, .see-more:hover {
    background: var(--primary-light);
    color: #fff;
}

@media (min-width: 768px) {
    .button, .cta.button, .see-more {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Main Content - Mobile First */
main {
    padding: 20px 0;
}

.section {
    padding: 25px 0;
}

.section-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Tablet */
@media (min-width: 768px) {
    main {
        padding: 30px 0;
    }

    .section {
        padding: 35px 0;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    main {
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

/* Grid for Projects - Mobile First */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

/* 2-Column Grid Layout - Mobile First */
.grid-2col {
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 640px) {
    .grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 3-Column Grid Layout - Mobile First */
.grid-3col {
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 640px) {
    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .grid-3col {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

@media (min-width: 768px) {
    .card img {
        height: 180px;
    }
}

@media (min-width: 1024px) {
    .card img {
        height: 200px;
    }
}

.card-inner {
    padding: 15px;
}

@media (min-width: 768px) {
    .card-inner {
        padding: 18px;
    }
}

@media (min-width: 1024px) {
    .card-inner {
        padding: 20px;
    }
}

.card-title {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.1em;
    }
}

@media (min-width: 1024px) {
    .card-title {
        font-size: 1.2em;
    }
}

.card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .card-desc {
        font-size: 0.9em;
    }
}

.card-desc h5 {
    color: var(--primary-dark);
    font-size: 0.95em;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 8px;
}

.card-desc ul {
    list-style-position: inside;
    padding-left: 0;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-desc li {
    margin-bottom: 6px;
    color: #333;
}

.card-desc p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.button-container {
    text-align: center;
    margin-top: 40px;
}

.see-more {
    background-color: transparent;
    color: var(--primary); /* Ocean Blue */
    border: 2px solid var(--primary);
}

.see-more:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Partners Section - Mobile First */
.partners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
}

@media (min-width: 640px) {
    .partners {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .partners {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

.partner-card {
    background: #E6FAFC; /* Light Ocean Blue background */
    padding: 15px;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .partner-card {
        padding: 18px;
    }
}

@media (min-width: 1024px) {
    .partner-card {
        padding: 20px;
    }
}

.partner-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 12px;
    background: white;
    padding: 5px;
    border: 1px solid #ddd;
}

@media (min-width: 768px) {
    .partner-card img {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
}

@media (min-width: 1024px) {
    .partner-card img {
        width: 80px;
        height: 80px;
    }
}

.partner-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary); /* Ocean Blue */
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .partner-title {
        margin-bottom: 10px;
        font-size: 1rem;
    }
}

.partner-desc {
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .partner-desc {
        font-size: 0.9rem;
    }
}

/* Footer - Mobile First */
footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 20px 0;
    margin-top: 30px;
}

.footer-inner {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: auto;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 4px;
        color: #fff;
        font-size: 0.9rem;
        line-height: 1.6;
        flex: 1 1 200px;
    }

    .footer-contact a {
        color: #fff;
        text-decoration: none;
        opacity: 0.9;
    }

    transition: all 0.2s ease;
    opacity: 0.9;
    display: block;
}

.footer-links a:hover {
    background: rgba(25, 227, 238, 0.2);
    color: #19E3EE;
    opacity: 1;
}

.footer-copyright {
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
    flex: 1 1 100%;
    order: 3;
}

.social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.social a:hover {
    background: rgba(25, 227, 238, 0.2);
    color: #19E3EE;
    opacity: 1;
}

/* Tablet */
@media (min-width: 768px) {
    footer {
        padding: 30px 0;
        margin-top: 40px;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        width: 85%;
    }

    .footer-links {
        gap: 15px;
        justify-content: flex-start;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.9rem;
        margin: 0;
    }

    .social {
        gap: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    footer {
        padding: 40px 0;
        margin-top: 50px;
    }

    .footer-inner {
        width: 80%;
    }
}

/* Contact Page Styles - Mobile First */
.contact-page {
    background-color: #fff;
    max-width: 600px;
    margin: 25px auto 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .contact-page {
        margin: 40px auto 0 auto;
        padding: 30px;
    }
}

@media (min-width: 1024px) {
    .contact-page {
        padding: 40px;
    }
}

.title {
    text-align: center;
    color: var(--primary);
    font-size: 1.5em;
    margin-bottom: 5px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
}

@media (min-width: 768px) {
    .title {
        font-size: 1.8em;
    }
}

@media (min-width: 1024px) {
    .title {
        font-size: 2em;
    }
}

.subtitle {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

.contact-details {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .contact-details {
        margin-bottom: 30px;
        font-size: 1rem;
    }
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details strong {
    color: var(--primary);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .contact-form label {
        font-size: 1rem;
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Montserrat', Arial, sans-serif;
}

@media (min-width: 768px) {
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        margin-bottom: 20px;
        font-size: 1rem;
    }
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

    .response-message {
        margin-top: 15px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .response-message.success {
        color: #2c7a7b;
    }

    .response-message.error {
        color: #c53030;
    }

    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .mission-vision-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

.mission-box, .vision-box {
    background: #EEFBFC;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .mission-box, .vision-box {
        padding: 20px;
    }
}

.mission-box h4, .vision-box h4 {
    color: var(--primary);
    font-size: 1.05em;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .mission-box h4, .vision-box h4 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
}

.mission-box p, .vision-box p {
    line-height: 1.7;
    color: #444;
    font-size: 0.9rem;
    margin: 0;
}

@media (min-width: 768px) {
    .mission-box p, .vision-box p {
        font-size: 0.95rem;
    }
}

/* Board Grid - Mobile First */
.board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 640px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .board-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

.board-member {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.board-member:hover {
    transform: translateY(-5px);
}

.board-member img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .board-member img {
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .board-member img {
        height: 250px;
    }
}

.member-info {
    padding: 12px;
}

@media (min-width: 768px) {
    .member-info {
        padding: 15px;
    }
}

@media (min-width: 1024px) {
    .member-info {
        padding: 20px;
    }
}

.member-info h4 {
    color: var(--primary);
    margin: 0 0 5px 0;
    font-size: 1em;
}

@media (min-width: 768px) {
    .member-info h4 {
        font-size: 1.05em;
    }
}

@media (min-width: 1024px) {
    .member-info h4 {
        font-size: 1.1em;
    }
}

.member-title {
    color: #007A87;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .member-title {
        font-size: 0.9rem;
    }
}

.member-bio {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .member-bio {
        font-size: 0.9rem;
    }
}

/* Policies List - Mobile First */
.policies-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 640px) {
    .policies-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .policies-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

.policy-item {
    background: #EEFBFC;
    border: 1px solid #00C4D4;
    border-radius: 6px;
    padding: 15px;
}

@media (min-width: 768px) {
    .policy-item {
        padding: 18px;
    }
}

@media (min-width: 1024px) {
    .policy-item {
        padding: 20px;
    }
}

.policy-item h4 {
    color: var(--primary);
    margin: 0 0 12px 0;
    font-size: 1em;
}

@media (min-width: 768px) {
    .policy-item h4 {
        margin: 0 0 15px 0;
        font-size: 1.05em;
    }
}

@media (min-width: 1024px) {
    .policy-item h4 {
        font-size: 1.1em;
    }
}

.policy-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .policy-item p {
        font-size: 0.95rem;
    }
}

/* History Content - Mobile First */
.history-content {
    background: #f7fbff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 4px;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .history-content {
        padding: 25px;
    }
}

@media (min-width: 1024px) {
    .history-content {
        padding: 30px;
    }
}

.history-content p {
    color: #444;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .history-content p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
}

@media (min-width: 1024px) {
    .history-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

.history-content p:last-child {
    margin-bottom: 0;
}

/* Newsletter Form - Mobile First */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
}

.newsletter-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .newsletter-form form {
        flex-direction: row;
        gap: 10px;
    }
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .newsletter-form input {
        flex: 1;
    }
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    width: 100%;
}

@media (min-width: 768px) {
    .newsletter-form button {
        width: auto;
        padding: 12px 25px;
        font-size: 1rem;
    }
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

/* Extra Mobile Optimizations */
@media (max-width: 640px) {
    /* Ensure touch targets are large enough on mobile */
    .dropdown-link {
        padding: 12px 15px;
    }
    
    .button, .cta.button, .see-more {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve readability on small screens */
    body {
        font-size: 0.95rem;
    }
}

/* News Grid and Cards */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.news-card h4 {
    font-size: 1.2em;
    color: #222;
    margin: 10px 0;
    line-height: 1.5;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--primary-dark);
    margin-left: 5px;
}

/* Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 8px;
    color: #fff;
}

.facebook-icon {
    background: #1877F2;
}

.facebook-icon:hover {
    background: #0A66C2;
    transform: scale(1.1);
}

.youtube-icon {
    background: #FF0000;
}

.youtube-icon:hover {
    background: #CC0000;
    transform: scale(1.1);
}

/* Image Loading States */
img[loading="lazy"] {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img.loaded {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Text rendering optimization */
h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Reduce CLS (Cumulative Layout Shift) */
button {
    min-height: 44px;
}

.card {
    min-height: 100px;
}

/* Clickable card title styling */
.card-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-title-link:hover .card-title {
    color: var(--primary);
    text-decoration: underline;
}

/* Gallery Grid - Mobile First */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,119,190,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 15px 15px;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-label {
    background: linear-gradient(to top, rgba(0,119,190,0.9), rgba(0,119,190,0.4));
}

.gallery-label h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: white;
}

.gallery-label p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #e0e0e0;
}

@media (min-width: 768px) {
    .gallery-item {
        min-height: 250px;
    }

    .gallery-label h4 {
        font-size: 1.1em;
    }

    .gallery-label p {
        font-size: 0.9rem;
    }
}

/* Mobile Menu Toggle Button - Mobile First */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    z-index: 101;
    line-height: 1;
    margin-left: auto;
    position: relative;
}

.mobile-menu-toggle::before {
    content: "☰";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid #19E3EE;
    outline-offset: 2px;
}

/* Hide mobile toggle on tablet and up */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.dropdown-link {
    padding: 12px 20px;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 24px;
}

@media (min-width: 768px) {
    .dropdown-link {
        padding: 12px 20px;
        border-left: 3px solid transparent;
        font-size: 0.9rem;
    }

    .dropdown-link:hover {
        background: #f8f9fa;
        color: var(--primary);
        border-left-color: var(--primary);
        padding-left: 24px;
    }
}
/* =====================================================================
   UI REFRESH — Nov 2026
   Overrides only; content, colours and branding unchanged.
   ===================================================================== */

/* Base readability */
body { line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #19E3EE; outline-offset: 2px;
}
img { max-width: 100%; }

/* Mobile menu: the closed menu was leaving a dark strip under the header */
@media (max-width: 767px) {
    .main-nav:not(.active) { padding-top: 0; padding-bottom: 0; box-shadow: none; }
    .main-nav { background: rgba(5, 34, 46, 0.97); }
    .main-nav .nav-link { padding: 12px 14px; border-radius: 8px; font-size: 1rem; }
    .main-nav .donate-btn { text-align: center; justify-content: center; margin-top: 4px; }
}
header { box-shadow: 0 2px 12px rgba(5, 34, 46, 0.12); }

/* Hero: legible text on busy photos */
.hero-overlay {
    background: linear-gradient(180deg, rgba(5, 34, 46, 0.30) 0%, rgba(5, 34, 46, 0.55) 55%, rgba(5, 34, 46, 0.78) 100%);
}
.hero-content h1, .hero-content h2 {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.18;
}
.hero-content .cta.button, .hero-content .button {
    background: linear-gradient(135deg, #19E3EE 0%, #00C4D4 100%);
    color: #111;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 196, 212, 0.35);
    min-height: 48px;
}
.hero-content .cta.button:hover, .hero-content .button:hover { filter: brightness(1.05); transform: translateY(-1px); }
@media (max-width: 767px) {
    .hero { min-height: 300px; height: 46vh; }
    .hero-content h2 { font-size: 1.45rem; }
}
@media (min-width: 1024px) {
    .hero { min-height: 480px; }
    .hero-content h2 { font-size: 2.75em; }
}

/* Section headings */
.section-title { letter-spacing: -0.01em; }
.section-title::after {
    content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
    background: #19E3EE; margin: 12px auto 0;
}
.section-subtitle { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Cards */
.card {
    border-radius: 14px;
    border: 1px solid #e3ebf3;
    box-shadow: 0 2px 10px rgba(5, 34, 46, 0.06);
    display: flex; flex-direction: column;
}
.card > a { display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(5, 34, 46, 0.12); }
.card img { aspect-ratio: 16 / 10; height: auto !important; }
.card-inner { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-title { font-size: 1.15rem; margin-bottom: 8px; }
.card-desc { color: #3d4a57; font-size: 0.95rem; line-height: 1.65; }

/* Long text clamping (enabled by js/main.js) */
.lmf-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.lmf-clamp.is-open { -webkit-line-clamp: unset; display: block; }
.lmf-more {
    align-self: flex-start; margin-top: 10px; background: none; border: 0; padding: 6px 0;
    color: var(--primary); font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit;
}
.lmf-more:hover { text-decoration: underline; }
.lmf-more-link { display: inline-block; margin-top: 10px; color: var(--primary); font-weight: 700; font-size: 0.9rem; }

/* Board */
.board-member { border-radius: 14px; border: 1px solid #e3ebf3; box-shadow: 0 2px 10px rgba(5, 34, 46, 0.06); overflow: hidden; }
.member-info h4 { margin-bottom: 4px; }
.member-title { font-weight: 700; }
.member-bio { color: #3d4a57; }
@media (min-width: 1024px) {
    .board-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 260px)) !important; justify-content: center; }
}

/* Buttons */
.button, .cta.button, .see-more { border-radius: 8px; font-weight: 700; min-height: 44px; }

/* Readable line length for long paragraphs */
.section.container > p:not(.section-subtitle) { max-width: 860px; margin-left: auto; margin-right: auto; }

/* Newsletter */
.newsletter-form input { border-radius: 8px; }
.newsletter-form button { border-radius: 8px; }

/* Footer: organised layout */
footer { background: linear-gradient(180deg, #007A87 0%, #0A2F3F 100%); }
.footer-inner {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas: "links" "contact" "social" "copy";
    gap: 22px;
    text-align: left;
}
.footer-links { grid-area: links; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.footer-links .nav-link { padding: 6px 0 !important; background: none !important; }
.footer-contact { grid-area: contact; }
.footer-contact p { margin: 0; }
.social { grid-area: social; }
.social a { width: 40px; height: 40px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50% !important; padding: 0 !important; }
.footer-copyright { grid-area: copy; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 18px; text-align: center; opacity: 0.85; }
@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr;
        grid-template-areas: "links contact" "social contact" "copy copy";
        align-items: start;
    }
    .footer-links { display: flex !important; flex-wrap: wrap; gap: 4px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .card, .card:hover, .hero-content .button { transition: none; transform: none; }
}

/* ===== Brand theme from logo (aqua #00FDFF on deep navy) — Nov 2026 ===== */
:root {
    --primary: #007A87;        /* deep aqua: text, links, buttons (AA on white) */
    --primary-dark: #0A2F3F;   /* deep navy-teal: header, footer, headings */
    --primary-light: #00C4D4;  /* bright aqua */
    --accent: #19E3EE;         /* logo aqua: highlights, CTAs on dark */
    --ink: #0F2430;
    --bg: #F5FAFB;
}
body { background: var(--bg); color: var(--ink); }
header { background: var(--primary-dark) !important; }
footer { background: linear-gradient(180deg, #0A2F3F 0%, #071C27 100%) !important; }
.section-title { color: var(--primary-dark); }
.card-title, .member-info h4, .card-title a { color: var(--primary); }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--accent); }
.donate-btn, .main-nav .donate-btn { background: var(--accent) !important; color: #0A2F3F !important; }
.donate-btn:hover { background: #fff !important; }
.button, .cta.button, .see-more { background: var(--primary); color: #fff; }
.button:hover, .cta.button:hover, .see-more:hover { background: var(--primary-dark); }
.hero-content .cta.button, .hero-content .button { background: var(--accent) !important; color: #0A2F3F !important; box-shadow: 0 6px 18px rgba(25, 227, 238, 0.3); }
.section-title::after { background: var(--accent); }
.footer-links a:hover, .social a:hover { color: var(--accent) !important; }
.hero-content h1, .hero-content h2 { color: #fff; }

/* Mobile-first touch comfort */
@media (max-width: 767px) {
    .section { padding-top: 44px; padding-bottom: 44px; }
    .section-title { font-size: 1.6rem; }
    .button, .cta.button, .see-more, .donate-button { width: 100%; text-align: center; box-sizing: border-box; }
    .hero-content .cta.button { width: auto; }
    input, select, textarea { font-size: 16px; } /* stops iOS zoom on focus */
}

/* Advisor card without photo */
.member-initials {
    height: 250px; width: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0A2F3F 0%, #007A87 100%);
    color: #19E3EE; font-size: 3.2rem; font-weight: 800; letter-spacing: 0.04em;
}
@media (max-width: 767px) { .member-initials { height: 180px; } }
.card img { object-position: center 30%; }

/* Medical camp photo gallery (health page) */
.camp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.camp-gallery img { width: 100%; height: 170px !important; aspect-ratio: auto !important; object-fit: cover; display: block; }
.camp-gallery .camp-main { grid-column: 1 / -1; height: 260px !important; object-position: center 40%; }
@media (min-width: 768px) {
    .camp-gallery img { height: 220px !important; }
    .camp-gallery .camp-main { height: 340px !important; }
}

/* Two stacked photos in one card */
.photo-stack { display: grid; gap: 4px; }
.photo-stack img { width: 100%; height: 170px !important; aspect-ratio: auto !important; object-fit: cover; display: block; }

/* Content written in the Pages CMS rich-text editor */
.cms-rich { max-width: 860px; }
.cms-rich p, .cms-rich li { line-height: 1.7; color: #3d4a57; }
.cms-rich h2, .cms-rich h3, .cms-rich h4 { color: var(--primary-dark); margin: 1.4em 0 .5em; }
.cms-rich img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.cms-rich a { color: var(--primary); font-weight: 600; }
.cms-rich ul, .cms-rich ol { padding-left: 22px; }
.cms-rich blockquote { border-left: 4px solid var(--accent); background: #EEFBFC; margin: 16px 0; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.cms-section { margin-top: 10px; }
.cms-section-media img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 18px; }
.cms-section-btn { display: inline-block; margin-top: 10px; padding: 12px 24px; border-radius: 8px; background: var(--accent); color: var(--primary-dark) !important; font-weight: 800; text-decoration: none; }
