:root {
  --primary-gold: #db9d31;
  /* --primary-gold: #d4a373; */
  --bg-cream: #fdf8f3;
  --dark-teal: #1a3a30;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

.banner-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner {
  background: url("/images/frontend/banner-background.png") no-repeat center
    center;
  /* background: url("/images/frontend/banner.jpeg") no-repeat center center; */
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.prayer-table-body {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 12px;
  padding: 4px 8px;
  margin-top: 5px;

  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-custom {
  background-color: var(--primary-gold);
  border: none;
  color: white;
  padding: 10px 22px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.btn-custom:hover {
  background-color: #c4925f;
  color: white;
  text-decoration: none;
}

.btn-css {
  border: none;
  color: white;
  padding: 10px 22px !important;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.btn-css:hover {
  background-color: #c4925f;
  color: white;
  text-decoration: none;
}
.prayer-card {
  background: url("/images/frontend/blur_masjid.JPG") no-repeat center center;
  background-size: cover;
  border-radius: 22px;
  color: var(--dark-teal);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  padding: 18px 20px 14px;
}

.prayer-card-top-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.header-left-zone {
  justify-self: start;
}
@media (max-width: 991px) {
  .hero-banner {
    min-height: auto;
    padding: 60px 0;
  }

  .banner-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-header .col-lg-5 {
    order: 2;
    width: 100%;
  }

  .banner-header .col-lg-7 {
    order: 1;
    width: 100%;
    margin-bottom: 25px;
  }

  .prayer-card {
    width: 100%;
  }

  /* Hide clock */
  .clock-container {
    display: none;
  }

  .prayer-card-top-grid {
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
  }

  .next-prayer-box {
    grid-column: 2;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    text-align: right;
    min-width: auto;
  }

  .next-prayer-box .badge-label {
    font-size: 10px;
    padding: 2px 6px;
  }

  .next-prayer-box h3 {
    font-size: 0.9rem;
    margin: 2px 0;
    line-height: 1.2;
  }

  .next-prayer-box .countdown {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .next-prayer-box .next-time {
    font-size: 0.8rem;
  }

  .header-date {
    font-size: 0.8rem;
  }

  #live-time-header {
    font-size: 0.9rem;
  }

  #prayer-rows .prayer-table-row {
    font-size: 12px !important;
    padding: 10px 0 !important;
  }

  #prayer-rows .prayer-row-name {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  #prayer-rows .prayer-icon {
    font-size: 12px !important;
    margin-right: 10px !important;
  }

  #prayer-rows .arabic-name {
    font-size: 12px !important;
  }

  #prayer-rows .time-val {
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  .ampm {
    font-size: 8px !important;
    margin-left: 2px !important;
  }
}

#prayer-rows .prayer-row-name {
  font-weight: 600 !important;
}

#prayer-rows .time-val {
  font-size: 12px !important;
  font-weight: 600 !important;
}

.ampm {
  font-size: 10px;
  margin-left: 2px;
}
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.prayer-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.moon-icon {
  width: 28px;
  height: 28px;
  background: #2d5a4e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.prayer-title h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark-teal);
}

.prayer-title h2 span {
  color: #c9a96e;
  display: block;
}

.header-date {
  font-size: 0.7rem;
  color: #888;
  margin: 4px 0 10px 35px;
  line-height: 1.4;
}

.clock-container {
  justify-self: end;
  width: 72px;
  height: 72px;
  border: 3px solid #ddd;
  border-radius: 50%;
  position: relative;
  background: white;
  flex-shrink: 0;
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  background: #333;
  border-radius: 2px;
  transform: translateX(-50%);
}

.hour-hand {
  width: 3px;
  height: 25%;
  z-index: 3;
}

.min-hand {
  width: 2px;
  height: 35%;
  z-index: 2;
}

.sec-hand {
  width: 1px;
  height: 38%;
  background: #e63946;
  z-index: 1;
}

.clock-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #333;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.info-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.next-prayer-box {
  background: transparent; /* Removes the large full-width card look on desktop */
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.date-box {
  background: #eaf3e8;
  border-radius: 12px;
  padding: 10px 12px;
}

.badge-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 4px;
}

.next-prayer-box .badge-label {
  background: #e8c99a;
  color: #6b3d00;

  padding: 4px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.date-box .badge-label {
  background: #c5dfc2;
  color: #2a5a27;
}

.next-prayer-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-teal);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.next-prayer-box .countdown {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-teal);
  letter-spacing: 1px;
  line-height: 1;
}

