/* ==========================================================================
   AL NISAR UMRAH SERVICE — OFFICIAL DAILY SCHEDULE BOARD
   Exact 100% Pixel-Perfect Match to Official Marketing Materials
   (Supports Desktop 3-Col & Mobile 2-Col / 1-Col Responsive Layouts)
   ========================================================================== */

/* Outer Section */
.schedule-section {
  padding: 40px 0 50px !important;
  background-color: var(--color-cream-bg, #FBF7EE) !important;
}

/* Master Board Container */
.umrah-schedule-board {
  max-width: 1180px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(11, 29, 38, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(13, 91, 62, 0.15);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. ISLAMIC ARCH TOP BANNER
   -------------------------------------------------------------------------- */
.umrah-schedule-header {
  position: relative;
  background: radial-gradient(circle at 50% 25%, #0B5C37 0%, #07462A 60%, #04311D 100%);
  padding: 32px 24px 28px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Decorative Mosque Silhouettes (Left & Right) */
.sched-mosque {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 95px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.sched-mosque--left {
  left: 12px;
}
.sched-mosque--right {
  right: 12px;
  transform: translateY(-50%) scaleX(-1);
}

/* Hanging Lanterns */
.sched-lantern {
  position: absolute;
  top: 0;
  width: 32px;
  height: 72px;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(255, 210, 0, 0.45));
}
.sched-lantern--left {
  left: 95px;
}
.sched-lantern--right {
  right: 95px;
}

/* Central Mihrab Arch Frame */
.sched-arch-frame {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 36px 14px;
  border: 2px solid #E5C365;
  border-radius: 60px 60px 22px 22px;
  background: rgba(4, 49, 29, 0.65);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 24px rgba(229, 195, 101, 0.22), inset 0 0 16px rgba(229, 195, 101, 0.12);
  max-width: 90%;
  box-sizing: border-box;
}

.sched-main-title {
  font-family: 'Cinzel', 'Playfair Display', 'Cormorant Garamond', 'Manrope', Georgia, serif !important;
  font-weight: 800 !important;
  font-size: 38px !important;
  line-height: 1.1 !important;
  color: #FFFFFF !important;
  letter-spacing: 2px !important;
  margin: 0 0 2px 0 !important;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sched-sub-title {
  font-family: 'Cinzel', 'Playfair Display', 'Cormorant Garamond', 'Manrope', Georgia, serif !important;
  font-weight: 800 !important;
  font-size: 30px !important;
  line-height: 1.15 !important;
  color: #F8C326 !important;
  letter-spacing: 1.5px !important;
  margin: 0 0 8px 0 !important;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(248, 195, 38, 0.35);
}

.sched-banner-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.sched-divider-line {
  display: inline-block;
  height: 2px;
  width: 44px;
  background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
  border-radius: 2px;
}

.sched-banner-tag {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 2.5px !important;
  color: #FFFFFF !important;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. SCHEDULE BOARD BODY
   -------------------------------------------------------------------------- */
.umrah-schedule-body {
  background-color: #EDF1F5;
  padding: 22px 22px 24px;
  box-sizing: border-box;
}

/* Default view toggles */
.sched-grid--desktop {
  display: block;
}
.sched-grid--mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   3. DESKTOP GRID LAYOUT (Exact 3-col + Row 3 Special from media_1790748359009.jpg)
   -------------------------------------------------------------------------- */
.sched-row-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.sched-row-special {
  display: grid;
  grid-template-columns: 1.72fr 1fr;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   4. SCHEDULE CARD ARCHITECTURE
   -------------------------------------------------------------------------- */
.sched-card {
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.sched-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

/* Card Header */
.sched-card__header {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
}

.sched-card__day {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sched-card__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Route Badge (e.g. MAKKAH - MADINAH) */
.sched-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sched-badge--route {
  background: rgba(0, 0, 0, 0.32);
  color: #FFFFFF;
  padding: 4px 10px;
}

/* Duration Badge (e.g. 3 DAYS, 4 DAYS) */
.sched-badge--duration {
  background: #FFD200;
  color: #1A1A1A;
  font-weight: 800;
  padding: 4px 10px;
}

.sched-badge--onlymakkah {
  background: #C2185B;
  color: #FFFFFF;
  padding: 4px 10px;
}

/* Card Body */
.sched-card__body {
  background: #FFFFFF;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  box-sizing: border-box;
}

/* Card Row */
.sched-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  box-sizing: border-box;
}

/* Origin Pills */
.sched-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  padding: 5px 8px;
  border-radius: 6px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sched-pill--dammam {
  background: #0077D7;
}

.sched-pill--makkah {
  background: #E61E4F;
}

.sched-pill--madinah {
  background: #107C41;
}

/* Clock Icon */
.sched-clock-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.sched-clock-icon {
  width: 18px;
  height: 18px;
  stroke: #107C41;
  display: block;
}

/* Time Metadata */
.sched-time-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sched-time-day {
  font-size: 14px;
  font-weight: 700;
  color: #1A202C;
}

.sched-time-val {
  font-size: 14px;
  font-weight: 800;
  color: #1A202C;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   5. SPECIFIC CARD COLOR THEMING (Exact 1:1 Match to Image Colors)
   -------------------------------------------------------------------------- */

/* Friday: Forest Green */
.sched-card--friday {
  border: 2px solid #127A4E;
}
.sched-card--friday .sched-card__header {
  background: #127A4E;
}

/* Saturday: Dark Teal */
.sched-card--saturday {
  border: 2px solid #166E74;
}
.sched-card--saturday .sched-card__header {
  background: #166E74;
}

/* Sunday: Royal Blue */
.sched-card--sunday {
  border: 2px solid #0B67D0;
}
.sched-card--sunday .sched-card__header {
  background: #0B67D0;
}

/* Monday: Purple */
.sched-card--monday {
  border: 2px solid #6C3E9C;
}
.sched-card--monday .sched-card__header {
  background: #6C3E9C;
}

/* Tuesday: Vibrant Orange */
.sched-card--tuesday {
  border: 2px solid #F05A24;
}
.sched-card--tuesday .sched-card__header {
  background: #F05A24;
}

/* Wednesday: Cyan Teal */
.sched-card--wednesday {
  border: 2px solid #008B94;
}
.sched-card--wednesday .sched-card__header {
  background: #008B94;
}

/* Thursday Dual (Desktop): Deep Magenta */
.sched-card--thursday-dual {
  border: 2px solid #C2185B;
}
.sched-card--thursday-dual .sched-card__header {
  background: #C2185B;
}

.sched-card__body--dual {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: center;
}

.sched-subcol {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sched-subcol--onlymakkah {
  border: 1.5px solid #C2185B;
  border-radius: 10px;
  padding: 9px 10px 10px;
  background: #FFF5F8;
  height: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.sched-subcol__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Makkah - Madinah 4 Days: Slate Indigo */
.sched-card--4days {
  border: 2px solid #4F59B5;
}
.sched-card--4days .sched-card__header {
  background: #4F59B5;
}

/* Standalone Thursday (Mobile view): Deep Magenta */
.sched-card--thursday {
  border: 2px solid #C2185B;
}
.sched-card--thursday .sched-card__header {
  background: #C2185B;
}

/* Standalone Only Makkah (Mobile view): Deep Magenta */
.sched-card--onlymakkah-standalone {
  border: 2px solid #C2185B;
  max-width: 480px;
  margin: 0 auto;
}
.sched-card--onlymakkah-standalone .sched-card__header {
  background: #C2185B;
  justify-content: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   6. POSTER FOOTER (Green Bar with Phones & Location)
   -------------------------------------------------------------------------- */
.umrah-schedule-footer {
  background: #074328;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(229, 195, 101, 0.25);
  box-sizing: border-box;
}

.sched-footer-phones {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sched-phone-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5B916;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sched-phone-num {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}
.sched-phone-num:hover {
  color: #F5B916;
}

.sched-phone-sep {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.sched-footer-address {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sched-address-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sched-address-text {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.15s ease;
}
.sched-address-text:hover {
  color: #F5B916;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sched-grid--desktop {
    display: none !important;
  }
  .sched-grid--mobile {
    display: block !important;
  }

  .sched-mobile-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
  }

  .sched-mobile-centered-row {
    display: flex;
    justify-content: center;
  }

  .sched-mobile-centered-row .sched-card {
    width: 100%;
    max-width: 480px;
  }

  .sched-main-title {
    font-size: 32px !important;
  }
  .sched-sub-title {
    font-size: 26px !important;
  }
}

@media (max-width: 768px) {
  .sched-mosque {
    display: none;
  }
  .sched-lantern--left {
    left: 20px;
  }
  .sched-lantern--right {
    right: 20px;
  }
  .sched-arch-frame {
    padding: 10px 20px 12px;
  }
  .sched-main-title {
    font-size: 28px !important;
  }
  .sched-sub-title {
    font-size: 22px !important;
  }
  .sched-banner-tag {
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
  }
  .sched-divider-line {
    width: 24px;
  }

  .sched-mobile-grid-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sched-card__day {
    font-size: 17px;
  }
  .sched-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .sched-pill {
    min-width: 92px;
    font-size: 10px;
    padding: 4px 6px;
  }
  .sched-time-day,
  .sched-time-val {
    font-size: 13px;
  }

  .umrah-schedule-footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 18px;
  }
  .sched-footer-phones,
  .sched-footer-address {
    justify-content: center;
  }
  .sched-phone-num {
    font-size: 17px;
  }
  .sched-address-text {
    font-size: 13px;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .umrah-schedule-body {
    padding: 12px;
  }
  .sched-card__header {
    padding: 8px 10px;
  }
  .sched-card__body {
    padding: 10px 10px;
  }
  .sched-pill {
    min-width: 82px;
    font-size: 9.5px;
  }
  .sched-time-day,
  .sched-time-val {
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   8. MULTILINGUAL & RTL ADJUSTMENTS
   -------------------------------------------------------------------------- */
html[lang="bn"] .sched-main-title,
html[lang="bn"] .sched-sub-title,
html[lang="bn"] .sched-card__day,
html[lang="bn"] .sched-badge,
html[lang="bn"] .sched-pill,
html[lang="bn"] .sched-time-day,
html[lang="bn"] .sched-time-val,
html[lang="bn"] .sched-address-text {
  font-family: 'BengaliDigitOne', 'Hind Siliguri', 'Noto Sans Bengali', var(--font-body), sans-serif !important;
}

html[lang="bn"] .sched-main-title {
  font-size: 34px !important;
}
html[lang="bn"] .sched-sub-title {
  font-size: 26px !important;
}
html[lang="bn"] .sched-pill {
  font-size: 11px !important;
  letter-spacing: normal !important;
}

html[dir="rtl"] .sched-main-title,
html[dir="rtl"] .sched-sub-title,
html[dir="rtl"] .sched-card__day,
html[dir="rtl"] .sched-badge,
html[dir="rtl"] .sched-pill,
html[dir="rtl"] .sched-time-day,
html[dir="rtl"] .sched-time-val,
html[dir="rtl"] .sched-address-text {
  font-family: 'Cairo', var(--font-body), sans-serif !important;
}

html[dir="rtl"] .sched-card__header {
  flex-direction: row-reverse;
}
html[dir="rtl"] .sched-card__badges {
  flex-direction: row-reverse;
}
html[dir="rtl"] .sched-card__row {
  flex-direction: row;
}
html[dir="rtl"] .sched-time-meta {
  flex-direction: row-reverse;
}
html[dir="rtl"] .sched-footer-phones,
html[dir="rtl"] .sched-footer-address {
  flex-direction: row-reverse;
}
