/* 1. VARIABLES & RESET */
:root {
    --bg-light: #f2f1ec;
    --dark-blue: #365b6d;
    --bright-blue: #289dd2;
    --accent-gray: #c2cbcc;
    --white-alt: #f1f0eb;
    --nav-height: 112px;
}

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

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--bg-light); 
    color: var(--dark-blue); 
    line-height: 1.6; 
}

/* 2. REUSABLE LAYOUT COMPONENTS */
.container { 
    padding: 80px 10%; 
    text-align: center; 
}

.bg-alt { 
    background-color: var(--white-alt); 
    padding: 60px 10%; 
}

.btn { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 12px 30px; 
    background: var(--bright-blue); 
    color: white; 
    text-decoration: none; 
    border-radius: 5px; 
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

/* 3. NAVIGATION BAR */
.navbar {
    background-color: var(--bg-light); /* Matches #f2f1ec from logo */
    padding: 10px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    /* Subtle shadow removed for a "flatter" blend, or keep it for depth */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 92px; /* Logo artwork cropped of its padding, so this fills the banner cleanly */
    display: block;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
}

.nav-links li { 
    margin-left: 25px; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--dark-blue); /* #365b6d from scheme */
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--bright-blue); /* #289dd2 from scheme */
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--accent-gray);
    border-radius: 6px;
    padding: 3px;
}

.lang-option {
    background: transparent;
    color: var(--dark-blue);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
    color: var(--bright-blue);
}

.lang-option.active {
    background: var(--bright-blue);
    color: white;
}

/* 4. HERO SECTIONS */
.hero {
    height: auto;
    min-height: clamp(540px, 78vh, 820px);
    margin-top: var(--nav-height);
    background: url('banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.hero-overlay {
    background: rgba(54, 91, 109, 0.6);
    padding: 28px 22px;
    border-radius: 8px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.hero-overlay h1,
.about-hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-overlay p {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.hero-buttons .btn {
    margin-top: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.hero-location {
    margin-top: 20px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .hero {
        min-height: calc(100svh - var(--nav-height));
    }

    .hero-overlay {
        max-width: 540px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

.about-hero {
    background: linear-gradient(rgba(54, 91, 109, 0.8), rgba(54, 91, 109, 0.8)), url('banner.jpg') center/cover;
    min-height: 40vh;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: var(--nav-height);
}

@media (max-width: 600px) {
    .about-hero {
        padding: 40px 0;
    }
}

/* 5. CONTENT BLOCKS & GRIDS */
.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-bottom: 4px solid var(--bright-blue);
    display: flex;
    flex-direction: column;
}

.info-card .btn {
    margin-top: auto;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: left;
}

.content-block h2 {
    color: var(--bright-blue);
    margin-bottom: 20px;
}

.content-block p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* 6. RESPONSIVE DESIGN (MOBILE) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 44px; /* 44x44 touch target; padding keeps the visible icon at its original 30x25 size */
    height: 44px;
    padding: 9px 7px;
    box-sizing: border-box;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-blue);
    transition: all 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    :root {
        --nav-height: 90px;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        height: 70px; /* Scaled down so it doesn't crowd the hamburger menu */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        right: 0;
        background-color: var(--bg-light); /* Ensures menu matches on mobile */ 
        width: 100%; 
        flex-direction: column; 
        padding: 20px; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active { 
        display: flex; 
        animation: slideDown 0.3s ease-out;
    }

    .nav-links li {
        margin: 15px 0;
        margin-left: 0;
    }

    /* The dropdown menu has room to spare, so grow the lang buttons to a
       real 44px touch target here without crowding the fixed header bar. */
    .lang-switcher {
        gap: 8px;
        padding: 6px;
    }

    .lang-option {
        padding: 12px 18px;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 50px 5%;
    }

    .bg-alt {
        padding: 40px 5%;
    }
}

/* 7. ANIMATIONS */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Impact Page Specifics */
.impact-dashboard-top {
    margin-top: var(--nav-height);
}

.data-date {
    font-style: italic;
    color: var(--accent-gray);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-card h2 {
    font-size: 3.5rem;
    color: var(--bright-blue);
    margin: 10px 0;
}

.charts-placeholder {
    padding: 40px;
    border: 2px dashed var(--accent-gray);
    border-radius: 10px;
    color: var(--dark-blue);
}
/* Get Involved Page Specifics */
.involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.involved-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.involved-card:hover {
    transform: scale(1.02);
}

.involved-card h2 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.special-projects {
    margin-top: 50px;
    padding: 60px 15%;
    border-radius: 15px;
}
/* Gallery Page Specifics */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--bright-blue);
}

/* Before/After Side-by-Side */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.comparison-item p {
    font-weight: bold;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* General Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.photo-card p {
    margin-top: 10px;
    font-style: italic;
    color: var(--dark-blue);
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--accent-gray);
    margin: 60px auto;
    width: 50%;
}

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

    .slider-container {
        height: 320px;
    }
}
/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    color: var(--bright-blue);
    margin-bottom: 20px;
}

.whatsapp-btn {
    background-color: #25D366; /* Official WhatsApp Green */
}

/* Social Media Section */
.social-section {
    padding: 60px 20px;
    border-radius: 15px;
    text-align: center;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    font-size: 2.5rem;
    color: var(--dark-blue);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--bright-blue);
    transform: translateY(-5px);
}
.contact-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item .label {
    color: var(--bright-blue);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.contact-item .value span {
    font-weight: 600;
}
/* Footer Styles */
.site-footer {
    background-color: var(--bg-light); /* Matches Nav and Logo background #f2f1ec */
    padding: 60px 5% 20px 5%;
    border-top: 1px solid var(--accent-gray);
    color: var(--dark-blue);
    margin-top: 50px;
}

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

.footer-logo {
    height: 110px; /* Logo artwork cropped of its padding, so this balances above the slogan */
    margin-bottom: 20px;
}

.footer-slogan {
    font-style: italic;
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-legal {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.75;
    letter-spacing: 0.3px;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bright-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--dark-blue);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--bright-blue);
}

