* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f7f9f9;
    color: #1e4620;
    line-height: 1.6;
}

/* About Us Navbar */
header {
    width: 100%;
    background-color: #d9f0d9;
    /* light green */
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    /* left aligned */
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #1e4620;
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links li a.active {
    background-color: #1e4620;
    color: #f4d35e;
    font-weight: 600;
}

.nav-links li a:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 13px;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Responsive adjustments for smaller screens */
/* 500px and below (already in place) */
@media (max-width: 500px) {
    .nav-links li a {
        font-size: 0.7rem;
        padding: 0px 0px;
    }

    .nav-links {
        gap: 13px;
    }

    .nav-links li:nth-last-child(2) a {
        padding: 5px;
    }
}

/* 400px and below */
@media (max-width: 400px) {
    .nav-links li a {
        font-size: 0.6rem;
        padding: 0px 0px;
        margin: 0 3px;
        /* spacing between links */
    }

    .nav-links li:nth-child(2) a {
        padding: 4px;
    }

    .nav-links {
        gap: 6px;
    }
}

@media (max-width: 320px) {
    .nav-links li a {
        font-size: 0.5rem;
        padding: 0px 0px;
        margin: 0 3px;
        /* spacing between links */
    }

    .nav-links li:nth-child(2) a {
        padding: 4px;
    }

    .nav-links {
        gap: 6px;
    }
}

/* Hero Section */
.hero-about {
    background: linear-gradient(to right, #e6f2e6, #ffffff);
    padding: 100px 20px 50px 20px;
    text-align: center;
}

.hero-about h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-about h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #4b7744;
}

.hero-about p {
    font-size: 1rem;
    max-width: 700px;
    margin: 20px auto 0 auto;
    line-height: 1.7;
}

/* Address */
.address-section {
    text-align: center;
    margin: 40px auto;
    font-size: 1rem;
    color: #4b7744;
}

/* About Content */
.about-content {
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1rem;
    color: #4b7744;
    margin-bottom: 15px;
    text-align: justify;
}

.about-buttons {
    text-align: center;
    margin-top: 30px;
}

.about-buttons a {
    text-decoration: none;
    display: inline-block;
    margin: 10px 15px;
    padding: 12px 25px;
    background: #1e4620;
    color: #f4d35e;
    font-weight: 600;
    border-radius: 25px;
    transition: 0.3s;
}

/* Team Section */
.team-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.team-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.team-card i {
    font-size: 2.5rem;
    color: #1e4620;
    margin-bottom: 15px;
}

.team-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card p {
    font-size: 1rem;
    color: #4b7744;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-about h1 {
        font-size: 2.2rem;
    }

    .hero-about h2 {
        font-size: 1.2rem;
    }

    .about-content {
        padding: 30px 20px;
    }
}

.about-buttons a:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Responsive adjustments for buttons */
/* 500px and below */
@media (max-width: 500px) {
    .about-buttons a {
        font-size: 0.8rem;
        padding: 10px 20px;
        margin: 8px 10px;
    }
}

/* 400px and below */
@media (max-width: 400px) {
    .about-buttons a {
        font-size: 0.7rem;
        padding: 8px 15px;
        margin: 5px 6px;
    }
}

/* 320px and below */
@media (max-width: 320px) {
    .about-buttons a {
        font-size: 0.6rem;
        padding: 6px 12px;
        margin: 4px 4px;
    }
}


/* Responsive text adjustments for About Us sections */

/* Hero Section - Jamia Masjid Aysha */
@media (max-width: 768px) {
    .hero-about h1 { font-size: 2.2rem; }
    .hero-about h2 { font-size: 1.2rem; }
    .hero-about p { font-size: 0.9rem; }
}

/* Smaller devices */
@media (max-width: 500px) {
    .hero-about h1 { font-size: 1.8rem; }
    .hero-about h2 { font-size: 1rem; }
    .hero-about p { font-size: 0.8rem; }

    .about-content h3 { font-size: 1.5rem; }
    .about-content p { font-size: 0.85rem; }
}

/* Extra small screens */
@media (max-width: 400px) {
    .hero-about h1 { font-size: 1.5rem; }
    .hero-about h2 { font-size: 0.9rem; }
    .hero-about p { font-size: 0.75rem; }

    .about-content h3 { font-size: 1.3rem; }
    .about-content p { font-size: 0.75rem; }
}

/* Tiny screens (320px) */
@media (max-width: 320px) {
    .hero-about h1 { font-size: 1.2rem; }
    .hero-about h2 { font-size: 0.8rem; }
    .hero-about p { font-size: 0.7rem; }

    .about-content h3 { font-size: 1.1rem; }
    .about-content p { font-size: 0.65rem; }
}
