/* ===================================
=========== HomePage.css ==========
=================================== */

:root {
  --website-theme-bg-base:        #0c1014;
  --website-theme-bg-surface:     #131920;
  --website-theme-bg-surface-alt: #192029;
  --website-theme-bg-hover:       #202834;
  --website-theme-border-subtle:  #27303a;
  --website-theme-border:         #34404b;
  --website-theme-border-strong:  #455362;
  --website-theme-shadow-rgb:     0,0,0;
  --website-theme-glow-rgb:       200,169,107;
  --website-theme-text-primary:   #eef3f8;
  --website-theme-text-secondary: #bcc6d0;
  --website-theme-text-dim:       #8d98a5;
  --website-theme-radius-sm:      8px;
  --website-theme-radius-md:      14px;
  --website-theme-radius-lg:      22px;
  --website-theme-font-primary:   'Manrope', 'Segoe UI', sans-serif;
  --website-theme-accent-primary: #c8a96b;
  --website-theme-accent-secondary: #e0c289;
}

@keyframes hp-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hp-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hp-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hp-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hp-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===================================
      Hero Header Section
=================================== */

.hp-hero-section {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(224, 194, 137, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(120, 152, 190, 0.10), transparent 26%),
    linear-gradient(135deg, #16110d 0%, #0f151b 42%, #0b1015 100%);
  border-bottom: 1px solid rgba(224, 194, 137, 0.10);
}

.hp-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 28%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 72px,
      rgba(255, 255, 255, 0.018) 72px,
      rgba(255, 255, 255, 0.018) 73px
    );
  opacity: 0.5;
  pointer-events: none;
}

.hp-hero-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(12, 16, 20, 0) 0%, #0c1014 100%);
  pointer-events: none;
}

.hp-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.025), transparent 52%),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.75rem 1rem;
  animation: hp-fade-in-up 1s ease-out;
  max-width: 860px;
}

.hp-hero-badge {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 169, 107, 0.28);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--website-theme-accent-secondary);
  margin-bottom: 1.2rem;
  animation: hp-scale-in 0.8s ease-out 0.2s backwards;
}

.hp-hero-title {
  font-size: clamp(2.3rem, 6vw, 4.5rem) !important;
  font-weight: 800 !important;
  margin: 0 0 0.8rem 0 !important;
  line-height: 1.1 !important;
  animation: hp-scale-in 1s ease-out 0.4s backwards;
}

.hp-hero-title-ar {
  display: block;
  font-family: 'Noto Sans Arabic', sans-serif !important;
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  margin-bottom: 0.35rem;
}

.hp-hero-title-en {
  display: block;
  font-family: 'Space Grotesk', 'Manrope', sans-serif !important;
  font-size: 0.3em;
  font-weight: 600 !important;
  color: var(--website-theme-accent-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.34em;
}

.hp-hero-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  color: var(--website-theme-text-secondary);
  margin: 0 auto;
  font-weight: 500;
  animation: hp-fade-in 1.2s ease-out 0.6s backwards;
  max-width: 760px;
}

.hp-hero-intro {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--website-theme-text-dim);
  max-width: 720px;
  margin: 1rem auto 0;
}

.hp-hero-subtitle-ar {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--website-theme-text-dim);
  margin: 0.5rem 0 2.5rem 0;
  direction: rtl;
  animation: hp-fade-in 1.2s ease-out 0.7s backwards;
}

.hp-hero-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  animation: hp-fade-in-up 1.4s ease-out 0.8s backwards;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hp-hero-stat {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--website-theme-radius-md);
  transition: all 0.3s ease;
  min-width: 180px;
  flex: 1 1 220px;
  backdrop-filter: blur(10px);
}

.hp-hero-stat:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--website-theme-accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hp-hero-stat-value {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--website-theme-text-primary);
  margin-bottom: 0.25rem;
}

.hp-hero-stat-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--website-theme-text-dim);
  letter-spacing: 0;
  transition: all 0.3s ease;
}

/* ===================================
      Section Titles
=================================== */

.hp-section-title {
  font-family: 'Space Grotesk', 'Manrope', sans-serif !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  color: var(--website-theme-text-primary) !important;
  text-align: left;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hp-section-title-icon {
  font-size: 1.5em;
  filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.5));
}

.hp-section-title-ar {
  display: block;
  font-family: 'Noto Sans Arabic', sans-serif !important;
  font-size: 0.58em;
  font-weight: 600 !important;
  color: var(--website-theme-text-dim) !important;
  margin-top: 0;
}

.hp-home-main {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.008) 0%, transparent 10%),
    var(--website-theme-bg-base);
}

.hp-section-shell {
  padding: 4rem 0;
}

.hp-section-shell-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,0.035);
  border-bottom: 1px solid rgba(255,255,255,0.035);
}

.hp-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  max-width: 760px;
}

.hp-section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--website-theme-accent-secondary);
}

.hp-section-description {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--website-theme-text-secondary);
}

/* ===================================
      Quick Links Section
=================================== */

.hp-quick-links-section {
  padding: 3rem 0;
  background: var(--website-theme-bg-surface);
  border-top: 1px solid var(--website-theme-border-subtle);
  border-bottom: 1px solid var(--website-theme-border-subtle);
}

