:root {
    --earth-green: #2C7A4B;
    --warm-terracotta: #D9733B;
    --soft-beige: #F6F2EC;
    --dark-text: #1F2D2E;
    --light-text: #5A6C6D;
    --white: #FFFFFF;
    --shadow: rgba(44, 122, 75, 0.1);
    --card-bg: #FFFFFF;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: #F3F8F5;
    line-height: 1.6;
}

main {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--earth-green);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--warm-terracotta);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--earth-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1f5a38;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
}

.btn-secondary {
    background-color: var(--warm-terracotta);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #c45d2a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217, 115, 59, 0.2);
}

/* About Hero Section */
.about-hero {
    padding-top: 150px;
    padding-bottom: 60px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero/about.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.about-hero-content {
    max-width: 800px;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Mission Section */
.mission {
    background-color: var(--white);
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.mission-text {
    flex: 0.8;
    /* Reduced text width slightly */
}

.mission-image {
    flex: 1.2;
    /* Increased image width */
}

.mission-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--earth-green);
}

.mission-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.mission-image {
    text-align: center;
}

.mission-image img {
    /* Explicit dimensions requested */
    width: 416px;
    height: 228px;
    object-fit: cover;
    /* Maintain aspect ratio */
    max-width: 100%;
    /* Ensure responsiveness */
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Added transition */
}

/* Vision Section */
.vision {
    background-color: var(--soft-beige);
}

/* Reverted container width */
.vision .container {
    max-width: 1200px;
}

.vision-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.vision-text {
    flex: 1;
    max-width: 500px;
    /* Constrain text width */
}

.vision-image {
    flex: 1;
}

.vision-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--earth-green);
}

.vision-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.vision-image {
    text-align: center;
}

.vision-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Added transition */
}

.mission-image:hover img,
.vision-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Our Journey Section */
.journey {
    background-color: var(--white);
}

.journey-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.journey-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.journey-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--earth-green);
}

.journey-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.journey-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.journey-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

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

/* Team Section */
.team {
    background-color: var(--soft-beige);
}

.team .section-title {
    text-align: center;
    display: block;
}

.team .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 25px;
}

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

.team-card-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-card-img img {
    transform: scale(1.05);
}

.team-card-content {
    padding: 20px;
}

.team-card h3 {
    font-size: 1.4rem;
    color: var(--earth-green);
    margin-bottom: 5px;
}

.team-card-role {
    color: var(--warm-terracotta);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.team-card-desc {
    color: var(--light-text);
    font-style: italic;
    font-size: 0.95rem;
}

/* Partners Section */
.partners {
    background-color: var(--white);
}

.partners .section-title {
    text-align: center;
    display: block;
}

.partners .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.partners-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--light-text);
    font-size: 1.1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.partner-logo {
    background-color: var(--soft-beige);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items horizontally */
    justify-content: center;
    /* Center items vertically */
    min-height: 180px;
    /* Reduced height to accommodate text */
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

/* Remove filter/opacity for better visibility */
.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100px;
    /* Reduced image width */
    height: 70px;
    /* Fixed height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    /* Space between logo and text */
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.6;
}

.partner-logo:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo h3 {
    text-align: center;
    color: var(--light-text);
    /* Muted by default */
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    transition: var(--transition);
}

.partner-logo:hover h3 {
    color: var(--earth-green);
    /* Colorful on hover */
}

.partner-btn {
    text-align: center;
}


/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .mission-content,
    .vision-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding-top: 120px;
        padding-bottom: 80px;
        min-height: 300px;
        background-attachment: scroll;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1.1rem;
    }

    .mission-content,
    .vision-content {
        flex-direction: column;
    }

    .mission-text,
    .mission-image,
    .vision-text,
    .vision-image {
        width: 100%;
        flex: auto;
    }

    .mission-image,
    .vision-image {
        order: -1;
    }

    .vision-content .vision-image {
        order: 0;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .team-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .journey-images {
        grid-template-columns: 1fr;
    }
}


/* Added per user request */
.card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px var(--shadow);
    padding: 20px;
}