/* ============================================
   0. FONT-FACE DECLARATIONS
   ============================================ */
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('assets/font/TheYearOfCamel/TheYearofTheCamel-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('assets/font/TheYearOfCamel/TheYearofTheCamel-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('assets/font/TheYearOfCamel/TheYearofTheCamel-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('assets/font/TheYearOfCamel/TheYearofTheCamel-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('assets/font/TheYearOfCamel/TheYearofTheCamel-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   1. ROOT VARIABLES
   ============================================ */
:root {
  --color-bg: #F7F1E4;
  --color-surface: #EFE8D8;
  --color-surface-alt: #E7DFCB;
  --color-text: #1A2E24;
  --color-text-secondary: #2D4036;
  --color-muted: #5A6B62;
  --color-muted-light: #8A9E94;
  --color-primary: #0D4026;
  --color-primary-dark: #082B1A;
  --color-primary-light: rgba(13, 64, 38, 0.08);
  --color-primary-hover: #115A32;
  --color-gold: #c9a24a;
  --color-gold-light: rgba(201, 162, 74, 0.12);
  --color-gold-hover: #b8912e;
  --color-border: #E0D8C8;
  --color-border-light: #EAE3D6;
  --color-footer-bg: #EBE4D2;
  --color-overlay: rgba(26, 46, 36, 0.55);
  --color-white: #ffffff;
  --color-error: #c0392b;
  --color-success: #0D4026;

  --shadow-sm: 0 2px 8px rgba(13, 64, 38, 0.06);
  --shadow-md: 0 8px 30px rgba(13, 64, 38, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 64, 38, 0.10);
  --shadow-hover: 0 24px 70px rgba(13, 64, 38, 0.14);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 280ms ease;
  --transition-slow: 400ms ease;

  --font-heading: 'TheYearofTheCamel', 'Traditional Arabic', 'Arabic Typesetting', 'Times New Roman', serif;
  --font-body: 'TheYearofTheCamel', 'Segoe UI', Tahoma, sans-serif;

  --max-width: 1200px;
  --header-height: 148px;
}

/* ============================================
   2. RESET / BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.125rem, 1.8vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.4vw, 1.2rem); }

p {
  margin-bottom: 1.2rem;
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================
   3. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 920px;
}

.page-section {
  padding: 80px 0;
}

.page-section--sm {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 16px auto 24px;
  border-radius: 4px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   4. HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 12px;
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: normal;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: var(--color-primary-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 18px;
  left: 18px;
  height: 2.5px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  border-radius: 3px;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  animation: navLineEnter 0.45s ease-out both;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px;
  outline: none;
}

.menu-toggle .hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.3s;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.menu-toggle .hamburger::before {
  top: -8px;
}

.menu-toggle .hamburger::after {
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

@keyframes navLineEnter {
  0% {
    transform: scaleX(0);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(1);
    transform-origin: right center;
  }
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 64, 38, 0.25);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 74, 0.3);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================
   6. CARDS
   ============================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold-light);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: 24px;
}

.card__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 100px;
  margin-bottom: 10px;
  letter-spacing: normal;
  text-transform: uppercase;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.card__text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.card__date {
  font-size: 0.8rem;
  color: var(--color-muted-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition);
}

.card__link:hover {
  gap: 10px;
  color: var(--color-primary-hover);
}

/* RTL card link override */
[dir="rtl"] .card__link:hover {
  gap: 10px;
}

/* ============================================
   7. HOME PAGE
   ============================================ */

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, var(--color-border) 1px, transparent 1px),
    linear-gradient(-30deg, var(--color-border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  animation: fadeUp 0.8s ease-out;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: normal;
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(13, 64, 38, 0.08));
  pointer-events: none;
}

.hero__accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--color-gold-light);
  border-radius: var(--radius-md);
  z-index: -1;
}

/* RTL Hero Overrides */
[dir="rtl"] .hero::after {
  left: auto;
  right: -10%;
}

[dir="rtl"] .hero__accent {
  left: auto;
  right: -20px;
}

/* Stats */
.stats {
  background: var(--color-surface);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-light);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RTL About Override */
[dir="rtl"] .about__image {
  order: 0;
}

/* Gallery Preview */
.gallery-preview {
  background: var(--color-surface);
}

.gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-preview__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-preview__item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-preview__item .overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-preview__item:hover .overlay {
  opacity: 1;
}

.gallery-preview__item .overlay span {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, var(--color-primary-light) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta .btn-group {
  justify-content: center;
}

/* ============================================
   8. ACTIVITIES PAGE
   ============================================ */

/* Page Hero */
.page-hero {
  padding: 64px 0 48px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, var(--color-border) 1px, transparent 1px),
    linear-gradient(-30deg, var(--color-border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.page-hero__desc {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-pill {
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  cursor: default;
  transition: all var(--transition);
}

.filter-pill:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-pill--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Activities Grid */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.activity-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold-light);
}

.activity-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.activity-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.activity-card:hover .activity-card__image img {
  transform: scale(1.05);
}

.activity-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 100px;
  letter-spacing: normal;
}

.activity-card__body {
  padding: 22px;
}

.activity-card__date {
  font-size: 0.8rem;
  color: var(--color-muted-light);
  margin-bottom: 6px;
}

.activity-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.activity-card__text {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.activity-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition);
}

.activity-card__link:hover {
  gap: 10px;
  color: var(--color-primary-hover);
}

/* Upcoming Programs */
.upcoming {
  background: var(--color-surface);
}

.upcoming-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.upcoming-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary-light);
}

.upcoming-item__date {
  flex-shrink: 0;
  text-align: center;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
}

