/* ========== General Styles ========== */
body {
    font-family: Arial, sans-serif; /* Sets default font */
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
    background-color: #f8f9fa; /* Light gray background */
    color: #333; /* Dark gray text color */
}
h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 30px;
}

/* ========== Header Styling ========== */
#header {
    background-color: #065535; /* Dark green background */
    color: white; /* White text color */
    text-align: center; /* Centers text */
    padding: 20px; /* Adds space inside the header */
}

/* ========== Navigation Bar Styling ========== */
#nav {
    background-color: #034732; /* Darker green background */
    padding: 10px; /* Adds space inside the navigation bar */
    text-align: center; /* Centers navigation items */
}

/* Navigation Menu List */
#nav ul {
    list-style-type: none; /* Removes default bullet points */
    padding: 0; /* Removes padding */
}

/* Navigation Items */
#nav ul li {
    display: inline-block; /* Displays items in a row */
    position: relative;
    margin: 0 15px; /* Adds space between menu items */
}

/* Navigation Links */
#nav ul li a {
    color: white; /* White text color */
    text-decoration: none; /* Removes underline */
    font-size: 18px; /* Sets font size */
}
/* Dropdown menu container (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #034732; 
  min-width: 180px;
  z-index: 1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown links styling */
.dropdown-content li a {
  color: white;            
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Hover effect for dropdown links */
.dropdown-content li a:hover {
  background-color: #333;
}

/* ========== Hero Section (Main Banner) ========== */
#hero {
    text-align: center; /* Centers text */
    padding: 50px; /* Adds space inside */
    background: url("../images/masjid.png") no-repeat center center/cover; /* Sets background image */
    color: white; /* White text color */
}

/* Hero Section Title */
#hero h2 {
    font-size: 36px; /* Large text size */
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    background-color: #2a6136; /* Green */
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}
.btn:hover {
    background-color: #034732; /* Darker green on hover */
}


/*feedback section in the home page*/
#feedback-slider-container {
    margin: 40px auto;
    padding: 30px;
    max-width: 600px;
    background-color: #f9f9f9;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#feedback-slider-container h3 {
    font-size: 24px; /* Readable size */
    margin-bottom: 20px;
   color: #065535;
    text-align: center;
}
#feedback-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#feedback-content {
    max-width: 400px;
    min-height: 100px;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    align-items: center;
    justify-content: center;
    font-size: 17px; /* Readable size */

}

#feedback-slider button {
    background-color: #034732;
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

#feedback-slider button:hover {
    background-color: #034732;
}

/* ========== Footer Styling ========== */



#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #034732; /* Dark green background */
    color: white; /* White text */
        border-top: 1px solid #ddd; /* Optional border */
        margin-top: 20px; /* Adds space above */

}

.footer-left {
    text-align: left;
}
.footer-center {
    text-align: center;
}
.footer-right {
    text-align: right;
}

.footer-right address {
    text-align: left; /* Ensures the text inside the address is left-aligned */
    display: inline-block; /* Keeps the width to content size */
}

.footer-link {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}



/* ========== Schedule Page Styles ========== */
/* Table Styling */
table {
    width: 80%; /* Sets table width */
    margin: 20px auto; /* Centers table */
    border-collapse: collapse; /* Merges table borders */
}

/* Table Headers and Data Cells */
th, td {
    padding: 12px; /* Adds space inside cells */
    border: 1px solid #ddd; /* Light gray border */
    text-align: center; /* Centers text */
}

/* Table Header Styling */
th {
    background-color: #065535; /* Dark green background */
    color: white; /* White text color */
}

/* Alternating Row Colors for Better Readability */
tr:nth-child(even) {
    background-color: #f2f2f2; /* Light gray background for even rows */
}
/* Center the whole section and limit width */
#city-container {
    width: 80%;  /* Match your table's width */
    margin: 0 auto;
    text-align: left;
}

/* Adjust the select box */
#city {
    width: 100%;
    padding: 8px 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ========== About Page Styles ========== */
