/* Base Styles and Variables */
:root {
    --primary-color: #FDCD0B;
    --secondary-color: #000000;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --charcoal-bg: #3a3a3a;
}

body, html {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
}

/* Hero Section Styles */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-background.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background: white;
    color: var(--secondary-color);
}

/* Section Styles */
.features, .testimonials, .user-groups {
    padding: 3rem 0;
    text-align: center;
}

.features, .testimonials {
    background: var(--light-bg);
}

.grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.grid-wrapper::-webkit-scrollbar {
    display: none; /* WebKit */
}

.grid {
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem; /* Add some padding for mobile scrolling */
}

.grid-item {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.grid-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/* Tabbed Section Styles */
.tabbed-section {
    padding: 3rem 0;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab-button {
    background: var(--light-bg);
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0.5rem;
}

.tab-button:hover,
.tab-button.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Offerings Tab Styles */
.offerings-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.offerings-wrapper::-webkit-scrollbar {
    display: none; /* WebKit */
}

.offerings-grid {
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem;
}

.offering-card {
    flex: 0 0 auto;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.offering-card:hover {
    transform: translateY(-5px);
}

.offering-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Impact Tab Styles */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.impact-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.chart-container {
    height: 200px;
    margin-bottom: 1rem;
}

.stat {
    font-weight: bold;
    color: var(--primary-color);
}

/* News Tab Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-card.featured {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
}

.news-card.featured img {
    width: 50%;
    height: 300px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Testimonial Styles */
.testimonial-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
    opacity: 1;
}

/* User Groups Section Styles */
.user-groups {
    background-color: var(--charcoal-bg);
    color: #ffffff;
    padding: 3rem 0;
}

.user-groups-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.user-groups-wrapper::-webkit-scrollbar {
    display: none; /* WebKit */
}

.user-groups-grid {
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem;
}

.user-groups .grid-item {
    flex: 0 0 auto;
    width: 300px;
    background: #4a4a4a;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.user-groups h2,
.user-groups h3,
.user-groups p {
    color: #ffffff;
}

.user-groups .cta-button {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.user-groups .cta-button:hover {
    background: #ffffff;
    color: var(--secondary-color);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (min-width: 769px) {
    .user-groups-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .user-groups .grid-item {
        width: calc(33.333% - 2rem);
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .user-groups-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .user-groups .grid-item {
        width: 80%;
        min-width: 250px;
    }
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer Styles */
footer {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 3rem 0;
    margin-top: 0rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    margin-bottom: 1rem;
    min-width: 200px;
    text-align: center;
}

.footer-column h3 {
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ffffff33;
}

/* Animation Styles */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(255, 255, 255, 0.9);
        transform: translateX(-100%);
    }

    nav ul.show {
        display: flex;
        transform: translateX(0);
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
    }

    .grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 1rem;
    }

    .grid-item {
        width: 80%;
        min-width: 250px;
    }

    .news-card.featured {
        flex-direction: column;
    }

    .news-card.featured img {
        width: 100%;
        height: 200px;
    }
    .offerings-grid,
    .user-groups .grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .offering-card,
    .user-groups .grid-item {
        width: 80%;
        min-width: 250px;
    }
}

/* Programs Section Styles */
.program-details {
    padding: 3rem 0;
    text-align: center;
    background: var(--light-bg);
}

.program-details h2 {
    margin-bottom: 2rem;
}

.program-details .grid-item {
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.program-details .grid-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 1rem;
}