/* ============ GLOBAL ============ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: #f0f4f8;
    color: #333;
    overflow-x: hidden;
    /* prevents horizontal scrolling on mobile */
}

/* ============ HEADER ============ */
.header {
    width: 100%;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Logo section - keeping brand identity visible */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: auto;
    height: 40px;
    filter: brightness(0) invert(1);
    /* makes the logo white to match header */
}

.logo-text h1 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.logo-text p {
    margin: 0;
    font-size: 12px;
    color: #e0e0e0;
}

/* Hamburger Menu - three line icon for mobile nav */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1001;
    /* needs to stay above the nav menu */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animate hamburger to X when menu is open - Claude AI helped with the transform values */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    /* middle line disappears */
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation - slides in from the right */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* hidden off-screen initially */
    width: 70%;
    height: 100vh;
    background: linear-gradient(180deg, #6a11cb, #2575fc);
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    /* extra top padding to clear the hamburger */
    gap: 20px;
    transition: right 0.3s ease;
    /* smooth slide animation */
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

.nav.active {
    right: 0;
    /* slides into view when active */
}

.nav a {
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    transition: color 0.3s ease;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* subtle separators between links */
}

.nav a:hover {
    color: #ffeb3b;
    /* yellow highlight on hover */
}

/* Account button styling - works both in mobile menu and desktop header */
.account-btn {
    background: #ffeb3b;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s ease;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    /* full width in mobile menu */
}

/* Hide the standalone account button on mobile since it's now inside the nav */
.header>.account-btn {
    display: none;
}

.account-btn:hover {
    transform: scale(1.05);
    /* slight grow effect on hover */
}

/* ============ HERO ============ */
.hero {
    width: 100%;
    max-width: 100vw;
    height: 300px;
    background: url("../IMG/hero.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Dark overlay to make text readable over the background image */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    /* keeps content above the dark overlay */
}

.hero-content h2 {
    font-size: 28px;
    margin: 0;
}

.hero-content p {
    font-size: 16px;
    max-width: 100%;
    margin: 15px 0 25px;
}

.hero-buttons a {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-block;
}

/* Two button color schemes for visual hierarchy */
.btn-dark {
    background: #2575fc;
    color: white;
}

.btn-light {
    background: #ffeb3b;
    color: #333;
}

.btn-dark:hover,
.btn-light:hover {
    transform: scale(1.05);
}

/* ============ CAROUSEL ============ */
.carousel {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    /* hides images that slide off-screen */
    background: #fff;
    margin: 40px 0;
    border-radius: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 15px;
    animation: slide 20s infinite linear;
    /* continuous scrolling animation */
}

.carousel img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    /* prevents images from squishing */
}

.carousel img:hover {
    transform: scale(1.05);
    /* zoom effect on hover */
}

/* Infinite scroll animation - moves images to the left */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-315px * 3));
        /* 300px width + 15px gap */
    }
}

/* ============ CARDS ============ */
.cards {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    gap: 15px;
    padding: 0 10px;
}

/* Individual card with background image */
.card {
    padding: 30px 20px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-height: 120px;
}

/* Different background image for each card */
.card:nth-child(1) {
    background-image: url("../IMG/Card1.jpg");
}

.card:nth-child(2) {
    background-image: url("../IMG/Card2.jpg");
}

.card:nth-child(3) {
    background-image: url("../IMG/Card3.jpg");
}

.card:nth-child(4) {
    background-image: url("../IMG/Card4.jpg");
}

/* Dark overlay so white text is readable - Claude AI suggested this approach */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    z-index: 0;
}

/* Ensure text appears above the overlay */
.card * {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: scale(1.05);
    /* grow slightly on hover */
    filter: brightness(1.15);
    /* lighten the image */
}

.card h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.card p {
    font-size: 13px;
    margin: 0;
}

/* ============ HOME PAGE SPECIFIC ============ */
.section-title {
    text-align: center;
    font-size: 28px;
    color: #2575fc;
    margin-bottom: 30px;
    padding: 0 20px;
}

