/*
Theme Name:  Haizum Institute
Theme URI:   https://haizum.agency
Author:      Haizum Agency
Author URI:  https://haizum.agency
Description: Islamic institute theme. Quran classes, Arabic studies, enrollment forms, timetables, prayer times. Arabic + English bilingual support. Built by Haizum Agency.
Version:     1.0
License:     Private
Text Domain: haizum-institute
*/

/* ============================================================
   GOOGLE FONTS
   Amiri       — Arabic-origin serif, beautiful for Islamic contexts
   Noto Sans   — full Arabic + Latin support for body text
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Noto+Sans:wght@300;400;600;700&family=Noto+Sans+Arabic:wght@400;600;700&display=swap');

/* ============================================================
   GLOBAL VARIABLES — change only these 5 per client
   ============================================================ */

:root {
  --primary:       #1a4731;
  --primary-light: #245e41;
  --primary-dim:   rgba(26,71,49,0.08);
  --accent:        #c9993a;
  --accent-hover:  #b8882e;
  --accent-dim:    rgba(201,153,58,0.12);

  --bg:            #f8faf8;
  --surface:       #ffffff;
  --surface2:      #f0f5f1;
  --border:        #dde8e0;

  --text:          #1a2e22;
  --text2:         #4a6355;
  --text3:         #8aaa96;

  --success:       #16a34a;
  --error:         #dc2626;

  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;
  --radius-pill:   999px;
  --max-width:     1080px;
  --header-h:      68px;

  --font:          'Noto Sans', 'Segoe UI', sans-serif;
  --font-heading:  'Amiri', Georgia, serif;
  --font-arabic:   'Noto Sans Arabic', 'Amiri', sans-serif;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: var(--font); font-size: inherit; }

/* Arabic text utility class */
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 1.9;
}

/* ============================================================
   UTILITY
   ============================================================ */

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-light); border-color: var(--primary-light); }
.btn-accent   { background: var(--accent);  color: #fff; border-color: var(--accent); }
.btn-accent:hover   { background: var(--accent-hover);  border-color: var(--accent-hover); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover  { background: var(--primary); color: #fff; }

.section-heading {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.section-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 32px;
  font-weight: 300;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-icon {
  color: var(--accent);
  font-size: 18px;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.site-logo { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 44px; width: auto; }

.logo-text-wrap { display: flex; flex-direction: column; }

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.site-logo-arabic {
  font-family: var(--font-arabic);
  font-size: 14px;
  color: var(--accent);
  direction: rtl;
  line-height: 1.2;
}

/* Nav */
.site-nav { flex: 1; }

.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-list li a {
  display: block;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a {
  color: var(--primary);
  background: var(--primary-dim);
}

/* Header right — WhatsApp call button */
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-wa-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
  border: 2px solid var(--primary);
}

.header-wa-btn:hover { background: var(--primary-light); border-color: var(--primary-light); }
.header-wa-btn svg { width: 14px; height: 14px; fill: #fff; }

/* Mobile toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; }

.mobile-nav {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  padding: 16px 24px; z-index: 99;
  box-shadow: 0 8px 32px rgba(26,71,49,0.12);
}

.mobile-nav.open { display: block; }
.mobile-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 2px; }
.mobile-nav .nav-list li a { font-size: 14px; padding: 10px 14px; width: 100%; }

@media (max-width: 768px) { .site-nav { display: none; } .menu-toggle { display: flex; } .header-wa-btn .wa-btn-text { display: none; } }

/* ============================================================
   QURANIC VERSE BANNER — top of homepage, Arabic verse + translation
   ============================================================ */

.verse-banner {
  background: var(--primary);
  padding: 20px 24px;
  text-align: center;
}

.verse-arabic {
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--accent);
  direction: rtl;
  margin-bottom: 6px;
  line-height: 1.8;
}

.verse-translation {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  font-weight: 300;
}

.verse-reference {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ============================================================
   HERO BANNER
   ============================================================ */

.hero-banner {
  position: relative;
  height: 460px;
  background: var(--surface2);
  overflow: hidden;
}

@media (max-width: 600px) { .hero-banner { height: 360px; } }

.banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease;
}

.hero-banner:hover .banner-bg { transform: scale(1.02); }

.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,71,49,0.82) 0%,
    rgba(26,71,49,0.5)  50%,
    rgba(26,71,49,0.1)  100%
  );
}

.banner-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 600px) { .banner-content { padding: 0 24px; } }

.banner-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  width: fit-content;
}

.banner-arabic {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  direction: rtl;
  margin-bottom: 8px;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
  max-width: 500px;
}

