/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1f5f9;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1c5d99;
    padding: 15px;
    color: white;
    position: relative; /* Ensure the header is positioned correctly */
    top: 0;
    z-index: 1000; /* Ensure it stays above other content */
}

header h1 {
    font-size: 20px;
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 30px;
    background-color: #fdfdfd;
    background-image: url('mosque-background.jpg');
    background-size: cover;
    background-position: center;
    color: #1c5d99;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    margin-bottom: 20px;
}

.cta-button {
    padding: 10px 15px;
    background-color: #1c5d99;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #134a78;
}

/* Events Section */
#upcoming-events {
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

#upcoming-events h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.event-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Ensures cards wrap on smaller screens */
    gap: 15px;
}

.event-card {
    background-color: #f1f5f9;
    padding: 15px;
    border-radius: 10px;
    width: 180px; /* Adjusted for mobile */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.event-card h4 {
    font-size: 18px;
    color: #1c5d99;
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: #1c5d99;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.social-icons a img {
    width: 20px; /* Adjusted for mobile */
    margin: 0 8px;
}

/* Styles for Forms */
form {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px auto;
    width: 90%; /* Adjusted for mobile */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="number"], input[type="tel"], input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #218838;
}

.gender-options {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    flex-wrap: wrap; /* Makes it mobile-friendly */
}

.gender-title {
    padding-right: 10px;
    font-size: 14px;
}

.gender-options input {
    margin-left: 5px; /* Space between label and radio button */
}

.logout-btn {
    background-color: rgb(189, 5, 5);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .cta-button {
        padding: 8px 10px;
        font-size: 14px;
    }

    .event-card {
        width: 100%; /* Make event cards take full width on small screens */
    }

    footer {
        font-size: 14px;
    }
}
