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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #F5FFF7;
    color: #333;
    line-height: 1.5;
}

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

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

section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #2E7D32;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.btn:hover {
    background-color: #1f5a24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #2E7D32;
    border: 2px solid #2E7D32;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: #2E7D32;
    color: white;
}

/* Section titles */
.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2E7D32;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4CAF50;
    border-radius: 4px;
}

/* Hero */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 50%, #F5FFF7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="8" fill="white" opacity="0.1"/><circle cx="40" cy="30" r="12" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1 1 400px;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: white;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-buttons .btn {
    background-color: white;
    color: #2E7D32;
}

.hero-buttons .btn:hover {
    background-color: #f0f0f0;
}

.hero-buttons .btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.hero-buttons .btn-outline:hover {
    background-color: white;
    color: #2E7D32;
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Why work with us cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.why-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(46, 125, 50, 0.15);
}

.why-card i {
    font-size: 2.8rem;
    color: #2E7D32;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.why-card p {
    color: #666;
}

/* Filter bar */
.filter-bar {
    background: white;
    border-radius: 60px;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.search-box {
    flex: 2 1 250px;
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border-radius: 40px;
    padding: 0 15px;
}

.search-box i {
    color: #999;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 12px 8px;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid #ddd;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

/* Jobs grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.job-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.1);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.job-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

.job-meta i {
    color: #2E7D32;
    width: 18px;
}

.job-desc {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.job-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.job-buttons .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Modals (hidden by default) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 30px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #333;
}

/* Application form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 30px;
    font-size: 1rem;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2E7D32;
    outline: none;
}

.file-upload {
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #888;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload:hover {
    border-color: #2E7D32;
    background: #f0faf0;
    color: #2E7D32;
}

.file-upload.uploaded {
    border-color: #2E7D32;
    border-style: solid;
    background: #E8F5E9;
    color: #2E7D32;
}

.file-upload.uploaded i {
    color: #2E7D32;
}

/* Apply modal enhancements */
.apply-modal-content {
    max-width: 720px;
    padding: 36px 40px;
}

.apply-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.apply-modal-header>i {
    font-size: 2.4rem;
    color: #2E7D32;
    margin-bottom: 8px;
    display: block;
}

.apply-modal-header h2 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.apply-modal-subtitle {
    font-size: 0.9rem;
    color: #888;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #999;
}

.form-hint i {
    margin-right: 4px;
    color: #2E7D32;
}

.form-group label i {
    color: #2E7D32;
    width: 18px;
    margin-right: 4px;
}

.apply-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .apply-modal-content {
        padding: 24px 20px;
    }
}

/* Life at foundation image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* Volunteer section */
.volunteer-block {
    background: #4CAF50;
    border-radius: 40px;
    padding: 50px;
    color: white;
    text-align: center;
}

.volunteer-block h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.volunteer-block .btn {
    background: white;
    color: #2E7D32;
    margin-top: 20px;
}

/* FAQ accordion */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Final CTA */
.final-cta {
    background: #2E7D32;
    border-radius: 60px;
    padding: 60px;
    text-align: center;
    color: white;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.final-cta .btn {
    background: white;
    color: #2E7D32;
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* Footer */
.footer {
    background: #1B3B1F;
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-box {
        flex: none;
        /* Resets the 250px flex-basis that caused it to be extra tall vertically */
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}