/* ============================================================
   style.css — موقع علي الناصر السلمان
   RTL Arabic Design System - Enhanced Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --primary: #3d2314;
  --primary-light: #5c3d2a;
  --accent: #aa8654;
  --accent-light: #c49b6a;
  --accent-glow: rgba(170, 134, 84, 0.35);
  --dark: #2a1a10;
  --text: #3d2314;
  --text-light: #5c4d3d;
  --white: #ffffff;
  --off-white: #f5f0e8;
  --card-bg: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
  --card-border: #aa8654;
  --section-bg: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
  --border: #d4c8b8;
  --border-light: #e8e0d5;
  --shadow: 0 6px 30px rgba(61, 35, 20, .15);
  --shadow-hover: 0 18px 50px rgba(61, 35, 20, .25);
  --shadow-gold: 0 8px 32px rgba(170, 134, 84, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
  --transition-bounce: .45s cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 80px;
}


/* ─── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text);
  background-color: rgb(255 255 255 / 91%);
  background-image:
    url('../pattern-bg.png'),
    linear-gradient(160deg, rgb(255 255 255 / 95%) 0%, rgb(255 255 255 / 90%) 40%, rgb(250 248 245 / 92%) 70%, rgb(255 255 255 / 94%) 100%);
  background-size: 1920px auto, cover;
  background-repeat: repeat, no-repeat;
  background-attachment: fixed, fixed;
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

body::before {
  display: none;
}

/* ─── Scroll Animations ─────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.25, .46, .45, .94), transform .75s cubic-bezier(.25, .46, .45, .94);
}

[data-anim="fade-up"] {
  transform: translateY(50px);
}

[data-anim="fade-right"] {
  transform: translateX(-50px);
}

[data-anim="fade-left"] {
  transform: translateX(50px);
}

[data-anim="zoom-in"] {
  transform: scale(.88);
}

[data-anim="flip"] {
  transform: perspective(600px) rotateX(15deg);
}

[data-anim].anim-visible {
  opacity: 1;
  transform: none;
}

[data-delay="100"] {
  transition-delay: .1s;
}

[data-delay="200"] {
  transition-delay: .2s;
}

[data-delay="300"] {
  transition-delay: .3s;
}

[data-delay="400"] {
  transition-delay: .4s;
}

[data-delay="500"] {
  transition-delay: .5s;
}

[data-delay="600"] {
  transition-delay: .6s;
}

[data-delay="700"] {
  transition-delay: .7s;
}

[data-delay="800"] {
  transition-delay: .8s;
}

[data-delay="900"] {
  transition-delay: .9s;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* ─── Utility ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 52px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 2px;
  width: 90px;
  background: linear-gradient(to left, var(--accent), transparent);
}

.section-divider::after {
  background: linear-gradient(to right, var(--accent), transparent);
}

.section-divider span {
  width: 12px;
  height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
  display: inline-block;
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity .2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 150, 62, .35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ─── Header / Navbar ────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
  height: var(--header-h);
  box-shadow: none;
  transition: background .4s ease, box-shadow .4s ease, height .3s ease;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 4px 30px rgba(61, 46, 31, .15), 0 1px 0 rgba(154, 122, 74, .2);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 4px rgba(200, 150, 62, .2);
  overflow: hidden;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.logo-text .name {
  font-size: 1.05rem;
  font-weight: 700;
}

.logo-text .title {
  font-size: .75rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 400;
}

.site-header.scrolled .logo-text,
.site-header.solid .logo-text {
  color: var(--primary);
  text-shadow: none;
}

.site-header.scrolled .logo-text .title,
.site-header.solid .logo-text .title {
  color: var(--accent);
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #ffffff;
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, .2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.main-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, .25);
}

.site-header.scrolled .main-nav a,
.site-header.solid .main-nav a {
  color: rgba(61, 46, 31, .9);
  text-shadow: none;
  font-weight: 500;
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active,
.site-header.solid .main-nav a:hover,
.site-header.solid .main-nav a.active {
  color: var(--primary);
  background: rgba(154, 122, 74, .15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header.scrolled .hamburger span,
.site-header.solid .hamburger span {
  background: var(--primary);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  background: var(--white);
  padding: 20px 24px 30px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(92, 74, 58, .15);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: rgba(92, 74, 58, .85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(92, 74, 58, .08);
}

.mobile-nav a:hover {
  background: rgba(184, 149, 106, .12);
  color: var(--primary);
}

/* ─── Hero Section ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* لا margin-top — الهيدر شفاف فوق الفيديو */
}

