@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

    :root {
        --primary-color: #581b18;
        --secondary-color: #FFFFFF;
        --accent-color: #D2691E;
        --bg-color: #F5F5F5;

     
    }

    body {
        font-family: 'Montserrat', sans-serif;
        margin: 0;
        padding: 0;
        line-height: 1.6;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--heading-font);
        font-weight: 700;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }


    /* Hero Section Styles */
    /* Hero Section Styles */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

/* Dark overlay */
.slides::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 30px;
    border-radius: 6px;
    background-color: white;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 1;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-family: var(--body-font);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 2s forwards;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }
}
    /* Our Work Section */
    .our-work {
        padding: 0;
        margin: 0;
        width: 100%;

    }

    .work-content {
        display: flex;
        min-height: 500px;
    }

    .work-text {
        flex: 1;
        background-color: var(--primary-color);
        color: var(--secondary-color);
        padding: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .work-text h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .work-text p {
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 1.6;
    }

    .work-image {
        flex: 1;
        background-image: url('../img/boysclub/_DSC0027.jpg'); 
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .work-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 0, 0, 0);
        mix-blend-mode: multiply;
    }

    .cta-button {
        display: inline-block;
        color: white;
        background-color: transparent;
        border: 2px solid white;
        padding: 10px 30px;
        border-radius: 999px;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 14px;
        transition: background-color 0.3s ease;
        align-self: flex-start;
        max-width: 200px;
        text-align: center;
    }

    .cta-button:hover {
        background-color:#581b18;
    }

    @media (max-width: 768px) {
        .work-content {
            flex-direction: column;
        }

        .work-text,
        .work-image {
            width: 100%;
        }

        .work-image {
            min-height: 300px;
        }
    }

    /* Programs Section */
   /* Programs Section */
.programs {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: #D2691E;
    margin: 20px auto 0;
}

.program-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.program-item {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    margin-bottom: 30px;
    cursor: default;
}

.program-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.program-front,
.program-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.program-front {
    background-size: cover;
    background-position: center;
    color: white;
    z-index: 1;
}

.program-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    border-radius: 15px;
    z-index: 0;
}

.program-front-content {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.program-item:hover .program-front-content {
    opacity: 0;
}

.program-front h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.program-front p {
    font-size: 16px;
    color: white;
}

.program-back {
    background-color: #D2691E;
    color: white;
    transform: rotateY(180deg);
    justify-content: center;
    z-index: 2;
}

.program-back h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.program-back p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    color: white;
}

.program-item:hover .program-card {
    transform: rotateY(180deg);
}

.learn-more-btn {
    background-color: white;
    color: #D2691E;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    display: inline-block;
}

.learn-more-btn:hover {
    background-color: #581b18;
    color: white;
    transform: translateY(-2px);
}

/* Make sure back content is clickable */
.program-back * {
    pointer-events: auto;
}

/* Animation for program cards */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.program-item {
    animation: float 6s ease-in-out infinite;
}

.program-item:nth-child(2) {
    animation-delay: -2s;
}

