/* CSS VARIABLES */
:root {
    --max-width: 1200px;
    --nav-height: 100px;
    --brand-color: #25646b;
    --brand-hover: #1b4a4f;
    --highlight-bg: rgba(37, 100, 107, 0.08);
    --accent-teal: #25646b;
    --accent-teal-bg: rgba(37, 100, 107, 0.12);
    --accent-gold: #cba755;
    --accent-gold-bg: rgba(203, 167, 85, 0.15);
    --accent-sage: #73a38b;
    --accent-sage-bg: rgba(115, 163, 139, 0.15);
    --accent-emerald: #2e7d32;
    --accent-emerald-bg: rgba(46, 125, 50, 0.14);
    --text-main: #2d3436;
    --text-muted: #555555;
    --white: #ffffff;
    --bg-main: #f3f6f5;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --input-bg: #f1f3f5;
    --input-focus-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dark-theme {
    --brand-color: #38a3a5;
    --brand-hover: #57cc99;
    --highlight-bg: rgba(56, 163, 165, 0.15);
    --accent-teal: #38a3a5;
    --accent-teal-bg: rgba(56, 163, 165, 0.20);
    --accent-gold: #e5bd68;
    --accent-gold-bg: rgba(229, 189, 104, 0.22);
    --accent-sage: #8ec4a8;
    --accent-sage-bg: rgba(142, 196, 168, 0.22);
    --accent-emerald: #57cc99;
    --accent-emerald-bg: rgba(87, 204, 153, 0.22);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --bg-main: #0b1315;
    --bg-card: #142124;
    --bg-header: #142124;
    --border-color: rgba(255, 255, 255, 0.08);
    --input-bg: #1e2e31;
    --input-focus-bg: #142124;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    width: 38px;
    height: 38px;
}

.theme-toggle-btn:hover {
    background-color: var(--highlight-bg);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* Toggle icons depending on current theme */
.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

.dark-theme .sun-icon {
    display: block;
}

.dark-theme .moon-icon {
    display: none;
}

/* Mobile Theme Switcher Styles */
.mobile-theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-theme-switch .theme-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-color);
}

.mobile-theme-btn {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-color);
    background-color: var(--input-bg);
}

.mobile-theme-btn .mode-text-light {
    display: none;
}

.mobile-theme-btn .mode-text-dark {
    display: inline;
}

.dark-theme .mobile-theme-btn .mode-text-light {
    display: inline;
}

.dark-theme .mobile-theme-btn .mode-text-dark {
    display: none;
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: ambientFadeIn 0.5s ease-out both;
}

@keyframes ambientFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 25px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.home-main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    padding: 20px 20px;
    gap: 20px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: clip;
}

/* --- NAVIGATION --- */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    background: var(--bg-card);
    height: var(--nav-height);
    box-shadow: var(--shadow);
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-flex {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-left, .nav-right { 
    flex: 1; 
    display: flex; 
    align-items: center; 
}

.nav-right { 
    justify-content: flex-end; 
    gap: 25px; 
}

.nav-center {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    padding: 12px 14px;
    text-decoration: none;
    color: var(--brand-color);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.has-dropdown .nav-link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.nav-item:hover .nav-link {
    background-color: var(--highlight-bg);
    transform: translateY(-2px);
}

/* --- DROPDOWN MENU --- */
.dropdown-menu {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--brand-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--highlight-bg);
}

/* --- SEARCH & LANG --- */
.search-bar {
    background: var(--input-bg);
    color: var(--text-main);
    border: 2px solid transparent;
    padding: 10px 16px;
    border-radius: 30px;
    outline: none;
    width: 140px;
    font-weight: 600;
    transition: all 0.3s;
}

.search-bar:focus { 
    border-color: var(--brand-color); 
    width: 180px; 
    background: var(--input-focus-bg); 
}

.lang-switch { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--brand-color); 
    white-space: nowrap; 
}