.next-prayer-box .next-time {
  font-size: 0.7rem;
  color: #7a7a7a;
  font-weight: 500;
  margin-top: 0;
}

.date-box .day-big {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin: 0;
}

.date-box .date-big {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-teal);
  margin: 0;
  line-height: 1.2;
}

.date-box .hijri-small {
  font-size: 0.65rem;
  color: #666;
  margin-top: 2px;
}

.prayer-table-header {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 1fr 1fr;
  font-size: 0.62rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0 4px 5px;
  border-bottom: 1px solid #e8e0d8;
}

.prayer-row-item {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 1fr 1fr;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid #f0ebe3;
  font-size: 0.78rem;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .prayer-table-header {
    font-size: 0.6rem !important;
    letter-spacing: 0.2px;
    padding: 0 2px 4px;
  }

  .prayer-table-row {
    font-size: 0.6rem !important;
    letter-spacing: 0.2px;
    padding: 0 2px 4px;
  }
}

.prayer-row-item.active-row {
  background: #f4e8d8;
  font-weight: 700;
}

.prayer-name-en {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dark-teal);
  font-weight: 600;
}

.prayer-name-ar {
  font-size: 0.8rem;
  color: #999;
  text-align: right;
}

.time-cell {
  text-align: center;
  color: #555;
  font-size: 0.75rem;
}

.active-row .prayer-name-en,
.active-row .time-cell {
  color: #b86a1a;
}

.active-row .prayer-name-ar {
  color: #c9935a;
}

.p-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.p-icon.fajr {
  background: #fff3cd;
  color: #856404;
}

.p-icon.dhuhr {
  background: #fff3cd;
  color: #d97706;
}

.p-icon.asr {
  background: #dbeafe;
  color: #1d4ed8;
}

.p-icon.maghrib {
  background: #fce7f3;
  color: #9d174d;
}

.p-icon.isha {
  background: #ede9fe;
  color: #5b21b6;
}

.p-icon.jumuah {
  background: #d1fae5;
  color: #065f46;
}

.bottom-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid #e8e0d8;
  margin-top: 8px;
  padding-top: 8px;
  text-align: center;
  font-size: 0.65rem;
  color: #888;
}

.bottom-summary .sum-item:not(:last-child) {
  border-right: 1px solid #e8e0d8;
}

.bottom-summary strong {
  display: block;
  color: var(--dark-teal);
  font-size: 0.75rem;
  margin-top: 1px;
}

.bottom-summary .sum-icon {
  font-size: 13px;
  margin-bottom: 1px;
}

/* About */
.about-section {
  position: relative;
  padding: 70px 0 60px;
  background: #fff;
  overflow: hidden;
  font-family: "Arial", sans-serif;
  /* Recommended for clean UI */
}

.about-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;

  height: 150vh;
  background-size: cover;

  z-index: 0;
}

.about-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.about-section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #8b0000;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-align: center;
}

.about-block {
  margin: 0 auto 28px;
  text-align: center;
}

.about-block-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.about-block p {
  font-size: 14px;
  color: #444;
  line-height: 1.2;
  margin: 0 0 6px;
}

.about-see-more {
  display: inline-block;
  background: #8b0000;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 13px 42px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

.about-see-more:hover {
  background: #6b0000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-section-title {
    font-size: 1.6rem;
  }

  .about-block p {
    font-size: 0.85rem;
    padding: 0 10px;
  }
}

/* madrasha  */
.madrasa-section {
  background-color: #fff;
  padding: 80px 0 !important;
}

/* Title Styling */
.madrasa-title {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #000;
  text-transform: uppercase;
  text-align: center;
}

.cus-justify-content-center {
  display: flex;
  justify-content: center;
}

/* Body Text Styling */
.madrasa-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.8;
  text-align: center;
}

.madrasa-text p {
  margin-bottom: 1.5rem;
}

/* Image Wrappers - Extra Rounded Corners */
.madrasa-img-wrap {
  width: 100%;
  max-width: 500px;
  /* Limits size on large screens */
  aspect-ratio: 4 / 3;
  /* Keeps images consistent */
  border-radius: 80px;
  /* Match the large rounding in your image */
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.madrasa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Button Styling */
.madrasa-btn {
  display: inline-block;
  padding: 12px 45px;
  background-color: #a10000;
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s ease;
  margin-top: 2%;
}

.madrasa-btn:hover {
  background-color: #800000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(161, 0, 0, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .madrasa-title {
    font-size: 2rem;
  }

  .madrasa-img-wrap {
    border-radius: 50px;
  }
}

