:root {
  --primary: #123f6b;
  --primary-dark: #0c2f52;
  --accent: #e74c70;
  --accent-dark: #d83c61;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --border: rgba(18, 63, 107, 0.1);
  --text: #16253a;
  --muted: #617085;
  --shadow-sm: 0 8px 24px rgba(13, 38, 70, 0.08);
  --shadow-md: 0 18px 44px rgba(13, 38, 70, 0.12);
  --shadow-lg: 0 28px 80px rgba(13, 38, 70, 0.18);
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html, body {
  overflow-x: hidden;
}

body.homepage-redesign {
  margin: 0;
  font-family: "Cairo", "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f4f8fc 0%, #eef4fb 100%);
}

body.homepage-redesign.lang-en {
  font-family: "Inter", "Cairo", sans-serif;
}

body.homepage-redesign a {
  text-decoration: none;
  transition: all .25s ease;
}

body.homepage-redesign img {
  max-width: 100%;
  display: block;
}

body.homepage-redesign .container {
  width: min(1240px, calc(100% - 32px));
}

.home-header {
  padding: 14px 0 0;
  position: relative;
  z-index: 30;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.topbar-note {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.lang-switcher,
.footer-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher a,
.footer-lang a {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
}

.lang-switcher a.active,
.footer-lang a.active {
  border-color: rgba(231,76,112,.35);
  box-shadow: 0 10px 24px rgba(231,76,112,.18);
}

.lang-switcher img,
.footer-lang img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-shell {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  position: sticky;
  top: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.5;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav li {
  position: relative;
}

.main-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--text);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  background: #edf4fb;
  color: var(--primary);
}

.nav-dropdown > a::after {
  content: '\e64b';
  font-family: 'themify';
  font-size: 10px;
  margin-inline-start: 8px;
}

.nav-dropdown ul {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  min-width: 250px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.lang-ar .nav-dropdown ul {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.nav-dropdown:hover ul {
  display: flex;
}

.nav-dropdown ul a {
  padding: 12px 14px;
  color: var(--text);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.nav-dropdown ul a:hover {
  background: #edf4fb;
  color: var(--primary);
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: #edf4fb;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 10px;
}

.hero-home {
  padding: 20px 0 0;
}

.hero-card {
  min-height: 680px;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(120deg, rgba(9,28,49,.80), rgba(18,63,107,.62)),
    url('images/confUpdate.jpeg') center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.14), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(231,76,112,.18), transparent 25%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 70px 56px;
  margin-inline-start: auto;
}

.lang-en .hero-copy {
  margin-inline-start: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.2;
  margin: 18px 0 16px;
  font-weight: 800;
}

.hero-copy p {
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.95;
  margin-bottom: 26px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat {
  padding: 18px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  color: #fff;
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-stat span {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.7;
}

.homepage-main {
  padding: 36px 0 56px;
}

.section-card,
.news-card,
.gallery-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow-md);
  border-radius: 30px;
  overflow: hidden;
}

.section-card {
  padding: 22px;
}

.section-featured {
  margin-bottom: 28px;
}

.row-eq-height {
  display: flex;
  flex-wrap: wrap;
}

.row-eq-height > [class*='col-'] {
  display: flex;
}

.section-image-wrap,
.section-copy {
  width: 100%;
}

.section-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #edf4fb;
}

.section-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.section-copy {
  padding: 12px 8px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #edf4fb;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-copy h2 {
  font-size: 28px;
  color: var(--primary-dark);
  margin: 0 0 12px;
  line-height: 1.4;
  font-weight: 800;
}

.section-copy h3 {
  font-size: 38px;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-copy p,
.president-speech {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
}

.president-image img {
  min-height: 430px;
}

.section-block {
  margin-bottom: 34px;
}

.section-head {
  margin-bottom: 18px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 34px;
  font-weight: 800;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 88px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.news-card,
.gallery-card {
  height: 100%;
}

.news-card {
  margin-bottom: 24px;
}

.news-card__image {
  display: block;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .45s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.06);
}

.news-card__body {
  padding: 22px;
}

.news-card__body h3 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.6;
  min-height: 72px;
}

.news-card__body h3 a {
  color: var(--text);
}

.gallery-card {
  padding: 14px;
  margin-bottom: 24px;
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 22px;
}

.ad-card,
.video-card {
  padding: 18px;
}

.ad-slide img,
.video-card video,
.section-card .item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 22px;
}

.video-card video {
  background: #000;
}

.section-footer-link {
  margin-top: 18px;
}

.btn {
  border: none !important;
  border-radius: 16px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(13,38,70,.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f06082);
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--accent-dark), #e14f72);
  color: #fff !important;
}

.btn-outline,
.btn-default.btn-outline {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(18,63,107,.16) !important;
  color: var(--primary) !important;
}

.btn-outline:hover,
.btn-default.btn-outline:hover {
  background: #edf4fb !important;
  color: var(--primary-dark) !important;
}

.home-footer {
  padding: 0 0 40px;
}

.home-footer .container {
  background: linear-gradient(135deg, #091a2b, #15324d);
  border-radius: 34px;
  padding: 36px 32px 20px;
  box-shadow: var(--shadow-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a,
.footer-bottom p,
.footer-bottom a {
  color: rgba(255,255,255,.8);
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.owl-theme .owl-nav {
  margin-top: 16px;
}

.owl-theme .owl-nav [class*=owl-] {
  background: #edf4fb !important;
  color: var(--primary) !important;
  border-radius: 14px !important;
  width: 44px;
  height: 44px;
  line-height: 44px;
  padding: 0 !important;
}

.owl-theme .owl-nav [class*=owl-]:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

.owl-theme .owl-dots .owl-dot span {
  background: rgba(18,63,107,.2);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--accent);
}

@media (max-width: 991px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    padding: 12px;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav > ul > li > a {
    justify-content: space-between;
    width: 100%;
    border-radius: 16px;
  }

  .nav-dropdown ul,
  .lang-ar .nav-dropdown ul {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    background: #f7fbff;
    margin-top: 8px;
    min-width: 100%;
  }

  .brand-copy span {
    display: none;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-copy {
    padding: 110px 28px 34px;
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .row-eq-height {
    display: block;
  }

  .section-copy h3 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-en .topbar {
    align-items: flex-end;
  }

  .nav-shell {
    padding: 14px 16px;
  }

  .brand-mark img {
    width: 60px;
    height: 60px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .section-card {
    padding: 16px;
  }

  .section-image-wrap img,
  .president-image img,
  .ad-slide img,
  .video-card video,
  .section-card .item img {
    min-height: 0;
    height: 240px;
  }

  .news-card__image img,
  .gallery-card img {
    height: 220px;
  }

  .home-footer .container {
    padding: 28px 20px 18px;
  }
}