/* غطاء الفيديو ملء الشاشة */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--dark);
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, #1a3a6b 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .18;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(24, 20, 17, .88) 0%, rgba(58, 45, 32, .65) 50%, rgba(24, 20, 17, .45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 24px 60px;
  /* padding-top بدل margin-top للتعويض عن الهيدر */
  margin-right: auto;
  margin-left: auto;
  text-align: right;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(200, 150, 62, .2);
  border: 1px solid rgba(200, 150, 62, .4);
  color: var(--accent-light);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .5px;
}

.hero h1 {
  font-size: clamp(1.55rem, 3.8vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 36px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .5);
  font-size: .75rem;
  animation: bounceDown 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5), transparent);
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ─── Bio Intro Section ───────────────────────────────────── */
.bio-intro-section {
  padding: 60px 0 70px;
  background: #f5f0e8f2;
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(170, 134, 84, .3);
  position: relative;
  z-index: 1;
}

.bio-intro-section::before {
  display: none;
}

.bio-intro-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: center;
}

.bio-intro-text .bio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 149, 106, .15);
  border: 1px solid rgba(184, 149, 106, .4);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.bio-intro-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.bio-intro-text p {
  color: rgba(45, 36, 24, 0.9);
  font-size: .97rem;
  line-height: 2;
  margin-bottom: 12px;
}

.bio-intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--border-light);
}

.bio-stat {
  text-align: center;
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border: 2px solid #aa8654;
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 100px;
  box-shadow: 0 4px 20px rgba(61, 35, 20, .12);
}

.bio-stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.bio-stat .lbl {
  display: block;
  font-size: .75rem;
  color: rgba(45, 36, 24, 0.75);
  margin-top: 4px;
}

.bio-intro-img-wrap {
  position: relative;
}

.bio-intro-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  object-fit: cover;
  aspect-ratio: 3/4;
  max-height: 360px;
  object-position: top;
}

.bio-intro-img-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgba(170, 134, 84, .4);
}

@media (max-width: 860px) {
  .bio-intro-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bio-intro-img-wrap {
    order: -1;
    max-width: 240px;
    margin: 0 auto;
  }

  .bio-intro-img-badge {
    bottom: -12px;
    right: -8px;
  }
}

/* ─── Section Wave Dividers ──────────────────────────────── */
.wave-top,
.wave-bottom {
  position: absolute;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.wave-top {
  top: -1px;
}

.wave-bottom {
  bottom: -1px;
  transform: rotate(180deg);
}

.wave-top svg,
.wave-bottom svg {
  display: block;
  width: 100%;
}

/* ─── Cards Section (Achievements) ──────────────────────── */
.cards-section {
  padding: 30px 0;
  background: #f5f0e8f2;
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(170, 134, 84, .25);
  border-bottom: 1px solid rgba(170, 134, 84, .25);
  position: relative;
  z-index: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border-radius: 24px;
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: 
    0 4px 20px rgba(61, 35, 20, .12),
    0 1px 3px rgba(61, 35, 20, .08);
  transition: all var(--transition-bounce);
  border: 2px solid #aa8654;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(170, 134, 84, .05) 0%, transparent 55%);
  pointer-events: none;
  transition: opacity .3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to left, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: right;
  border-radius: 0 0 4px 4px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(61, 35, 20, .18),
    0 8px 16px rgba(170, 134, 84, .2);
  border-color: #3d2314;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-index {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 36px;
  border-radius: 50%;
  font-family: 'Cairo', sans-serif;
  user-select: none;
  box-shadow: 0 4px 12px rgba(170, 134, 84, 0.3);
}

.card-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.4rem;
  transition: all var(--transition-bounce);
  box-shadow: 
    0 4px 15px rgba(170, 134, 84, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(61, 35, 20, 0.1);
  border: 3px solid #aa8654;
  position: relative;
}

.card-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 
    0 12px 30px rgba(170, 134, 84, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  border-color: var(--accent);
}

.card:hover .card-icon::before {
  opacity: 0.15;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 50%;
  transform: translateX(50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(to left, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.card p {
  font-size: .9rem;
  color: rgba(45, 36, 24, .75);
  line-height: 1.8;
}

.card-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

/* ─── News Section ───────────────────────────────────────── */
.news-section {
  padding: 60px 0;
  background: #f5f0e8f2;
  position: relative;
  z-index: 1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(61, 35, 20, .15);
  border: 2px solid #aa8654;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, .3);
}

.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  font-size: .88rem;
  color: rgba(45, 36, 24, .85);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .btn {
  font-size: .85rem;
  padding: 9px 20px;
  align-self: flex-start;
}

/* ─── Partners Section ───────────────────────────────────── */
.partners-section {
  padding: 56px 0 60px;
  background: rgb(255 255 255 / 91%);
  border-top: 1px solid rgba(184, 149, 106, .15);
  position: relative;
  z-index: 1;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}

/* بطاقة اللوجو */
.partner-card {
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border: 2px solid #aa8654;
  border-radius: var(--radius);
  padding: 24px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 140px;
  max-width: 170px;
  flex: 1;
  transition: all var(--transition);
  cursor: default;
  box-shadow: 0 4px 20px rgba(61, 35, 20, .12);
}

.partner-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.partner-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition);
}

.partner-card:hover .partner-logo {
  border-color: var(--accent);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.partner-logo-fallback {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partner-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  line-height: 1.4;
}

/* بقاء .partner-item لو استُخدم في مكان آخر */
.partner-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  min-width: 160px;
  transition: all var(--transition);
  cursor: default;
}

.partner-item:hover {
  box-shadow: var(--shadow);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background-image: linear-gradient(135deg, rgba(24, 16, 8, 0.88) 0%, rgba(58, 45, 32, 0.82) 100%), url('../1.jpeg');
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  padding: 130px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg…%3E%3C/svg%3E");
  opacity: .05;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255, 255, 255, .75);
  margin-top: 12px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--accent-light);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255, 255, 255, .4);
}

