:root {
    --primary-color: #000080; /* Navy Blue */
    --primary-light: #333399;
    --primary-dark: #000050;
    --secondary-color: #ff8c00; /* Dark Orange */
    --text-color: #333333;
    --text-light: #757575;
    --bg-color: #f9fbfd;
    --white: #ffffff;
    --border-radius: 20px;
    --border-radius-lg: 40px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Subtle brand flourishes for background (faint drawn swirls/curls) */
body::before {
    content: '';
    position: fixed;
    left: -12%;
    top: -8%;
    width: 68vw;
    height: 64vh;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-100 600 C120 200 360 120 520 260 C700 420 980 360 1200 200' fill='none' stroke='%23000080' stroke-width='18' stroke-linecap='round' stroke-linejoin='round' opacity='0.06'/><path d='M-150 520 C80 320 360 260 560 340 C780 440 980 420 1200 380' fill='none' stroke='%23ff8c00' stroke-width='12' stroke-linecap='round' opacity='0.035'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-8deg);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    right: -10%;
    bottom: -10%;
    width: 60vw;
    height: 56vh;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1400 200 C1180 420 980 480 760 360 C560 260 360 200 120 140' fill='none' stroke='%23000080' stroke-width='16' stroke-linecap='round' stroke-linejoin='round' opacity='0.055'/><path d='M1300 260 C1100 360 900 420 720 420 C520 420 360 380 140 320' fill='none' stroke='%23ff8c00' stroke-width='10' stroke-linecap='round' opacity='0.03'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(10deg);
    z-index: 0;
    pointer-events: none;
}

/* Per-page randomized flourishes: different SVGs/positions per page class */
body.page-home::before {
    left: -14%; top: -6%; width: 70vw; height: 66vh; transform: rotate(-6deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-120 580 C150 200 400 140 560 300 C740 480 980 380 1220 220' fill='none' stroke='%23000080' stroke-width='20' stroke-linecap='round' opacity='0.065'/><path d='M-160 500 C90 320 380 260 560 340 C760 440 980 420 1220 380' fill='none' stroke='%23ff8c00' stroke-width='10' stroke-linecap='round' opacity='0.03'/></svg>");
}
body.page-home::after {
    right: -12%; bottom: -12%; width: 56vw; height: 50vh; transform: rotate(12deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1400 180 C1180 420 980 500 760 360 C560 260 360 200 140 140' fill='none' stroke='%23ff8c00' stroke-width='12' stroke-linecap='round' opacity='0.035'/><path d='M1300 260 C1100 360 900 420 720 420 C520 420 360 380 140 320' fill='none' stroke='%23000080' stroke-width='16' stroke-linecap='round' opacity='0.05'/></svg>");
}

body.page-about::before {
    left: -8%; top: -18%; width: 64vw; height: 68vh; transform: rotate(-14deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-200 620 C80 180 420 140 600 300 C780 480 1020 360 1300 200' fill='none' stroke='%23000080' stroke-width='18' stroke-linecap='round' opacity='0.06'/><path d='M-100 520 C100 320 380 260 560 340 C780 440 980 420 1200 380' fill='none' stroke='%23ff8c00' stroke-width='14' stroke-linecap='round' opacity='0.03'/></svg>");
}
body.page-about::after {
    right: -6%; bottom: -6%; width: 48vw; height: 44vh; transform: rotate(6deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1300 220 C1100 380 900 440 720 360 C520 280 360 220 160 160' fill='none' stroke='%23000080' stroke-width='14' stroke-linecap='round' opacity='0.045'/><path d='M1200 280 C1000 360 820 420 660 400' fill='none' stroke='%23ff8c00' stroke-width='10' stroke-linecap='round' opacity='0.025'/></svg>");
}

body.page-programs::before {
    left: -6%; top: -10%; width: 60vw; height: 56vh; transform: rotate(-4deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-80 540 C160 240 420 180 600 300 C820 440 980 360 1220 240' fill='none' stroke='%23000080' stroke-width='16' stroke-linecap='round' opacity='0.055'/><path d='M-100 480 C60 320 360 260 560 340 C760 440 980 420 1200 380' fill='none' stroke='%23ff8c00' stroke-width='12' stroke-linecap='round' opacity='0.035'/></svg>");
}
body.page-programs::after {
    right: -14%; bottom: -8%; width: 62vw; height: 58vh; transform: rotate(14deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1400 200 C1180 420 980 480 760 360 C560 260 360 200 120 140' fill='none' stroke='%23000080' stroke-width='18' stroke-linecap='round' opacity='0.05'/><path d='M1300 260 C1100 360 900 420 720 420 C520 420 360 380 140 320' fill='none' stroke='%23ff8c00' stroke-width='10' stroke-linecap='round' opacity='0.028'/></svg>");
}

body.page-gallery::before {
    left: -18%; top: -4%; width: 72vw; height: 60vh; transform: rotate(-12deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-150 600 C120 200 360 120 520 260 C700 420 980 360 1200 200' fill='none' stroke='%23ff8c00' stroke-width='20' stroke-linecap='round' opacity='0.04'/><path d='M-100 520 C80 320 360 260 560 340 C780 440 980 420 1200 380' fill='none' stroke='%23000080' stroke-width='12' stroke-linecap='round' opacity='0.045'/></svg>");
}
body.page-gallery::after {
    right: -4%; bottom: -14%; width: 54vw; height: 60vh; transform: rotate(8deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1400 220 C1180 420 980 500 760 360 C560 260 360 200 120 140' fill='none' stroke='%23000080' stroke-width='12' stroke-linecap='round' opacity='0.06'/><path d='M1300 260 C1100 360 900 420 720 420 C520 420 360 380 140 320' fill='none' stroke='%23ff8c00' stroke-width='14' stroke-linecap='round' opacity='0.03'/></svg>");
}

body.page-press::before {
    left: -10%; top: -12%; width: 66vw; height: 64vh; transform: rotate(-10deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-100 600 C120 200 360 120 520 260 C700 420 980 360 1200 200' fill='none' stroke='%23000080' stroke-width='18' stroke-linecap='round' opacity='0.05'/><path d='M-150 520 C80 320 360 260 560 340 C780 440 980 420 1200 380' fill='none' stroke='%23ff8c00' stroke-width='10' stroke-linecap='round' opacity='0.03'/></svg>");
}
body.page-press::after {
    right: -8%; bottom: -6%; width: 58vw; height: 50vh; transform: rotate(6deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1400 200 C1180 420 980 480 760 360 C560 260 360 200 120 140' fill='none' stroke='%23000080' stroke-width='14' stroke-linecap='round' opacity='0.045'/><path d='M1300 260 C1100 360 900 420 720 420 C520 420 360 380 140 320' fill='none' stroke='%23ff8c00' stroke-width='12' stroke-linecap='round' opacity='0.025'/></svg>");
}

body.page-press-jamb::before {
    left: -6%; top: -6%; width: 62vw; height: 60vh; transform: rotate(-4deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-80 540 C160 240 420 180 600 300 C820 440 980 360 1220 240' fill='none' stroke='%23ff8c00' stroke-width='18' stroke-linecap='round' opacity='0.035'/><path d='M-100 480 C60 320 360 260 560 340 C760 440 980 420 1200 380' fill='none' stroke='%23000080' stroke-width='12' stroke-linecap='round' opacity='0.05'/></svg>");
}
body.page-press-jamb::after {
    right: -10%; bottom: -10%; width: 60vw; height: 56vh; transform: rotate(10deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1400 200 C1180 420 980 480 760 360 C560 260 360 200 120 140' fill='none' stroke='%23000080' stroke-width='16' stroke-linecap='round' opacity='0.05'/><path d='M1300 260 C1100 360 900 420 720 420 C520 420 360 380 140 320' fill='none' stroke='%23ff8c00' stroke-width='10' stroke-linecap='round' opacity='0.03'/></svg>");
}

body.page-contact::before {
    left: -12%; top: -10%; width: 68vw; height: 62vh; transform: rotate(-9deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M-100 600 C120 200 360 120 520 260 C700 420 980 360 1200 200' fill='none' stroke='%23ff8c00' stroke-width='16' stroke-linecap='round' opacity='0.038'/><path d='M-150 520 C80 320 360 260 560 340 C780 440 980 420 1200 380' fill='none' stroke='%23000080' stroke-width='14' stroke-linecap='round' opacity='0.048'/></svg>");
}
body.page-contact::after {
    right: -6%; bottom: -12%; width: 52vw; height: 54vh; transform: rotate(7deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><path d='M1400 200 C1180 420 980 480 760 360 C560 260 360 200 120 140' fill='none' stroke='%23000080' stroke-width='12' stroke-linecap='round' opacity='0.05'/><path d='M1300 260 C1100 360 900 420 720 420 C520 420 360 380 140 320' fill='none' stroke='%23ff8c00' stroke-width='10' stroke-linecap='round' opacity='0.028'/></svg>");
}

/* ensure main content stacks above flourishes */
header, section, .page-header, footer {
    position: relative;
    z-index: 1;
}

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

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 90px;
    width: auto;
    border-radius: 0;
    transition: var(--transition);
}

/* Shrink header/navbar when scrolling to save vertical space */
header.header--small {
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

header.header--small .navbar {
    padding: 0.35rem 5%;
}

header.header--small .logo img {
    max-height: 52px;
}

header.header--small .nav-links a {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

header.header--small .cta-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

@media (max-width: 768px) {
    .logo img {
        max-height: 70px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

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

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

.cta-btn {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--white);
    opacity: 0.2;
    z-index: -1;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 202, 40, 0.5);
}

.cta-btn:hover::before {
    width: 100%;
}

/* Mobile Menu */
.mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-btn:hover {
    background-color: rgba(0, 0, 128, 0.1);
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .nav-links a:hover {
        background-color: rgba(0, 0, 128, 0.05);
    }

    .mobile-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .cta-btn {
        display: none; /* Hide CTA button on mobile, or adjust as needed */
    }
}

/* Responsive Video */
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.about-section video {
    width: 100%;
    height: auto;
}

.video-section {
    text-align: center;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-wrapper video {
    border-radius: 0;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 6rem 5% 4rem;
    background: transparent;
    color: var(--white);
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    margin-bottom: 4rem;
    overflow: hidden;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,80,0.18) 0%, rgba(51,51,153,0.16) 60%, rgba(255,140,0,0.16) 100%);
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    z-index: -2;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: auto;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    color: #fff;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.hero-controls button {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-controls button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.hero-controls button i {
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 5% 2rem;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
    }
    .hero-video {
        position: relative;
        height: 50vh;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
        z-index: 1;
        border-radius: var(--border-radius);
        overflow: hidden;
    }
    .hero-video video {
        object-fit: contain;
        border-radius: 0;
    }
    .hero-content {
        margin-top: 1rem;
        text-align: center;
        z-index: 2;
    }
    .hero h1 {
        font-size: 1.5rem;
        background: none;
        padding: 0;
        border-radius: 0;
        text-shadow: none;
        color: var(--primary-dark);
        line-height: 1.3;
    }
    .shape {
        display: none;
    }
    .hero-controls {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        width: auto;
        background: rgba(255,255,255,0.96);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        border-radius: 28px;
        z-index: 99999;
        pointer-events: auto !important;
        touch-action: manipulation;
        box-shadow: 0 20px 45px rgba(0,0,0,0.35);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .hero-controls button {
        background: rgba(0,0,0,0.95);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.75);
        border-radius: 14px;
        padding: 0.75rem 0.9rem;
        min-width: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        pointer-events: auto !important;
    }
    .hero-controls button:active {
        background: rgba(255,255,255,0.2);
        transform: scale(0.95);
    }
    .hero-content {
        order: 3;
    }
    .hero::after,
    .hero::before {
        display: none;
    }
}
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255,255,255,0.2);
}

/* Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    opacity: 0.15;
    top: -50px;
    left: -50px;
    filter: blur(50px);
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    opacity: 0.1;
    bottom: -100px;
    right: -100px;
    filter: blur(60px);
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    opacity: 0.1;
    top: 20%;
    right: 15%;
    filter: blur(40px);
    animation-delay: 4s;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 5% 2rem;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
    }
    .hero-video {
        position: relative;
        height: 50vh;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
        z-index: 1;
        border-radius: var(--border-radius);
        overflow: visible;
    }
    .hero-video video {
        object-fit: contain;
        border-radius: 0;
    }
    .hero-content {
        margin-top: 1rem;
        text-align: center;
        z-index: 2;
    }
    .hero h1 {
        font-size: 1.5rem;
        background: none;
        padding: 0;
        border-radius: 0;
        text-shadow: none;
        color: var(--primary-dark);
        line-height: 1.3;
    }
    .shape {
        display: none;
    }
    .hero-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        width: 100%;
        background: var(--primary-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
    }
    .hero-controls button {
        background: rgba(255,255,255,0.1);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 6px;
        padding: 0.4rem 0.6rem;
        cursor: pointer;
        transition: var(--transition);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        font-size: 0.9rem;
    }
    .hero-controls button:active {
        background: rgba(255,255,255,0.2);
        transform: scale(0.98);
    }
    .hero-content {
        order: 3;
    }
    .hero::after,
    .hero::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-video {
        height: 40vh;
    }
    .hero h1 {
        font-size: 1.2rem;
    }
}

/* Common Section Styles */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-title span {
    display: block;
    width: 60px;
    height: 5px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 10px;
    transition: var(--transition);
}

.section-title:hover span {
    width: 100px;
}

/* Features/Services */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 128, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(0,0,80,0.95), rgba(255,140,0,0.9)), url('image/EMV_3106.jpg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 5% 4rem;
    color: var(--white);
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 4rem;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(5deg);
    transition: var(--transition);
}

.about-image video {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(5deg);
    transition: var(--transition);
}

.about-image:hover img {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.about-image:hover video {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}
.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Program Row */
.program-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.program-row:nth-child(even) {
    flex-direction: row-reverse;
}

.program-img {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: 20px;
}

.program-img img {
    border-radius: 20px;
    height: 300px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-row:hover .program-img img {
    transform: scale(1.1);
}

.program-text {
    flex: 1;
    min-width: 300px;
}

.program-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-text ul {
    list-style: none;
    margin-top: 1rem;
}

.program-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.program-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Team/Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background-color: var(--primary-dark);
}

.value-card:hover h3, .value-card:hover p {
    color: var(--white);
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 0;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 5% 1rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.recent-activity-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
    min-height: 460px;
}

.recent-hero-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(0, 66, 183, 0.9), rgba(255, 140, 0, 0.9));
    aspect-ratio: 16 / 9;
    max-height: 400px;
    width: 100%;
}

.recent-hero-item video,
.recent-hero-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
}

.recent-item-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 0.97rem;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

.recent-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.recent-video-controls button {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.recent-video-controls button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.recent-activity-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    grid-auto-rows: 220px;
    gap: 1rem;
}

.activity-tile {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

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

.activity-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tile-span-2 {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .recent-activity-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .recent-hero-item {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    .recent-activity-tiles {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        grid-auto-rows: 180px;
    }
    .tile-span-2 {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .recent-activity-layout {
        gap: 1rem;
    }
    .recent-hero-item {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    .recent-activity-tiles {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .activity-tile {
        min-height: auto;
    }
    .recent-video-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        width: 100%;
        background: var(--primary-dark);
        padding: 0;
    }
    .recent-video-controls button {
        flex: 1 1 0;
        max-width: 120px;
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero {
        display: block;
        min-height: 50vh;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }
    .hero .shape {
        display: none;
    }
    .hero::after {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        opacity: 0.8;
    }
    .hero-video {
        height: 50vh;
    }
    .hero-content {
        display: none;
    }
    .about-section, .program-row, .program-row:nth-child(even) {
        flex-direction: column !important;
    }
    .about-image img { transform: none; }
    .about-image video { transform: none; max-height: 300px; }
    /* ensure Community Water Projects video appears above the text on small screens */
    .water-projects .about-image {
        order: -1;
        margin-bottom: 1rem;
    }
    .nav-links {
        pointer-events: none;
    }
    .nav-links.active {
        pointer-events: auto;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .gallery-item {
        height: auto;
    }
    .gallery-item--tall {
        grid-row: auto;
    }
    .gallery-item img,
    .gallery-item video {
        height: auto;
        max-height: 60vw;
        object-fit: cover;
    }
}