.program-item:nth-child(3) {
    animation-delay: -4s;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .program-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 36px;
    }
    
    .program-item {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .program-grid {
        padding: 10px;
    }
    
    .program-item {
        width: 100%;
        max-width: 300px;
    }
    
    .program-front h3 {
        font-size: 24px;
    }
    
    .program-back h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .program-item {
        height: 350px;
    }
    
    .program-front h3,
    .program-back h3 {
        font-size: 20px;
    }
    
    .program-front p,
    .program-back p {
        font-size: 14px;
    }
    
    .learn-more-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .program-item {
        animation: none;
    }
    
    .program-card,
    .learn-more-btn {
        transition: none;
    }
}
    .learn-more-btn {
        background-color: white;
        color: #D2691E;
        padding: 10px 20px;
        border-radius: 999px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .learn-more-btn:hover {
        background-color:#581b18;
        color: white;
    }

    .learn-more-btn1 {
        background-color:#D2691E;
        color: #f4f4f4;
        padding: 10px 20px;
        border-radius: 999px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .learn-more-btn1:hover {
        background-color:#ffffff;
        color:#D2691E;
    }

    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-20px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    .program-item {
        animation: float 6s ease-in-out infinite;
    }

    .program-item:nth-child(2) {
        animation-delay: -2s;
    }

    .program-item:nth-child(3) {
        animation-delay: -4s;
    }

    @media (max-width: 768px) {
        .program-item {
            width: 100%;
            max-width: 300px;
        }
    }

    .volunteer {
        background-color: #D2691E;
        color: white;
        padding: 80px 0;
    }

    .volunteer-content {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
        color: #ffffff;
    }

    .volunteer h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .volunteer p {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    /* Add this to style the CTA button */
    .volunteer .cta-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: transparent;
        color: #cac6c2;
        text-decoration: none;
        font-weight: bold;
        border-radius: 999px;
        transition: background-color 0.3s ease;
    }

    .volunteer .cta-button:hover {
        background-color: #f0f0f0;
        color: #D2691E;
    }

   /* Container for the Upcoming Events Section */
.upcoming-events {
    background-color: #f8f8f8;
    padding: 100px 0;
}

/* Grid layout for the events (two columns) */
.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Each Event Card */
.event-card {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

/* Event card hover effect */
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Layout for the image in each card */
.event-image {
    position: relative;
    width: 40%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect for the image */
.event-card:hover .event-image img {
    transform: scale(1.1);
}

/* Date box on the image */
.event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color, #ff6347);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    line-height: 1;
}

.event-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

/* Event content beside the image */
.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color, #333);
}

.event-button {
    align-self: flex-start;
    margin-top: 20px;
    background-color: var(--accent-color, #ff6347);
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    width: auto;
    text-align: center;
    transition: background-color 0.3s ease;
}

.event-button:hover {
    background-color: var(--primary-color);
}

/* Responsive layout */
@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

    /* News Section */
    .news-section {
        background-color: #f8f9fa;
        padding: 10px 0;
        overflow: hidden;
    

    }

    .news-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 30px;
        max-width: 1200px;
    }

    .news-item {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .news-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .news-item-large {
        grid-column: span 2;
        grid-row: span 2;
        height: 700px;
    }

    .news-image {
        height: 200px;
        overflow: hidden;
    }

    .news-item-large .news-image {
        height: 400px;
    }

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

    .news-content {
        padding: 20px;
    }

    .news-category {
        display: inline-block;
        background-color: var(--accent-color);
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 12px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .news-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .news-item-large .news-title {
        font-size: 24px;
    }

    .news-excerpt {
        font-size: 14px;
        color: #666;
        margin-bottom: 15px;
    }

    .news-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #999;
    }

    .read-more {
        color: var(--accent-color);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .read-more:hover {
        color: var(--primary-color);
    }

    .news-nav {
        text-align: center;
        margin-top: 40px;
    }

    .news-nav-btn {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 20px;
        margin: 0 10px;
        border-radius: 999px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .news-nav-btn:hover {
        background-color: var(--accent-color);
    }

    /* Partners Section */
    .partners {
        background-color: var(--bg-color);
        overflow: hidden;
        padding: 40px 0;
    }

    .partner-container {
        display: flex;
        animation: scroll 30s linear infinite;
        align-items: center;
        /* This will vertically center all items */
    }

    .partner-item {
        flex: 0 0 auto;
        width: 200px;
        /* Increased from 150px */
        margin: 0 30px;
        /* Increased from 20px for more spacing */
        transition: transform 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 120px;
        /* Set a fixed height for all items */
    }

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

    .partner-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* This will maintain aspect ratio */
        cursor: pointer;
    }

    /* Specific styles for the logos you mentioned */
    .partner-item.large-logo img {
        max-width: 180px;
        /* Adjust this value as needed */
        max-height: 100px;
        /* Adjust this value as needed */
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }



    /* Animation classes */
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .container {
            max-width: 960px;
        }
    }

    @media (max-width: 992px) {
        .container {
            max-width: 720px;
        }

        .nav-links {
            display: none;
        }

        /* Add styles for mobile menu toggle here */
    }



    @media (max-width: 576px) {
        .container {
            max-width: none;
            padding: 0 15px;
        }

        .hero-content h1 {
            font-size: 36px;
        }

        .hero-content p {
            font-size: 16px;
        }
    }

    /* numbers*/


    .content-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    @media (min-width: 1024px) {
        .content-wrapper {
            padding: 0 40px;
        }
    }

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

    .accent-bg {
        background-color: var(--accent-color);
        color: var(--secondary-color);
    }

    .count-up {
        font-size: 4rem;
        font-weight: bold;
        color: var(--accent-color);
    }

    .content-wrapper {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .testimonial-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonial-card {
        background-color: #ffffff;
        border-radius: 0.5rem;
        padding: 1.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .testimonial-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .participant-image {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-right: 1rem;
        background-color: #f0f0f0;
    }
    
    .participant-info {
        display: flex;
        flex-direction: column;
    }
    
    .participant-name {
        font-size: 1.1rem;
        font-weight: bold;
        margin: 0;
    }
    
    .participant-age {
        font-size: 0.9rem;
        color: #666;
        margin: 0;
    }
    
    .testimonial-quote {
        font-style: italic;
        color: #333;
        line-height: 1.5;
        margin: 0;
    }
    /* impact */

    .impact-section {
        background-color: var(--primary-color);
    }
    
    .impact-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .impact-row {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
    
    .impact-card {
        width: 300px;
        height: 450px;
        background-color: var(--bg-color);
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .impact-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .card-content {
        width: 90%;
        height: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .impact-category {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--accent-color);
    }
    
    .impact-icon {
        font-size: 1.7rem;
        color: var(--accent-color);
        margin-bottom: 0.5rem;
    }
    
    .impact-number {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--primary-color);
        margin: 0.5rem 0;
    }
    
    .impact-description {
        font-size: 1rem;
        color: var(--primary-color);
        line-height: 1.3;
    }
    
    
    
    @media (max-width: 1024px) {
        .impact-card {
            width: 250px;
            height: 250px;
        }
        .impact-category {
            font-size: 1.3rem;
        }
        .impact-number {
            font-size: 2rem;
        }
        .impact-description {
            font-size: 0.9rem;
        }
    }
    
    @media (max-width: 768px) {
        .impact-row {
            flex-direction: column;
            align-items: center;
        }
        .impact-card {
            width: 300px;
            height: 300px;
        }
    }
    
    @media (max-width: 480px) {
        .impact-card {
            width: 280px;
            height: 280px;
        }
        .impact-category {
            font-size: 1.2rem;
        }
        .impact-icon {
            font-size: 2rem;
        }
        .impact-number {
            font-size: 1.8rem;
        }
        .impact-description {
            font-size: 0.8rem;
        }
    }
/* get involved*/

.get-involved-section {
    background-color: var(--accent-color, #ff6347);
    color: white;
}

.get-involved-section h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.involvement-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
}

.involvement-option:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.cta-button {
    display: inline-block;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    width: 250px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background-color:#581b18;
}
.cta-button1 {
    display: inline-block;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: var(--primary-color);
    width: 280px;
    background-color: #ffffff;

}

.cta-button1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background-color: var(--primary-color);

    color: #e3d7d6;
}

@media (max-width: 768px) {
    .involvement-option {
        padding: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
}
/* scroll button*/

.scroll-to-top-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 99;
        border: none;
        outline: none;
        background-color: var(--primary-color);
        color: white;
        cursor: pointer;
        padding: 0;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: none;
        transition: background-color 0.3s, opacity 0.3s, visibility 0.3s;
        font-size: 30px; /* Increased from 18px */
        line-height: 46px; /* Slightly less than height to vertically center the arrow */
        text-align: center;
    }

    .scroll-to-top-btn:hover {
        background-color: var(--accent-color);
    }

    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #581b18;
    --secondary-color: #FFFFFF;
    --accent-color: #D2691E;
    --bg-color: #F5F5F5;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    margin-top: -15px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 1;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-family: var(--body-font);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 2s forwards;
}

/* Our Work Section */
.our-work {
    padding: 0;
    margin: 0;
    width: 100%;
}

.work-content {
    display: flex;
    min-height: 500px;
}

.work-text {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.work-text p {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.work-image {
    flex: 1;
    background-image: url('../img/boysclub/_DSC0027.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Programs Section */
.programs {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: #D2691E;
    margin: 20px auto 0;
}

.program-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.program-item {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    margin-bottom: 30px;
}



/* Impact Section */
.impact-section {
    background-color: var(--primary-color);
}

.impact-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.impact-card {
    width: 300px;
    height: 450px;
    background-color: var(--bg-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Events Section */
 /* Upcoming Events Section Styles */
 .upcoming-events {
    background-color: #f8f8f8;
    padding: 80px 0;
}

.match-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #fff;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: white;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.day {
    font-size: 24px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.month {
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.competition-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.team-category {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.team-category.women {
    background: var(--primary-color);
    color: white;
}

.team-category.men {
    background: var(--primary-color);
    color: white;
}

.match-day {
    font-size: 14px;
    color: #666;
}

.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.home-team,
.away-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.vs {
    font-weight: 700;
    color: var(--accent-color);
}

.match-info {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    color: #666;
}

.match-info p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-button {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.match-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
}

.no-matches i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-matches h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-matches p {
    color: #666;
}

@media (max-width: 992px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .match-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .upcoming-events {
        padding: 40px 0;
    }

    .teams-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .vs {
        margin: 10px 0;
    }

    .match-button {
        align-self: center;
    }
}

.view-all-matches {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 2px;
    /* For gradient border effect */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover .btn-content {
    transform: translateY(-2px);
}

.view-all-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.view-all-btn:hover::before {
    opacity: 1;
}

.view-all-btn .btn-content {
    position: relative;
    z-index: 1;
}

.view-all-btn .fas {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.view-all-btn:hover .fa-arrow-right {
    transform: translateX(5px);
}

.btn-text {
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* Add hover animation for football icon */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.view-all-btn:hover .fa-futbol {
    animation: spin 1s linear infinite;
}

/* Responsive styles */
@media (max-width: 768px) {
    .view-all-btn {
        width: 90%;
        max-width: 300px;
    }

    .view-all-btn .btn-content {
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Optional: Add a match count badge */
.match-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Add a subtle bounce animation for the arrow on hover */
@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.view-all-btn:hover .fa-arrow-right {
    animation: bounceRight 1s infinite;
}
/* Partners Section */
.partners {
    background-color: var(--bg-color);
    overflow: hidden;
    padding: 40px 0;
}

.partner-container {
    display: flex;
    animation: scroll 30s linear infinite;
    align-items: center;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .container,
    .news-grid,
    .impact-grid,
    .event-grid {
        max-width: 960px;
    }
    
    .program-grid {
        gap: 20px;
    }
    
    .impact-card {
        width: 280px;
        height: 330px;
    }
}

@media (max-width: 992px) {
    .container,
    .news-grid,
    .impact-grid,
    .event-grid {
        max-width: 720px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .impact-row {
        gap: 1.5rem;
    }
    
    .impact-card {
        width: 260px;
        height: 310px;
    }
    
    .event-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container,
    .news-grid,
    .impact-grid,
    .event-grid {
        max-width: 540px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .work-content {
        flex-direction: column;
    }
    
    .work-image {
        min-height: 300px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item-large {
        grid-column: 1;
        height: auto;
    }
    
    .impact-row {
        flex-direction: column;
        align-items: center;
    }
    
    .event-grid {
        grid-template-columns: 1fr;
    }
    
    .program-item {
        width: 280px;
        height: 380px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .work-text {
        padding: 40px 20px;
    }
    
    .program-item {
        width: 260px;
        height: 360px;
    }
    
    .impact-card {
        width: 240px;
        height: 290px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        width: 100%;
        height: 200px;
    }
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Original Utility Classes */
.cta-button,
.cta-button1,
.learn-more-btn,
.news-nav-btn,
.event-button {
    /* Original button styles maintained */
    transition: all 0.3s ease;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 50px;
    height: 50px;
    font-size: 30px;
    line-height: 46px;
}

/* Maintain Original Hover Effects */
.program-item:hover .program-card,
.news-item:hover,
.impact-card:hover,
.event-card:hover,
.partner-item:hover {
    /* Original hover effects maintained */
    transition: all 0.3s ease;
}
    
/* Base reveal styles */
[class*="reveal-"] {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* Fade up animation */
.reveal-fade-up {
    transform: translateY(50px);
}

/* Slide up animation */
.reveal-slide-up {
    transform: translateY(100px);
}

/* Fade in animation */
.reveal-fade-in {
    transform: scale(0.95);
}

/* Slide right animation */
.reveal-slide-right {
    transform: translateX(-100px);
}

/* Slide left animation */
.reveal-slide-left {
    transform: translateX(100px);
}

/* Add stagger effect for grid items */
.program-item.reveal-visible,
.news-item.reveal-visible,
.event-card.reveal-visible,
.partner-item.reveal-visible {
    transition-duration: 0.8s;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    [class*="reveal-"] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Hero section specific animation */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section titles animation */
.section-title {
    position: relative;
}

.section-title::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.section-title.reveal-visible::after {
    transform: scaleX(1);
}

/* Work section specific animations */
.work-text {
    transform: translateX(-50px);
    transition-delay: 0.2s;
}

.work-image {
    transform: translateX(50px);
    transition-delay: 0.3s;
}

/* Program cards staggered reveal */
.program-item {
    transition-delay: calc(var(--index, 0) * 0.1s);
}

/* News items fade in with slight zoom */
.news-item {
    transition-delay: calc(var(--index, 0) * 0.15s);
}

/* Event cards slide in from sides alternating */
.event-card:nth-child(even) {
    transform: translateX(100px);
}

.event-card:nth-child(odd) {
    transform: translateX(-100px);
}

/* Base styles and variables remain the same */
:root {
    --primary-color: #581b18;
    --secondary-color: #FFFFFF;
    --accent-color: #D2691E;
    --bg-color: #F5F5F5;
}

/* Responsive container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section - Fix overflow issues */
.hero {
    position: relative;
    min-height: 500px; /* Minimum height on mobile */
    height: 700px;
    width: 100%;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    max-width: 100vw; /* Prevent overflow */
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 32px; /* Smaller on mobile */
    margin-bottom: 15px;
    word-wrap: break-word; /* Prevent text overflow */
}

/* Our Work Section - Responsive fixes */
.work-content {
    flex-direction: column; /* Stack on mobile */
}

.work-text {
    padding: 30px 20px; /* More reasonable padding on mobile */
}

.work-text h2 {
    font-size: 28px; /* Smaller on mobile */
}

/* Programs Section - Fix card layout */
.program-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 15px;
    width: 100%;
}

.program-item {
    width: 100%;
    height: auto;
    min-height: 350px;
    margin: 0;
}

/* Impact Section - Responsive grid */
.impact-grid {
    padding: 15px;
}

.impact-row {
    flex-direction: column; /* Stack on mobile */
    gap: 20px;
}

.impact-card {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

/* News Section - Responsive grid */
.news-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 15px;
}

.news-item-large {
    grid-column: 1;
    height: auto;
}

/* Events Section - Responsive fixes */
.event-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 15px;
}

.event-card {
    width: 100%;
}

/* Partners Section - Fix scrolling */
.partner-container {
    width: 100%;
    padding: 0 15px;
}

.partner-item {
    width: 150px; /* Smaller on mobile */
    margin: 0 15px;
}

/* Get Involved Section - Responsive grid */
.involvement-option {
    padding: 15px;
}

/* Media Queries */
@media (min-width: 576px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .work-text h2 {
        font-size: 32px;
    }
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 48px;
    }
    
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-content {
        flex-direction: row;
    }
    
    .impact-row {
        flex-direction: row;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .program-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fix button styles for better mobile touch targets */
.cta-button,
.learn-more-btn,
.news-nav-btn,
.match-button {
    min-height: 44px; /* Minimum touch target size */
    padding: 10px 20px;
    width: auto;
    max-width: 100%;
    text-align: center;
}

/* Fix testimonials for mobile */
.testimonial-card {
    padding: 15px;
    margin: 10px 0;
}

/* Fix match filters for mobile */
.match-filters {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

.filter-btn {
    min-width: 120px;
    margin: 5px;
}

/* Utility classes for better mobile handling */
.mobile-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
}

.mobile-stack {
    display: flex;
    flex-direction: column;
}

/* Fix font sizes for better mobile readability */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1, .h1 {
        font-size: 32px;
    }
    
    h2, .h2 {
        font-size: 24px;
    }
    
    h3, .h3 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* Fix scroll-to-top button position on mobile */
.scroll-to-top-btn {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
}