/* General styling */
html {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    background-color: #004d40;
    color: white;
    padding: 5px 0; 
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    margin-left: 20px;
}

.logo img {
    height: 40px;
}

.nav-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 90px;
}

.nav-list li {
    margin: 0 10px;
}

.nav-list a {
    color: white;
    margin: 0 auto 0 2px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.99em;
    padding: 5px 10px;
}

.nav-list a:hover {
    background-color: #ffffff;
    color: #004d40;
    border-radius: 5px;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    border-radius: 10px;
}

/* Hero Section */
.hero-section {
    background-color: #f0f0f0;
    padding: 10px 20px;
    text-align: center;
}

.hero-text h1 {
    font-family: 'Amiri', serif; 
    font-size: 48px; 
    color: #004d40; 
    margin-bottom: 20px; 
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-family: 'Amiri', serif; 
    font-size: 30px; 
    color: #004d40; 
    text-shadow: 1px 1px 20px rgba(0, 0, 0, 0.4); 
    margin: auto; 
}

/* Content Section */
.description-section {
    background-color: #e0f7fa;
    padding: 30px;
    margin: 40px auto;
    margin-top: 10px;
    width: 90%;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.description-section p {
    font-family: 'Amiri', serif; 
    font-size: 20px; 
    color: #004d40; 
    line-height: 1.6;
}

/* Dua Categories */
.khutba-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.category {
    background-color: white;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px; /* Reduced margin */
    padding: 3px; /* Reduced padding */
    text-align: center;
    text-decoration: none;
    color: #004d40; /* Matching the header color */
    width: 230px; /* Increased width */
    height: 55px; /* Set height for thinner appearance */
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-family: 'Amiri', serif; /* Added font-family */
}

.category a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 60px; /* Center text vertically */
    transition: background-color 0.3s;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category a:hover {
    color: #004d40; /* Hover text color */
}

/* Quote Gallery */
/* Quote Gallery */
.quote-gallery {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.quote-image {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Increased min width */
    gap: 20px; /* Increased gap for better spacing */
    width: 90%;
    max-width: 1400px; /* Adjusted max width for larger layout */
}

.quote-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.quote-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* Footer */
footer {
    background-color: #004d40;
    color: white;
    text-align: center;
    padding: 1px 0;
    width: 100%;
    position: relative;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    /* Hide the logo by default on mobile (unless toggled) */
    .logo {
        display: none;
    }

    /* NEW: Instead of display: none / display: flex, use max-height & transitions */
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        width: 100%;
        /* Collapsed by default */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    /* When .nav-list is .active, slide it down */
    .nav-list.active {
        max-height: 400px; /* Adjust to fit your menu */
    }

    .nav-list li {
        margin: 5px 0; 
    }

    .menu-toggle {
        display: flex;
        margin-left: 0;
    }

    .logo.active {
        display: block;
        margin-bottom: 10px;
    }

    .hero-text h1 {
        font-size: 60px; 
    }

    .hero-text p {
        font-size: 30px; 
    }

    .category {
        width: 100%; /* Full width for mobile view */
        margin: 10px;
    }
        .quote-image {
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Larger for small screens */
        }
    }
    

