:root {
  --esabaq-green: #0f7a4c;
  --esabaq-dark: #0b3d2e;
  --esabaq-gold: #c9a227;
}

/* Brand logo (header) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  line-height: 1;
  text-decoration: none !important;
}
.brand-logo .brand-word {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}
.brand-logo .brand-e { color: #1C8E5A; }
.brand-logo .brand-sabaq { color: #161515; }
.brand-logo .brand-mosque { display: block; height: 36px; width: auto; }

/* Keep content cards usable with theme */
body, .esabaq-site { font-family: 'Lexend', sans-serif; }
.hero-esabaq {
  background: linear-gradient(135deg, rgba(11,61,46,.92), rgba(15,122,76,.85)),
              url('../images/main-slider/1.jpg') center/cover no-repeat;
  color: #fff; min-height: 78vh; display: flex; align-items: center;
}
.hero-esabaq h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.section-title { font-weight: 700; color: var(--esabaq-dark); }
.feature-box, .course-card, .scholar-card, .price-card {
  background: #fff; border: 0; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11,61,46,.08); height: 100%;
}
.page-banner {
  background: linear-gradient(135deg, #0b3d2e, #0f7a4c); color: #fff;
  padding: 70px 0 50px; margin-bottom: 40px;
}
.split-auth { min-height: 100vh; }
.split-auth .brand-pane {
  background: linear-gradient(160deg, #0b3d2e 0%, #0f7a4c 55%, #1aa36a 100%),
              url('../images/main-slider/2.jpg') center/cover;
  color: #fff;
}
.admin-shell { min-height: 100vh; background: #f3f6f4; }
.admin-sidebar { width: 260px; background: #0b3d2e; min-height: 100vh; }
.admin-sidebar a { color: #d7ece3; text-decoration: none; display: block; padding: .65rem 1rem; border-radius: 8px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { flex: 1; }
.table thead th { background: #e8f5ef; }
.btn-success { background: #0f7a4c; border-color: #0f7a4c; }
.btn-success:hover { background: #0b3d2e; border-color: #0b3d2e; }

/* Header nav readability over theme styles */
.esabaq-header .navigation > li > a {
  font-family: 'Lexend', sans-serif;
}
.esabaq-header .header-upper {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

@media (max-width: 991px) {
  .admin-sidebar { width: 100%; min-height: auto; }
  .cta-two_heading { font-size: 24px !important; line-height: 1.35 !important; }
}

/* Homepage slider: keep text readable on light photo areas */
.slider-one_image-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 61, 46, 0.72) 0%, rgba(11, 61, 46, 0.45) 48%, rgba(11, 61, 46, 0.28) 100%);
  pointer-events: none;
}
.slider-one .swiper-slide {
  min-height: 520px;
}
.slider-one_content {
  z-index: 2;
}
.mobile-nav-toggler {
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: var(--esabaq-dark, #0b3d2e);
}
@media (min-width: 992px) {
  .mobile-nav-toggler { display: none; }
}

/* Equal-height + centered card rows */
.esabaq-eq-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.esabaq-eq-row > [class*="col-"] {
  display: flex;
  float: none;
}
.esabaq-eq-row .course-block_one-inner,
.esabaq-eq-row .institute-block_one-inner,
.esabaq-eq-row .price-block_one-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.esabaq-eq-row .course-block_one-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.esabaq-eq-row .course-block_one-text,
.esabaq-eq-row .institute-block_one-text,
.esabaq-eq-row .price-block_one-list {
  flex: 1;
}
.esabaq-eq-row .course-block_one-buttons,
.esabaq-eq-row .price-block_one-button {
  margin-top: auto;
  padding-top: 18px;
}
.esabaq-eq-row .price-block_one-list {
  flex: 1 1 auto;
  min-height: 150px;
}
.esabaq-eq-row .course-block_one-image {
  height: 180px;
  overflow: hidden;
}
.esabaq-eq-row .course-block_one-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.esabaq-eq-row .institute-block_one-heading {
  min-height: 3.2em;
}
.esabaq-eq-row .institute-block_one-inner {
  min-height: 280px;
}

/* Al-Quran courses listing (course-block_two) */
.esabaq-eq-row .course-block_two-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(11, 61, 46, 0.08);
}
.esabaq-eq-row .course-block_two-image {
  height: 210px;
  overflow: hidden;
}
.esabaq-eq-row .course-block_two-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.esabaq-eq-row .course-block_two-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.esabaq-eq-row .course-block_two-heading {
  min-height: 2.6em;
  padding-right: 48px;
}
.esabaq-eq-row .course-block_two-lower {
  margin-top: auto;
}
.course-block_two-lower {
  display: block;
}
.course-block_two-price--full {
  display: flex !important;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
}
.course-block_two-price--full span {
  display: inline !important;
  margin-left: 4px;
}
.course-block_two-price--full:hover {
  color: var(--color-nine, #1b1b1b);
  filter: brightness(0.97);
}
.course-block_two-join {
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}

/* Equal-height testimonials on About */
.testimonial-two_carousel .swiper-wrapper {
  align-items: stretch;
}
.testimonial-two_carousel .swiper-slide {
  height: auto;
  display: flex;
}
.testimonial-two_carousel .testimonial-block_two {
  display: flex;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}
.testimonial-two_carousel .testimonial-block_two-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.testimonial-two_carousel .testimonial-block_two-text {
  flex: 1 1 auto;
}
.testimonial-two_carousel .testimonial-block_two-author {
  margin-top: auto;
}
.course-block_two-study {
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 16px;
  line-height: 1.2;
}
.course-detail_image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.course-detail_text {
  line-height: 1.75;
}

/* Pricing polish */
.esabaq-price-row .price-block_one-inner {
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 10px 28px rgba(11, 61, 46, 0.06);
}
.esabaq-price-row .price-block_one-inner:hover {
  transform: translateY(-6px);
  border-color: var(--esabaq-green);
  box-shadow: 0 18px 40px rgba(15, 122, 76, 0.14);
}
.esabaq-price-row .price-block_one-inner.is-featured {
  border-color: var(--esabaq-green);
  background: linear-gradient(180deg, #fffef8 0%, #f4fbf6 100%);
  box-shadow: 0 16px 36px rgba(15, 122, 76, 0.12);
}
.esabaq-price-row .price-block_one-list {
  text-align: left;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats section rebuild */
.esabaq-stats .esabaq-stats-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px !important;
  padding: 48px 40px !important;
  background: linear-gradient(135deg, #0b3d2e 0%, #0f7a4c 55%, #1aa36a 100%) !important;
  border: 0;
}
.esabaq-stats .students-one_pattern {
  opacity: .18;
  pointer-events: none;
}
.esabaq-stat-icon i {
  line-height: 1;
}
.esabaq-stats-intro {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}
.esabaq-stats-intro .students-one_title {
  margin: 0 0 12px;
  color: #fff;
}
.esabaq-stats-intro .students-one_text {
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.9);
}
.esabaq-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}
.esabaq-stat-card {
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px;
  min-height: 100%;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}
.esabaq-stat-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f3faf6 100%);
  border: 1px solid rgba(15,122,76,.12);
}
.esabaq-stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--esabaq-dark);
  background: #f0d56a;
  margin-bottom: 14px;
}
.esabaq-stat-value {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--esabaq-dark);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.esabaq-stat-label {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #456;
}
.esabaq-stat-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 78px;
  border-radius: 16px;
  background: #f0d56a;
  color: #1a1a1a;
  margin-bottom: 14px;
  font-size: 1.55rem;
  font-weight: 800;
}
.esabaq-stat-badge-green {
  background: var(--esabaq-green);
  color: #fff;
}
.esabaq-stat-stars {
  font-size: .75rem;
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: 2px;
}
.esabaq-stat-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--esabaq-dark);
  margin: 0 0 8px;
}
.esabaq-stat-copy {
  margin: 0;
  color: #5b6b66;
  line-height: 1.55;
  font-size: .95rem;
}