.lang-switch a { 
    text-decoration: none; 
    color: inherit; 
    opacity: 0.5; 
}

.lang-switch .active { 
    opacity: 1; 
}

/* --- MAIN PAGE CONTENT --- */
/* Hero (Home Page) */
.hero { 
    text-align: center; 
    padding: 120px 0; 
}

.hero h1 { 
    font-size: 3.5rem; 
    color: var(--brand-color); 
    margin-bottom: 20px; 
}

/* Sub-Page Content */
.page-header {
    background-color: var(--bg-header);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    color: var(--brand-color);
    font-size: 2.5rem;
    font-weight: 800;
}

.page-content {
    padding: 80px 0;
    flex: 1;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-main);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.content-grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color); /* Strict enforcement: no green top border */
    align-self: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- FOOTER --- */
footer {
    background-color: var(--brand-color);
    color: var(--white);
    padding: 60px 0 30px 0;
    margin-top: auto;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2.5fr 1fr 1fr 2fr; 
    gap: 40px; 
    margin-bottom: 40px; 
}

.footer-logo h2 { font-size: 1.6rem; margin-bottom: 15px; }
.footer-logo .footer-tagline { font-size: 0.95rem; opacity: 0.8; max-width: 320px; margin-bottom: 20px; }

/* Footer Contact Info */
.footer-contact {
    margin-top: 25px;
    margin-bottom: 20px;
}

.footer-contact h4 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    opacity: 0.95;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.4;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-icon-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-links h4 { 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1.5px; 
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a { 
    color: var(--white); 
    text-decoration: none; 
    opacity: 0.7; 
    font-size: 0.95rem; 
}

.footer-links ul li a:hover { opacity: 1; }

/* Footer Social & Map Styles */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--brand-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-map {
    display: flex;
    flex-direction: column;
}

.footer-map h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.map-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 30px; 
    text-align: center; 
    font-size: 0.85rem; 
    opacity: 0.5; 
}

/* --- RESPONSIVE QUERIES --- */

/* Logo styling */
.logo-img {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--brand-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation when active */
.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer Styles */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1005;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 90px 24px 24px 24px;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: none; /* Hide redundant drawer header since hamburger turns into an 'X' and handles toggling */
}

.close-btn {
    display: none; /* Hide redundant &times; close button */
}

.drawer-content {
    overflow-y: auto;
    flex: 1;
}

.mobile-search {
    margin-bottom: 30px;
}

.mobile-search .search-bar {
    width: 100%;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    display: block;
    text-decoration: none;
    color: var(--brand-color);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-has-submenu {
    border-bottom: 1px solid var(--border-color);
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--brand-color);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
    text-align: left;
}

.mobile-submenu-toggle .arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-has-submenu.active .mobile-submenu-toggle .arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding-left: 20px;
    display: none;
    margin-bottom: 10px;
}

.mobile-has-submenu.active .mobile-submenu {
    display: block;
}

.mobile-submenu li a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.mobile-submenu li a:hover {
    color: var(--brand-color);
}

.mobile-lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-top: 20px;
    color: var(--brand-color);
}

.mobile-lang-switch a {
    text-decoration: none;
    color: inherit;
    opacity: 0.5;
}

.mobile-lang-switch a.active {
    opacity: 1;
}

.mobile-lang-switch .lang-label {
    font-weight: 500;
    color: var(--text-muted);
}

/* Hide elements earlier to prevent layout breaking */
@media (max-width: 1180px) {
    #navbar {
        position: relative;
    }
    .nav-center { 
        display: none; 
    }
    .nav-right .search-container {
        display: none;
    }
    #theme-toggle-btn {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
}

/* Stack footer grid and content grid on tablet/mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-logo .footer-tagline {
        margin: 0 auto 20px auto;
    }
    .contact-item {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        padding-top: 20px;
    }
}

/* Stack content grid and sidebar on mobile */
@media (max-width: 1000px) {
    .content-grid { 
        grid-template-columns: 1fr; 
    }
}