/* ─── About Page ─────────────────────────────────────────── */
.about-section {
  padding: 80px 0;
  background: #f5f0e8f2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, .3);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(200, 150, 62, .4);
}

.about-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: rgba(45, 36, 24, .9);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 16px;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.info-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Books Section ──────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  padding: 80px 0;
  background: transparent;
}

.book-card {
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(61, 35, 20, .15);
  border: 2px solid #aa8654;
  transition: all var(--transition);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.book-cover {
  height: 260px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, .3);
}

.book-info {
  padding: 18px;
}

.book-info h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.book-info p {
  font-size: .82rem;
  color: rgba(45, 36, 24, .85);
  line-height: 1.6;
}

.book-year {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}

/* ─── Gallery ────────────────────────────────────────────── */
.gallery-section {
  padding: 80px 0;
  background: #f5f0e8f2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 66, .7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  padding: 0 16px;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, .25);
}

/* ─── Words Section ──────────────────────────────────────── */
.words-section {
  padding: 80px 0;
  background: #f5f0e8f2;
}

.word-card {
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  border-right: 4px solid var(--accent);
  position: relative;
  box-shadow: 0 6px 28px rgba(61, 35, 20, .15);
}

.word-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 24px;
  font-size: 5rem;
  color: var(--accent);
  opacity: .3;
  font-family: serif;
  line-height: 1;
}

.word-card p {
  font-size: 1rem;
  color: rgba(45, 36, 24, .9);
  line-height: 2;

}

.word-author {
  margin-top: 16px;
  font-weight: 700;
  color: var(--accent);
  font-style: normal;
}

/* ─── Contact Page ───────────────────────────────────────── */
.contact-section {
  padding: 80px 0;
  background: #f5f0e8f2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
}

.contact-form {
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 8px 32px rgba(61, 35, 20, .15);
  border: 2px solid #aa8654;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: .9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(184, 149, 106, .3);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, .15);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item .text p:first-child {
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item .text p:last-child {
  opacity: .8;
  font-size: .9rem;
}

/* ─── News Single ────────────────────────────────────────── */
.news-single {
  padding: 80px 0;
  background: rgb(255 255 255 / 91%);
}

.news-single-content {
  max-width: 800px;
  margin: 0 auto;
}

.news-single-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.news-single-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, .2);
}

.news-single-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.news-single-meta span {
  font-size: .85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-single-content h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.news-single-content .body {
  font-size: 1rem;
  color: var(--text);
  line-height: 2.1;
}

.news-single-content .body p {
  margin-bottom: 18px;
}

/* ─── Videos/Audios ──────────────────────────────────────── */
.media-section {
  padding: 80px 0;
  background: rgb(255 255 255 / 91%);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.media-card {
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(61, 35, 20, .15);
  border: 2px solid #aa8654;
  transition: all var(--transition);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}

.media-embed {
  position: relative;
  background: var(--dark);
}

.media-embed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, .2);
}

.media-card-body {
  padding: 20px;
}

