:root {
  --color-primary: #49917b;
  --color-secondary: #d2bf87;
  --color-text: #4c392d;
  --color-background: #fceee8;
  --color-light: #ffffff;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-background);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.page-loader__spinner {
  width: 68px;
  height: 68px;
  border: 6px solid rgba(73, 145, 123, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.government-header {
  background: linear-gradient(135deg, rgba(73, 145, 123, 0.08), rgba(210, 191, 135, 0.08));
  border-bottom: 2px solid var(--color-secondary);
  padding-block: 1.25rem;
}

.gov-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.gov-line {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.site-header {
  background: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(73, 145, 123, 0.12);
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 6.5vw, 72px);
  height: clamp(48px, 6.5vw, 72px);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.brand-text small {
  font-size: 0.72rem;
  color: rgba(76, 57, 45, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-header.is-open .menu-toggle span {
  background: var(--color-primary);
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(-45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(45deg);
}

.btn-primary,
.btn-secondary,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn-primary {
  padding: 0.85rem 1.75rem;
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 12px 28px rgba(73, 145, 123, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(73, 145, 123, 0.3);
}

.btn-secondary {
  padding: 0.7rem 1.5rem;
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-1px);
}

.btn-link {
  padding: 0.5rem 1rem;
  color: var(--color-primary);
}

.btn-link::after {
  content: "←";
  margin-inline-start: 0.4rem;
  transition: transform 0.3s ease;
}

.btn-link:hover::after,
.btn-link:focus-visible::after {
  transform: translateX(-4px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.75rem;
  color: rgba(76, 57, 45, 0.82);
}

.vision-line {
  white-space: nowrap;
  max-width: none;
}

.mission-text {
  line-height: 1.9;
  max-width: none;
  text-align: justify;
}

.mission-text span {
  display: block;
  white-space: nowrap;
}

.school-page {
  background: var(--color-background);
}

.section-spacing {
  padding-block: 4.5rem;
}

.section-title {
  font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
  margin-bottom: 2rem;
  color: var(--color-primary);
  text-align: center;
}

.page-hero {
  position: relative;
  background-image: url(assets/school.jpg);
  background-size: cover;
  background-position: center;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: var(--color-light);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.62);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero__content h1 {
  font-size: clamp(2.6rem, 4vw + 1rem, 3.8rem);
  margin-bottom: 1rem;
  color: var(--color-light);
}

.page-hero__content p {
  font-size: 1.1rem;
  max-width: 48ch;
  margin: 0 auto 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.badge-light {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.info-slider {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
}

.info-slider::before,
.info-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(32px, 8vw, 96px);
  pointer-events: none;
  z-index: 1;
}

.info-slider::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, var(--color-background), transparent);
}

.info-slider::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, var(--color-background), transparent);
}

.info-slider__track {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation: info-slider-scroll 32s linear infinite;
}

.info-card {
  background: var(--color-light);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 18px 34px rgba(73, 145, 123, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 0 clamp(220px, 22vw, 280px);
}

@media (prefers-reduced-motion: reduce) {
  .info-slider__track {
    animation: none;
  }
}

.info-card__label {
  font-size: 0.9rem;
  color: rgba(76, 57, 45, 0.7);
}

.info-card__value {
  font-size: 1.15rem;
  color: var(--color-text);
}

.section-accent {
  background: linear-gradient(135deg, rgba(73, 145, 123, 0.08), rgba(210, 191, 135, 0.12));
}

.section-soft {
  background: rgba(255, 255, 255, 0.6);
}

.two-column {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 46px rgba(73, 145, 123, 0.18);
}

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

.image-card__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  color: var(--color-light);
  font-weight: 500;
}

.pillars {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pillar {
  background: var(--color-light);
  padding: 2rem;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(76, 57, 45, 0.12);
}

.pillar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.highlight {
  background: rgba(73, 145, 123, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
}

.image-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.image-gallery figure {
  background: var(--color-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(73, 145, 123, 0.15);
}

.image-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.image-gallery figcaption {
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: rgba(76, 57, 45, 0.8);
}

.callout {
  background: linear-gradient(135deg, rgba(73, 145, 123, 0.12), rgba(210, 191, 135, 0.22));
  border-radius: 26px;
  box-shadow: 0 24px 46px rgba(73, 145, 123, 0.2);
}

.callout-content {
  text-align: center;
  display: grid;
  gap: 1.6rem;
}

.callout-content h2 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  color: var(--color-text);
}

.callout-content p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(76, 57, 45, 0.85);
}

.callout .btn-primary {
  justify-self: center;
}

.contact-page {
  background: var(--color-background);
}

.contact-hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6)),
    url("assets/6.jpg")
      center / cover;
  color: var(--color-light);
  padding-block: clamp(5rem, 12vw, 7rem);
}

.contact-hero__content {
  text-align: center;
  display: grid;
  gap: 1.75rem;
}

.contact-hero__content h1 {
  font-size: clamp(2.6rem, 4vw + 1rem, 3.6rem);
  margin: 0;
}

.contact-hero__content p {
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0 auto;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-section {
  display: grid;
  gap: clamp(2rem, 3vw, 2.75rem);
}

.contact-content {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.2rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.contact-label {
  font-weight: 600;
  color: var(--color-primary);
}

.contact-list a {
  color: var(--color-text);
  text-decoration: underline;
}

.contact-map {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 38px rgba(73, 145, 123, 0.18);
  min-height: clamp(280px, 40vw, 380px);
  height: clamp(280px, 40vw, 420px);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(73, 145, 123, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.map-link:hover,
.map-link:focus-visible {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 24px rgba(73, 145, 123, 0.45);
}

.reports-page {
  background: var(--color-background);
}

.reports-hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45)),
    url("assets/7.jpg")
      center / cover;
  color: var(--color-light);
  padding-block: clamp(5rem, 12vw, 7rem);
}

.reports-hero__content {
  display: grid;
  gap: 1.75rem;
  text-align: center;
}

.reports-hero__content h1 {
  margin: 0;
  font-size: clamp(2.6rem, 3.6vw + 1rem, 3.6rem);
  color: var(--color-light);
}

.reports-hero__content p {
  font-size: 1.1rem;
  max-width: 58ch;
  margin: 0 auto;
}

.reports-section {
  display: grid;
  gap: 2.5rem;
}

.reports-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.reports-tab {
  border: none;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: rgba(73, 145, 123, 0.12);
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.reports-tab:hover,
.reports-tab:focus-visible {
  background: rgba(73, 145, 123, 0.2);
  transform: translateY(-2px);
}

.reports-tab.active {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 16px 32px rgba(73, 145, 123, 0.25);
}

.reports-panels {
  position: relative;
}

.reports-panel {
  display: none;
  background: var(--color-light);
  border-radius: 26px;
  box-shadow: 0 24px 48px rgba(73, 145, 123, 0.18);
  padding: clamp(2rem, 5vw, 3rem);
}

.reports-panel.active {
  display: block;
}

.reports-panel__content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.reports-panel__content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.reports-panel__content p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: rgba(76, 57, 45, 0.82);
}

.reports-panel__content--single {
  grid-template-columns: 1fr;
}

.report-subsection {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.report-subsection:last-of-type {
  margin-bottom: 0;
}

.report-list {
  margin: 0;
  padding-inline-start: 1.25rem;
  display: grid;
  gap: 1rem;
}

.report-list li {
  line-height: 1.8;
}

.report-list p {
  margin: 0;
}

.report-evidence {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(76, 57, 45, 0.7);
}

.report-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.report-links a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-word;
}

.report-links a:hover,
.report-links a:focus-visible {
  color: var(--color-text);
}

.project-download {
  margin-top: 2rem;
  text-align: center;
}

.project-download .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.project-download svg {
  flex-shrink: 0;
}

.reports-gallery {
  display: grid;
  gap: 1rem;
}

.reports-gallery img {
  width: 100%;
  border-radius: 18px;
  height: clamp(180px, 20vw, 240px);
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(73, 145, 123, 0.16);
}

.section-subtitle {
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-card {
  background: var(--color-light);
  border-radius: 24px;
  box-shadow: 0 24px 46px rgba(73, 145, 123, 0.18);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-title {
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 16px;
  background: rgba(73, 145, 123, 0.12);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.feature-card__caption {
  margin: 0;
  color: rgba(76, 57, 45, 0.74);
}

.strip {
  background: var(--color-primary);
  color: var(--color-secondary);
  overflow: hidden;
  border-block: 1px solid rgba(210, 191, 135, 0.3);
}

.strip-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding-block: 0.9rem;
  animation: scroll-strip 18s linear infinite;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.strip-track span {
  white-space: nowrap;
}

@keyframes scroll-strip {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes info-slider-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.programs {
  padding: 4rem 0 5rem;
}

.programs h2 {
  font-size: clamp(2rem, 2.8vw + 1rem, 2.8rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

.program-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.program-card {
  background: var(--color-light);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(73, 145, 123, 0.12);
}

.program-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.site-footer {
  background: var(--color-text);
  color: var(--color-secondary);
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-simple {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.footer-simple strong {
  font-size: 1.1rem;
}

.footer-simple p {
  margin: 0;
  color: var(--color-secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--color-secondary);
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .header-content {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.75rem);
    background: var(--color-light);
    box-shadow: 0 18px 34px rgba(73, 145, 123, 0.18);
    border: 1px solid rgba(73, 145, 123, 0.15);
    border-radius: 18px;
    padding: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    z-index: 9;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .container {
    width: min(96vw, 720px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .btn-secondary {
    display: none;
  }

  .nav a {
    padding: 0.35rem 0;
  }

  .page-hero {
    min-height: 300px;
  }

  .page-hero__content p {
    max-width: 100%;
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reports-tabs {
    grid-template-columns: 1fr;
  }

  .reports-panel__content {
    grid-template-columns: 1fr;
  }

  .image-gallery img {
    height: 160px;
  }

  .reports-gallery img {
    height: 200px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    position: static;
  }

  .btn-secondary {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .program-card {
    padding: 1.5rem;
  }

  .strip-track {
    animation-duration: 24s;
    gap: 2rem;
  }

  .section-spacing {
    padding-block: 3.5rem;
  }

  .page-hero__content h1 {
    font-size: 2.2rem;
  }

  .page-hero__content p {
    font-size: 1rem;
  }

  .info-card {
    padding: 1.4rem;
    flex: 0 0 85%;
  }

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

  .info-slider__track {
    animation-duration: 38s;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .callout-content p {
    font-size: 0.98rem;
  }

  .contact-actions {
    justify-content: center;
  }

  .reports-tab {
    padding-inline: 1rem;
  }

  .vision-line {
    white-space: normal;
  }

  .mission-text span {
    white-space: normal;
  }
}

