/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Environment-friendly Color Palette */
:root {
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --light-green: #C8E6C9;
    --dark-green: #1B5E20;
    --accent-blue: #0277BD;
    --earth-brown: #8D6E63;
    --soft-white: #FAFAFA;
    --text-dark: #2C2C2C;
    --text-light: #666;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 1rem 0;
    position: relative;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 1.5rem;
}

.header-nav .nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.header-nav .nav-menu li a:hover,
.header-nav .nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
}

.header-nav .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.header-nav .hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.certificate-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.certificate-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.certificate-icon i {
    font-size: 1.2rem;
}

/* Navigation Styles */
.navbar {
    display: none;
}

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

.navbar .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.navbar .nav-menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar .nav-menu li a:hover,
.navbar .nav-menu li a.active {
    background: var(--secondary-green);
    color: white;
}

.navbar .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
}

.navbar .hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Banner Styles */
.banner {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(76, 175, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #0288D1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 119, 189, 0.4);
}

/* Page Banner for About/Contact */
.page-banner {
    background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.9)), 
                url('https://images.unsplash.com/photo-1574263867128-bdb6508a4c6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-green);
}

/* Services Grid */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    border-color: var(--light-green);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

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

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Activities Grid */
.aims-activities {
    background: var(--light-green);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.2);
}

.activity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue), #0288D1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.activity-icon i {
    font-size: 1.8rem;
    color: white;
}

.activity-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Content */
.about-content {
    background: white;
    padding: 4rem 0;
}

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

.about-text h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Management Grid */
.management-section {
    background: var(--soft-white);
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.member-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--light-green);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.member-card p {
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-green);
    margin-top: 0.2rem;
}

.contact-item h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery-section {
    background: white;
    padding: 4rem 0;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Contact and Map Overlay Section */
.contact-map-overlay-section {
    position: relative;
    height: 700px;
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-background iframe {
    width: 100%;
    height: 100%;
    filter: brightness(0.9);
}

.contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none;
    padding: 2rem 0;
}

.contact-form-overlay .container {
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0;
    padding-left: calc(50% - 600px + 20px);
    padding-right: 20px;
}

.contact-form-area {
    width: 450px;
    max-width: 450px;
    pointer-events: all;
    margin-right: auto;
    margin-top: 60px;
    margin-bottom: 60px;
}

.contact-form .form-title {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
}

.contact-form-area .contact-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Legacy Contact and Map Grid Section (for backward compatibility) */
.contact-map-section {
    background: var(--light-green);
    padding: 4rem 0;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-area .section-title {
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.map-area .map-container {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form-section {
    background: var(--light-green);
    padding: 4rem 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper {
    width: 100%;
    max-width: none;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.contact-form h2 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Map Section */
.map-section {
    background: white;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--light-green);
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--light-green);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--secondary-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    border-radius: 15px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #666;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-green);
}

/* PDF Modal Styles */
.pdf-container {
    text-align: center;
}

.pdf-container iframe {
    width: 100%;
    max-width: 900px;
    height: 700px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pdf-actions {
    margin-top: 1rem;
    text-align: center;
}

.pdf-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    color: white;
}

.pdf-download-btn i {
    margin-right: 0.5rem;
}

/* Mobile PDF Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .pdf-container iframe {
        height: 60vh;
        max-width: 100%;
    }
    
    .pdf-container {
        padding: 1rem;
    }
    
    /* Show download button more prominently on mobile */
    .pdf-actions {
        margin-top: 1.5rem;
        padding: 1rem;
        background: var(--light-green);
        border-radius: 8px;
    }
    
    .pdf-download-btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        display: block;
        background: var(--dark-green);
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar .hamburger {
        display: flex;
    }
    
    .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-green);
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .nav-menu.active {
        display: flex;
    }
    
    .navbar .nav-menu li a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-nav .nav-menu {
        display: none;
    }
    
    .header-nav .hamburger {
        display: none;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .services-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-map-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-map-overlay-section {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .map-background {
        position: relative;
        height: 300px;
        order: 2;
    }
    
    .contact-form-overlay {
        position: relative;
        background: var(--light-green);
        height: auto;
        padding: 2rem 0;
        order: 1;
        display: block;
    }
    
    .contact-form-area {
        max-width: 100%;
    }
    
    .contact-form-area .contact-form {
        background: white;
        backdrop-filter: none;
        border: none;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 0;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner {
        height: 50vh;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .activity-card {
        padding: 1.5rem;
    }
    
    .management-grid {
        grid-template-columns: 1fr;
    }
}