.media-card-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.media-card-body p {
  font-size: .85rem;
  color: rgba(45, 36, 24, .85);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand .logo-circle {
  margin-bottom: 18px;
}

.footer-brand p {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-col ul li a::before {
  content: '←';
  color: var(--accent);
  font-size: .7rem;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: var(--accent-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ─── Alert Messages ─────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, .1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  border: none;
}

.lightbox-close:hover {
  background: var(--accent);
}

/* ─── Hero Video Background ──────────────────────────────── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-wrap iframe,
.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .45;
}

/* ─── Hero Meta Info ──────────────────────────────────────── */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
}

.hero-meta-item i {
  color: var(--accent-light);
}

/* ─── Timeline Section ────────────────────────────────────── */
.timeline-section {
  padding: 30px 0 30px;
  background: #f5f0e8f2;
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(170, 134, 84, .25);
  border-bottom: 1px solid rgba(170, 134, 84, .25);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(170, 134, 84, .12) 0%, transparent 65%);
  pointer-events: none;
}

/* ─── Modern Timeline Cards ───────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  padding: 30px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Mobile: Show 2 cards with horizontal scroll */
@media (max-width: 768px) {
  .timeline {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 20px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #aa8654 #f5f0e8;
  }
  
  .timeline::-webkit-scrollbar {
    height: 6px;
  }
  
  .timeline::-webkit-scrollbar-track {
    background: #f5f0e8;
    border-radius: 10px;
  }
  
  .timeline::-webkit-scrollbar-thumb {
    background: #aa8654;
    border-radius: 10px;
  }
  
  .timeline-item {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    min-width: calc(50% - 6px);
  }
  
  /* Swipe animation */
  @keyframes swipeLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
  }
}

/* كل خطوة - كرت مستقل */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 20px 12px;
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(61, 35, 20, .12);
  border: 2px solid #aa8654;
  transition: all var(--transition-bounce);
  cursor: pointer;
  overflow: hidden;
  min-width: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  transform: scaleX(0);
  transition: transform .4s ease;
}

.timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(61, 35, 20, .2);
  border-color: #3d2314;
}

.timeline-item:hover::before {
  transform: scaleX(1);
}

/* دائرة الأيقونة */
.timeline-dot {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
  border: 3px solid #aa8654;
  box-shadow: 0 8px 25px rgba(170, 134, 84, .3), inset 0 2px 4px rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-bottom: 12px;
  transition: all var(--transition-bounce);
  flex-shrink: 0;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(154, 122, 74, .1);
  transition: all .3s ease;
}

.timeline-item:hover .timeline-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: rgba(255, 255, 255, .3);
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(154, 122, 74, .35);
}

.timeline-item:hover .timeline-dot::after {
  inset: -12px;
  border-color: rgba(154, 122, 74, .2);
}

.timeline-dot-icon {
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  transition: all var(--transition-bounce);
}

.timeline-item:hover .timeline-dot-icon {
  color: #ffffff;
  transform: scale(1.1);
}

/* ─── Wavy SVG Connector - Hidden in new design ──────── */
.timeline-wave-connector {
  display: none;
}

/* المحتوى */
.timeline-content {
  flex: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.timeline-date {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(154, 122, 74, .12), rgba(154, 122, 74, .05));
  border: 1px solid rgba(154, 122, 74, .2);
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 8px;
  white-space: nowrap;
  letter-spacing: .5px;
  transition: all .3s ease;
}

.timeline-item:hover .timeline-date {
  background: linear-gradient(135deg, rgba(154, 122, 74, .2), rgba(154, 122, 74, .1));
  color: var(--primary);
}

.timeline-content h3 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0;
  white-space: normal;
  text-align: center;
  transition: color var(--transition);
}

.timeline-item:hover .timeline-content h3 {
  color: var(--accent);
}

.timeline-content p {
  display: none;
}

/* Responsive - Mobile Timeline Cards */
@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 24px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .timeline::-webkit-scrollbar {
    display: none;
  }

  .timeline-item {
    padding: 16px 8px;
    min-width: 100px;
  }

  .timeline-dot {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
  }

  .timeline-dot-icon {
    font-size: 1.2rem;
  }

  .timeline-date {
    font-size: .6rem;
    padding: 3px 8px;
  }

  .timeline-content h3 {
    font-size: .7rem;
  }
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 20px 8px;
  }

  .timeline-item {
    padding: 14px 6px;
    min-width: 85px;
  }

  .timeline-dot {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }

  .timeline-dot-icon {
    font-size: 1rem;
  }

  .timeline-date {
    font-size: .55rem;
    padding: 2px 6px;
    margin-bottom: 6px;
  }

  .timeline-content h3 {
    font-size: .6rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .timeline {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 16px 6px;
  }

  .timeline-item {
    padding: 12px 4px;
    min-width: 75px;
  }

  .timeline-dot {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
  }

  .timeline-dot-icon {
    font-size: .9rem;
  }

  .timeline-date {
    font-size: .5rem;
    padding: 2px 5px;
    margin-bottom: 4px;
  }

  .timeline-content h3 {
    font-size: .55rem;
    line-height: 1.2;
  }
}