/* --- UNDER CONSTRUCTION STYLES --- */

/* Centers the hero content vertically between nav and footer */
main.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* This ensures it pushes the footer down */
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Extra large responsive text */
    color: var(--brand-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.8;
}

.construction-tag {
    display: inline-block;
    background-color: var(--highlight-bg);
    color: var(--brand-color);
    padding: 8px 24px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 2px solid var(--brand-color);
}

.construction-line {
    width: 60px;
    height: 4px;
    background-color: var(--brand-color);
    margin: 40px auto 0;
    border-radius: 2px;
    opacity: 0.3;
}

/* =========================================
   BOARD MEMBERS & TEAM STYLES
   ========================================= */

.about-page-container {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.team-category {
    margin-top: 35px;
    margin-bottom: 30px;
}

.team-category-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.member-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    padding: 28px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    gap: 26px;
    box-sizing: border-box;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 100, 107, 0.12);
    border-color: var(--brand-color);
}

.member-card.featured-leader {
    padding: 32px 36px;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 100, 107, 0.05) 100%);
    border: 1.5px solid rgba(37, 100, 107, 0.25);
    max-width: 720px;
    gap: 30px;
}

/* The Circular Crop Profile Picture - Bigger & Refined */
.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    /* border: 4px solid rgba(37, 100, 107, 0.22); */
    background-color: var(--bg-main);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.member-card.featured-leader .member-photo {
    width: 165px;
    height: 165px;
    /* border: 4.5px solid var(--brand-color); */
    box-shadow: 0 8px 24px rgba(37, 100, 107, 0.2);
}

.member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.member-name {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
}

.member-card.featured-leader .member-name {
    font-size: 1.65rem;
}

