/*************************************/
/************ GLOBAL CSS *************/
/*************************************/
:root {
    --primary-color: #6eb171;
    --secondary-color: #317746;
    --background-color: #f9f9f9;
    --text-color: #333;
    --hover-color: #555;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --animation-timing: 0.3s ease-in-out;

    /* Light-mode equivalents of the dark-mode-only tokens below.
       These were previously undefined outside .dark-mode, which meant
       .newsletter / .merchandise-card / .modal-content silently lost
       their background, shadow and hover colors in light mode. */
    --card-background: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --primary-hover-color: var(--secondary-color);
    --input-background: #ffffff;
    --text-muted: #666666;
    --input-hover-border: var(--border-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: auto;
}

body {
    width: 100vw;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color var(--animation-timing), color var(--animation-timing);
}

body.dark-mode {
    --background-color: #191919;
    --card-background: #1ec029;
    --primary-background: #121212;
    --input-background: #000000;
    --text-color: #FFFFFF;
    --text-muted: #DDDDDD;
    --input-hover-border: #DDDDDD;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/*************************************/
/********** HEADER (NAVBAR) **********/
/*************************************/
header {
    background: #fff;
    height: fit-content;
    width: fit-content;
    display: flex;
    justify-content: center;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999 !important;
    padding: 0.4em 0;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.main {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.lower {
    padding: 0.01% 4vw;
    display: flex;
    justify-content: space-around !important;
    align-items: center !important;
    width: 65vw !important;
    gap: 1rem !important;
}

.image {
    display: flex !important;
    align-items: center !important;
}

/* Logo */
.logoContainer {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.logoContainer img {
    margin: 0 !important;
    height: 70px;
    width: 70px;
}

.logo {
    transition: opacity 0.3s ease;
    margin: 0 !important;
    height: auto;
    width: 70px;
}

.light-logo {
    display: inline;
}

.dark-logo {
    display: none;
}

body.dark-mode .light-logo {
    display: none;
}

body.dark-mode .dark-logo {
    display: inline;
}

.socials {
    display: flex;
    padding: 0 3%;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 4%;
    width: fit-content !important;
}

.socials svg {
    color: #000;
}

.desktopBtn {
    display: flex;
}

.mobileBtn {
    display: none !important;
    flex-direction: column !important;
    justify-content: left !important;
    align-items: center !important;
    padding: 0 !important;
}

.navBtn {
    white-space: nowrap;
    margin: 0 !important;
}

/* Navbar */
.navbar {
    position: static !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2vw !important;
    width: fit-content !important;
    margin: 0 !important;
    padding: 0;
    padding-left: 10% !important;
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: black;
    font-weight: 400;
    display: inline-block;
    transition: color var(--animation-timing);
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgb(48, 150, 65);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--animation-timing);
}

.navbar a:hover,
.navbar a.active {
    color: rgb(44, 117, 22);
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: scaleX(1);
}

/* Mobile menu trigger + drawer */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu {
    position: fixed;
    top: 10%;
    left: -100%;
    width: 75%;
    height: 100vh !important;
    background: white;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: left 0.4s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.menu-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.mobile-menu a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: rgb(56, 133, 136);
}

/* Theme toggle button */
#themeToggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.themeIcon {
    transition: transform 0.3s ease;
}

body.dark-mode .themeIcon {
    transform: rotate(180deg);
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
.donate-btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 6px var(--primary-color);
    border-radius: 4px;
}

input:focus,
textarea:focus {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 4px var(--primary-color);
}

.navbar a:focus::after {
    transform: scaleX(1);
    background: var(--primary-color);
}

/*************************************/
/*********** HERO SECTION ************/
/*************************************/
.mainbox {
    min-height: 630px;
    width: 100%;
    background-color: rgb(223, 234, 219);
    display: flex;
    align-items: center;
    flex-direction: column-reverse;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 20px;
    margin-top: 100px;
    text-align: center;
}

.text-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    order: 2;
    margin: 0 auto;
    padding: 10px 0;
}

.text-content p {
    font-size: 2.2rem;
    margin: 3px 0;
    color: #333;
    line-height: 1;
    font-family: 'Times New Roman', Times, serif;
}

#heading {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: bold;
    color: #000;
    margin-bottom: 1px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.subsection {
    font-size: 1.4rem !important;
}

#text {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.5;
    margin-top: 15px;
    margin-bottom: 10px;
}

.donate-btn {
    margin: 25px auto 0;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    max-width: fit-content;
    transition: background-color var(--animation-timing), transform var(--animation-timing);
}

.donate-btn:hover {
    transform: scale(1.03);
    background-color: var(--secondary-color);
}

.img-slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-left: 20px;
}

