/* ════════════════════════════════════════════════════
   ONLINE COURSES PAGE — COMPLETE STYLESHEET
   Inherits: css/main.css (fonts, variables, btn-primary)
════════════════════════════════════════════════════ */

/* ─── PAGE BASE ─────────────────────────────────── */
.online-page {
  background-color: var(--beige);
  color: var(--dark);
}

/* ─── BACK BUTTON ───────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn--light {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.back-btn--light:hover {
  background: rgba(255,255,255,0.25);
}

/* ─── SHARED LAYOUT ─────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 0.75rem;
  display: block;
  text-align: center;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.gold-rule-divider {
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  margin: 0 auto 3.5rem;
  border-radius: 2px;
}

/* Shared section padding */
.filters-section,
.courses-section,
.reg-cta-section,
.wa-section,
.testi-section,
.faq-section,
.final-cta-section {
  padding: 2.5rem 1.5rem;
}

/* Alternating backgrounds */
.filters-section    { background: var(--beige); padding-bottom: 0; }
.courses-section    { background: var(--beige); }
.reg-cta-section    { background: var(--cream); }
.wa-section         { background: var(--beige); }
.testi-section      { background: var(--cream); }
.faq-section        { background: var(--beige); }
.final-cta-section  { background: var(--dark); padding: 0; }

/* ─── HERO ──────────────────────────────────────── */
.online-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-img-layer {
  position: absolute;
  inset: 0;
  background-image: url('../images/kaaba_mecca_1782544759624.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.online-hero:hover .hero-img-layer { transform: scale(1); }
.hero-pattern-layer {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23C9A646' stroke-width='0.8' opacity='0.2'><path d='M40 6 L48 24 L66 24 L52 36 L58 54 L40 44 L22 54 L28 36 L14 24 L32 24 Z'/></g></svg>");
  background-size: 80px 80px;
}
.hero-gradient-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,20,16,0.8) 0%,
    rgba(26,20,16,0.6) 50%,
    rgba(26,20,16,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 7rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 1.25rem;
}
.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}
.hero-heading em {
  font-style: italic;
  color: var(--gold-l);
  display: block;
  font-size: 0.8em;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* ─── FILTERS ───────────────────────────────────── */
.filters-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.cat-pill {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201,166,70,0.3);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.cat-pill:hover {
  border-color: var(--gold);
  color: var(--gold-d);
  background: rgba(201,166,70,0.05);
}
.cat-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(201,166,70,0.3);
}

/* ─── COURSE CARDS ──────────────────────────────── */
.courses-inner { max-width: 1200px; margin: 0 auto; }
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.course-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(201,166,70,0.18);
  box-shadow: 0 8px 24px -10px rgba(26,20,16,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -12px rgba(26,20,16,0.16);
}

.card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.course-card:hover .card-img img { transform: scale(1.05); }
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,16,0.85) 0%, transparent 60%);
}
.card-name {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
}
.card-name h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
  margin: 0;
  line-height: 1.25;
}
.card-name .card-cat-tag {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  text-transform: capitalize;
  margin-top: 3px;
  display: block;
}

.card-body {
  padding: 1.25rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.card-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201,166,70,0.12);
}
.spec-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.spec-row svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  line-height: 1.1;
}
.spec-val {
  font-size: 0.82rem;
  color: var(--dark);
  display: block;
  line-height: 1.3;
  font-weight: 500;
}
.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.75rem;
}
.price-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.price-val {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark);
}

.btn-view-details {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold-d);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}
.btn-view-details:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(201,166,70,0.3);
}
.btn-view-details svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}
.course-card.expanded .btn-view-details svg { transform: rotate(180deg); }
.course-card.expanded .btn-view-details {
  background: var(--gold);
  color: var(--white);
}

/* Expanded Detail Panel */
.card-details {
  display: none;
  border-top: 1px solid rgba(201,166,70,0.15);
  background: #faf7f2;
  padding: 1.75rem 1.5rem;
  animation: slideDown 0.35s ease;
}
.course-card.expanded .card-details { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.details-top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201,166,70,0.15);
  padding-bottom: 1rem;
}
.det-tab {
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201,166,70,0.25);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.det-tab.active, .det-tab:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.det-panel { display: none; }
.det-panel.active { display: block; }
.det-overview { font-size: 0.92rem; color: var(--muted); line-height: 1.75; }

