/* --- Global Styles & Variables --- */
:root {
    --primary-color: #004d4d; /* Deep Teal */
    --secondary-color: #d4a017; /* Gold/Yellow */
    --bg-color: #f4efe8; /* Warm Sand */
    --text-color: #333;
    --white-color: #ffffff;
    --light-bg-color: #fdfbf5;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

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

.section-subheadline {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #c5910f;
}

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

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

/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease;
}

#main-header.visible {
    opacity: 1;
    transform: translateY(0);
}

#main-header.scrolled {
    background-color: rgba(0, 77, 77, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--white-color);
    text-decoration: none;
}

#main-header nav ul {
    list-style: none;
    display: flex;
}

#main-header nav ul li {
    margin-left: 2rem;
}

#main-header nav ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#main-header nav ul li a:hover {
    color: var(--secondary-color);
}


/* --- Hero Section --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

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

.main-headline {
    font-family: var(--font-title);
    font-size: 4rem;
    animation: fadeInDown 1s ease-out;
}

.sub-headline {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}
.hero-buttons .btn {
    margin: 0 0.5rem;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--white-color);
    opacity: 0;
    animation: bounce 2s infinite 1.5s;
}


/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* --- Mission/Vision Section --- */
.cards-container {
    display: flex;
    gap: 2rem;
    text-align: center;
}

.card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

/* --- Programs Section --- */
.program-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.program-item {
    background: var(--light-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-basis: calc(50% - 1rem); 
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.program-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.program-item h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
}

.program-item p {
    padding: 0 1.5rem 1.5rem;
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.team-member h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* NEW: Style for the origin text */
.team-member .origin {
    display: block;
    font-style: italic;
    color: #555;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.team-member .title {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* --- Impact Section --- */
.impact-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-color);
}

.stat-number {
    display: block;
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

/* --- Partners Section --- */
.centered-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    display: block;
    height: 450px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 77, 77, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}
.carousel-btn:hover {
    background-color: var(--primary-color);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* --- Call to Action Section --- */
.cta-section {
    position: relative;
    padding: 8rem 0; 
    background: url('images/cta-background.jpg') no-repeat center center/cover;
    text-align: center;
    color: var(--white-color);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 77, 77, 0.7);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-wide {
    min-width: 320px;
    padding: 16px 32px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

#reveal-contact-btn.revealed {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    cursor: copy; 
}
#reveal-contact-btn.revealed:hover {
    background-color: rgba(212, 160, 23, 0.1);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding-top: 2rem; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-info .logo {
    margin-bottom: 1rem;
}
.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: var(--white-color);
    text-decoration: none;
}
.footer-info a:hover {
    color: var(--secondary-color);
}

.footer-social a {
    color: var(--white-color);
    font-size: 1.3rem; 
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    padding: 0.8rem 0; 
    text-align: center;
    font-size: 0.8rem; 
}


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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -20px); }
    60% { transform: translate(-50%, -10px); }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .main-headline { font-size: 3rem; }
    .sub-headline { font-size: 1.2rem; }

    .about-container { flex-direction: column; text-align: center; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-stats { flex-wrap: wrap; gap: 2rem; }
    .stat-item { flex-basis: 40%; }
}

@media (max-width: 768px) {
    #main-header .container { flex-direction: column; }
    #main-header nav ul { margin-top: 1rem; }
    .cards-container { flex-direction: column; }
    .program-item { flex-basis: 100%; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-info, .footer-social { width: 100%; margin-bottom: 2rem; }
    .footer-social a { margin: 0 0.5rem; }
}

@media (max-width: 576px) {
    .team-grid { grid-template-columns: 1fr; }
    .stat-item { flex-basis: 100%; }
    .hero-buttons { display: flex; flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 80%; margin-bottom: 1rem; }
    .cta-content h2 { font-size: 2rem; }
    
    .btn-wide {
        min-width: 0;
        width: 90%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 1rem;
    }

    #reveal-contact-btn.revealed {
        white-space: normal;
        line-height: 1.4;
        word-break: break-all;
    }
}