.img-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.img-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateX(20px) scale(0.95);
    filter: brightness(0.9);
}

.img-slider img:first-child {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: brightness(1);
}

@media (max-width: 768px) {
    .img-slider {
        height: 250px;
    }

    .img-slider-container {
        margin-left: 0;
        margin-top: 20px;
    }
}

/*************************************/
/********** DONATION CARDS ***********/
/*************************************/
.third {
    padding: 60px 0 20px;
}

.cards {
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    display: flex;
    gap: 2vw;
}

.card1 {
    justify-content: flex-start;
    background-color: var(--card-background);
    color: var(--text-color);
    width: 280px;
    height: fit-content;
    border-radius: 16px;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--animation-timing), box-shadow var(--animation-timing);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

.card1:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card1 p,
.card1 h3 {
    margin: 0;
    color: var(--text-color);
}

.circle {
    border-radius: 50%;
    background-color: white;
    color: #212529;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

#donate {
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: var(--text-muted);
    margin-top: 8px;
}

.card1 h3 {
    font-weight: bold;
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.card1 p a.details-link {
    font-size: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    margin-top: 0;
    background-color: var(--background-color);
    border-radius: 8px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    text-align: left;
}

.collapsible-content.active {
    max-height: 600px;
    padding: 15px;
    margin-top: 10px;
}

/*************************************/
/********** POVERTY SECTION **********/
/*************************************/
.sad {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding: 0 20px;
}

.poverty {
    flex: 1 1 400px;
    max-width: 500px;
}

.para {
    flex: 1 1 400px;
    max-width: 600px;
}

.para h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.para p {
    line-height: 1.6;
    font-size: 1.1rem;
}

.button {
    margin-top: 25px;
    display: flex;
    align-items: center;
}

.povert {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/*************************************/
/********** EVENTS SECTION ***********/
/*************************************/
.fourth {
    margin-top: 40px;
    height: fit-content;
    background-color: var(--background-color);
    padding-bottom: 20px;
}

.events {
    margin-top: 60px;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.events-cards2 {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.events-rightcards {
    flex: 1;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
    max-width: 600px;
}

.events-rcard {
    background-color: var(--card-background);
    padding: 20px 25px;
    border-left: 6px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(25, 25, 25, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.events-rcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.events-image {
    width: 100%;
    margin-bottom: 20px;
}

.events-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.events-text1 h6 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.events-text1 p {
    margin: 10px 0;
    color: var(--text-color);
    line-height: 1.5;
}

.events-icon-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.events-icon-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}

.events-icon-text span {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.events-icon-text h6 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.events-icon-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .events-cards2 {
        flex-direction: column;
        align-items: center;
    }
}

.head2 {
    width: 100%;
    line-height: 1;
    justify-content: center;
    text-align: center;
}

#upper {
    font-size: 1.4rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    line-height: 2;
    opacity: 0.7;
}

.head2 p {
    font-size: 2.8rem;
    font-weight: 600;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.1;
}

@media only screen and (max-width: 480px) {
    .head2 p {
        font-size: 1.8rem !important;
    }

    #upper {
        font-size: 1.2rem !important;
    }
}

/*************************************/
/******* INFORMATION BANNER *********/
/*************************************/
.horizontal {
    width: 100%;
    height: 200px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(transparent 40%, rgb(216, 231, 234) 40%) no-repeat;
    margin-top: 60px;
}

.bar {
    background-color: var(--card-background);
    height: 200px;
    width: 80%;
    margin: 0 auto;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cont1 {
    height: 200px;
    width: 300px;
    background-color: var(--card-background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cont1 h1 {
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
    color: var(--secondary-color);
}

@media only screen and (max-width: 768px) {
    .horizontal,
    .bar {
        margin: 60px auto 0 !important;
        width: 90% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap;
        gap: 20px;
        height: auto !important;
        padding: 20px 0;
    }

    .cont1 {
        width: auto !important;
        min-width: 140px;
        margin: 10px !important;
    }
}

/*************************************/
/*********** NEWS SECTION ************/
/*************************************/
/* Horizontally scrollable strip of past-event cards. Desktop keeps the
   original card width; it only scrolls once there are more cards than
   fit on screen. On mobile each card takes up almost the full viewport
   width so the content stays readable, with scroll-snap so cards land
   cleanly. */
.cards3 {
    display: flex;
    align-items: stretch;
    gap: 1.25em;
    width: 100%;
    margin-top: 50px;
    padding: 10px 20px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.cards3::-webkit-scrollbar {
    height: 8px;
}

.cards3::-webkit-scrollbar-track {
    background: transparent;
}

.cards3::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.leftcard1 {
    flex: 0 0 340px;
    max-width: 340px;
    height: fit-content;
    overflow: hidden;
    margin: 0;
    scroll-snap-align: start;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 15px;
    border-radius: 16px;
    background: var(--card-background);
}

.leftcard1 img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.leftcard1 .padding {
    padding: 4px 16px 16px;
}

@media (max-width: 768px) {
    .cards3 {
        margin-bottom: 20px;
        padding: 10px 16px 16px;
        gap: 14px;
    }

    .leftcard1 {
        flex: 0 0 88%;
        max-width: 420px;
        scroll-snap-align: center;
    }
}

/*************************************/
/************** FOOTER ***************/
/*************************************/
.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.footer p,
.footer ul,
.footer a {
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    color: #ccc;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.footer-socials a {
    color: #ccc;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 14px;
    color: #aaa;
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 900;
}

#scrollToTop.show {
    opacity: 1;
    transform: scale(1);
}

.arrow {
    font-size: 20px;
    color: white;
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 4;
}

#progress {
    stroke: white;
    stroke-width: 4;
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.2s;
}

/*************************************/
/************ NEWSLETTER *************/
/*************************************/
.newsletter {
    background: var(--card-background);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    margin: 40px auto;
    max-width: 900px;
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.newsletter form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background: var(--input-background);
    color: var(--text-color);
}

.newsletter button {
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background var(--animation-timing);
}

.newsletter button:hover {
    background: var(--primary-hover-color);
}

/*************************************/
/********** MERCHANDISE **************/
/*************************************/
.merchandise-section {
    padding: 40px 20px;
    background-color: var(--background-color);
}

.merchandise-section .heading,
.merchandise-heading {
    text-align: center;
    margin-bottom: 10px;
}

.merchandise-section .heading h1,
.merchandise-heading h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.merchandise-section .heading p,
.merchandise-heading p {
    color: var(--text-muted);
}

.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.merchandise-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform var(--animation-timing), box-shadow var(--animation-timing);
}

.merchandise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.merchandise-image {
    height: 220px;
    overflow: hidden;
}

.merchandise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.merchandise-card:hover .merchandise-image img {
    transform: scale(1.05);
}

.merchandise-content {
    padding: 20px;
}

.merchandise-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.merchandise-content .description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.merchandise-content .description ol {
    padding-left: 18px;
}

.merchandise-footer {
    display: flex;
    justify-content: flex-end;
}

.price-button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--animation-timing);
}

.price-button:hover {
    background: var(--primary-hover-color);
    transform: scale(1.05);
}

.payment-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--background-color);
}