.featured-content {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* single column on mobile */
    gap: 20px;
}

/* Featured content boxes with icons */
.featured-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
    /* lift up on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* deeper shadow */
}

.featured-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.featured-item h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.featured-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-link {
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.featured-link:hover {
    color: #6a11cb;
    /* purple on hover */
}

.home-stats {
    margin: 40px 0;
}

.home-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Article preview cards with images */
.home-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    /* keeps image corners rounded */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.home-article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    /* crops image to fit without distortion */
}

.home-article-content {
    padding: 20px;
}

.home-article-content h3 {
    margin: 10px 0 10px;
    color: #333;
    font-size: 18px;
}

.home-article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Call-to-action button with gradient */
.view-all-btn {
    display: inline-block;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.view-all-btn:hover {
    transform: scale(1.05);
}

/* Community membership section - standout gradient background */
.community-section {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 40px 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
    margin: 40px 0;
}

.community-content h2 {
    font-size: 28px;
    margin: 0 0 20px 0;
}

.community-content p {
    font-size: 16px;
    max-width: 100%;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.community-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
    margin: 30px auto;
}

/* Semi-transparent boxes for membership benefits */
.benefit-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
}

/* Yellow button stands out against purple background */
.join-btn {
    display: inline-block;
    background: #ffeb3b;
    color: #333;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.join-btn:hover {
    transform: scale(1.05);
}

/* ============ FOOTER  ============ */
.footer {
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    display: flex;
    flex-direction: column;
    /* stacks sections vertically on mobile */
    gap: 30px;
    padding: 40px 20px;
    margin-top: 50px;
    color: #fff;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-sizing: border-box;
    text-align: center;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffeb3b;
    /* yellow headings for contrast */
}

.footer-section a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffeb3b;
}

.footer-section p {
    font-size: 15px;
    margin: 5px 0;
}

/* ============ PAGE HEADER ============ */
/* Used on all internal pages for consistent branding */
.page-header {
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 50px 20px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    margin: 0 0 15px 0;
}

.page-header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    /* slightly transparent for visual hierarchy */
}

/* ============ CONTENT SECTION ============ */
/* Main content wrapper - keeps everything centered and readable */
.content-section {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 10px;
}

/* ============ SERVICES PAGE ============ */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.service-item h3 {
    color: #2575fc;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.service-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============ ARTICLES PAGE  ============ */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-date {
    color: #2575fc;
    font-size: 14px;
    font-weight: 600;
}

.article-card h3 {
    margin: 10px 0 15px;
    color: #333;
    font-size: 20px;
}

.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #6a11cb;
}


/* ============ EVENTS PAGE ============ */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual event card - combines date badge with event details */
.event-item {
    display: flex;
    flex-direction: column;
    /* stacks date above details on mobile */
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-3px);
    /* subtle lift effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Calendar-style date badge with gradient background */
.event-date {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    /* full width on mobile */
    height: fit-content;
}

/* Large day number for visual impact */
.event-date .day {
    display: block;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

/* Event information section - grows to fill available space */
.event-details {
    flex: 1;
}

.event-details h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 22px;
}

/* Time and location info */
.event-time {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Registration button - Claude AI suggested the hover color transition */
.event-register {
    display: inline-block;
    background: #2575fc;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.event-register:hover {
    background: #6a11cb;
    /* shifts to purple on hover */
}

/* ============ ABOUT PAGE ============ */
.about-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    color: #2575fc;
    margin: 30px 0 15px 0;
    font-size: 26px;
}

/* Remove top margin from first heading to align with container */
.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    /* more spacing for better readability */
    margin-bottom: 20px;
    font-size: 15px;
}

/* Custom list with checkmark bullets instead of default dots */
.values-list {
    list-style: none;
    /* removes default bullets */
    padding: 0;
}

.values-list li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
    /* space for the custom checkmark */
    position: relative;
}

/* Custom checkmark bullet - positioned absolutely to the left */
.values-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2575fc;
    font-weight: bold;
    font-size: 18px;
}