.footer-icons {
    display: flex;
    gap: 20px;
    font-size: 1.8rem;
}

.footer-icons a {
    color: var(--dark-blue);
    transition: transform 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.footer-icons a:hover {
    color: var(--bright-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(54, 91, 109, 0.1);
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-container {
        text-align: center;
    }
    .footer-icons {
        justify-content: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* Gallery Slider Styling - Fixed Window */
.slider-container {
    position: relative;
    max-width: 800px; /* Limits the width so it's not "massive" */
    height: 500px;    /* Sets a fixed height for a professional, uniform look */
    margin: 40px auto;
    overflow: hidden; /* This hides the images that aren't active */
    border-radius: 15px;
    background: #000; /* Black background fills any gaps for odd-sized photos */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.slider-track {
    display: flex;
    height: 100%; /* Ensures track fills the container height */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide img {
    width: 100%;
    height: 100%;
    /* CRITICAL: This scales images perfectly without stretching */
    object-fit: contain; 
    background-color: #f2f1ec; /* Matches your logo background */
}

.slide p {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    margin: 0;
    background: rgba(242, 241, 236, 0.9); /* Semi-transparent logo color */
    color: #365b6d; /* Your brand dark blue */
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

/* Slider Controls - Better Visibility */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(54, 91, 109, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-prev:hover, .slider-next:hover {
    background: #289dd2; /* Your brand bright blue */
    transform: translateY(-50%) scale(1.1);
}

/* Homepage Impact Dashboard - Spacing Fix */
.home-impact-dashboard .container {
    max-width: 1200px; /* Keeps the stats from spreading too far */
    margin: 0 auto;
    padding: 0 40px; /* Extra side padding for the whole section */
}

.dashboard-intro h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.dashboard-intro p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 60px;
}

.impact-stats-row {
    display: grid;
    /* Adjusting minmax to 220px ensures cards shrink before they overlap */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px; /* Increased from 20px to 50px for significant "breathing room" */
    margin-bottom: 60px;
    align-items: start;
}

.metric-box {
    padding: 30px 15px; /* Added internal padding to the boxes */
    background: rgba(255, 255, 255, 0.03); /* Subtle backing to define the space */
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.metric-box:hover {
    transform: scale(1.05);
}

/* Number Size Adjustment */
.metric-value {
    font-size: 3.2rem; /* Scaled down slightly to prevent horizontal overflow */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #289dd2;
    white-space: nowrap; /* Prevents "kg" or "lbs" from dropping to a new line */
}

.metric-value small {
    font-size: 1.5rem;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Label Spacing */
.metric-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    min-height: 3rem; /* Ensures labels align even if one is 2 lines and another is 1 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative Bars */
.metric-bar {
    height: 4px;
    width: 60px;
    margin: 0 auto;
    border-radius: 2px;
}

.bottle-bar { background-color: #2ecc71; }
.weight-bar { background-color: #f1c40f; }
.mission-bar { background-color: #e74c3c; }
.weight-lbs-bar { background-color: #289dd2;}

.dashboard-cta {
    margin-top: 40px;
    text-align: center;
}

.btn-impact {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 36px;
    box-shadow: 0 8px 20px rgba(40, 157, 210, 0.3);
}

@media (max-width: 600px) {
    .btn-impact {
        width: 100%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .impact-stats-row {
        gap: 30px;
    }
    .metric-value {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .impact-stats-row {
        grid-template-columns: 1fr; /* Stack vertically on small phones */
        gap: 40px;
    }
}

.mission-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar {
    background: #fdfdfd;
    padding: 25px;
    border-left: 5px solid #289dd2; /* Utila Blue Accent */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pillar h4 {
    color: #365b6d;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.1rem;
}
/* Core Values Styling */
.uic-values {
    padding: 80px 0;
    background-color: #f2f1ec;
}

.subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(40, 157, 210, 0.1);
}

.value-card ion-icon {
    font-size: 3rem;
    color: #289dd2; /* Utila Blue */
    margin-bottom: 20px;
}

.value-card h3 {
    color: #365b6d; /* Brand Dark Blue */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Homepage Instagram Feed */
.instagram-feed-section {
    padding: 80px 0;
    text-align: center;
}

.instagram-feed-header {
    max-width: 700px;
    margin: 0 auto;
}

.instagram-eyebrow {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bright-blue);
}

.instagram-feed-header h2 {
    margin: 0;
}

.instagram-profile-bar {
    max-width: 1140px;
    margin: 36px auto 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.instagram-profile-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.instagram-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.instagram-profile-text {
    display: flex;
    flex-direction: column;
}

.instagram-profile-handle {
    font-weight: 700;
    color: var(--dark-blue);
}

.instagram-profile-subtitle {
    font-size: 0.85rem;
    color: #888;
}

.btn-instagram-follow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 6px;
    background: var(--bright-blue);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-instagram-follow:hover {
    background: var(--dark-blue);
}

.instagram-feed-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}

@media (max-width: 768px) {
    .instagram-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .instagram-profile-bar {
        flex-wrap: wrap;
    }
}

.instagram-feed-grid .instagram-media {
    margin: 0 auto !important;
}

.instagram-feed-loading {
    grid-column: 1 / -1;
    color: #666;
    padding: 50px 0;
}

.ig-custom-card {
    display: block;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.ig-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}

.ig-card-username {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-blue);
}

.ig-card-date {
    font-size: 0.75rem;
    color: #999;
}

.ig-card-top ion-icon {
    margin-left: auto;
    font-size: 1.1rem;
    color: #c7c7c7;
}

.ig-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    display: block;
}

.ig-card-footer {
    padding: 12px 14px;
}

.ig-card-icons {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}

.ig-card-icons ion-icon {
    font-size: 1.3rem;
    color: #666;
}

.ig-card-caption {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #444;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-embed-clip {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dbdbdb;
    background: #fff;
}

.instagram-embed-clip .instagram-media {
    margin-top: -54px !important;
}

.instagram-fallback-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 50px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    color: #365b6d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-fallback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(40, 157, 210, 0.1);
}

.instagram-fallback-card ion-icon {
    font-size: 3rem;
    color: #289dd2;
}

/* Partners Page Specifics */
.main-partners-section,
.supporting-partners-section {
    padding: 60px 10%;
}

.main-partners-section h2,
.supporting-partners-section h2 {
    color: var(--dark-blue);
    margin-bottom: 40px;
}

/* Main Partners: 4-up on wide desktop, 2-up on medium, 1 column on mobile */
.main-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    text-align: left;
}

.partner-card {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-logo-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partner-name {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.partner-name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid var(--bright-blue);
}

.partner-name a:hover {
    color: var(--bright-blue);
}

.partner-desc {
    color: #555;
}

.partner-link {
    margin-top: auto;
    padding-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bright-blue);
    font-weight: 600;
    text-decoration: none;
}

.partner-link ion-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.partner-link:hover ion-icon {
    transform: translateX(3px);
}

.main-partners-cta {
    text-align: center;
    margin-top: 50px;
}

/* Supporting Partners: 2x2 grid on desktop/tablet */
.supporting-partners-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    align-items: stretch;
}

.supporting-partner-card {
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 15px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supporting-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.supporting-partner-logo-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    position: relative;
}

.supporting-partner-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.supporting-partner-name {
    font-size: 1.05rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.supporting-partner-role {
    font-size: 0.9rem;
    color: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-partners-grid {
        grid-template-columns: 1fr;
    }
    .supporting-partners-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Mission Photo Styling - Centered Fix */
.mission-image-container {
    margin-top: 40px;
    width: 100%;
    display: flex;         /* Creates a flex container */
    justify-content: center; /* Centers the content horizontally */
    align-items: center;     /* Centers the content vertically if needed */
}

.mission-photo {
    width: 100%;
    max-width: 900px;      /* Matches the width of your centered text */
    height: auto;
    display: block;        /* Removes bottom whitespace */
    margin: 0 auto;        /* Traditional centering backup */
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .mission-image-container {
        margin-top: 25px;
        padding: 0 15px;    /* Adds a little breathing room on phones */
    }
}

/* Announcement Banner (homepage, live from Supabase) */
.announcement-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: var(--nav-height);
    padding: 15px 10%;
    background: var(--bright-blue);
    color: white;
}

.announcement-banner[hidden] {
    display: none;
}

.announcement-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.announcement-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.announcement-meta {
    font-size: 0.85rem;
    opacity: 0.95;
}

@media (max-width: 600px) {
    .announcement-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* Volunteer Signup Form (Get Involved page) */
.volunteer-signup-section {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.volunteer-signup-section h2 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-blue);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 10px 12px;
    border: 1px solid var(--accent-gray);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-field.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.form-field.checkbox-field input {
    width: auto;
}

.form-status {
    margin-top: 15px;
    font-weight: 600;
}

.form-status-success {
    color: #2ecc71;
}

.form-status-error {
    color: #e74c3c;
}

/* Admin Dashboard */
.admin-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 5% 80px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.admin-header .logo {
    height: 90px;
}

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-impact-summary {
    margin-bottom: 30px;
}

.admin-impact-header {
    text-align: center;
    margin-bottom: 20px;
}

.admin-impact-header h2 {
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.admin-impact-subtitle {
    color: var(--dark-blue);
    opacity: 0.7;
    font-size: 0.95rem;
}

.admin-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.admin-stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bright-blue);
}

.admin-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dark-blue);
    opacity: 0.75;
}

.login-card {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.login-card h1 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    text-align: center;
}

.back-to-site-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: var(--dark-blue);
    opacity: 0.6;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-to-site-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: left;
}

.admin-section h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bright-blue);
    padding-bottom: 10px;
}

.admin-section-hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.instagram-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.instagram-slot-field {
    padding: 16px;
    border: 1px solid var(--accent-gray);
    border-radius: 8px;
}

.instagram-slot-field h3 {
    color: var(--dark-blue);
    margin-bottom: 12px;
    font-size: 1rem;
}

.instagram-image-preview {
    margin-top: 10px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--accent-gray);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--accent-gray);
    white-space: nowrap;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-delete:hover {
    opacity: 0.85;
}

.btn-checkin {
    background: var(--bright-blue);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-checkin:hover {
    opacity: 0.85;
}

.btn-checkin:disabled {
    background: var(--accent-gray);
    color: var(--dark-blue);
    cursor: default;
    opacity: 0.8;
}

.attendance-toggle {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-row input {
    width: auto;
}

.error-text {
    color: #e74c3c;
    margin-top: 10px;
}

.admin-tabs {
    display: flex;
    gap: 6px;
    background: var(--accent-gray);
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.admin-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.admin-tab.active {
    background: white;
    color: var(--bright-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-date {
    background: rgba(40, 157, 210, 0.12);
    color: var(--bright-blue);
}

.badge-location {
    background: rgba(54, 91, 109, 0.1);
    color: var(--dark-blue);
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-header .logo {
        height: 70px;
    }

    .admin-header-actions {
        justify-content: center;
        width: 100%;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .admin-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-impact-grid {
        grid-template-columns: 1fr;
    }
}

/* 7. ABOUT PAGE - TEAM */
.about-team {
    text-align: center;
}

.team-subheading {
    color: var(--bright-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin: 50px 0 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.team-photo-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
}

.team-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    display: block;
}

.team-photo-fallback {
    display: none;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--dark-blue);
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
}

.team-name {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.team-role {
    color: var(--bright-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    text-align: left;
}

.team-bio-placeholder {
    font-style: italic;
    color: #999;
    text-align: center;
    margin-bottom: 0;
}

.team-highlight {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(40, 157, 210, 0.1);
    color: var(--bright-blue);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.advisory-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.advisory-pill {
    background: var(--white-alt);
    border: 1px solid var(--accent-gray);
    color: var(--dark-blue);
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
}

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

/* Live Waste Breakdown Table (Impact page) */
.waste-breakdown-section {
    padding: 32px 0;
}

.waste-breakdown-section .impact-header {
    margin-bottom: 8px;
}

.waste-subtitle {
    font-style: italic;
}

.waste-table-wrap {
    overflow-x: auto;
    max-width: 820px;
    margin: 16px auto 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.waste-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: white;
}

.waste-table th:first-child,
.waste-table td:first-child {
    width: 40%;
}

.waste-table th:not(:first-child),
.waste-table td:not(:first-child) {
    width: 30%;
}

.waste-table th,
.waste-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--accent-gray);
}

.waste-table th {
    background: var(--dark-blue);
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.waste-table td.num,
.waste-table th.num {
    text-align: right;
    white-space: nowrap;
}

.waste-table tbody tr:hover {
    background: rgba(40, 157, 210, 0.06);
}

.waste-total-row td {
    font-weight: 700;
    border-bottom: none;
    border-top: 2px solid var(--bright-blue);
    color: var(--dark-blue);
}

@media (max-width: 600px) {
    .waste-table-wrap {
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }

    .waste-table th,
    .waste-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .waste-table th {
        font-size: 0.72rem;
    }
}

/* Garbage Journey Photo Grid (Impact page) */
.garbage-journey-section {
    padding: 32px 0;
    text-align: left;
}

.garbage-journey-section h2 {
    color: var(--bright-blue);
    text-align: center;
    margin-bottom: 20px;
}

.recycle-honduras-link {
    color: var(--bright-blue);
    font-weight: 600;
    text-decoration: none;
}

.recycle-honduras-link:hover,
.recycle-honduras-link:focus {
    text-decoration: underline;
}

.garbage-journey-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.journey-card {
    text-align: center;
}

.journey-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.journey-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-photo-wrap {
    aspect-ratio: auto;
}

.map-photo-wrap .journey-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
}

.journey-photo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: var(--dark-blue);
    color: white;
    font-size: 2.5rem;
    position: absolute;
    top: 0;
    left: 0;
}

.journey-card p {
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-blue);
}

/* Admin Waste Breakdown Tab */
.admin-table-editable .waste-input {
    width: 100%;
    min-width: 90px;
    padding: 6px 8px;
    border: 1px solid var(--accent-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
}

.admin-table-editable .waste-category {
    min-width: 140px;
}

.admin-waste-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: white;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .admin-waste-actions {
        flex-direction: column;
    }
}