.merchandise-card.active .payment-dropdown {
    max-height: 420px;
    padding: 0 20px 20px;
}

.payment-instructions h4,
.transaction-verification h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.instruction {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.instruction .label {
    font-weight: bold;
    width: 80px;
}

.instruction .value {
    color: var(--text-muted);
}

.transaction-code {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--input-background);
    color: var(--text-color);
}

.verify-button {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.verify-button:hover {
    background: var(--primary-hover-color);
}

.verification-status {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

@media (max-width: 480px) {
    .merchandise-grid {
        grid-template-columns: 1fr;
    }
}

/*************************************/
/*********** PARTNERS STRIP **********/
/*************************************/
/* Continuously auto-scrolling row of partner cards. Markup: duplicate the
   slide list once inside .partners-track so the loop from
   translateX(-50%) back to 0 is seamless — mark the duplicate copy's
   images aria-hidden="true". Hover/focus pauses it so people can read a
   caption. */
.partners-section {
    padding: 20px 0 40px;
    overflow: hidden;
}

.partners-track-wrap {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.partners-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    padding: 1rem 0;
    animation: partners-scroll 34s linear infinite;
}

.partners-track:hover,
.partners-track:focus-within {
    animation-play-state: paused;
}

.partner-slide {
    flex: 0 0 auto;
    width: 160px;
    text-align: center;
}

.partner-slide img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(40%);
    transition: filter var(--animation-timing);
}

.partner-slide:hover img {
    filter: grayscale(0%);
}

.partner-slide p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    line-height: 1.3;
}