.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-list li {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201,166,70,0.1);
  font-size: 0.88rem;
}
.sch-time {
  color: var(--gold-d);
  font-weight: 700;
  min-width: 80px;
  font-size: 0.8rem;
}
.sch-desc { color: var(--dark); }

.logistics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.log-item { font-size: 0.88rem; }
.log-item strong { display: block; color: var(--dark); font-weight: 700; margin-bottom: 2px; }
.log-item span { color: var(--muted); }

/* ─── REGISTRATION CTA ──────────────────────────── */
.reg-cta-section { padding: 0; }
.reg-cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding: 4rem 4rem;
}
.reg-banner-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23C9A646' stroke-width='0.8' opacity='0.12'><path d='M40 6 L48 24 L66 24 L52 36 L58 54 L40 44 L22 54 L28 36 L14 24 L32 24 Z'/></g></svg>");
  background-size: 80px 80px;
}
.reg-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.reg-banner-left { flex: 1; min-width: 280px; }
.reg-cta-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-l);
  display: block;
  margin-bottom: 1rem;
}
.reg-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 700;
}
.reg-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
}
.reg-banner-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.reg-fee-badge {
  text-align: center;
  background: rgba(201,166,70,0.12);
  border: 1px solid rgba(201,166,70,0.35);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  color: var(--gold-l);
  min-width: 180px;
  font-family: var(--font-serif);
  font-size: 2.5rem; 
  font-weight: 700; 
  display: block;
}
.reg-fee-badge span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,166,70,0.75);
  margin-top: 4px;
}
.btn-large {
  padding: 15px 40px;
  font-size: 1rem;
}

/* ─── WHATSAPP ──────────────────────────────────── */
.wa-inner {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, #075E54, #128C7E);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px -12px rgba(18,140,126,0.35);
}
.wa-text {}
.wa-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}
.wa-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25D366;
  color: var(--white);
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.wa-btn svg { width: 22px; height: 22px; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,0.45); }

/* ─── TESTIMONIALS ──────────────────────────────── */
.testi-inner { max-width: 820px; margin: 0 auto; }
.testi-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.car-viewport {
  overflow: hidden;
  flex-grow: 1;
  border-radius: 20px;
}
.car-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.car-slide {
  min-width: 100%;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid rgba(201,166,70,0.18);
  border-radius: 20px;
  text-align: center;
  box-sizing: border-box;
}
.car-stars {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}
.car-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}
.car-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.car-location {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.car-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,166,70,0.4);
  background: var(--white);
  color: var(--gold-d);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
}
.car-arrow svg { width: 18px; height: 18px; }
.car-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.car-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}
.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,166,70,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.car-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ─── FAQs ──────────────────────────────────────── */
.faq-inner { max-width: 780px; margin: 0 auto; }
.acc-item {
  border-bottom: 1px solid rgba(201,166,70,0.18);
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(201,166,70,0.15);
}
.acc-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.acc-header:hover { color: var(--gold-d); }
.acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,166,70,0.1);
  border: 1px solid rgba(201,166,70,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold-d);
  transition: transform 0.3s, background 0.3s;
}
.acc-item.open .acc-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.acc-body-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── FINAL CTA ─────────────────────────────────── */
.final-cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 2rem;
}
.final-cta-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23C9A646' stroke-width='0.8' opacity='0.12'><path d='M40 6 L48 24 L66 24 L52 36 L58 54 L40 44 L22 54 L28 36 L14 24 L32 24 Z'/></g></svg>");
  background-size: 80px 80px;
}
.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.final-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin: 1rem 0 0.75rem;
  line-height: 1.15;
}
.final-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
}
.final-cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-wa-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1.5px solid #25D366;
  color: #25D366;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-wa-outline svg { width: 18px; height: 18px; }
.btn-wa-outline:hover { background: #25D366; color: var(--white); }

/* ─── SCROLL REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.vis { opacity: 1; transform: translateY(0); }
