/* ==========================================================================
   Institut de Beauté Lilia New Style - Official Stylesheet
   Typography, Responsive Grid, RTL Support, Custom Animations
   ========================================================================== */

@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&display=swap');

:root {
  --primary-navy: #1B3B6F;
  --primary-navy-dark: #102347;
  --accent-teal: #1FA2A6;
  --accent-teal-dark: #167D80;
  --accent-teal-light: #48C6CA;
  --accent-gold: #D97706;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-dark: #1E293B;
  --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: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* 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);
}

/* Navy & Teal Brand Colors */
.text-navy {
  color: var(--primary-navy);
}

.bg-navy {
  background-color: var(--primary-navy);
}

.text-teal {
  color: var(--accent-teal);
}

.bg-teal {
  background-color: var(--accent-teal);
}

.border-teal {
  border-color: var(--accent-teal);
}

/* --------------------------------------------------------------------------
   Hero Section Custom Collage Grid (Matching the Poster 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.25);
}

@media (min-width: 1024px) {
  .hero-mosaic-container {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 480px;
    border-radius: 0 0 16px 16px;
  }
}

.hero-left-col {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

@media (min-width: 1024px) {
  .hero-left-col {
    min-height: 480px;
  }
}

.hero-left-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.hero-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(27, 59, 111, 0.65) 60%, rgba(15, 23, 42, 0.4) 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: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background-color: #CBD5E1;
  position: relative;
}

.hero-grid-item {
  position: relative;
  overflow: hidden;
  background-color: #F8FAFC;
}

.hero-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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: 20;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
  transition: transform 0.4s ease;
}

.hero-emblem-badge:hover {
  transform: translate(-50%, -50%) scale(1.08) rotate(3deg);
}

@media (min-width: 768px) {
  .hero-emblem-badge {
    width: 130px;
    height: 130px;
  }
}

/* --------------------------------------------------------------------------
   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, var(--accent-teal), #38BDF8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dept-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-teal);
  box-shadow: 0 16px 30px -8px rgba(31, 162, 166, 0.18);
}

.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: #F0FDFA;
}

/* --------------------------------------------------------------------------
   "Why Lilia" (لماذا ليليا؟) 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(--primary-navy);
}

/* --------------------------------------------------------------------------
   Interactive Buttons & Badges
   -------------------------------------------------------------------------- */
.btn-primary-teal {
  background-color: var(--accent-teal);
  color: #FFFFFF;
  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(31, 162, 166, 0.35);
}

.btn-primary-teal:hover {
  background-color: var(--accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 162, 166, 0.45);
}

.btn-secondary-white {
  background-color: #FFFFFF;
  color: var(--primary-navy);
  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);
}

.btn-secondary-white:hover {
  background-color: #F8FAFC;
  color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Glass Header Styling */
.header-glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  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(15, 23, 42, 0.85), 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(15, 23, 42, 0.65);
}

/* Pulse animation for registration badges */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(31, 162, 166, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(31, 162, 166, 0);
  }
}

.pulse-badge {
  animation: pulse-glow 2.5s infinite;
}

/* --------------------------------------------------------------------------
   Interactive Multi-Program Selection Cards
   -------------------------------------------------------------------------- */
.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: #5EEAD4;
  background-color: #F0FDFA;
}

.program-choice-card.is-active {
  border-color: #1FA2A6 !important;
  background-color: #F0FDFA !important;
  box-shadow: 0 4px 14px rgba(31, 162, 166, 0.18) !important;
}

.program-choice-card.is-active .font-cairo {
  color: #0F766E !important;
}