.hp-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hp-quick-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--website-theme-bg-surface-alt);
  border: 1px solid var(--website-theme-border-subtle);
  border-radius: var(--website-theme-radius-md);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.hp-quick-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hp-quick-link:hover::before {
  opacity: 1;
}

.hp-quick-link:hover {
  transform: translateY(-5px);
  border-color: var(--website-theme-accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hp-quick-link-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  filter: grayscale(0.3);
}

.hp-quick-link:hover .hp-quick-link-icon {
  transform: scale(1.2) rotate(5deg);
  filter: grayscale(0);
}

.hp-quick-link-text {
  flex: 1;
}

.hp-quick-link-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--website-theme-text-primary);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.hp-quick-link:hover .hp-quick-link-title {
  color: var(--website-theme-accent-secondary);
}

.hp-quick-link-title-ar {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--website-theme-text-dim);
  direction: rtl;
}

/* ===================================
      Main Content Cards
=================================== */

h1, h2, h3 {
  font-family: var(--website-theme-font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
  color: var(--website-theme-text-primary, #ffffff) !important;
  line-height: 1.3 !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  border: none !important;
  background: none !important;
  text-decoration: none !important;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  background: linear-gradient(135deg, var(--website-theme-accent-primary, #00d4ff), var(--website-theme-accent-secondary, #ff6b9d)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--website-theme-accent-primary, #00d4ff) !important;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
  font-weight: 650 !important;
  margin-bottom: 1.25rem !important;
  color: var(--website-theme-text-primary, #ffffff) !important;
}

/* ===================================
      Main Content Cards
=================================== */

.hp-unique-pages-section {
  background: transparent;
}

.hp-unique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}

.hp-unique-grid-featured {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hp-unique-grid-upcoming {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hp-unique-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(25, 32, 41, 0.9), rgba(19, 25, 32, 0.98));
  border-radius: var(--website-theme-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  animation: hp-fade-in-up 0.6s ease-out backwards;
  height: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hp-unique-card:nth-child(1) { animation-delay: 0.1s; }
.hp-unique-card:nth-child(2) { animation-delay: 0.15s; }
.hp-unique-card:nth-child(3) { animation-delay: 0.2s; }
.hp-unique-card:nth-child(4) { animation-delay: 0.25s; }
.hp-unique-card:nth-child(5) { animation-delay: 0.3s; }
.hp-unique-card:nth-child(6) { animation-delay: 0.35s; }
.hp-unique-card:nth-child(7) { animation-delay: 0.4s; }
.hp-unique-card:nth-child(8) { animation-delay: 0.45s; }
.hp-unique-card:nth-child(9) { animation-delay: 0.5s; }
.hp-unique-card:nth-child(10) { animation-delay: 0.55s; }
.hp-unique-card:nth-child(11) { animation-delay: 0.6s; }

.hp-unique-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  border-color: var(--website-theme-accent-primary);
}

.hp-unique-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 194, 137, 0.55), transparent);
  opacity: 0.7;
}

.hp-unique-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 54%;
  overflow: hidden;
  background: var(--website-theme-bg-surface-alt);
}

.hp-unique-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,10,14,0.05) 0%, rgba(7,10,14,0.24) 45%, rgba(7,10,14,0.72) 100%);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hp-unique-card:hover .hp-unique-image-wrapper::after {
  opacity: 0.38;
}

.hp-unique-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.82);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hp-unique-card:hover .hp-unique-image-wrapper img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.02);
}

.hp-unique-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #11161b;
  background: linear-gradient(135deg, #d7bb83 0%, #f0d7a0 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  z-index: 10;
  transition: all 0.25s ease;
}

.hp-unique-card:hover .hp-unique-badge {
  transform: translateY(-1px);
}

.hp-unique-info-panel {
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(24, 31, 39, 0.96), rgba(19, 25, 32, 1));
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.38rem;
}

.hp-unique-card-meta {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--website-theme-accent-secondary);
}

.hp-unique-title-ar {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--website-theme-text-primary);
  margin: 0;
  direction: rtl;
  transition: all 0.3s ease;
}

.hp-unique-card:hover .hp-unique-title-ar {
  color: var(--website-theme-accent-secondary);
}

.hp-unique-title-en {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--website-theme-text-dim);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.hp-unique-card:hover .hp-unique-title-en {
  color: var(--website-theme-text-primary);
}

.hp-unique-description {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--website-theme-text-secondary);
  flex-grow: 1;
}

.hp-unique-footer {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--website-theme-accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .hp-unique-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hp-container {
    padding: 0 1rem;
  }

  .hp-hero-section {
    min-height: auto;
    padding: 3rem 0 2.4rem;
  }

  .hp-hero-section::after {
    height: 80px;
  }

  .hp-hero-title {
    font-size: clamp(2.2rem, 12vw, 3.2rem) !important;
  }

  .hp-hero-title-en {
    letter-spacing: 0.18em;
  }

  .hp-hero-intro {
    font-size: 0.9rem;
  }
  
  .hp-hero-stats {
    gap: 0.8rem;
  }
  
  .hp-hero-stat {
    min-width: 100%;
    padding: 0.9rem 1rem;
  }
  
  .hp-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  
  .hp-quick-links-grid {
    grid-template-columns: 1fr;
  }

  .hp-section-shell {
    padding: 2.75rem 0;
  }

  .hp-unique-image-wrapper {
    padding-top: 58%;
  }

  .hp-unique-info-panel {
    padding: 0.9rem;
  }
}
