    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    max-width: 100%;
}

section {
    min-height: 100vh;
    padding: 20px;
}


#header {
    background-color: #fff; 
    color: #28a745;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0; /* Start at the top */
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease; /* Add transition for smoothness */
}


#header .container {
    position: relative; /* Make the container a positioned ancestor */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Keep the max-width for larger screens */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure container takes full width */
}

#header h1.logo {
    font-size: 24px;
    color: #28a745;
    margin: 0;
}

#header nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    margin-left: 25px;
}

.nav-links ul li a {
    color: #28a745;
    text-decoration: none;
    padding: 10px 15px;
    border: 2px solid transparent;
    transition: all 0.5s ease;
    border-radius: 50px;
}

.nav-links ul li a:hover {
    border-color: #28a745;
    color: #28a745;
    background-color: transparent;
}

.menu-icon {
    position: absolute; /* Position it absolutely */
    right: 20px; /* Adjust the right position as needed */
    cursor: pointer;
    font-size: 24px;
    padding-right: 10px; /* Adjust padding */
    display: none; /* Hide by default, show on mobile */
}

@media (max-width: 968px) {
    #header .container {
        padding: 0 15px; /* Reduce padding for smaller screens */
        max-width: 100%; /* Remove max-width to fit mobile screens */
    }

    #header nav {
        display: none; /* Hide nav links on smaller screens */
    }

    .menu-icon {
        display: block; /* Show menu icon on smaller screens */
    }
}
.slider-menu {
    position: fixed;
    top: 50px; /* Adjusted to match the actual header height */
    right: -100%; /* Initially hidden */
    width: 100%; /* Full width on mobile */
    max-width: 250px; /* Keep the slider width manageable */
    height: calc(100% - 60px); /* Adjust height to account for the header */
    background-color: #fff;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 999; /* Ensure it sits above other content */
}

.slider-menu.active {
    right: 0; /* Slide into view */
}



.slider-menu ul {
    list-style-type: none;
    padding: 20px;
}

.slider-menu ul li {
    margin-bottom: 10px;
}

.slider-menu ul li a {
    color: #28a745;
    text-decoration: none;
    font-size: 18px; /* Adjusted link size */
    display: block; /* Makes the whole area clickable */
    padding: 10px 0; /* Padding for better spacing */
}

/* Divider styles */
.slider-menu .divider {
    height: 1px;
    background-color: #ddd; /* Divider color */
    margin: 10px 0; /* Spacing around the divider */
}

/* Mobile Styles */
@media (max-width: 768px) {
    #header .container {
        padding: 0 15px; /* Ensure padding fits mobile screens */
        max-width: 100%; /* Set max-width to 100% for mobile */
    }

    .slider-menu {
        width: 100%; /* Ensure it uses the full width on mobile */
    }
}

#about-us {
    background-color: #e8f5e9;
    padding: 100px 0; /* Maintain original padding */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Maintain spacing on desktop */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.about-content {
    flex: 1;
    padding-right: 30px; /* Maintain original padding */
}

.about-content h2 {
    font-size: 36px; /* Original font size */
    color: #28a745;
    margin-bottom: 20px; /* Original margin */
}

.about-content p {
    font-size: 18px;
    color: #333;
    margin-bottom: 35px;
    line-height: 1.6;
}

.about-content .btn {
    padding: 12px 25px; /* Original button size */
    background-color: transparent;
    color: #28a745;
    border: 2px solid #28a745;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
    font-size: 16px; /* Original font size */
}

.about-content .btn:hover {
    background-color: #28a745;
    color: #fff;
}

.about-video {
    flex: 1;
    margin-top: 20px; /* Maintain original margin */
}