.upcoming-item__day {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.upcoming-item__month {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upcoming-item__info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.upcoming-item__info p {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ============================================
   9. GALLERY PAGE
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-grid__item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-grid__item:hover img {
  transform: scale(1.08);
}

.gallery-grid__item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-overlay) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-grid__item:hover .overlay {
  opacity: 1;
}

.gallery-grid__item .overlay span {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-grid__item .overlay small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.gallery-grid__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-grid__item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

/* ============================================
   10. VIDEOS PAGE
   ============================================ */

/* Featured Video */
.featured-video {
  margin-bottom: 48px;
}

.featured-video__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.featured-video__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.featured-video__play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-right: 0;
  margin-left: 4px;
}

[dir="rtl"] .featured-video__play::after {
  margin-left: 0;
  margin-right: 4px;
}

.featured-video__card:hover .featured-video__play {
  background: var(--color-white);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.featured-video__info {
  margin-top: 20px;
  text-align: center;
}

.featured-video__info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.featured-video__info p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Video Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.video-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold-light);
}

.video-card__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.video-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-card:hover .video-card__thumbnail img {
  transform: scale(1.05);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.video-card__play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-left: 3px;
}

[dir="rtl"] .video-card__play::after {
  margin-left: 0;
  margin-right: 3px;
}

.video-card:hover .video-card__play {
  background: var(--color-white);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card__duration {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
}

[dir="rtl"] .video-card__duration {
  left: auto;
  right: 10px;
}

.video-card__body {
  padding: 20px;
}

.video-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.video-card__text {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ============================================
   11. CONTACT PAGE
   ============================================ */

/* Contact Info Cards */
.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.contact-info-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-light);
}

.contact-info-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 50%;
  font-size: 1.3rem;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Contact Form + Map */
.contact-main__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-family: var(--font-heading);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--color-muted-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* Map Placeholder */
.map-placeholder {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
  position: relative;
  background-image:
    linear-gradient(var(--color-border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
  background-size: 60px 60px;
}

.map-placeholder__content {
  text-align: center;
  z-index: 1;
}

.map-placeholder__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.map-placeholder h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.map-placeholder p {
  font-size: 0.88rem;
  color: var(--color-muted-light);
}

/* FAQ */
.faq {
  background: var(--color-surface);
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.faq-item {
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================
   12. FOOTER
   ============================================ */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border-light);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__contact p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--color-muted-light);
}

.footer__bottom a {
  color: var(--color-primary);
}

.footer__bottom a:hover {
  text-decoration: underline;
}

/* ============================================
   13. SKELETON LOADING
   ============================================ */
.skeleton {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.skeleton-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-body {
  padding: 20px;
}

.skeleton-line {
  height: 14px;
  background: var(--color-surface);
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-line--short {
  width: 60%;
}

.skeleton-line--medium {
  width: 80%;
}

.skeleton-line--long {
  width: 100%;
}

.skeleton-line--thin {
  height: 10px;
}

.skeleton-button {
  width: 120px;
  height: 38px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.skeleton-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

/* Skeleton Preview Section */
.skeleton-preview {
  background: var(--color-surface);
}

.skeleton-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================
   14. ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.fade-up--delay-1 { animation-delay: 0.1s; }
.fade-up--delay-2 { animation-delay: 0.2s; }
.fade-up--delay-3 { animation-delay: 0.3s; }
.fade-up--delay-4 { animation-delay: 0.4s; }
.fade-up--delay-5 { animation-delay: 0.5s; }

/* View Transitions */
@view-transition {
  navigation: auto;
}

/* ============================================
   15. RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
  .hero__grid {
    gap: 40px;
  }

  .grid-4,
  .stats__grid,
  .gallery-preview__grid,
  .contact-info__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activities-grid,
  .videos-grid,
  .skeleton-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .contact-main__grid {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    min-height: 300px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0;
    position: relative;
  }

  .site-title {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    z-index: 10;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 18px;
    z-index: 20;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border-light);
  }

  .main-nav.is-open {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .nav-link {
    display: block;
    text-align: right;
    padding: 12px 18px;
    background: transparent !important;
    border-radius: 0;
    width: 100%;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Optional subtle divider */
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none !important; /* Hide animated line on mobile */
  }

  .page-section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin: 0 auto 28px;
  }

  .hero .btn-group {
    justify-content: center;
  }

  .hero__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero__accent {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    order: -1;
  }

  .grid-2,
  .faq__grid,
  .upcoming-list {
    grid-template-columns: 1fr;
  }

  .activities-grid,
  .videos-grid,
  .skeleton-preview__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid__item--wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .gallery-grid__item--tall {
    grid-row: span 1;
  }

  .contact-info__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .stats__grid {
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .page-section {
    padding: 40px 0;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .header-inner {
    padding: 12px 0 10px;
  }

  .site-title {
    font-size: 1.05rem;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.88rem;
  }

  .stats__grid,
  .grid-4,
  .contact-info__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-card__number {
    font-size: 1.8rem;
  }

  .gallery-preview__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-grid__item {
    aspect-ratio: 1;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .featured-video__play {
    width: 60px;
    height: 60px;
  }

  .featured-video__play::after {
    border-width: 10px 0 10px 16px;
  }

  .contact-info__grid {
    gap: 12px;
  }

  .contact-info-card {
    padding: 20px 12px;
  }

  .map-placeholder {
    min-height: 220px;
  }

  .faq__grid {
    gap: 12px;
  }

  .faq-item {
    padding: 18px;
  }

  .cta {
    padding: 60px 0;
  }
}

/* ============================================
   16. REDUCED MOTION ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__content,
  .hero__image,
  .fade-up,
  .nav-link[aria-current="page"]::after {
    animation: none;
    opacity: 1;
  }

  .card:hover,
  .activity-card:hover,
  .video-card:hover,
  .stat-card:hover,
  .contact-info-card:hover {
    transform: none;
  }

  .card:hover .card__image img,
  .activity-card:hover .activity-card__image img,
  .video-card:hover .video-card__thumbnail img,
  .gallery-grid__item:hover img {
    transform: none;
  }

  .skeleton::after,
  .skeleton-image::after,
  .skeleton-line::after,
  .skeleton-button::after {
    animation: none;
    background: var(--color-surface);
  }
}


/* ============================================
   17. INTERACTIVE MEDIA MODALS + MOBILE POLISH
   ============================================ */
body.modal-open {
  overflow: hidden;
}

.gallery-grid__item,
.gallery-preview__item,
.video-card,
.featured-video__card {
  -webkit-tap-highlight-color: transparent;
}

.gallery-grid__item:focus-visible,
.gallery-preview__item:focus-visible,
.video-card:focus-visible,
.featured-video__card:focus-visible {
  outline: 3px solid rgba(13, 64, 38, 0.35);
  outline-offset: 4px;
}

.media-dialog {
  width: min(94vw, 1040px);
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.media-dialog[open] {
  animation: modalEnter 220ms ease forwards;
}

.media-dialog.is-closing {
  animation: modalExit 180ms ease forwards;
}

.media-dialog::backdrop {
  background: rgba(12, 24, 19, 0.66);
  backdrop-filter: blur(10px);
  animation: backdropEnter 220ms ease both;
}

.media-dialog.is-closing::backdrop {
  animation: backdropExit 180ms ease both;
}

.media-dialog__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), background var(--transition);
}

.media-dialog__close:hover,
.media-dialog__close:focus-visible {
  transform: scale(1.06);
  background: var(--color-white);
}

.image-lightbox__figure {
  position: relative;
  display: grid;
  gap: 0;
  width: 100%;
  max-height: 92dvh;
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-white);
}

.image-lightbox__figure img {
  width: 100%;
  max-height: calc(92dvh - 72px);
  object-fit: contain;
  background: #0d1712;
}

.image-lightbox__figure figcaption {
  padding: 18px 22px;
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 700;
  text-align: center;
}

.video-modal__content {
  padding: 18px;
  border-radius: 28px;
  background: var(--color-white);
}

.video-modal__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72dvh;
  border-radius: 20px;
  background: #050807;
}

.video-modal__title {
  margin-top: 16px;
  text-align: center;
  color: var(--color-text);
}

.video-modal__hint {
  margin-top: 6px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.86rem;
}

@keyframes modalEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

@keyframes backdropEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdropExit {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Strong mobile layout pass: tuned for 360px, 390px, 414px, and 430px screens */
@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .contact-main__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .activities-grid,
  .videos-grid,
  .skeleton-preview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .contact-info__grid,
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --radius-md: 14px;
    --radius-lg: 20px;
  }

  .container {
    padding-inline: 16px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    padding: 10px 0 9px;
  }

  .site-title {
    font-size: clamp(1rem, 5vw, 1.25rem);
    margin-bottom: 0;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero__grid {
    gap: 28px;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .hero__subtitle,
  .page-hero__desc,
  .section-header p,
  .about__content p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .btn-group {
    width: 100%;
    gap: 10px;
  }

  .btn {
    flex: 1 1 100%;
    padding: 13px 18px;
  }

  .page-section {
    padding: 52px 0;
  }

  .page-section--sm {
    padding: 30px 0;
  }

  .page-hero {
    padding: 44px 0 34px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .stats__grid,
  .activities-grid,
  .videos-grid,
  .upcoming-list,
  .contact-info__grid,
  .contact-main__grid,
  .faq__grid,
  .footer__grid,
  .skeleton-preview__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-preview__grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-grid__item--tall,
  .gallery-grid__item--wide {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 1;
  }

  .gallery-grid__item .overlay {
    opacity: 1;
    padding: 12px;
    background: linear-gradient(to top, rgba(26, 46, 36, 0.70) 0%, transparent 58%);
  }

  .gallery-grid__item .overlay span {
    font-size: 0.78rem;
  }

  .gallery-grid__item .overlay small {
    font-size: 0.66rem;
  }

  .activity-card__body,
  .video-card__body,
  .card__body,
  .contact-form,
  .faq-item {
    padding: 18px;
  }

  .featured-video__play {
    width: 58px;
    height: 58px;
  }

  .video-card__play {
    width: 46px;
    height: 46px;
  }

  .media-dialog {
    width: calc(100vw - 20px);
    max-height: 94dvh;
    border-radius: 22px;
  }

  .media-dialog__close {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    font-size: 1.8rem;
  }

  .image-lightbox__figure {
    border-radius: 22px;
  }

  .image-lightbox__figure img {
    max-height: calc(94dvh - 82px);
  }

  .image-lightbox__figure figcaption,
  .video-modal__content {
    padding: 14px;
  }

  .video-modal__player {
    border-radius: 16px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 12px;
  }

  .gallery-preview__grid,
  .gallery-grid {
    gap: 8px;
  }

  .stat-card,
  .contact-info-card {
    padding: 18px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-dialog[open],
  .media-dialog.is-closing,
  .media-dialog::backdrop,
  .media-dialog.is-closing::backdrop {
    animation: none !important;
  }
}

/* ========== SCROLL TO TOP ========== */
.scroll-to-top {
  position: fixed;
  bottom: 48px;
  left: 32px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
  box-shadow: var(--shadow-md);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  background-color: var(--color-primary-hover);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 32px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