.content, .vision, .mission, .aims {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Apply Styling Only to About Page Titles */
.section-title {
    color: #065535;
    text-align: center;
}

/* List Styling */
.aims ol {
    margin-left: 20px;
}

  /* ========== Feedback Form Styling ========== */

/* Form Structure */
form {
    display: flex;
    flex-direction: column; /* Align items in a column */
    align-items: center; /* Centers form elements */
    width: 100%;
}
/* Form Labels */
label {
    font-weight: bold; /* Makes labels bold */
    margin-top: 12px; /* Adds space above labels */
    align-self: flex-start; /* Aligns label text to left */
    font-size: 16px; /* Improves readability */
    color: #333; /* Darker color for contrast */
}

/* Input Fields & Textarea */
input, textarea, select {
    width: 100%; /* Makes fields full width */
    padding: 12px; /* Adds padding */
    margin: 6px 0; /* Adds margin */
    border: 1px solid #bbb; /* darker border */
    border-radius: 6px; /* More rounded corners */
    font-size: 16px; /* Increases font size */
    transition: all 0.3s ease-in-out;
}

/* Input Focus Effect */
/* Radio & Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap; /*  items to wrap */
    gap: 15px;
    justify-content: center;
}

.checkbox-group {
    flex-direction: row; /* Aligns checkboxes horizontally */
    align-items: center; /* Centers the checkboxes vertically */
}

.radio-group {
    flex-direction: row; /* Aligns radio buttons horizontally */
    align-items: center; /* Centers radio buttons vertically */
}

/* Adjust the space between each label */
.checkbox-group label, .radio-group label {
    margin-right: 20px; /* Adds space between items */
}

/* Input Fields & Textarea */
input, textarea, select {
    width: 90%; /* Makes fields full width */
    padding: 12px; /* Adds padding */
    margin: 6px 0; /* Adds margin */
    border: 1px solid #bbb; /* Slightly darker border */
    border-radius: 6px; /* More rounded corners */
    font-size: 16px; /* Increases font size */
    transition: all 0.3s ease-in-out;
}


/* Make checkbox labels appear horizontally */
.checkbox-group {
    flex-direction: row;
    align-items: center;
}

/* Add space between User Preferences and Services Used */
#feedback-form label + .checkbox-group {
    margin-bottom: 50px; /* Adds space between Services Used and the previous section */
}


/* Submit Button */
#feedback-form .btn {
    display: inline-block; /* Allows padding and margin */
    padding: 12px 25px; /* More padding for a larger button */
    margin-top: 20px; /* Adds space above */
    background-color: #2a6136; /* Green button color */
    color: white; /* White text */
    font-size: 18px; /* Increases font size */
    border: none; /* Removes default border */
    border-radius: 6px; /* Rounds corners */
    cursor: pointer; /* Indicates clickable button */
    transition: background 0.3s ease-in-out;
}

/* Hover Effect for Button */
#feedback-form .btn:hover {
    background-color: #034732; /* Darker green on hover */
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  width: 70%;
  box-sizing: border-box;
  
    direction: ltr;
    text-align: left;
  
}

legend {
  font-weight: bold;
  padding: 0 10px;
  font-size: 1rem;
  color: #444;
}

/* ========== Services page ========== */
 /* This is the main container for all the service boxes */
.services-container {
    display: flex; /* Puts the boxes in a row */
    flex-wrap: wrap; /* Moves boxes to a new line if there’s not enough space */
    justify-content: center; /* Centers the boxes on the page */
    gap: 20px; /* Adds space between the boxes */
    padding: 50px; /* Adds space around the whole section */
}

/* This styles each individual service box */
.service-box {
    background: white; /* Makes the box background white */
    padding: 20px; /* Adds space inside the box */
    border-radius: 8px; /* Rounds the corners of the box */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Adds a light shadow for a 3D effect */
    width: 300px; /* Sets the width of each box */
    text-align: center; /* Centers the text inside the box */
    transition: transform 0.3s ease-in-out; /* Makes animations smooth */
}