.member-position {
    margin: 0;
    font-size: 1.08rem;
    color: var(--brand-color);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.member-tagline {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .member-grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .member-card {
        padding: 22px 20px;
        border-radius: 18px;
        gap: 20px;
    }
    .member-card.featured-leader {
        padding: 24px 22px;
        max-width: 100%;
        gap: 22px;
    }
    .member-photo {
        width: 110px;
        height: 110px;
    }
    .member-card.featured-leader .member-photo {
        width: 130px;
        height: 130px;
    }
    .member-name {
        font-size: 1.3rem;
    }
    .member-card.featured-leader .member-name {
        font-size: 1.45rem;
    }
    .member-position {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .member-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 16px;
        padding: 24px 18px;
    }
    .member-info {
        align-items: center;
    }
    .member-photo {
        width: 120px;
        height: 120px;
    }
    .member-card.featured-leader .member-photo {
        width: 135px;
        height: 135px;
    }
}

/* =========================================
   NEWS PAGE STYLES
   ========================================= */

.news-list, .events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card.has-image {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.news-thumbnail-container {
    flex: 0 0 220px;
    width: 220px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.news-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail-img {
    transform: scale(1.05);
}

.news-content-wrapper {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .news-card.has-image {
        flex-direction: column;
        gap: 20px;
    }
    .news-thumbnail-container {
        width: 100%;
        height: 180px;
        flex: none;
    }
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.news-tag {
    background-color: var(--highlight-bg);
    color: var(--brand-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date {
    color: var(--text-muted);
    font-weight: 500;
}

.news-title {
    font-size: 1.6rem;
    color: var(--brand-color);
    margin-top: 5px;
    margin-bottom: 12px;
    font-weight: 800;
}

.news-summary {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.news-expanded-content {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    border-top: 1px dashed var(--border-color);
    margin-top: 15px;
    padding-top: 10px;
}

.news-readmore-btn {
    background: transparent;
    border: none;
    color: var(--brand-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.2s ease;
}

.news-readmore-btn:hover {
    color: #1a474c;
    text-decoration: underline;
}

.news-loading, .news-empty, .news-error {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
}

/* Facebook News Feed Styles */
.fb-source-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.fb-source-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fb-source-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(24, 119, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1877F2;
    background: rgba(24, 119, 242, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.fb-source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.fb-embed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 36px;
    box-shadow: var(--shadow);
}

.fb-embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fb-plugin-wrapper {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px 0;
}

.dark-theme .fb-plugin-wrapper {
    background: #1a2729;
}

.fb-fallback-note {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--highlight-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.fb-fallback-note a {
    color: var(--brand-color);
    text-decoration: underline;
}

.fb-sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

.fb-sidebar-widget h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.fb-sidebar-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.fb-sidebar-list li svg {
    flex-shrink: 0;
    color: var(--brand-color);
    margin-top: 2px;
}

/* =========================================
   PROGRAM PAGE STYLES
   ========================================= */

.program-hero-wrapper {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.program-hero-img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.signup-submit-btn {
    background-color: var(--brand-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.signup-submit-btn:hover {
    background-color: #1a474c;
}

.signup-submit-btn:active {
    transform: scale(0.98);
}

.signup-success-box {
    background-color: #e6fcf5;
    border: 1px solid #c3fae8;
    color: #0ca678;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
}

/* =========================================
   ALL PROGRAMS IN DETAIL PAGE STYLES
   ========================================= */

.programs-quick-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0 20px 0;
    margin-bottom: 25px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.programs-quick-nav::-webkit-scrollbar {
    display: none;
}

.program-nav-pill {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.program-nav-pill:hover {
    background: var(--brand-color);
    color: #ffffff;
    border-color: var(--brand-color);
    transform: translateY(-2px);
}

.program-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    scroll-margin-top: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-detail-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.program-detail-header {
    margin-bottom: 24px;
}

.program-detail-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-color);
    background: var(--highlight-bg);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.program-detail-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--brand-color);
    line-height: 1.25;
    margin-bottom: 8px;
}

.program-detail-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.program-detail-media {
    width: 100%;
    max-height: 340px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.program-detail-media img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.program-detail-body {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 28px;
}

.program-detail-body ul {
    margin: 14px 0 20px 20px;
    padding: 0;
}

.program-detail-body li {
    margin-bottom: 8px;
    color: var(--text-main);
}

.program-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: var(--bg-main);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 26px;
}

.program-fact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.program-fact-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-color);
}

.program-fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.program-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .program-detail-card {
        padding: 24px 18px;
    }
    .program-detail-title {
        font-size: 1.45rem;
    }
    .program-facts-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PAGINATION STYLES
   ========================================= */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 15px 0;
}

.pagination-btn {
    background-color: var(--white);
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--brand-color);
    color: var(--white);
}

.pagination-btn:disabled {
    border-color: #eaeaea;
    color: #999;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.pagination-info {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

/* =========================================
   INTERACTIVE SEARCH OVERLAY STYLES
   ========================================= */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.search-overlay-card {
    position: relative;
    width: 90%;
    max-width: 700px;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 10;
    overflow: hidden;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    animation: searchSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    background-color: var(--bg-card);
}

.search-icon-svg {
    width: 22px;
    height: 22px;
    color: #888;
}

#overlay-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-family: inherit;
    color: var(--text-main);
    background: transparent;
}

.search-overlay-close-btn {
    border: none;
    background: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.search-overlay-close-btn:hover {
    color: var(--brand-color);
}

.search-overlay-results {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background-color: var(--bg-main);
}

.search-placeholder-text {
    text-align: center;
    color: #777;
    font-size: 1rem;
    padding: 40px 0;
}

.search-loading, .search-error, .search-no-results {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.search-no-results p {
    font-size: 1rem;
    margin-top: 8px;
}

.search-summary-info {
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-group {
    margin-bottom: 30px;
}

.search-group:last-child {
    margin-bottom: 10px;
}

.search-group-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--brand-color);
    border-bottom: 2px solid var(--brand-color);
    padding-bottom: 6px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-group-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    display: block;
    padding: 15px 18px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    position: relative;
}

.search-result-item:hover {
    border-color: var(--brand-color);
    background-color: var(--highlight-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.result-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.result-snippet {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.45;
    margin-bottom: 6px;
}

.result-type-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-program {
    background-color: #e3f2fd;
    color: #1565c0;
}

.type-event {
    background-color: #efebe9;
    color: #4e342e;
}

.type-news {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.search-highlight {
    background-color: rgba(254, 240, 138, 0.6);
    color: inherit;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* =========================================
   HOMEPAGE CUSTOM DESIGN STYLES
   ========================================= */

.home-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    padding: 50px 60px;
    margin-top: 10px;
    margin-bottom: 30px;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.home-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-subtitle {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-color);
    margin-bottom: 12px;
}

.home-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--brand-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 580px;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--brand-color);
    color: var(--white);
    border: 2px solid var(--brand-color);
    box-shadow: 0 4px 12px rgba(37, 100, 107, 0.2);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 100, 107, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-color);
    border: 2px solid var(--brand-color);
}

.btn-secondary:hover {
    background-color: var(--highlight-bg);
    transform: translateY(-2px);
}

.home-hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.home-hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    width: 100%;
}

.home-hero-image-wrapper:hover {
    transform: translateY(-5px);
}

.home-hero-image-wrapper.hero-logo-card {
    background: linear-gradient(145deg, #ffffff 0%, #f4f9f9 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 35px;
    min-height: 320px;
}

.home-hero-logo-placeholder {
    max-width: 88%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.08));
}

.home-hero-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.home-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.home-section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--brand-color);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.home-section-subtitle {
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Highlights Grid styling */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-color);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.highlight-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--highlight-bg);
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon-wrapper {
    background-color: var(--brand-color);
    color: var(--white);
}

.highlight-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-color);
}

.highlight-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About Split styling */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-split-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-split-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    color: var(--brand-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-split-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Partners & Sponsors Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.partner-logo-card:hover {
    border-color: var(--brand-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.partner-logo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-badge-icon {
    font-size: 1.8rem;
    color: var(--brand-color);
    display: flex;
    align-items: center;
}

.partner-badge-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.partner-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand-color);
    background-color: var(--highlight-bg);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-top: 8px;
    display: inline-block;
}

.partner-status.potential {
    color: #b45309;
    background-color: #fef3c7;
}

/* Join CTA banner */
.join-banner {
    background-color: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
}

.join-banner h3 {
    font-size: 1.8rem;
    color: var(--brand-color);
    margin-bottom: 15px;
}

.join-banner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Responsive Overrides */
@media (max-width: 990px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 30px;
    }
    .home-hero-text {
        align-items: center;
    }
    .home-hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-split-image {
        order: -1;
        height: 320px;
    }
}

@media (max-width: 576px) {
    .home-hero {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .home-section {
        padding: 60px 0;
    }
    .join-banner {
        padding: 40px 24px;
    }
}

/* =========================================
   HORIZONTAL SCROLLABLE GALLERY HERO
   ========================================= */
.gallery-showcase {
    position: relative;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.gallery-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
    padding: 0 4px;
    gap: 12px;
}

.gallery-container-wrapper {
    position: relative;
    width: 100%;
}

.gallery-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 10px 4px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-color) rgba(0, 0, 0, 0.05);
    touch-action: pan-x pan-y;
}

/* Custom scrollbar styling */
.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--brand-color);
    border-radius: 10px;
}

