/* ==========================================================================
   المدرسة البيضاوية للحلاقة والتجميل - École Baidaouia
   Luxury Black & Royal Gold Palette, Responsive Grid, RTL/LTR Support
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-black: #0B0F19;
  --primary-dark: #111827;
  --primary-navy: #0F172A;
  --accent-gold: #D4AF37;
  --accent-gold-dark: #B45309;
  --accent-gold-light: #FDE68A;
  --accent-amber: #F59E0B;
  --accent-amber-hover: #D97706;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --font-arabic-heading: 'Cairo', 'Tajawal', sans-serif;
  --font-arabic-body: 'Tajawal', 'Cairo', sans-serif;
  --font-latin: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-soft);
  color: var(--text-dark);
}

html[dir="rtl"], html:not([dir]) {
  font-family: var(--font-arabic-body);
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  font-family: var(--font-latin);
  direction: ltr;
  text-align: left;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #0B0F19;
}
::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* Typography Utility */
.font-cairo {
  font-family: var(--font-arabic-heading);
}

.font-tajawal {
  font-family: var(--font-arabic-body);
}

.font-latin {
  font-family: var(--font-latin);
}

/* Gold & Dark Brand Colors */
.text-gold {
  color: var(--accent-gold);
}

.bg-gold {
  background-color: var(--accent-gold);
}

.border-gold {
  border-color: var(--accent-gold);
}

.text-navy {
  color: var(--primary-dark);
}

.bg-navy {
  background-color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   Hero Section Custom Collage Grid (Perfect Symmetrical Layout)
   -------------------------------------------------------------------------- */
.hero-mosaic-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  background-color: #0F172A;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  .hero-mosaic-container {
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    border-radius: 16px;
  }
}

.hero-left-col {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
}

@media (min-width: 1024px) {
  .hero-left-col {
    min-height: 500px;
  }
}

.hero-left-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}

.hero-left-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.88) 0%, rgba(15, 23, 42, 0.75) 60%, rgba(11, 15, 25, 0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-left-overlay {
    padding: 3.5rem 3rem;
  }
}

.hero-right-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  background-color: #0B0F19;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

@media (min-width: 1024px) {
  .hero-right-grid {
    min-height: 500px;
  }
}

.hero-grid-item {
  position: relative;
  overflow: hidden;
  background-color: #0B0F19;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.hero-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-grid-item:hover img {
  transform: scale(1.06);
}

/* Floating Logo Emblem inside Hero Collage */
.hero-emblem-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  z-index: 25;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
  pointer-events: none;
}

.hero-emblem-badge:hover {
  transform: translate(-50%, -50%) scale(1.08) rotate(3deg);
}

@media (min-width: 768px) {
  .hero-emblem-badge {
    width: 125px;
    height: 125px;
  }
}

/* --------------------------------------------------------------------------
   Department Cards (Matching the 3 Illustrated Cards in the Poster)
   -------------------------------------------------------------------------- */
.dept-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24, #D97706);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dept-card:hover {
  transform: translateY(-6px);
  border-color: #F59E0B;
  box-shadow: 0 16px 30px -8px rgba(217, 119, 6, 0.22);
}

.dept-card:hover::before {
  opacity: 1;
}

.dept-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.dept-card:hover .dept-icon-wrapper {
  transform: scale(1.1);
  background: #FFFBEB;
}

/* --------------------------------------------------------------------------
   "Why Choose" List Styling
   -------------------------------------------------------------------------- */
.why-lilia-list li {
  position: relative;
  padding-right: 1.75rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: #334155;
  font-size: 1.05rem;
}

.why-lilia-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   Interactive Buttons & Badges (Royal Gold Theme)
   -------------------------------------------------------------------------- */
.btn-primary-teal, .btn-primary-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  font-weight: 800;
  border-radius: 8px;
  padding: 0.65rem 1.6rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-primary-teal:hover, .btn-primary-gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: #0B0F19;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.btn-secondary-white {
  background-color: #FFFFFF;
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.65rem 1.6rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.btn-secondary-white:hover {
  background-color: #FFFBEB;
  color: #B45309;
  border-color: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.2);
}

/* Glass Header Styling */
.header-glass {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
}

/* Gallery Hover Overlay */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Modal Transitions */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background-color: rgba(11, 15, 25, 0.75);
}

/* Pulse animation for registration badges */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
}

.pulse-badge {
  animation: pulse-glow 2.5s infinite;
}

/* --------------------------------------------------------------------------
   Interactive Multi-Program Selection Cards (Gold Highlighting)
   -------------------------------------------------------------------------- */
.program-choice-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #E2E8F0;
  background-color: #F8FAFC;
  cursor: pointer;
  user-select: none;
}

.program-choice-card:hover {
  border-color: #FCD34D;
  background-color: #FFFBEB;
}

.program-choice-card.is-active {
  border-color: #F59E0B !important;
  background-color: #FEF3C7 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}

.program-choice-card.is-active .font-cairo {
  color: #92400E !important;
}



