/* 
 * Claremont Center Website - Main Stylesheet
 * A modern and responsive design with "Community First" theme
 * FIXED VERSION - Corrected alignment issues
 */

/* Variables & Base Styles */
:root {
    --primary: #2c6e49;
    --secondary: #4c956c;
    --accent: #ffc857;
    --light: #fafafa;
    --dark: #2b2d42;
    --gray: #edf2f4;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* FIX: Re-enabled max-width and ensured proper centering */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem; /* Reduce padding */
    width: 100%;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
    font-size: 2.3rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* FIX: Added max-width and center alignment */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: left;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo-text h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.motto {
    color: var(--secondary);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px;
    transition: var(--transition);
}

.mobile-menu.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active div:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Page Banner */
.page-banner {
    height: 300px;
    background: linear-gradient(135deg, rgba(44, 110, 73, 0.85) 0%, rgba(76, 149, 108, 0.85) 100%), url('../img/banner-bg.jpg') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    text-align: center;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    margin-top: 1rem;
    font-size: 0.9rem;
    z-index: 1;
    position: relative;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--dark);
    border: 2px solid var(--accent);
}

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

/* Cards and Grids */
/* FIX: Centered grid layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.card-text {
    color: #555;
    margin-bottom: 1rem;
}

/* Sections */
/* FIX: Explicitly added text-align center */
.section {
    padding: 5rem 0;
    text-align: justify;
}

.section-gray {
    background-color: var(--gray);
}

.section-primary {
    background-color: var(--primary);
    color: white;
}

.section-accent {
    background-color: var(--accent);
    color: var(--dark);
}

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, rgba(44, 110, 73, 0.85) 0%, rgba(76, 149, 108, 0.85) 100%), url('../img/hero-bg.jpg') center/cover no-repeat;
    color: white;
    position: relative;
}

/* FIX: Added max-width and centered alignment */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.hero h1::after {
    content: "Community First";
    position: absolute;
    bottom: -15px;
    left: 0;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 2.5rem auto;
    line-height: 1.8;
}

/* Features/Services Section */
/* FIX: Explicitly added text-align for service cards */
.service-card {
    background-color: var(--gray);
    border-radius: 10px;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 35px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 50%;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: var(--box-shadow);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

/* About Section Styles */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-image::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 10px;
    z-index: -1;
}

/* Team Section */
.team-member {
    background-color: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-info p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(44, 110, 73, 0.1);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 110, 73, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
}

/* Contact Section */
/* FIX: Added max-width and centered layout */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background-color: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.contact-icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.contact-form {
    padding: 3rem;
    background-color: var(--gray);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 110, 73, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 2rem 1rem;
}

/* FIX: Added max-width and centered footer */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-links ul li a::before {
    content: "→";
    margin-right: 0.5rem;
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact-icon {
    margin-right: 1rem;
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    /* FIX: Maintain center alignment on tablets */
    .container, .grid, .grid-2-col, .gallery-grid {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .motto {
        font-size: 0.8rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: white;
        z-index: 1001;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 5rem 2rem 2rem;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 1.5rem 0;
    }
    
    .mobile-menu {
        display: block;
        z-index: 1002;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-banner {
        height: 250px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    /* FIX: Adjusted button behavior on mobile */
    .btn {
        display: inline-block;
        width: auto;
        margin: 0.5rem;
    }
    
    /* FIX: Ensure contact grid is single column on mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* FIX: Maintain center alignment on mobile */
    .container, .grid, .grid-2-col, .gallery-grid {
        padding: 0 1rem;
    }
    
    /* FIX: Make sure the hero content is centered on small screens */
    .hero-content {
        text-align: center;
    }
    
    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    padding-top: 70px;
    color: white;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-1, .slide-2, .slide-3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-1::before, .slide-2::before, .slide-3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 110, 73, 0.85) 0%, rgba(76, 149, 108, 0.1) 100%);
    z-index: 1;
}

.slide-1 {
    background-image: url('slide-1.jpg');
}

.slide-2 {
    background-image: url('slide-2.jpg');
}

.slide-3 {
    background-image: url('slide-3.jpg');
}

/* FIX: Centered carousel content */
.carousel-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Container for slides */
.carousel-container {
    width: 100%;
    height: 100vh; /* Full viewport height */
    max-height: 800px; /* Optional: set a max height */
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* Make slides responsive on different screen sizes */
@media (max-width: 768px) {
    .carousel-container {
        height: 60vh; /* Shorter on mobile */
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 50vh; /* Even shorter on small phones */
    }
}

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

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

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(44, 110, 73, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(44, 110, 73, 0.8);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Navigation active state */
nav ul li a.active {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

/* FIX: Add these fixes to prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.carousel-container, .section, .page-banner, .hero {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* FIX: Added styles for tabs to ensure they're centered */
.programs-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.8rem 2rem;
    background-color: var(--gray);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.tab-button.active {
    background-color: var(--primary);
    color: white;
}

.tab-button:hover:not(.active) {
    background-color: #ddd;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile fixes for tabs */
@media (max-width: 768px) {
    .programs-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin: 0 0.5rem 2rem;
    }
    
    .tab-button {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

 /* Preloader styles */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
        }

        .preloader.fade-out {
            opacity: 0;
            visibility: hidden;
        }

        .loader {
            width: 70px;
            height: 70px;
            position: relative;
        }

        .circle {
            width: 100%;
            height: 100%;
            border: 4px solid transparent;
            border-top-color: #2c6e49;
            border-radius: 50%;
            position: absolute;
            animation: spin 1.5s linear infinite;
        }

        .circle:nth-child(2) {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            border-top-color: #ffc857;
            animation-duration: 1.75s;
            animation-direction: reverse;
        }

        .circle:nth-child(3) {
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
            border-top-color: #ff3b30;
            animation-duration: 2s;
        }

        /* Animation for the spinner */
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        /* Page content styles */
        .content {
            padding: 50px;
            max-width: 1200px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-in, transform 0.6s ease-in;
        }

        .content.show {
            opacity: 1;
            transform: translateY(0);
        }