/* General Body and Typography */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50; /* Changed to a dark blue-grey for better visibility */
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.5em; }

p {
    margin-bottom: 15px;
    text-align: justify; /* Justify text for professional look */
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

ul li, ol li {
    margin-bottom: 8px; /* Add space between list items */
}

a {
    color: #28a745; /* A green reminiscent of the "Green Waqf" */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #e9ecef;
}

/* Header */
header {
    background-color: #fff;
    color: #333;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
    margin-right: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
    color: #28a745;
}

nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav .nav-links li {
    margin-left: 30px;
}

nav .nav-links a {
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav .nav-links a:hover {
    color: #28a745;
    text-decoration: none;
}

/* Burger Menu for Mobile */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    position: relative;
    height: 70vh; /* Use viewport height for a more impactful section */
    min-height: 500px; /* Minimum height for larger screens */
    overflow: hidden;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    text-align: center;
    color: #fff;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better text contrast */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Ensure content is above overlay */
    padding: 20px;
    max-width: 900px; /* Limit width for better readability on large screens */
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-title {
    font-size: 3.8em; /* Larger, more impactful title */
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8em; /* Larger subtitle */
    font-weight: 300;
    margin-bottom: 30px; /* Space before button */
}

.hero-button {
    display: inline-block;
    background-color: #28a745; /* Green button */
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-button:hover {
    background-color: #218838; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
    text-decoration: none; /* Remove underline on hover */
}

/* Image Grids */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.grid-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-full-width {
    margin: 40px 0;
}

.image-full-width img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Quote styling */
.quote {
    font-style: italic;
    font-size: 1.3em;
    text-align: center;
    margin: 40px auto;
    padding: 20px;
    border-left: 5px solid #28a745;
    background-color: #f9f9f9;
    max-width: 800px;
    color: #555;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links a {
    color: #fff;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        background-color: #fff;
        box-shadow: 0 8px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    nav .nav-links.nav-active {
        display: flex;
    }

    nav .nav-links li {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .burger {
        display: flex;
    }

    /* Responsive adjustments for Hero Section */
    #hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.3em;
    }

    .hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .image-grid {
        grid-template-columns: 1fr; /* Stack images on smaller screens */
    }

    .quote {
        padding: 15px;
        font-size: 1.1em;
    }

    footer .container {
        flex-direction: column;
    }

    .social-links {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }
}

/* Burger Animation */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}