/* MDIX Masjid Harmoni — audit fixes (2026-10-05, design QA 2026-10-13) */

/* animate.min.css is missing (404), so WOW kept sections hidden until scrolled: show content immediately. */
.wow {
  visibility: visible !important;
  animation-name: none !important;
}

/* ---- Brand green darkened for AA contrast (#1D8E5A was 4.1:1 with white) ---- */
:root {
  --green: #167049;
  --theme-green: #167049;
  --theme-green-btn: #167049;
  --brand-mid-green: #0b7a59;
  --theme-coral: #c2410c;
}
/* buttons: base colour = the visible layer, so text contrast holds without the ::before layer */
.green_btn { background: var(--green); }
.green_btn:hover, .green_btn:focus-visible { background: var(--yellow); }
.yellow_btn { background-color: var(--yellow); }
.yellow_btn:hover, .yellow_btn:focus-visible { background-color: var(--green); }

/* ---- Top bar: basmalah image overlapped the (longer) Indonesian address ---- */
.bis_himage { left: 56%; }
@media (max-width: 1499px) { .bis_himage { display: none; } }

/* ---- Verse card that replaces the third-party murattal player (D-25) ---- */
.player.mdix-verse .mdix-verse-text {
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
  color: var(--title);
  max-width: 460px;
  margin: 18px auto 6px;
}
.player.mdix-verse .surah { margin-bottom: 0; font-weight: 600; color: var(--green); }

/* ---- Sample-data notes (prayer times, donations, schedules) ---- */
.mdix-sample-note {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 14px 0 0;
}
.prayer-title small { font-size: 13px; font-weight: 500; color: #475569; }
.mdix-sample-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #f5d97a;
  color: #5b4a12;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.mdix-sample-banner i { margin-top: 3px; color: #a16207; }
.campaign-card .mdix-sample-banner { margin-bottom: 16px; }

/* ---- Testimonials / comments: initials instead of stock faces ---- */
.mdix-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--yellow);
  color: #1f2937;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
  flex: 0 0 auto;
}
.testimonial_author .mdix-initials { border: 6px solid #fff; width: 86px; height: 86px; }
.com-img .mdix-initials { width: 72px; height: 72px; background: #e7f3ec; color: var(--green); }
.com-img h4 { color: var(--title); }

/* text over the mosque photo in the testimonial area: dark overlay for legibility */
.testimonial-area { position: relative; isolation: isolate; }
.testimonial-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 32, 35, 0.55) 0%, rgba(4, 32, 35, 0.86) 55%);
  z-index: -1;
}
.single-testimonial .rev_content span { color: var(--yellow); }

/* ---- Course cards: level label instead of invented star ratings ---- */
.cor_level { font-size: 14px; font-weight: 500; color: var(--green); }
.cor_level i { margin-right: 4px; }
.mdix-price-note { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.mdix-plain-list { list-style: none; padding: 0; margin: 0 0 8px; }
.mdix-plain-list li { padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.mdix-post-meta { font-size: 14px; color: #475569; }
.mdix-post-meta a { color: var(--green); }

/* ---- Touch targets (WCAG 2.5.8: ≥24px) ---- */
.course_author a,
.blog_meta a,
.blog_btn,
.more_courses a,
.footer-widget ul li a,
.footer-contact a,
.offcanvas__contact-text a,
.htleft a,
.id_cinfo a,
.category-widget ul li a,
.tags_clouds a,
.contact-section a,
.text-success.fw-bold.fs-7 {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}
.footer-widget ul li { margin-bottom: 6px; }
.widget_menu_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.search_btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.offcanvas__close button { min-width: 44px; min-height: 44px; }
.htright .social_icons a, .fsocial-option a, .sidebar-social a, .scholar_social a, .share-icons a, .id_social a {
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1199px) {
  .htright .social_icons a, .fsocial-option a { min-width: 44px; min-height: 44px; }
}

/* ---- Phones: 16px side gutters ---- */
@media (max-width: 575px) {
  .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
}

/* initials inside the theme's 95px testimonial avatar ring (theme styles every span in the slide) */
.testimonial_author .test_img { display: flex; align-items: center; justify-content: center; }
.testimonial_author .test_img .mdix-initials {
  display: inline-flex; width: 95px; height: 95px; font-size: 26px; line-height: 1;
  color: #1f2937; background: var(--yellow); border: 6px solid #fff; margin: 0; padding: 0;
}

/* ---- Phones/tablets: compact top bar (it stacked to 290px and pushed the menu button down) ---- */
@media (max-width: 1199px) {
  .header-top { padding-top: 8px; padding-bottom: 8px; }
  .header-top ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin: 0; padding: 0; }
  .header-top ul li { margin: 0 !important; padding: 0; }
  .header-top .row { --bs-gutter-y: 4px; }
}
@media (max-width: 767px) {
  .header-top { display: none; }
  .slider-content p br { display: none; }
}
@media (max-width: 1199px) {
  .htright { margin-top: 0; padding-bottom: 0; }
  .htright .social_icons { margin-top: 0; }
}
/* top bar gradient ended in #A48300 (white text 3.3:1) — darker end colour for AA */
.header-top { background: linear-gradient(90deg, #14704a 0%, #765f00 100%); }

/* breadcrumb link on the page banner: ≥24px tap height */
.main_banner p a { display: inline-block; min-height: 24px; line-height: 24px; }
/* yellow campaign card: white text on yellow failed AA → dark text */
.card-yellow .btn-donate, .card-yellow .btn-donate i, .card-yellow .progress-percent-badge { color: #1f2937 !important; }