.about-video iframe {
    width: 100%; /* Original width */
    height: 315px; /* Original height */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack items vertically on mobile */
        align-items: center; /* Center align items */
    }

    .about-video {
        order: 1; /* Video first on mobile */
        margin-bottom: 20px; /* Add space below video */
    }

    .about-content {
        order: 2; /* Text below video on mobile */
        padding-right: 0; /* Remove padding */
        text-align: center; /* Center text */
        margin-bottom: 20px; /* Space below text */
    }

    .about-content h2 {
        font-size: 28px; /* Adjust heading size for mobile */
    }

    .about-content p {
        font-size: 16px; /* Adjust paragraph size for mobile */
    }

    .about-video iframe {
        height: 200px; /* Adjust video height for mobile */
    }
}

@media (max-width: 480px) {
    .about-content h2 {
        font-size: 24px; /* Further adjust heading size for mobile */
    }

    .about-content p {
        font-size: 14px; /* Further adjust paragraph size for mobile */
    }

    .about-content .btn {
        font-size: 12px; /* Adjust button font size for mobile */
    }
}
#hifz-classes {
    background-color: #f5f5f5;
    padding: 100px 0;
    border-top: 5px solid #28a745;
}

.hifz-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; /* Padding inside the green box */
    background-color: #e8f5e9; /* Light green background */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    position: relative; /* Position for absolute positioning if needed */
}

.hifz-image {
    flex: 1;
    margin-right: 30px;
    border: 4px solid #28a745;
    border-radius: 15px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hifz-image img {
    max-width: 100%; /* Responsive image */
    height: auto;
    border-radius: 10px; /* Round corners of the image */
}

.hifz-image:hover {
    transform: scale(1.05); /* Scale up on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
}

.hifz-content {
    flex: 1;
    padding-left: 20px; /* Space between image and content */
}

.hifz-content h2 {
    font-size: 36px;
    color: #28a745;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hifz-content p {
    font-size: 18px;
    color: #333;
    margin-bottom: 35px;
    line-height: 1.6;
}

.buttons {
    margin-top: 20px;
}

.buttons .btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    margin-right: 10px;
    font-weight: bold; /* Make button text bold */
}

.primary-btn {
    background-color: transparent;
    color: #28a745;
    border: 2px solid #28a745;
}

.primary-btn:hover {
    background-color: #28a745;
    color: #fff;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: #28a745;
    color: #fff;
    border: 2px solid #28a745;
}

.secondary-btn:hover {
    background-color: #fff;
    color: #28a745;
    transform: translateY(-3px);
}
/* Existing styles remain the same... */

@media (max-width: 768px) {
    .hifz-container {
        flex-direction: column; /* Stack items vertically on mobile */
        align-items: center; /* Center align items */
        padding: 20px; /* Maintain padding on mobile */
    }

    .hifz-image {
        margin-right: 0; /* Remove right margin on mobile */
        margin-bottom: 20px; /* Space below image */
    }

    .hifz-content {
        text-align: center; /* Center text on mobile */
        padding: 20px; /* Add padding to prevent touching edges */
        width: 100%; /* Ensure content takes full width */
    }

    .hifz-content h2 {
        margin-bottom: 10px; /* Space below heading */
    }

    .hifz-content p {
        font-size: 16px; /* Adjust paragraph size for mobile */
    }

    .buttons {
        margin-top: 20px; /* Space above buttons */
        display: flex; /* Use flex to arrange buttons */
        flex-direction: column; /* Stack buttons vertically */
        align-items: center; /* Center align buttons */
    }

    .buttons .btn {
        font-size: 14px; /* Adjust button font size for mobile */
        margin-bottom: 10px; /* Add space between buttons */
        width: 100%; /* Make buttons full width */
        max-width: 200px; /* Set a max width for the buttons */
    }

    .hifz-content {
        padding: 0; /* Remove default padding */
    }
}

#prayer-time {
    background-color: #e8f5e9;  /* Light grey background */
    padding: 50px 0;
    text-align: center;
    border-top: 5px solid #28a745;
}