@media (max-width: 991px) {
  .esabaq-stats .esabaq-stats-panel { padding: 36px 22px !important; }
  .esabaq-stats-grid { grid-template-columns: 1fr; }
}

/* Prayer times page */
.esabaq-prayer-page {
  padding-top: 70px !important;
  padding-bottom: 80px !important;
  background:
    radial-gradient(circle at top right, rgba(243, 184, 21, 0.12), transparent 40%),
    linear-gradient(180deg, #f7faf8 0%, #ffffff 45%, #f3f8f5 100%);
}
.esabaq-prayer-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.esabaq-prayer-hero__copy,
.esabaq-prayer-next-card,
.esabaq-prayer-controls {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(11, 61, 46, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(11, 61, 46, 0.08);
}
.esabaq-prayer-hero__copy {
  padding: 28px 30px;
}
.esabaq-prayer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f7a4c;
  margin-bottom: 10px;
}
.esabaq-prayer-page .prayer-time_title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}
.esabaq-prayer-page .prayer-time_content {
  max-width: none;
  padding: 0 !important;
  margin: 0 0 14px;
  background: none !important;
  box-shadow: none !important;
  color: #4d5f58;
  line-height: 1.7;
}
.esabaq-prayer-meta {
  color: #6b7c74;
  font-size: 0.92rem;
}
.esabaq-prayer-error {
  margin-top: 10px;
  color: #b42318;
  font-size: 0.92rem;
}
.esabaq-prayer-next-card {
  padding: 26px 24px;
  height: 100%;
  background:
    linear-gradient(145deg, rgba(15, 122, 76, 0.95), rgba(11, 61, 46, 0.98)),
    #0b3d2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.esabaq-prayer-next-label {
  opacity: 0.8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.esabaq-prayer-next-name {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 6px 0 18px;
}
.esabaq-prayer-next-card .time-countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.esabaq-prayer-next-card .counter-column {
  min-width: 72px;
  text-align: center;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 10px;
}
.esabaq-prayer-next-card .count {
  font-size: 1.55rem;
  font-weight: 700;
  display: block;
  color: #fff !important;
}
.esabaq-prayer-next-card .count_title,
.esabaq-prayer-next-card .time-countdown_subtitle {
  color: rgba(255,255,255,0.82) !important;
}
.esabaq-prayer-next-card .time-countdown_subtitle {
  margin-top: 14px;
  font-size: 0.92rem;
}
.esabaq-prayer-controls {
  padding: 22px;
  margin-bottom: 28px;
}
.esabaq-prayer-controls__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.esabaq-prayer-field .form-label {
  font-weight: 600;
  color: #234;
  margin-bottom: 6px;
}
.esabaq-prayer-field .form-select {
  min-height: 48px;
  border-radius: 10px;
  border-color: rgba(11, 61, 46, 0.12);
}
.esabaq-prayer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.esabaq-prayer-actions .theme-btn {
  margin: 0;
}
.esabaq-prayer-list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.esabaq-prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.esabaq-prayer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(11, 61, 46, 0.08);
  box-shadow: 0 10px 24px rgba(11, 61, 46, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.esabaq-prayer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(11, 61, 46, 0.1);
}
.esabaq-prayer-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f6ee, #f7d781);
  color: #0b3d2e;
  flex-shrink: 0;
}
.esabaq-prayer-card__name {
  font-weight: 600;
  color: #1f2d28;
  margin-bottom: 2px;
}
.esabaq-prayer-card__time span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f7a4c;
}
.esabaq-prayer-card.is-next {
  background: linear-gradient(135deg, #50bc84, #f7d781);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(15, 122, 76, 0.22);
}
.esabaq-prayer-card.is-next .esabaq-prayer-card__name,
.esabaq-prayer-card.is-next .esabaq-prayer-card__time span {
  color: #0b3d2e !important;
}
.esabaq-prayer-page .makkah-timezone {
  color: #5C7B10;
  font-size: 0.92rem;
}
@media (max-width: 991px) {
  .esabaq-prayer-hero {
    grid-template-columns: 1fr;
  }
  .esabaq-prayer-controls__grid {
    grid-template-columns: 1fr 1fr;
  }
  .esabaq-prayer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575px) {
  .esabaq-prayer-page {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
  }
  .esabaq-prayer-hero__copy,
  .esabaq-prayer-controls {
    padding: 18px;
  }
  .esabaq-prayer-controls__grid,
  .esabaq-prayer-grid {
    grid-template-columns: 1fr;
  }
  .esabaq-prayer-actions {
    flex-direction: column;
  }
  .esabaq-prayer-actions .theme-btn,
  .esabaq-prayer-actions .theme-btn .btn-wrap {
    width: 100%;
  }
  .esabaq-prayer-next-card .counter-column {
    flex: 1;
    min-width: 0;
  }
}

/* legacy helpers kept for compatibility */
.esabaq-prayer-controls .form-label {
  font-weight: 600;
  color: #234;
  margin-bottom: 6px;
}
.esabaq-prayer-controls .theme-btn {
  margin: 0;
}
.prayer-daytime.is-next {
  background: linear-gradient(135deg, #50bc84, #f7d781);
  color: #123 !important;
  box-shadow: 0 10px 24px rgba(15, 122, 76, 0.18);
}
.prayer-daytime.is-next span {
  color: #0b3d2e !important;
}
.time-countdown .count_title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  text-transform: capitalize;
  opacity: .9;
}

.course-detail_overview-html {
  margin-bottom: 24px;
  line-height: 1.75;
}
.course-detail_overview-html p:last-child {
  margin-bottom: 0;
}
.course-widget .course-appy_btn {
  display: block;
  text-align: center;
  width: 100%;
}
.helpline-widget {
  margin-top: 30px;
}

/* Blog grid cards */
.esabaq-eq-row .news-block_one-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.esabaq-eq-row .news-block_one-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.esabaq-eq-row .news-block_one-text {
  flex: 1;
}
.esabaq-eq-row .news-block_one-image {
  height: 220px;
  overflow: hidden;
}
.esabaq-eq-row .news-block_one-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-detail_body {
  line-height: 1.8;
  margin-bottom: 25px;
}
.blog-detail_body img {
  max-width: 100%;
  height: auto;
}

.esabaq-captcha-group .esabaq-captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.esabaq-captcha-code {
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  letter-spacing: 0.28em;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Lexend', sans-serif;
  color: #0b3d2e;
  background: linear-gradient(135deg, #f7d781, #e8f6ee);
  border-radius: 6px;
  user-select: none;
}
.esabaq-captcha-refresh {
  width: 48px;
  border: 0;
  border-radius: 6px;
  background: #0f7a4c;
  color: #fff;
  cursor: pointer;
}
.esabaq-captcha-refresh:hover {
  background: #0b3d2e;
}
.esabaq-captcha-group input[name="captcha_code"] {
  flex: 1;
  min-width: 180px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* Enroll / registration form */
.esabaq-enroll-intro { font-size: 15px; line-height: 1.6; }
.esabaq-enroll-label {
  display: block !important;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #1f2d28;
}
.esabaq-enroll-label span { color: #c0392b; }
.esabaq-enroll-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  min-height: 50px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 5px;
}
.esabaq-enroll-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}
.esabaq-enroll-form .form-group {
  display: block;
  float: left;
  width: 100%;
}
@media (min-width: 768px) {
  .esabaq-enroll-form .form-group.col-md-6 {
    width: 50%;
  }
}
@media (min-width: 992px) {
  .esabaq-enroll-form .form-group.col-lg-6 {
    width: 50%;
  }
  .esabaq-enroll-form .form-group.col-lg-12 {
    width: 100%;
  }
}
.esabaq-enroll-form input[type="text"],
.esabaq-enroll-form input[type="email"],
.esabaq-enroll-form input[type="tel"],
.esabaq-enroll-form input[type="date"],
.esabaq-enroll-form input.esabaq-date-input,
.esabaq-enroll-form select,
.esabaq-enroll-form textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  line-height: 30px !important;
  padding: 8px 18px !important;
  height: 50px !important;
  min-height: 50px !important;
  font-weight: 400 !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  color: #555 !important;
  background-color: #fff !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  appearance: none;
  -webkit-appearance: none;
}
.esabaq-enroll-form input[type="date"],
.esabaq-enroll-form input.esabaq-date-input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}
.esabaq-enroll-form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.65;
  cursor: pointer;
  padding: 4px;
}
.esabaq-enroll-form .form-group textarea {
  min-height: 120px !important;
  height: auto !important;
  padding-top: 14px !important;
}
.esabaq-enroll-form .esabaq-captcha-group input[name="captcha_code"] {
  height: 50px !important;
}