/* Statistics grid - 2 columns on mobile for compact display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

/* Individual stat box with gradient background - Claude AI helped with the gradient angles */
.stat-box {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

/* Big numbers grab attention */
.stat-box h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
}

.stat-box p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    /* slightly transparent for hierarchy */
}

.team-section {
    margin-top: 40px;
}

.team-section h2 {
    color: #2575fc;
    margin-bottom: 25px;
    font-size: 26px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* single column on mobile */
    gap: 20px;
}

/* Team member cards with light background */
.team-member {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Using emoji for profile photos - keeps it simple and fun */
.member-photo {
    font-size: 56px;
    margin-bottom: 15px;
}

.team-member h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.member-role {
    color: #2575fc;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.team-member p:last-child {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ============ CONTACT PAGE ============ */
.contact-container {
    display: flex;
    flex-direction: column;
    /* stacks info and form vertically on mobile */
    gap: 25px;
    margin-bottom: 30px;
}

/* Two main sections: contact info and contact form */
.contact-info-section,
.contact-form-section {
    flex: 1;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info-section h2,
.contact-form-section h2 {
    color: #2575fc;
    margin: 0 0 20px 0;
    font-size: 24px;
}

.contact-info-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Info cards for phone, email, address, etc. */
.contact-info-item {
    padding: 20px;
    background: #f8f9fa;
    /* subtle gray background */
    border-radius: 12px;
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-info-item h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 17px;
}

.contact-info-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Contact form layout - Claude AI suggested using flexbox for easier spacing */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* consistent spacing between form fields */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Form inputs with consistent styling */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    /* matches the rest of the site */
    font-size: 14px;
    transition: border-color 0.3s ease;
}

/* Blue border on focus - provides visual feedback when typing */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    /* removes default browser outline */
    border-color: #2575fc;
}

/* Submit button with gradient - makes it stand out */
.submit-btn {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: scale(1.02);
    /* slight grow effect */
}

.map-section {
    background: white;
    width: 100%;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-section h2 {
    color: #2575fc;
    margin: 0 0 20px 0;
    font-size: 24px;
}

/* Placeholder for embedded map - would contain Google Maps iframe in production */
.map-placeholder {
    background: #f8f9fa;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    color: #333;
    font-size: 16px;
}

/* ============ TABLET AND UP (min-width: 768px) ============ */
/* Responsive breakpoint - switches to desktop layout at 768px and above */
@media (min-width: 768px) {

    /* Header adjustments for larger screens */
    .header {
        padding: 20px 40px;
        /* more horizontal padding */
    }

    .logo-img {
        height: 50px;
        /* bigger logo on desktop */
    }

    .logo-text h1 {
        font-size: 26px;
    }

    .logo-text p {
        font-size: 14px;
    }

    /* Hide hamburger menu on desktop - Claude AI helped with the display logic */
    .hamburger {
        display: none;
    }

    /* Transform mobile nav into horizontal desktop nav */
    .nav {
        position: static;
        /* no longer fixed/sliding */
        width: auto;
        height: auto;
        background: none;
        /* transparent, uses header background */
        flex-direction: row;
        /* horizontal layout */
        padding: 0;
        gap: 0;
        box-shadow: none;
    }

    .nav a {
        margin: 0 15px;
        font-size: 18px;
        padding: 0;
        border-bottom: none;
        /* removes mobile separators */
    }

    /* Restore account button to its desktop appearance */
    .account-btn {
        margin-top: 0;
        display: inline-block;
        /* compact button instead of full width */
        text-align: center;
    }

    .header>.account-btn {
        display: inline-block;
    }

    /* Hero section gets much taller on desktop */
    .hero {
        height: 450px;
        /* up from 300px mobile */
        padding-left: 80px;
        padding-right: 40px;
    }

    .hero-content h2 {
        font-size: 48px;
        /* dramatic increase from 28px */
    }

    .hero-content p {
        font-size: 20px;
        max-width: 400px;
        /* constrain width for readability */
    }

    .hero-buttons a {
        padding: 12px 22px;
        font-size: 16px;
    }

    /* Carousel images get bigger on desktop */
    .carousel img {
        width: 500px;
        /* up from 300px */
        height: 280px;
    }

    /* Update animation to match new image width - Claude AI calculated these values */
    @keyframes slide {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-520px * 3));
            /* 500px + 20px gap */
        }
    }

    /* Cards switch from 2 columns to 4 columns */
    .cards {
        width: 90%;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 0 20px;
    }

    .card {
        padding: 50px;
        /* more padding since we have more space */
        min-height: 150px;
    }

    .card h3 {
        font-size: 22px;
    }

    .card p {
        font-size: 15px;
    }

    /* Home Page responsive adjustments */
    .section-title {
        font-size: 36px;
    }

    /* Featured section goes from 1 column to 3 columns */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .featured-item {
        padding: 40px 30px;
    }

    .featured-icon {
        font-size: 64px;
        /* bigger icons on desktop */
    }

    .featured-item h3 {
        font-size: 24px;
    }

    /* Articles also get 3 column layout */
    .home-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .community-section {
        padding: 60px;
        /* more breathing room */
    }

    .community-content h2 {
        font-size: 36px;
    }

    .community-content p {
        font-size: 18px;
        max-width: 700px;
        /* centered with auto margins */
    }

    /* Benefits grid switches to 2 columns */
    .community-benefits {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    /* Footer changes from vertical stack to horizontal layout */
    .footer {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        text-align: left;
        /* left-align on desktop */
    }

    /* Page Header gets more dramatic on desktop */
    .page-header {
        padding: 80px 40px;
        margin-bottom: 40px;
    }

    .page-header h1 {
        font-size: 48px;
    }

    .page-header p {
        font-size: 20px;
    }

    /* Content Section width adjustments */
    .content-section {
        width: 90%;
        margin: 0 auto 60px;
        padding: 0 20px;
    }

    /* Services grid expands to 3 columns - Claude AI suggested this layout for better balance */
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .service-item {
        padding: 30px;
    }

    .service-icon {
        font-size: 48px;
    }

    .service-item h3 {
        font-size: 22px;
    }

    /* Articles get 2 column layout on desktop */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .article-card h3 {
        font-size: 22px;
    }

    /* Events switch to horizontal layout with date badge on the left */
    .event-item {
        flex-direction: row;
        /* side-by-side instead of stacked */
        gap: 25px;
        padding: 30px;
    }

    .event-date {
        min-width: 100px;
        /* fixed width for consistency */
        width: auto;
    }

    .event-details h3 {
        font-size: 24px;
    }

    /* About page gets more padding on desktop */
    .about-content {
        padding: 40px;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .about-text p {
        font-size: 16px;
    }

    /* Stats expand to 4 columns across - shows all stats in one row */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin: 40px 0;
    }

    .stat-box {
        padding: 30px;
    }

    .stat-box h3 {
        font-size: 36px;
        /* even bigger numbers on desktop */
    }

    .stat-box p {
        font-size: 14px;
    }

    .team-section {
        margin-top: 50px;
    }

    .team-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    /* Team grid expands to 4 columns - shows all team members in one row */
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .member-photo {
        font-size: 64px;
    }

    /* Contact section switches to side-by-side layout - info on left, form on right */
    .contact-container {
        flex-direction: row;
        gap: 40px;
        margin-bottom: 40px;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 40px;
    }

    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 28px;
    }

    /* Contact info grid gets 2 columns */
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .contact-icon {
        font-size: 32px;
    }

    .contact-info-item h4 {
        font-size: 18px;
    }

    .contact-form {
        gap: 20px;
    }

    .map-section h2 {
        font-size: 28px;
    }

    .map-section {
        background: white;
        padding: 30px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: 100%;
        /* ensures it doesn't exceed screen width */
        box-sizing: border-box;
        /* includes padding in width calculation */
    }

    /* Map placeholder gets more padding on desktop */
    .map-placeholder {
        padding: 80px 40px;
        font-size: 18px;
    }

}