.prayer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.prayer-container h2 {
    font-size: 40px;
    color: #28a745;
    margin-bottom: 20px;
    text-align: center;
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.prayer-table th, .prayer-table td {
    border: 2px solid #28a745;
    padding: 15px; /* Adjusted padding for better spacing */
    text-align: center;
    font-size: 24px; /* Larger font for better visibility */
}

.prayer-table th {
    background-color: #28a745;
    color: #ffffff;
    font-size: 28px; /* Slightly larger font size for headers */
}


.editable-time {
    border: 1px dashed #28a745;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}




#save-btn {
    background-color: transparent;
    color: #28a745;
    border: 2px solid #28a745;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 20px;
    margin-bottom: 20px;
}

#save-btn:hover {
    background-color: #28a745;
    color: white;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
    animation: fadeIn 0.3s; /* Fade-in effect */
}

/* Updated modal content styling */
.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border: 2px solid #888;
    border-radius: 10px;
    width: 90%; /* Width for smaller screens */
    max-width: 600px; /* Max width for larger screens */
    position: absolute; /* Use absolute positioning */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Offset by half its height and width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.close {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #d9534f;
    cursor: pointer;
}

#time-picker {
    width: 100%;
    padding: 15px;
    font-size: 24px; /* Increased font size */
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#time-picker:focus {
    outline: none;
    border-color: #28a745;
}

#set-time-btn {
    display: block;
    width: 100%;
    padding: 15px; /* Increased padding */
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 20px; /* Increased button font size */
    cursor: pointer;
    transition: background-color 0.3s;
}

#set-time-btn:hover {
    background-color: green;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .prayer-container {
        padding: 15px; /* Reduce padding for smaller screens */
    }

    .prayer-table th, .prayer-table td {
        font-size: 20px; /* Adjust font size for mobile */
        padding: 10px; /* Adjust padding for mobile */
    }

    #save-btn {
        font-size: 16px; /* Adjust button font size */
        padding: 10px 20px; /* Adjust padding for smaller buttons */
    }

    .modal-content {
      width: 90%; /* Width for smaller screens */
        padding: 20px; /* Reduce padding for modal */
        max-width: 90%; /* Maximum width for smaller screens */
    }

    #time-picker {
        font-size: 20px; /* Adjust font size for time picker */
    }

    #set-time-btn {
        font-size: 18px; /* Adjust button font size */
    }
}
body.modal-open {
    overflow: hidden; /* Prevent scrolling when modal is open */
}
/* Service Section Styling */
#services {
    background-color: #f5f5f5;
    padding: 100px 0;
    text-align: center;
    border-top: 5px solid #28a745;
}

#services h2 {
    font-size: 42px;
    color: #28a745;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-cards {
    display: flex;
    justify-content: center; /* Center the cards */
    gap: 20px; /* Reduced gap between cards */
    flex-wrap: wrap;
    padding: 0 15px; /* Add padding for smaller screens */
}

.service-card {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px; /* Slightly smaller max-width */
    margin: 10px; /* Reduced margin */
    text-align: left;
    flex: 1 1 calc(33.33% - 40px); /* Adjusted for 3 cards */
    position: relative;
}

.service-card a {
    text-decoration: none;
    color: inherit;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 24px;
    color: #28a745;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
}
/* Button Styles */
.services-button-container {
    text-align: center;
    margin-top: 30px;
}

.services-btn {
    background-color: white; /* White background */
    color: #28a745; /* Green text */
    border: 2px solid #28a745; /* Green border */
    border-radius: 20px; /* Rounded corners */
    padding: 10px 20px; /* Padding */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s, color 0.3s; /* Transition effects */
    margin-top: 20px; /* Margin */
    margin-bottom: 20px; /* Margin */
    text-decoration: none; /* Remove underline */
}