.banner-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
  max-width: 400px;
  font-weight: 300;
  line-height: 1.7;
}

.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-banner {
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent;
  display: inline-block;
}

.btn-banner-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-banner-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-banner-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-banner-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ============================================================
   STATS STRIP — numbers that build trust
   ============================================================ */

.stats-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  background: var(--surface);
  padding: 20px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================================================
   COURSES SECTION — homepage preview
   ============================================================ */

.courses-section { padding: 60px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.view-all-link {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.view-all-link:hover { opacity: 0.65; }

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .courses-grid { grid-template-columns: repeat(3, 1fr); } }

/* Course card */
.course-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(26,71,49,0.1);
  transform: translateY(-2px);
}

.course-icon {
  width: 48px; height: 48px;
  background: var(--primary-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.course-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.course-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.course-arabic-name {
  font-family: var(--font-arabic);
  font-size: 13px;
  color: var(--text3);
  direction: rtl;
  margin-top: 2px;
}

.course-fee {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.course-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.course-enroll-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  margin-top: auto;
}

.course-enroll-btn:hover { background: var(--primary-light); }

/* ============================================================
   TIMETABLE SECTION (on courses/timetable page)
   ============================================================ */

.timetable-section { padding: 48px 0 64px; }

.timetable-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--surface);
}

.timetable-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 13px;
}

.timetable-table thead tr {
  background: var(--primary);
  color: #fff;
}

.timetable-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.timetable-table th:last-child { border-right: none; }

.timetable-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text2);
  vertical-align: middle;
}

.timetable-table td:last-child { border-right: none; }
.timetable-table tr:last-child td { border-bottom: none; }
.timetable-table tbody tr:nth-child(even) { background: var(--surface2); }

.timetable-table tbody tr:hover { background: var(--primary-dim); }

.timetable-course-name { font-weight: 700; color: var(--text); font-size: 13px; }
.timetable-arabic { font-family: var(--font-arabic); font-size: 12px; color: var(--text3); direction: rtl; }

.timetable-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

.badge-morning  { background: #fef9c3; color: #854d0e; }
.badge-evening  { background: #dbeafe; color: #1e40af; }
.badge-weekend  { background: #dcfce7; color: #166534; }
.badge-online   { background: var(--primary-dim); color: var(--primary); }

/* ============================================================
   ENROLLMENT SECTION
   ============================================================ */

.enroll-section { padding: 60px 0; background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.enroll-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) { .enroll-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

.enroll-info h2 {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
  line-height: 1.2;
}

.enroll-info .arabic-heading {
  font-family: var(--font-arabic);
  font-size: 18px; color: var(--accent);
  direction: rtl; margin-bottom: 16px;
}

.enroll-info p {
  font-size: 14px; color: var(--text2);
  line-height: 1.9; margin-bottom: 14px;
  font-weight: 300;
}

.enroll-steps { margin-top: 20px; }

.enroll-step {
  display: flex; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.enroll-step:last-child { border-bottom: none; }

.enroll-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

.enroll-step-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.enroll-step-desc  { font-size: 13px; color: var(--text2); font-weight: 300; }

/* Enrollment form */
.enroll-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 28px;
}

.enroll-form-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}

.enroll-form-arabic {
  font-family: var(--font-arabic);
  font-size: 14px; color: var(--accent);
  direction: rtl; margin-bottom: 20px;
}

/* WPForms / CF7 form fields */
.enroll-form-wrap .wpcf7-form input[type="text"],
.enroll-form-wrap .wpcf7-form input[type="email"],
.enroll-form-wrap .wpcf7-form input[type="tel"],
.enroll-form-wrap .wpcf7-form select,
.enroll-form-wrap .wpcf7-form textarea,
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s;
  outline: none;
}

.enroll-form-wrap .wpcf7-form input:focus,
.enroll-form-wrap .wpcf7-form select:focus,
.enroll-form-wrap .wpcf7-form textarea:focus,
.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--primary);
}

.enroll-form-wrap .wpcf7-form .wpcf7-list-item label,
.wpforms-container .wpforms-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.enroll-form-wrap .wpcf7-form p { margin-bottom: 14px; }

.enroll-form-wrap .wpcf7-form input[type="submit"],
.wpforms-container .wpforms-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.enroll-form-wrap .wpcf7-form input[type="submit"]:hover,
.wpforms-container .wpforms-form button[type="submit"]:hover {
  background: var(--primary-light);
}

/* Payment link button */
.payment-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--surface2);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  margin-top: 10px;
  cursor: pointer;
}