@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partner-slide {
        width: 130px;
    }

    .partner-slide img {
        height: 90px;
    }

    .partners-track {
        gap: 1rem;
        animation-duration: 22s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .partner-slide {
        scroll-snap-align: start;
    }
}

/*************************************/
/******** EVENT & GALLERY CARDS ******/
/*************************************/
/* Shared card grid for "Upcoming Events", "Past Events", and the news
   grid. Unlike a Bootstrap .row/.col-md-4 (which pins a partial row to
   the left), this centers the cards as a group — 1 card sits centered,
   2 sit centered side by side, a full set wraps into as many centered
   rows as needed. Every card gets the same width. */
.event-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.event-col {
    display: flex;
    flex: 1 1 320px;
    max-width: 360px;
}

.event-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-8px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-card .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.event-card .card-body > *:last-child {
    margin-top: auto;
}

.event-card .btn,
.btn-cai-green {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
}

.event-card .btn:hover,
.btn-cai-green:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-cai-blue {
    background-color: #17a2b8;
    border: none;
    color: #fff;
}

.btn-cai-blue:hover {
    background-color: #128294;
    color: #fff;
}

/* Auto-rotating image carousel used inside event cards. */
.custom-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-inner img.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .event-grid {
        gap: 20px;
    }

    .event-col {
        flex: 1 1 100%;
        max-width: 420px;
    }
}