.services-btn:hover {
    background-color: #28a745; /* Green background on hover */
    color: white; /* White text on hover */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .service-card {
        flex: 1 1 calc(50% - 30px); /* Two cards per row on tablets */
    }

    #services h2 {
        font-size: 36px;
    }

    .section-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .service-card {
        flex: 1 1 calc(100% - 20px); /* One card per row on smaller screens */
        max-width: 100%;
        margin-bottom: 20px;
    }

    #services h2 {
        font-size: 32px;
    }

    .section-description {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .service-card p {
        font-size: 15px;
    }
}

/* Google Maps and Contact Information Styling */
.contact-info {
    background: linear-gradient(135deg, #f0f8ff, #e6ffe6); /* Gradient background */
    border-radius: 20px; /* Rounded corners */
    padding: 40px; /* Inner padding */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); /* Deeper shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation for hover */
    width: 100%; /* Set width */
    max-width: 450px; /* Max width */
}

.contact-info:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

.contact-info h3 {
    color: #28a745; /* Heading color */
    margin-bottom: 20px; /* Spacing below heading */
    font-size: 30px; /* Larger font size */
    text-align: center; /* Center align */
    text-transform: uppercase; /* Uppercase letters for style */
    letter-spacing: 1px; /* Spacing between letters */
}

.contact-info p {
    color: #333; /* Darker gray for text */
    font-size: 18px; /* Slightly larger text */
    line-height: 1.8; /* Improved line height */
    margin-bottom: 15px; /* Spacing below paragraphs */
    text-align: left; /* Align text to the left */
}

/* Google Maps Styling */
.map {
    border-radius: 20px; /* Rounded corners */
    overflow: hidden; /* Clip any overflow */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25); /* Deeper shadow for depth */
    width: 100%; /* Set width */
    height: 300px; /* Set a fixed height */
    margin-top: 20px; /* Space above the map */
}

.map-container {
    border: 5px solid #28a745; /* Border around the map */
    border-radius: 20px; /* Rounded corners */
    overflow: hidden; /* Clip any overflow */
    position: relative; /* Position for absolute title */
}

.map-title {
    position: absolute; /* Overlay the title */
    top: 10px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8); /* Light background for contrast */
    color: #28a745; /* Green color */
    padding: 5px 10px; /* Padding around text */
    border-radius: 5px; /* Rounded corners for title */
    font-weight: bold; /* Bold font */
}
footer {
    background-color: #28a745; /* Green background matching the website theme */
    color: #fff; /* White text color for contrast */
    padding: 60px 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 15px; /* Adjust margin for better spacing */
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 3px solid #a2d5a1; /* Light green for the section title */
    padding-bottom: 10px;
    color: #ffffff; /* Light green title color */
}

.footer-links {
    list-style-type: none;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: #fff; /* White text for links */
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Updated hover effect for links */
.footer-links a:hover {
    color: #a2d5a1; /* Light green text on hover */
}

.email-subscription {
    flex-basis: 300px; /* Fixed width for better alignment */
    margin-top: 30px;
    margin-left: 20px; /* Add left margin for spacing */
}

.email-subscription h3 {
    margin-bottom: 20px;
    color: #a2d5a1; /* Light green for email section title */
}

.email-subscription form {
    display: flex;
}

.email-subscription input[type="email"] {
    padding: 12px;
    border: none;
    border-radius: 30px 0 0 30px;
    width: 100%; /* Take full width */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.email-subscription button {
    padding: 12px 24px;
    border: none;
    background-color: #e8f5e9; /* Gold color */
    color: black; /* Black text */
    border-radius: 0 30px 30px 0; /* Rounded right side */
    cursor: pointer;
}

.email-subscription button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Slight shadow on hover */
}

.social-media {
    text-align: center;
    margin-top: 40px;
}

.social-media h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #a2d5a1;
}

.social-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.social-links li {
    margin: 0 12px;
}

.social-icon {
    color: #fff; /* White icons */
    font-size: 30px;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Updated hover effect for social icons */
.social-icon:hover {
    color: #a2d5a1; /* Light green on hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding: 15px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #218838; /* Slightly darker green for footer bottom */
}