.payment-link-btn:hover { background: var(--primary); color: #fff; }

/* ============================================================
   PRAYER TIMES WIDGET
   ============================================================ */

.prayer-section { padding: 48px 0; background: var(--primary); }

.prayer-section .section-heading { color: #fff; }
.prayer-section .section-sub { color: rgba(255,255,255,0.6); }

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 640px) { .prayer-grid { grid-template-columns: repeat(6, 1fr); } }

.prayer-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s;
}

.prayer-card:hover { background: rgba(255,255,255,0.14); }
.prayer-card.active { background: var(--accent); border-color: var(--accent); }

.prayer-arabic {
  font-family: var(--font-arabic);
  font-size: 15px;
  color: var(--accent);
  direction: rtl;
  margin-bottom: 4px;
}

.prayer-card.active .prayer-arabic { color: #fff; }

.prayer-name { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.prayer-card.active .prayer-name { color: rgba(255,255,255,0.9); }

.prayer-time { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: #fff; }

.prayer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   TEACHERS SECTION
   ============================================================ */

.teachers-section { padding: 60px 0; background: var(--surface2); border-top: 1px solid var(--border); }

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) { .teachers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .teachers-grid { grid-template-columns: repeat(4, 1fr); } }

.teacher-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  text-align: center;
  transition: all 0.2s;
}

.teacher-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,71,49,0.1); }

.teacher-img {
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
}

.teacher-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.teacher-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  background: var(--primary-dim);
  color: var(--primary);
}

.teacher-info { padding: 16px; }

.teacher-name { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.teacher-arabic { font-family: var(--font-arabic); font-size: 12px; color: var(--accent); direction: rtl; margin-bottom: 6px; }
.teacher-role { font-size: 12px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */

.why-section { padding: 60px 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.why-card:hover { border-color: var(--primary); }

.why-icon { font-size: 28px; margin-bottom: 12px; }
.why-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.why-desc { font-size: 13px; color: var(--text2); line-height: 1.6; font-weight: 300; }

/* ============================================================
   CONTACT + MAP SECTION
   ============================================================ */

.contact-section { padding: 60px 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact-info h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.contact-info .contact-arabic { font-family: var(--font-arabic); font-size: 15px; color: var(--accent); direction: rtl; margin-bottom: 16px; }
.contact-info p { font-size: 14px; color: var(--text2); line-height: 1.9; margin-bottom: 20px; font-weight: 300; }

.contact-detail {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 14px; color: var(--text2);
}

.contact-detail-icon {
  width: 38px; height: 38px;
  background: var(--primary-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; color: var(--primary);
}

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 300px; border: none; }

/* ============================================================
   COURSES PAGE (page-courses.php full layout)
   ============================================================ */

.courses-page { padding: 40px 0 64px; }

/* ============================================================
   TIMETABLE PAGE (page-timetable.php)
   ============================================================ */

.timetable-page { padding: 40px 0 64px; }

.timetable-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  transition: all 0.15s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   GENERIC PAGE
   ============================================================ */

.generic-page { padding: 48px 0 64px; }

.page-title { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 38px); font-weight: 700; margin-bottom: 24px; }

.page-content { font-size: 15px; color: var(--text2); line-height: 1.9; max-width: 720px; font-weight: 300; }
.page-content h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.page-content p  { margin-bottom: 14px; }
.page-content ul { padding-left: 20px; list-style: disc; margin-bottom: 14px; }
.page-content li { margin-bottom: 6px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb { padding: 14px 0; font-size: 12px; color: var(--text3); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.breadcrumb a { color: var(--text3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   FOOTER — deep green
   ============================================================ */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 28px;
  border-top: 3px solid var(--accent);
}

.footer-top { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
@media (min-width: 640px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }

.footer-logo-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-logo-arabic { font-family: var(--font-arabic); font-size: 15px; color: var(--accent); direction: rtl; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; line-height: 1.7; font-weight: 300; margin-bottom: 16px; }

.footer-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); margin-bottom: 14px; }

.footer-links li { margin-bottom: 8px; }
.footer-links li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.15s; font-weight: 300; }
.footer-links li a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-hadith { font-family: var(--font-arabic); font-size: 13px; color: var(--accent); direction: rtl; }

.footer-whatsapp-link { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); font-weight: 700; }

/* ============================================================
   FLOATING WHATSAPP — green style
   ============================================================ */

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 13px 20px 13px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: all 0.2s; text-decoration: none;
}

.whatsapp-float:hover { background: #1db854; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
@media (max-width: 400px) { .whatsapp-float .wa-label { display: none; } .whatsapp-float { padding: 13px; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .desktop-only { display: none !important; }
  .section-heading { font-size: 24px; }
  .courses-section { padding: 40px 0; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 601px) { .mobile-only { display: none !important; } }