.gallery-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    -webkit-tap-highlight-color: transparent;
}

.gallery-card:active {
    transform: scale(0.98);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card img.gallery-card-placeholder-logo {
    width: 70%;
    height: auto;
    max-height: 55px;
    object-fit: contain;
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-card:hover img.gallery-card-placeholder-logo {
    transform: translateX(-50%) scale(1.05);
    opacity: 1;
}

.gallery-card:hover img:not(.gallery-card-placeholder-logo) {
    transform: scale(1.04);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 18, 22, 0.88) 0%, rgba(12, 18, 22, 0.38) 42%, rgba(12, 18, 22, 0) 68%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: var(--white);
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(20, 35, 40, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.gallery-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #ffffff !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: bold;
}

.gallery-nav-btn:hover {
    background-color: var(--brand-color);
    color: #ffffff;
    border-color: var(--brand-color);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav-btn.prev {
    left: -15px;
}

.gallery-nav-btn.next {
    right: -15px;
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        display: none;
    }
    .gallery-scroll-container {
        gap: 14px;
        scroll-padding: 0 4px;
    }
    .gallery-card {
        flex: 0 0 calc(85vw - 16px);
        max-width: 320px;
        min-width: 250px;
    }
    .gallery-card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .gallery-showcase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .gallery-showcase-header .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}

/* Partners Compact Auto-Scrolling Section */
.partners-section {
    margin-top: 25px;
    margin-bottom: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
}

.partners-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partners-title-block {
    text-align: center;
}

.partners-subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--brand-color);
    display: block;
    margin-bottom: 2px;
}