/* When the user hovers over a service box */
.service-box:hover {
    transform: translateY(-5px); /* Moves the box slightly up */
}

/* This styles the service title (like "Prayer Schedule") */
.service-title {
    color: #065535; /* Sets the text color to dark green */
    font-size: 20px; /* Makes the title larger */
    margin-bottom: 10px; /* Adds space below the title */
}

/* This styles the service description (small text under the title) */
.service-description {
    font-size: 16px; /* Sets the text size */
    color: #555; /* Makes the text a little gray for better readability */
}

.services-page a {
    color: inherit; /* Inherits the text color from its parent element */
    text-decoration: none; /* Removes the underline */
}


/* ========== Donation page ========== */
.donation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px;
    gap: 20px;
}

.donation-card {
    background: white;
    padding: 20px;
    width: 300px;
    min-height: 300px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
}

.donation-card img {
    width: 100px;
    height: 100px; 
    object-fit: contain; 
    margin-bottom: 15px;
}

.donation-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.donation-card p {
    font-size: 14px;
    color: #555;
    flex-grow: 1; 
    margin-bottom: 15px;
}
blockquote {
    text-align: center;
    margin: 20px auto;
    font-style: italic;
    width: 60%; /* Optional: limit width */
}


/* Quran & Tafsir Page Styling */
.quran-section, .tafsir-section, .recitation-section {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Quran & Tafsir Page Styling */
.iframe-section {
    width: 95%; /* Make section wider */
    margin: 20px ; /* Center it */
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}
/* iFrame Styling */
iframe {
    width: 100%; /* Make it take full width of the container */
    height: 700px; /* Increase height for better visibility */
    border: none; /* Remove default border */

}


/* Section Titles */
.iframe-title {
    color: #065535;
    text-align: center;
}


/* Quiz Page Styling */
.quiz-section {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* Section Titles */
.quiz-title {
    color: #065535;
    text-align: center;
}

/* Quiz Box Styling */
.quiz {
    margin: 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Quiz Buttons (Options) */
.option {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-color: #028174;
    color: white;
    border-radius: 5px;
}

.option:hover {
    background-color: #026e5f;
}

/* Quiz Result Message */
#quiz-result {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}
/* Quiz Styles Scoped to quiz-page-container */

#quiz-page-container .btn {
    background-color: #028174;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
}

#quiz-page-container .btn:hover {
    background-color: #026e5f;
}

#quiz-page-container input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
}

#quiz-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#quiz-page-container #previous-score {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
}

#quiz-page-container .hidden {
    display: none;
}

/* ========== Video Page Styles ========== */
.video-container {
    margin: 20px auto; /* Centers and adds spacing between videos */
    width: 600px; /* Matches iframe width */
    max-width: 100%; /* Ensures responsiveness */
    text-align: center; /* Centers contents */

}

.video-container iframe {
    display: block; /* Removes inline spacing issues */
    margin: 0 auto; /* Centers iframe */
    width: 100%; /* Makes iframe responsive within container */
    height: auto; /* Maintains aspect ratio */
    aspect-ratio: 16 / 9; /* Ensures proper video aspect ratio */
}

.video-desc {
    font-size: 16px; /* Readable size */
    color: #555; /* Slightly lighter text */
    margin-top: 10px; /* Spacing above description */
}


/* Responsive Adjustments */
@media (max-width: 600px) {
    .video-container {
        width: 100%; /* Full width on small screens */
        padding: 0 10px; /* Adds side padding */
    }
}


/* ../global/pdf-styles.css */
.pdf-container {
    text-align: center;
    margin: 2rem 0;
}

.section-title {
    font-size: 22px;
    color: #1a3c34;
    margin-bottom: 1rem;
}

.pdf-select {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 300px;
}

.pdf-frame {
    width: 100%;
    max-width: 100%;
    height: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: auto;
}

.pdf-frame iframe {
    width: 80%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}


.logo {
  float: left;
  max-height: 70px;
  margin-right: 10px;
}

.logo img {
  height: 60px; 
}