/*************************************/
/*********** HERO BANNER *************/
/*************************************/
.hero-banner {
    background-color: #1f3d2b; /* shows if the image fails to load */
    background-image:
        linear-gradient(rgba(0, 10, 0, 0.55), rgba(0, 0, 10, 0.55)),
        url('/assets/activities/med2-min-min.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    padding: 130px 20px 80px;
    text-align: center;
    margin-top: 0;
    }
    
    /* Optional: a smaller file for phones (create it first, about 800px wide) */
    @media (max-width: 768px) {
        .hero-banner {
            background-image:
                linear-gradient(rgba(0, 0, 10, 0.55), rgba(0,10, 0, 0.55)),
                url('/assets/activities/ictor.jpg');
            padding: 110px 16px 60px;
        }
    }

.hero-banner h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.hero-banner .lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.hero-banner .btn-cai-green {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.cai-bg-green {
    background-color: var(--primary-color);
}

/*************************************/
/************ NEWS PAGE **************/
/*************************************/
.news-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('../assets/indeximages/mangu\ compound.jpeg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 140px 20px 70px;
    text-align: center;
}
.intro1 {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.news-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.news-hero .lead {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.95;
}

.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.webinar-section {
    background: var(--secondary-color);
    padding: 50px 20px;
}

.webinar-section .section-title {
    color: #fff;
}

.webinar-section .section-title::after {
    background: #fff;
}

.webinar-card {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1.8rem;
    color: #fff;
    text-align: center;
}

.webinar-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.newsletter-dark {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-inner input {
    border: none;
    font-size: 1rem;
}

/*************************************/
/******* MISSION / VIDEO SECTION *****/
/*************************************/
.mission-statement {
    background-color: var(--card-background);
    padding: 60px 20px;
}

.mission-statement h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.mission-statement p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*************************************/
/*********** ABOUT: INTRO ************/
/*************************************/
main.page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 130px 2rem 2rem;
}

main.page section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* These two sections build their own card-per-item look (mission/vision
   panels, merchandise cards), so they opt out of the section-level card
   treatment above instead of wrapping everything in a second card. */
main.page section.mission-vision-container {
    background: none;
    box-shadow: none;
    padding: 0;
}

main.page section.merchandise-section {
    background: none;
    box-shadow: none;
    padding: 2rem 0;
}

main.page h2 {
    color: var(--secondary-color);
    font-size: 2.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

main.page h3 {
    color: var(--secondary-color);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

main.page h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 1.2rem 0 0.5rem;
}

@media (max-width: 600px) {
    main.page {
        padding-top: 110px;
    }
}

.intro {
    text-align: center;
}

.intro img {
    width: 60%;
    max-width: 600px;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
}

.intro p {
    font-style: italic;
    color: var(--text-muted);
}

.mission-vision-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-vision-container .mission,
.mission-vision-container .vision {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.mission-vision-container img {
    width: 40%;
    border-radius: 8px;
    object-fit: cover;
}

.story {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.story img {
    width: 30%;
    border-radius: 8px;
    object-fit: cover;
}

.story-content ul {
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}

.story-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .mission-vision-container .mission,
    .mission-vision-container .vision,
    .story {
        flex-direction: column;
    }

    .mission-vision-container img,
    .story img {
        width: 100%;
    }

    .intro img {
        width: 100%;
    }
}

/*************************************/
/*********** PARTNERS (ABOUT) ********/
/*************************************/
/* Continuously auto-scrolling row of partner cards used on about.html.
   Markup: the slide list appears twice inside .slideshow so the loop
   from translateX(-50%) back to 0 is seamless — the duplicate copy's
   images are aria-hidden. Hover/focus pauses it so people can read a
   caption. (Same idea as .partners-track above, kept as separate,
   differently-named classes because that's what about.html's markup
   already uses.) */
.partners {
    text-align: center;
}

.slideshow-wrap {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.slideshow {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    padding: 1rem 0;
    animation: partners-scroll 34s linear infinite;
}

.slideshow:hover,
.slideshow:focus-within {
    animation-play-state: paused;
}

.slide {
    flex: 0 0 auto;
    width: 160px;
    text-align: center;
}

.partner-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.partner-description {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .slide {
        width: 130px;
    }

    .partner-image {
        height: 90px;
    }

    .slideshow {
        gap: 1rem;
        animation-duration: 22s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slideshow {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .slide {
        scroll-snap-align: start;
    }
}

/*************************************/
/*********** TEAM SECTION ************/
/*************************************/
.team-section {
    text-align: center;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 240px;
    max-width: 240px;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin: 0 auto 1rem;
    display: block;
}

.member-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

.member-role {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.member-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .team-member {
        flex: 1 1 100%;
        max-width: 320px;
    }
}

/*************************************/
/*********** CONTACT PAGE ************/
/*************************************/
.contact-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 20px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.contact-hero span {
    color: var(--primary-color);
}

.subheading {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.contact-box,
.form-box {
    flex: 1 1 320px;
    background: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.contact-box h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 14px 0 4px;
}

.contact-box h3:first-child {
    margin-top: 0;
}

.contact-box h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.contact-box p {
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--animation-timing), transform var(--animation-timing);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-box input,
.form-box textarea {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-background);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

.form-box textarea {
    min-height: 130px;
    resize: vertical;
}

.form-box button {
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--animation-timing);
}

.form-box button:hover {
    background: var(--secondary-color);
}

#success-message {
    display: none;
    background: var(--primary-color);
    color: white;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.info-card {
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform var(--animation-timing);
}

.info-card:hover {
    transform: translateY(-6px);
}

.info-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.info-card h4 {
    margin-bottom: 8px;
    color: #1a1a1a;
}

.info-card a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    max-width: 1100px;
    margin: 0 auto 20px;
}

.map iframe {
    width: 100%;
    display: block;
}

@media (max-width: 600px) {
    .contact-hero {
        padding-top: 110px;
    }
}

/*************************************/
/*********** MEDIA QUERIES ***********/
/*************************************/
@media only screen and (max-width: 905px) {
    .navBtn {
        font-size: 70% !important;
    }

    .lower {
        width: 65vw !important;
    }

    .navbar a {
        font-size: 0.9rem !important;
    }
}

@media only screen and (min-width: 769px) {
    .menu-icon,
    .mobile-menu {
        display: none !important;
    }

    .mainbox {
        flex-direction: row;
        flex-wrap: wrap;
        text-align: left;
        padding: 80px 40px;
    }

    .text-content {
        order: 1;
        flex: 1 1 420px;
        padding-right: 40px;
    }

    .img-slider-container {
        order: 2;
        flex: 1 1 380px;
        margin: 20px 0 0;
    }

    #heading {
        font-size: 4rem;
    }

    .text-content p {
        font-size: 3rem;
    }
}

/* Between roughly 769px and 1050px there isn't quite enough room for the
   4rem heading + a 500px-wide image side by side without one of them
   getting squeezed — so at that width the hero stacks instead of
   crowding, rather than silently overflowing/clipping. */
@media only screen and (min-width: 769px) and (max-width: 1050px) {
    .mainbox {
        flex-direction: column-reverse;
        text-align: center;
        padding: 60px 30px;
    }

    .text-content {
        flex: 1 1 auto;
        width: 100%;
        padding-right: 0;
    }

    .img-slider-container {
        margin: 0 auto;
    }

    #heading {
        font-size: 3rem;
    }

    .text-content p {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 768px) {
    body,
    html {
        max-width: 768px;
        margin: 0 auto;
        overflow-x: hidden;
    }

    .desktopBtn {
        display: none !important;
    }

    .navbar {
        display: none !important;
    }

    .logoContainer {
        margin-left: 15% !important;
    }

    .menu-icon {
        display: block;
        position: absolute;
        top: 14px !important;
        right: 15px !important;
    }

    .mobileBtn {
        display: flex !important;
    }

    .mainbox {
        text-align: center;
        margin: 8vh auto 40px !important;
    }

    header .lower {
        justify-content: flex-start;
        width: 100% !important;
        padding: 0 15px !important;
    }
}

@media only screen and (max-width: 480px) {
    .desktopBtn {
        display: none !important;
    }

    .para h2 {
        font-size: 2rem !important;
    }
}

/*************************************/
/************ DARK MODE **************/
/*************************************/
.dark-mode .events-rcard {
    background-color: #1e1e1e;
    color: #f1f1f1;
    border: 1px solid #444;
}

.dark-mode .main,
.dark-mode .mobile-menu,
.dark-mode .footer,
.dark-mode .bar,
.dark-mode .cont1 {
    background-color: var(--primary-background) !important;
}

.dark-mode .modal-content,
.dark-mode .mainbox,
.dark-mode .info-card {
    background-color: var(--card-background) !important;
}

body.dark-mode .fourth,
body.dark-mode main.page section,
body.dark-mode .contact-box,
body.dark-mode .form-box {
    background-color: var(--card-background);
}

.dark-mode .navbar a,
.dark-mode .mobile-menu a,
.dark-mode .menu-icon,
.dark-mode .menu-close {
    color: var(--text-color) !important;
}

.dark-mode #upper,
.dark-mode .subsection,
.dark-mode .text-content p,
.dark-mode #text,
.dark-mode .contact-box p,
.dark-mode .newsletter p {
    color: var(--text-muted) !important;
}

.dark-mode .horizontal {
    background: linear-gradient(transparent 40%, var(--card-background) 40%) no-repeat;
}

/*************************************/
/************ SCROLLBAR ***************/
/*************************************/
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00dcf9, #2e7d39);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0fc561, #388e8a);
}

/*************************************/
/********* ADMIN LOGIN PAGE **********/
/*************************************/
/* Scoped to body.admin-login so no other page is affected. */
body.admin-login {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #1f3d2b; /* shows if the image fails to load */
    background-image:
        linear-gradient(rgba(31, 61, 43, 0.75), rgba(31, 61, 43, 0.75)),
        url('../card2.png'); /* relative to assets/styles/ */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.admin-login .login-card {
    width: 100%;
    max-width: 450px;
    padding: 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.admin-login .login-card form { text-align: left; }
.admin-login .login-card .form-control { background-color: rgba(255, 255, 255, 0.95); }
.admin-login .login-logo { display: block; height: 70px; margin: 0 auto 16px; }