.partners-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.partners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    display: flex;
    /* Edge fading mask */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: partners-scroll 25s linear infinite;
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 16px;
    height: 48px;
    min-width: 150px;
    transition: all 0.25s ease;
}

.partner-item:hover {
    transform: translateY(-2px);
    border-color: var(--brand-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.partner-item img {
    height: 30px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: all 0.25s ease;
}

.partner-item:hover img {
    filter: grayscale(0%) opacity(100%);
}

@keyframes partners-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 16px 20px;
    }
    .partners-title {
        font-size: 1.2rem;
    }
    .partner-item {
        padding: 5px 12px;
        height: 42px;
        min-width: 120px;
    }
    .partner-item img {
        height: 24px;
    }
    .partners-track {
        gap: 16px;
    }
}

/* Get Involved Feature Cards & Vector Badges */
.get-involved-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.get-involved-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 100, 107, 0.25);
}

.dark-theme .get-involved-card:hover {
    border-color: rgba(56, 163, 165, 0.35);
}

.involved-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.get-involved-card:hover .involved-icon-badge {
    transform: scale(1.1);
}

.involved-icon-badge.teal {
    background: var(--accent-teal-bg);
    color: var(--accent-teal);
    border: 1px solid rgba(37, 100, 107, 0.18);
}

.involved-icon-badge.gold {
    background: var(--accent-gold-bg);
    color: var(--accent-gold);
    border: 1px solid rgba(203, 167, 85, 0.25);
}

.involved-icon-badge.sage {
    background: var(--accent-sage-bg);
    color: var(--accent-sage);
    border: 1px solid rgba(115, 163, 139, 0.25);
}

.involved-icon-badge.emerald {
    background: var(--accent-emerald-bg);
    color: var(--accent-emerald);
    border: 1px solid rgba(46, 125, 50, 0.22);
}

.involved-icon-badge svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* =========================================
   GET INVOLVED SECTION & CONNECT CARD
   ========================================= */
.get-involved-section {
    width: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-top: 25px;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.get-involved-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px;
}

.get-involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Let's Stay Connected Card */
.involved-connect-card {
    margin-top: 35px;
    padding: 26px 30px;
    border-radius: 18px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
}

.connect-info {
    flex: 1;
    min-width: 0;
}

.connect-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.25;
}

.connect-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.connect-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.connect-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-muted);
    min-width: 0;
}

.connect-detail-item a {
    color: var(--brand-color);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-all;
}

.connect-detail-icon {
    width: 18px;
    height: 18px;
    stroke: var(--brand-color);
    flex-shrink: 0;
}

.connect-action {
    flex-shrink: 0;
}