/* service */
.services-section {
  background-color: #ffffff;
}

.services-main-title {
  text-transform: uppercase;
  color: #000;
  text-align: center;
  margin-bottom: 3%;
}

/* --- Card Design Matching Image --- */
.service-card-main {
  margin-bottom: 3%;
}

.service-card {
  background-color: #ffffff;
  background-repeat: repeat;

  border: 1px solid #f2f2f2;
  border-radius: 50px;
  /* High rounding as seen in image */
  padding: 50px 35px;

  /* Centering logic */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06) !important;
}

.service-title {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
  width: 100%;
}

.service-icon-wrap {
  height: 75px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-body {
  flex-grow: 1;
}

.service-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 8px;
}

.service-description {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.service-btn {
  background-color: #a10000;
  /* Deep red color */
  color: #ffffff !important;
  padding: 10px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  display: inline-block;
}

.view-all-link {
  color: #a10000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.view-all-btn {
  text-align: center;
}

/* madrasha main page  */

/* ── Page Wrapper ── */
.admission-page {
  background: #fff;
  padding: 40px 0 60px;
}

/* ── Title ── */
.admission-main-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 24px;
  font-family: Georgia, serif;
}

/* ── Hero Banner ── */
.admission-hero {
  background: #0d3d3a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.admission-hero-img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 55%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

.admission-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #0d3d3a 38%,
    rgba(13, 61, 58, 0.6) 65%,
    transparent 100%
  );
  z-index: 1;
}

.admission-hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 30px;
  max-width: 55%;
}

.admission-hero-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.4;
}

.admission-hero-content p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin: 0;
}

/* ── Note Text ── */
.admission-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── Form Card ── */
.admission-form-card {
  background: #f4f4f4;
  border-radius: 18px;
  padding: 28px 28px 32px;
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 22px;
}

/* Card spacing fix to ensure content contains well */
.admission-form-card {
  background: #f4f4f4;
  border-radius: 18px;
  padding: 28px 28px 32px;
  margin-bottom: 24px;
  box-sizing: border-box;
  width: 100%;
  /* Prevents text elements from breaking the layout grid */
}

/* Checkbox arrangement rules */
.radio-check-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #111;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  line-height: 1.5;
  width: 100%;
}

.radio-check-opt input[type="checkbox"] {
  accent-color: #1a6b3a;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  /* Keeps the square checkbox box rigid */
  cursor: pointer;
}

/* Text block handling layout inside the flex container */
.checkbox-text {
  flex: 1;
  word-break: break-word;
}

.admission-label .req {
  color: #c0392b;
  margin-left: 2px;
}

/* ── Gender Radio Group ── */
.gender-wrap {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 44px;
}

.gender-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  gap: 7px;
  font-size: 0.82rem;
  color: #aaa;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s ease;
}

.gender-option:first-child {
  border-right: 1px solid #ddd;
}

.gender-option input[type="radio"] {
  accent-color: #c0392b;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Inline radio (Yes / No side by side) */
.radio-inline-wrap {
  display: flex;
  gap: 30px;
  margin-top: 8px;
}

.radio-inline-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #aaa;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}

.radio-inline-opt input[type="radio"] {
  accent-color: #c0392b;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Stacked radio options */
.radio-stack-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.radio-stack-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #444;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}

.radio-stack-opt input[type="radio"] {
  accent-color: #c0392b;
  width: 13px;
  height: 13px;
  cursor: pointer;
}

/* Checkbox option */
.radio-check-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #111;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  line-height: 1.6;
}

.radio-check-opt input[type="checkbox"] {
  accent-color: #1a6b3a;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Small description text */
.admission-small-text {
  font-size: 0.8rem;
  color: #111;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Submit button */
.admission-submit-btn {
  background: #065f36;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 60px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.admission-submit-btn:hover {
  background: #044426;
}

/* Footer note */
.admission-footer-note {
  font-size: 0.78rem;
  color: #888;
  margin-top: 12px;
}

/* Form Group spacing */
.admission-form-group {
  margin-bottom: 18px;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .admission-hero-content {
    max-width: 100%;
    padding: 24px 20px;
  }

  .admission-hero-img {
    opacity: 0.25;
    width: 100%;
  }

  .admission-form-card {
    padding: 20px 16px 24px;
  }
}
.text-center {
  text-align: center;
}

