/* github copilot generated most of this code */

/* Make nav links wrap cleanly and stay readable */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Mobile/tablet fix */
@media (max-width: 700px) {
    nav {
        padding: 14px 16px;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        width: 100%;
    }
}

.about-hero {
    height: clamp(320px, 72vh, 700px);
}

.about-story-grid,
.about-history-grid,
.community-event-layout,
.community-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 56px;
}

@media (max-width: 900px) {
    .about-story-grid,
    .about-history-grid,
    .community-event-layout,
    .community-impact-grid {
        grid-template-columns: 1fr;
    }
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: white;
    color: #222;
    line-height: 1.6;
}

nav {
    background-color: maroon;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

nav a:hover {
    opacity: 0.85;
}

main {
    padding: 0;
}

input,
textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

button {
    background-color: maroon;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.page-button,
.intro-button,
.button {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    padding: 13px 24px;
    border-radius: 999px;
    margin-top: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-button:hover,
.intro-button:hover,
.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.light-button {
    background: white;
    color: maroon;
}

.dark-button {
    background: white;
    color: #8b1e2d;
}

.button,
.intro-button {
    background: maroon;
    color: white;
}

.home-info {
    margin-top: 40px;
}

.home-info h2 {
    color: maroon;
}

.about-hero {
    position: relative;
    height: 72vh;
    min-height: 440px;
    overflow: hidden;
}

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

.about-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
    padding: 20px;
}

.about-hero-overlay h1 {
    color: white;
    font-size: 4rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.about-story-section {
    background: #5a0f14;
    padding: 80px 8%;
}

.about-story-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.about-story-text {
    color: white;
}

.about-story-text h2,
.about-history-text h2,
.team-section h2 {
    font-size: 2.7rem;
    line-height: 1.2;
    margin: 0 0 18px;
}

.about-story-text p,
.about-history-text p {
    font-size: 1.08rem;
    line-height: 1.9;
    margin: 0 0 18px;
    max-width: 650px;
}

.about-story-image img,
.about-history-images img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.about-history-section {
    background: #8b1e2d;
    padding: 80px 8%;
}

.about-history-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

.about-history-images {
    display: grid;
    gap: 24px;
}

.about-history-text {
    color: white;
}

.team-section {
    padding: 80px 8%;
    background: white;
}

.team-inner {
    max-width: 1150px;
    margin: 0 auto;
}

.team-section h2 {
    color: maroon;
    text-align: center;
    margin-bottom: 32px;
}

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

.team-card {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.team-card h3 {
    margin: 0 0 6px;
    color: maroon;
}

.team-card p {
    margin: 0;
    color: #444;
}

.community-intro-section {
    padding: 80px 8%;
    background: white;
    text-align: center;
}

.community-intro-inner {
    max-width: 850px;
    margin: 0 auto;
}

.community-intro-inner h2 {
    font-size: 2.6rem;
    color: maroon;
    margin-bottom: 18px;
}

.community-intro-inner p {
    font-size: 1.08rem;
    line-height: 1.8;
    margin: 0;
}

.community-event-section {
    padding: 80px 8%;
}

.community-event-layout {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.community-event-layout.reverse {
    grid-template-columns: 1fr 1fr;
}

.community-event-text h2 {
    font-size: 2.5rem;
    margin: 0 0 18px;
}

.community-event-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 18px;
}

.community-event-text ul {
    padding-left: 20px;
    margin: 0;
}

.community-event-text li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.community-carousel {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.community-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f3f3;
}

.community-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.community-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.community-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(90, 15, 20, 0.7);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-btn:hover {
    background: #8b1e2d;
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.dark-section {
    background: #5a0f14;
    color: white;
}

.light-section {
    background: #8b1e2d;
    color: white;
}

.community-impact-section {
    padding: 80px 8%;
    background: white;
}

.community-impact-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.community-impact-inner h2 {
    font-size: 2.5rem;
    color: maroon;
    margin-bottom: 28px;
}

.community-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.impact-card {
    background: #fff7f7;
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid #e7c9cd;
}

.impact-card h3 {
    font-size: 2rem;
    color: maroon;
    margin: 0 0 10px;
}

.impact-card p {
    margin: 0;
}

.sponsor-hero {
    background: #7a2f3f;
    padding: 110px 8%;
    text-align: center;
    color: white;
}

.sponsor-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.sponsor-hero-inner h1 {
    font-size: 3.2rem;
    margin: 0 0 20px;
}

.sponsor-hero-inner p {
    font-size: 1.08rem;
    line-height: 1.9;
    margin: 0 auto 28px;
    max-width: 720px;
}

.sponsor-button {
    display: inline-block;
    background: #222;
    color: white;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: bold;
}

.sponsor-button:hover {
    opacity: 0.9;
}

.sponsor-needed-section {
    background: #ececec;
    padding: 85px 8%;
    text-align: center;
}

.sponsor-needed-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.sponsor-needed-inner h2 {
    font-size: 3rem;
    color: #7a2f3f;
    margin: 0 0 18px;
}

.sponsor-needed-inner p {
    max-width: 820px;
    margin: 0 auto 32px;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #333;
}

.sponsor-cta-box {
    background: white;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 30px;
    border-radius: 16px;
}

.sponsor-cta-box h3 {
    margin: 0 0 14px;
    color: #7a2f3f;
    font-size: 1.8rem;
}

.sponsor-cta-box p {
    margin: 0 auto 22px;
}

.secondary-button {
    background: #7a2f3f;
}

@media (max-width: 900px) {
    nav {
        padding: 16px 20px;
        gap: 14px;
    }

    .about-hero {
        height: 56vh;
        min-height: 320px;
    }

    .about-hero-overlay h1 {
        font-size: 2.6rem;
        text-align: center;
        letter-spacing: 0.05em;
    }

    .about-story-section,
    .about-history-section,
    .team-section,
    .community-intro-section,
    .community-event-section,
    .community-impact-section,
    .sponsor-hero,
    .sponsor-needed-section {
        padding: 60px 6%;
    }

    .about-story-grid,
    .about-history-grid,
    .community-event-layout,
    .community-event-layout.reverse,
    .community-impact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-story-text h2,
    .about-history-text h2,
    .team-section h2,
    .community-intro-inner h2,
    .community-event-text h2,
    .community-impact-inner h2,
    .sponsor-hero-inner h1,
    .sponsor-needed-inner h2 {
        font-size: 2rem;
    }

    .about-story-text p,
    .about-history-text p,
    .community-intro-inner p,
    .community-event-text p,
    .sponsor-hero-inner p,
    .sponsor-needed-inner p {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-cta-box h3 {
        font-size: 1.5rem;
    }
}

.contact-hero {
    background: linear-gradient(180deg, #7a2f3f 0%, #5a0f14 100%);
    padding: 105px 8%;
    text-align: center;
    color: white;
}

.contact-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}

.contact-hero-inner h1 {
    font-size: clamp(2.8rem, 4.8vw, 4rem);
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: 0.04em;
    color: white;
}

.contact-hero-inner p {
    font-size: 1.10rem;
    line-height: 1.9;
    margin: 0 auto;
}

.inline-email {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.contact-details-section {
    background: #f8f8f8;
    padding: 88px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-details-card {
    background: white;
    color: #222;
    border-radius: 20px;
    max-width: 760px;
    width: min(100%, 760px);
    min-height: 260px;
    margin: 0 auto;
    padding: 38px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 1px solid #e7c9cd;
    box-shadow: 0 12px 38px rgba(90, 15, 20, 0.12);
}

.contact-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: maroon;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.55rem;
    line-height: 1;
    flex: 0 0 auto;
}

.contact-content {
    text-align: left;
}

.contact-content h2 {
    margin: 0 0 12px;
    color: maroon;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.15;
}

.contact-subtitle {
    margin: 0 0 12px;
    font-weight: bold;
    color: #7a2f3f;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.email-link {
    display: inline-block;
    color: #7a2f3f;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.email-link:hover {
    opacity: 0.85;
}

@media (max-width: 700px) {
    .contact-hero {
        padding: 80px 6%;
    }

    .contact-details-section {
        padding: 48px 6%;
    }

    .contact-details-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 22px;
    }

    .contact-content {
        text-align: center;
    }
}

nav {
    background-color: maroon;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    background: white;
    color: maroon;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 700px) {
    nav {
        padding: 14px 16px;
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
    }
}