.connect-btn {
    padding: 13px 26px;
    white-space: nowrap;
}

/* =========================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    /* Viewport & Container */
    .container {
        padding: 0 16px;
    }
    
    .home-main-container {
        padding: 12px 14px;
        gap: 16px;
    }
    
    /* Hero button stacking */
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-group .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        text-align: center;
        font-size: 1rem;
        padding: 12px 20px;
    }

    /* Home Hero Layout */
    .home-hero {
        padding: 24px 16px !important;
        border-radius: 18px;
        gap: 22px;
    }
    .home-hero-text h1 {
        font-size: 1.65rem !important;
        line-height: 1.25;
        text-wrap: balance;
    }
    .home-hero-text p {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }
    .home-hero-image-wrapper.hero-logo-card {
        min-height: 190px;
        padding: 24px 16px;
        border-radius: 16px;
    }
    .home-hero-logo-placeholder {
        max-width: 80%;
        max-height: 130px;
    }

    /* Single column Get Involved cards with optimized padding */
    .get-involved-section {
        padding: 24px 16px !important;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 18px;
    }
    .get-involved-header {
        margin-bottom: 20px;
    }
    .get-involved-header h2 {
        font-size: 1.45rem !important;
        line-height: 1.25;
        text-wrap: balance;
    }
    .get-involved-header p {
        font-size: 0.95rem;
    }
    .get-involved-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .get-involved-card {
        padding: 22px 18px;
        border-radius: 16px;
    }
    .get-involved-card .btn {
        width: 100% !important;
        min-height: 48px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    /* Fixed Connect Card on mobile */
    .involved-connect-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 16px;
        gap: 18px;
        margin-top: 22px;
        border-radius: 16px;
    }
    .connect-title {
        font-size: 1.25rem;
    }
    .connect-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .connect-detail-item {
        width: 100%;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    .connect-action {
        width: 100%;
    }
    .connect-btn {
        width: 100% !important;
        min-height: 48px;
        justify-content: center;
        text-align: center;
    }

    /* News and Events Cards, Thumbnails & Overflow fixes */
    .page-content {
        padding: 25px 0 45px 0;
    }
    .content-grid {
        gap: 24px;
    }
    .main-text {
        min-width: 0;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .news-card {
        padding: 18px 16px;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .news-card.has-image {
        flex-direction: column;
        gap: 14px;
    }
    .news-thumbnail-container {
        width: 100%;
        max-width: 100%;
        height: 180px;
        flex: none;
        border-radius: 10px;
    }
    .news-content-wrapper {
        width: 100%;
        min-width: 0;
    }
    .news-title {
        font-size: 1.25rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .news-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Sidebar info cards on mobile */
    .sidebar-box {
        padding: 20px 16px;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-top: 1px solid var(--border-color); /* Strict enforcement: no green top border */
    }
    .sidebar-box h3 {
        font-size: 1.25rem;
    }
    .sidebar-box ul li {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.95rem;
    }
    .sidebar-box .btn,
    .sidebar-box .signup-submit-btn,
    .sidebar-box button[type="submit"] {
        width: 100% !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        font-size: 0.95rem;
    }
    .sidebar-box input[type="email"],
    .sidebar-box input[type="text"] {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }

    /* Team / Member Cards */
    .member-card {
        padding: 22px 18px;
        border-radius: 18px;
        gap: 18px;
    }
    .member-photo {
        width: 110px;
        height: 110px;
    }
    .member-card.featured-leader .member-photo {
        width: 125px;
        height: 125px;
    }
    .member-name {
        font-size: 1.25rem;
    }
    .member-position {
        font-size: 1rem;
    }
}

/* Hero image fills the rounded panel */
.home-hero {
    align-items: stretch;
}

.home-hero-image-container {
    align-items: stretch;
}

.home-hero-image-wrapper {
    flex: 1;
    min-height: 320px;
}

.home-hero-image-wrapper > .home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}