/* ─── Gallery Preview Section ────────────────────────────── */
.gallery-preview-section {
  padding: 40px 0;
  background: #f5f0e8f2;
  position: relative;
  z-index: 1;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-preview-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery-preview-item:hover img {
  transform: scale(1.07);
}

.gallery-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 20, 17, .88) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-preview-item:hover .gallery-preview-overlay {
  opacity: 1;
}

.gallery-preview-overlay span {
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* ─── Bio Table ───────────────────────────────────────────── */
.bio-table {
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 20px 0 28px;
}

.bio-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}

.bio-row:last-child {
  border-bottom: none;
}

.bio-label {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-value {
  padding: 12px 16px;
  font-size: .9rem;
  color: var(--text);
  display: flex;
  align-items: center;
}

/* ─── Teachers Box ────────────────────────────────────────── */
.teachers-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
  color: var(--white);
}

.teachers-box h4 {
  color: var(--accent-light);
  font-size: 1rem;
  margin-bottom: 14px;
}

.teachers-box ul {
  list-style: none;
}

.teachers-box ul li {
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
}

.teachers-box ul li:last-child {
  border-bottom: none;
}

/* ─── Gallery Tabs — Modern Design ───────────────────────── */
.gallery-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 149, 106, .25);
  border-radius: 50px;
  padding: 6px;
  width: fit-content;
  margin-inline: auto;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-light);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  position: relative;
}

.gallery-tab i {
  font-size: .85rem;
  transition: transform .25s ease;
}

.gallery-tab:hover {
  color: var(--primary);
  background: rgba(10, 35, 66, .06);
}

.gallery-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(10, 35, 66, .28);
  transform: translateY(-1px);
}

.gallery-tab.active i {
  transform: scale(1.15);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(200, 150, 62, .2);
  color: var(--accent);
  transition: all .25s ease;
}

.gallery-tab.active .tab-count {
  background: rgba(255, 255, 255, .22);
  color: var(--white);
}

.gallery-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 0;
  color: var(--text-light);
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .about-img-wrap {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-right: 40px;
  }

  .timeline::before {
    right: 14px;
  }

  .timeline-dot {
    right: 6px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 66px;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding: 100px 20px 50px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Partners */
  .partners-grid {
    gap: 14px;
    justify-content: center;
  }

  .partner-card {
    min-width: 110px;
    max-width: 140px;
    padding: 18px 12px 14px;
  }

  .partner-logo {
    width: 56px;
    height: 56px;
  }

  .partner-logo-fallback {
    font-size: 1.5rem;
  }

  .partner-name {
    font-size: .75rem;
  }

  /* Gallery Tabs */
  .gallery-tabs {
    border-radius: 16px;
    padding: 6px;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-tab {
    padding: 9px 16px;
    font-size: .82rem;
    flex-shrink: 0;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Books */
  .books-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Page hero */
  .page-hero {
    padding: 100px 20px 50px;
  }

  .page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* About */
  .about-section {
    padding: 50px 0;
    background: #f5f0e8f2;
  }

  .bio-row {
    grid-template-columns: 130px 1fr;
  }

  /* Timeline — already flex-based, just adjust padding */
  .timeline {
    padding-right: 0;
  }

  .timeline::before {
    right: 16px;
    left: auto;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Section title */
  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .hero-content {
    padding: 90px 16px 40px;
  }

  .bio-row {
    grid-template-columns: 1fr;
  }

  .bio-label {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .bio-value {
    padding-top: 4px;
    border-bottom: 1px solid var(--border);
  }

  .gallery-tabs {
    border-radius: 12px;
  }

  .gallery-tab {
    padding: 8px 12px;
    font-size: .78rem;
  }

  .tab-count {
    display: none;
  }

  .partner-card {
    min-width: 90px;
    max-width: 110px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .about-content h2 {
    font-size: 1.3rem;
  }
}

/* ─── Scroll Top Button ──────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(200, 150, 62, .4);
  transition: all var(--transition);
  z-index: 900;
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}