:root {
  --bg: #ffffff;
  --soft: #eef6fb;
  --card: #ffffff;
  --border: #dfe8f0;
  --text: #1a2b3c;
  --muted: #5b6b85;

  --primary: #1f4e79;
  --accent: #5cab7d;

  --radius: 22px;
  --hero-radius: 24px;
  --shadow: 0 18px 36px rgba(31, 78, 121, 0.12);
  --shadow2: 0 10px 20px rgba(31, 78, 121, 0.08);
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: "Cairo", "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.front-shell select:not([multiple]),
.front-shell .form-select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364758B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  padding-right: 34px !important;
}

html[dir="rtl"] .front-shell select:not([multiple]),
html[dir="rtl"] .front-shell .form-select:not([multiple]) {
  background-position: left 12px center;
  padding-right: 12px !important;
  padding-left: 34px !important;
}

.front-shell {
  --front-default-page-hero-image: none;
  padding: 0 0 56px;
  overflow-x: clip;
}

.front-shell .container {
  max-width: 1140px;
}

.navbar-front {
  position: sticky;
  top: 8px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle .navbar-toggler-icon {
  width: 20px;
  height: 20px;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 992px) {
  .navbar-front {
    top: 6px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
    order: 10;
  }

  .navbar-front.is-open .nav-links,
  .navbar-front.is-open .nav-actions {
    display: flex;
  }

  .nav-links {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 10px;
  }

  .nav-pill {
    width: 100%;
    background: #f7fbff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 4px;
  }

  .nav-actions .btn-apply {
    flex: 1 1 auto;
    min-width: 160px;
    text-align: center;
  }
}

.front-content {
  padding-top: 18px;
}

.home-flat .front-content {
  padding-top: 14px;
}

.nav-pill {
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 600;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-pill:hover {
  background: rgba(31, 78, 121, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.2px;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  width: 112px;
  height: 64px;
  border-radius: 10px;
  box-shadow: none;
  /* background: #ffffff; */
  object-fit: contain;
  padding: 3px 4px;
}

@media (max-width: 992px) {
  .brand img {
    width: 96px;
    height: 56px;
  }
}

.navbar-front .brand img {
  width: 168px;
  height: 72px;
}

.footer .brand img {
  width: 112px;
  height: 62px;
}

@media (max-width: 992px) {
  .navbar-front .brand img {
    width: 140px;
    height: 64px;
  }

  .footer .brand img {
    width: 96px;
    height: 56px;
  }
}

.brand .title {
  line-height: 1.05;
  min-width: 0;
}

.brand .title .en {
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brand .title .ar {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7fbff;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}

.lang-switch a {
  text-decoration: none;
  color: inherit;
  padding: 2px 6px;
  border-radius: 999px;
}

.lang-switch a.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: none;
}

.lang-switch .divider {
  width: 1px;
  height: 14px;
  background: var(--border);
  display: inline-block;
}

.hero {
  border-radius: var(--hero-radius);
  overflow: hidden;
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero h1,
.hero h2 {
  color: var(--primary);
}

.hero .muted {
  font-size: 14px;
  max-width: 56ch;
}

.hero .hero-bg {
  min-height: 380px;
  border-radius: var(--hero-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0.15) 78%);
  background-color: #f7fbff;
}

html[dir="rtl"] .hero .hero-bg {
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0.15) 78%);
  background-color: #f7fbff;
}

.hero-section .row {
  border-radius: var(--hero-radius) !important;
  overflow: hidden;
}

.hero-section .row img {
  border-radius: 0 !important;
}

@media (max-width: 992px) {
  .hero .hero-bg {
    min-height: 480px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.42) 100%);
    background-color: #f7fbff;
  }
}

.btn-primary-soft {
  background: #ffffff;
  border: 1px solid #cfd8e3;
  color: var(--primary);
  font-weight: 600;
}

.btn-primary-soft:hover {
  background: #f0f6fb;
  color: var(--primary);
}

.btn-apply {
  background: var(--primary);
  border: none;
  box-shadow: 0 8px 14px rgba(31, 78, 121, 0.2);
  font-size: 13px;
  padding: 9px 20px;
}

.btn-success {
  background: var(--accent);
  border: none;
  font-weight: 600;
}

.btn-success:hover {
  background: #4e9d71;
}

.front-shell .btn {
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.front-shell .btn.btn-apply:hover,
.front-shell .btn.btn-apply:focus {
  background: #163f67;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(31, 78, 121, 0.25);
}

.front-shell .btn.btn-success:hover,
.front-shell .btn.btn-success:focus {
  color: #ffffff !important;
}

.front-shell .btn.btn-primary-soft:hover,
.front-shell .btn.btn-primary-soft:focus {
  color: var(--primary) !important;
  border-color: #b6c8dc;
}

.front-shell .btn.btn-white {
  background: #ffffff;
  border: 1px solid #ccd9e7;
  color: var(--primary);
}

.front-shell .btn.btn-white:hover,
.front-shell .btn.btn-white:focus {
  background: #eef5ff;
  border-color: #b5c8de;
  color: var(--primary) !important;
}

.section-title {
  font-weight: 800;
  letter-spacing: 0.1px;
  color: var(--primary);
}

.section-title.center {
  text-align: center;
}

.section-kicker {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.muted {
  color: var(--muted);
}

.card-tile {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}

.section-soft {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.section-soft-block {
  background: var(--soft);
  border-radius: 20px;
}

.icon-tile {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  border: 1px solid var(--border);
}

.icon-tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.home-features .icon-tile {
  background: transparent;
  border: 0;
  width: 68px;
  height: 68px;
  border-radius: 0;
}

.home-features .icon-tile img {
  width: 52px;
  height: 52px;
}

.about-blob {
  overflow: visible;
  border: 0;
  background: transparent;
}

.about-blob img {
  display: block;
}

.about-blob-svg {
  width: 100%;
  height: 260px;
  display: block;
}

.program-card {
  border-radius: 18px;
  border: 1px solid rgba(223, 232, 240, 0.9);
  background: #eef6fb;
  box-shadow: none;
  padding: 24px 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.program-card .fw-bold {
  font-size: 18px;
}

.program-card .muted {
  font-size: 14px;
}

.learn-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.home-programs .program-card .icon-tile {
  margin: 0 auto;
}

.home-programs .programs-wrap .col-md-4:nth-child(odd) .program-card {
  background: #f0f8f3;
}

.home-programs .program-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(223, 232, 240, 0.85);
  margin-top: 6px;
}

.home-programs .program-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.home-programs .program-body {
  margin-top: 14px;
  text-align: center;
}

.home-programs .program-link {
  margin-top: auto;
  padding-top: 10px;
  text-align: center;
}

.feature-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f7fbff;
  box-shadow: var(--shadow2);
  padding: 18px;
}

.feature-plain {
  padding: 10px 10px;
}

.home-features .feature-plain .fw-bold {
  font-size: 20px;
}

.home-features .feature-plain .muted.small {
  font-size: 14px;
}

.stat-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow2);
  padding: 16px;
  text-align: center;
}

.news-item {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px;
}

.news-events-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.news-events-head-center {
  max-width: 560px;
}

.news-events-head-action {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
}

@media (max-width: 768px) {
  .front-shell {
    padding-bottom: 24px;
  }

  .front-content {
    padding-top: 12px;
  }

  .footer {
    padding: 20px 14px 14px;
    border-radius: 16px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stat-value {
    font-size: 22px;
  }

  .gallery img {
    height: 92px;
  }

  .page-hero {
    padding: 16px;
    border-radius: 14px;
  }

  .page-banner img {
    height: 190px;
  }

  .news-events-head {
    justify-content: space-between;
    align-items: center;
  }

  .news-events-head-action {
    position: static;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.news-events-panel {
  background: #ffffff;
  border: 1px solid rgba(223, 232, 240, 0.9);
  border-radius: 18px;
}

.news-item .fw-bold {
  font-size: 13px;
}

.news-item .muted.small {
  font-size: 11.5px;
}

.event-pill {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f7fbff;
  padding: 10px;
}

.event-calendar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f7fbff;
  padding: 12px;
}

.event-calendar .date-box {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
}

.event-calendar .date-box .month {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.gallery-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #e9f2f8;
}

.gallery-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.testimonial-card {
  background: #f7fbff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.testimonial-card .avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

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

.stats-strip .stat-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px 4px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 4px;
}

.stat-icon {
  font-size: 26px;
  color: var(--accent);
}

.stat-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.stat-value {
  font-size: 38px;
  line-height: 1;
}

.stats-strip .muted {
  font-size: 14px;
  font-weight: 600;
}

.footer {
  position: relative;
  padding: 34px 22px 18px;
  border-radius: 20px;
  background: #eaf3fb;
  border: 1px solid #d3e2f1;
  box-shadow: none;
}

.footer .row {
  position: relative;
}

.footer .row.g-3 > [class*="col-"] {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
}

.footer .footer-title {
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
}

.footer .footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.footer .footer-link:hover {
  color: var(--primary);
}

.footer-contact-list {
  display: grid;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.contact-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.contact-icon img {
  width: 13px;
  height: 13px;
}

.contact-icon.pin {
  background: #fef2f7;
  border: 1px solid #f8c7df;
}

.contact-icon.phone {
  background: #fff1f3;
  border: 1px solid #fecdd3;
}

.contact-icon.mail {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d2e0f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.social-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 78, 121, 0.18);
}

.social-icon.social-facebook {
  background: #edf4ff;
  border-color: #cfe0ff;
}

.social-icon.social-instagram {
  background: #fff1f7;
  border-color: #ffd4e8;
}

.social-icon.social-twitter {
  background: #eef8ff;
  border-color: #cee7ff;
}

.social-icon.social-youtube {
  background: #fff3f3;
  border-color: #ffd7d7;
}

.social-icon img {
  width: 18px;
  height: 18px;
}

.footer .muted {
  font-size: 13px;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form .form-control {
  border: 1px solid #c8d8eb;
  background: rgba(255, 255, 255, 0.95);
}

.footer-bottom {
  font-size: 13px;
}

.page-hero {
  border-radius: 22px;
  padding: 22px;
  background-color: #f7fbff;
  background-image:
    linear-gradient(90deg, rgba(247, 251, 255, 0.96) 0%, rgba(247, 251, 255, 0.86) 58%, rgba(247, 251, 255, 0.72) 100%),
    var(--front-page-hero-image, var(--front-default-page-hero-image));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}

html[dir="rtl"] .page-hero {
  background-image:
    linear-gradient(270deg, rgba(247, 251, 255, 0.96) 0%, rgba(247, 251, 255, 0.86) 58%, rgba(247, 251, 255, 0.72) 100%),
    var(--front-page-hero-image, var(--front-default-page-hero-image));
}

.page-banner,
.page-banner img {
  border-radius: var(--hero-radius);
}

@keyframes frontFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frontFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes frontPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.front-content > * {
  opacity: 0;
  animation: frontFadeUp 0.65s cubic-bezier(.22,.61,.36,1) forwards;
}

.front-content > *:nth-child(2) { animation-delay: 0.06s; }
.front-content > *:nth-child(3) { animation-delay: 0.12s; }
.front-content > *:nth-child(4) { animation-delay: 0.18s; }
.front-content > *:nth-child(5) { animation-delay: 0.24s; }
.front-content > *:nth-child(6) { animation-delay: 0.3s; }
.front-content > *:nth-child(7) { animation-delay: 0.36s; }
.front-content > *:nth-child(8) { animation-delay: 0.42s; }

.hero .btn,
.page-hero .btn,
.page-heading .btn {
  animation: frontPop 0.45s ease both;
}

.hero .btn + .btn,
.page-hero .btn + .btn,
.page-heading .btn + .btn {
  animation-delay: 0.08s;
}

.card-tile,
.program-card,
.feature-card,
.news-item,
.event-calendar,
.gallery-square,
.testimonial-card,
.stat-card,
.album-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-tile:hover,
.program-card:hover,
.feature-card:hover,
.news-item:hover,
.event-calendar:hover,
.gallery-square:hover,
.testimonial-card:hover,
.stat-card:hover,
.album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31, 78, 121, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .front-content > *,
  .hero .btn,
  .page-hero .btn,
  .page-heading .btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .card-tile,
  .program-card,
  .feature-card,
  .news-item,
  .event-calendar,
  .gallery-square,
  .testimonial-card,
  .stat-card,
  .album-card {
    transition: none !important;
  }

  .card-tile:hover,
  .program-card:hover,
  .feature-card:hover,
  .news-item:hover,
  .event-calendar:hover,
  .gallery-square:hover,
  .testimonial-card:hover,
  .stat-card:hover,
  .album-card:hover {
    transform: none !important;
    box-shadow: var(--shadow2) !important;
  }
}

.page-heading {
  text-align: center;
  padding: 22px 16px;
  margin-bottom: 18px;
  background-color: #f7fbff;
  background-image:
    linear-gradient(90deg, rgba(247, 251, 255, 0.96) 0%, rgba(247, 251, 255, 0.86) 58%, rgba(247, 251, 255, 0.72) 100%),
    var(--front-page-hero-image, var(--front-default-page-hero-image));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  border-radius: 22px;
}

html[dir="rtl"] .page-heading {
  background-image:
    linear-gradient(270deg, rgba(247, 251, 255, 0.96) 0%, rgba(247, 251, 255, 0.86) 58%, rgba(247, 251, 255, 0.72) 100%),
    var(--front-page-hero-image, var(--front-default-page-hero-image));
}

.page-heading .kicker {
  font-weight: 700;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb .active {
  color: var(--text);
  font-weight: 800;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-weight: 800;
  margin-top: 1rem;
}

.page-content p {
  color: var(--muted);
}

.page-content img {
  max-width: 100%;
  border-radius: 18px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #ffffffd4;
  padding: 12px 14px;
}

.map-embed {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  border: 0;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffffd8;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.timeline-year {
  font-weight: 800;
  color: var(--primary);
}

.accordion-button {
  font-weight: 700;
  background: #ffffffd8;
}

.accordion-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.admissions-steps .feature-card {
  background: #f5fbff;
  border-color: rgba(223, 232, 240, 0.9);
  box-shadow: none;
  padding: 24px 18px;
}

.admissions-steps .icon-tile {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #edf6ff;
}

.admissions-steps .icon-tile img {
  width: 42px;
  height: 42px;
}

.admissions-steps .feature-card .fw-bold {
  font-size: 22px;
}

.admissions-steps .feature-card .muted {
  font-size: 14px;
}

.tuition-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.tuition-table th,
.tuition-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(223, 232, 240, 0.8);
  white-space: nowrap;
}

.tuition-table thead th {
  color: #0f3557;
  font-weight: 700;
  background: #e2edf8;
}

.tuition-table tbody tr:nth-child(even) td {
  background: #f3f8fd;
}

.tuition-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.admissions-form {
  max-width: 520px;
  background: #f3f8fd;
}

.admissions-apply {
  background: #f3f8fd;
}

.admissions-apply .form-label {
  font-weight: 600;
  color: #1f3f5c;
}

.admissions-apply .apply-block + .apply-block {
  margin-top: 4px;
}

.page-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}

.page-banner img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.62) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px;
}

.page-banner-overlay h1 {
  color: #ffffff;
  font-weight: 800;
}

.page-banner-text {
  max-width: 520px;
}

.page-banner-sub {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 13px;
}

.history-vision .hv-title {
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
}

.hv-list {
  padding-inline-start: 1.2rem;
  margin: 0;
}

.hv-list li + li {
  margin-top: 8px;
}

.team-portraits .portrait-circle,
.team-portraits .portrait-placeholder {
  width: 128px;
  height: 128px;
}

.video-block .video-thumb {
  height: 300px;
  border-radius: 18px;
}

.inline-video-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #dbe7f5;
  background: #000;
  box-shadow: var(--shadow2);
}

.inline-video-frame iframe,
.inline-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.team-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.portrait-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow2);
}

.portrait-circle.sm {
  width: 56px;
  height: 56px;
  border: 3px solid #ffffff;
}

.video-thumb {
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  position: relative;
  background-color: #e9f2f8;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  border: 0;
  width: 100%;
}

.level-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(223, 232, 240, 0.9);
  background: #f3f8fd;
}

.level-card.green { background: #eef7f1; border-color: #d8ebe2; }
.level-card.blue { background: #edf5fb; border-color: #d9e8f5; }

.curriculum-levels .section-title {
  font-size: 16px;
}

.curriculum-levels .level-card .fw-bold {
  font-size: 14px;
}

.curriculum-levels .level-card .muted {
  font-size: 13px;
}

.special-programs .feature-card {
  background: #f7fbff;
  border-color: #e1edf7;
  box-shadow: none;
  padding: 28px 22px;
}

.special-programs .icon-tile {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #eef6fb;
}

.special-programs .icon-tile img {
  width: 48px;
  height: 48px;
}

.special-programs .feature-card .fw-bold {
  font-size: 24px;
}

.special-programs .feature-card .muted {
  font-size: 16px;
}

.faculty-directory .section-title {
  font-size: 16px;
}

.faculty-item {
  background: #f7fbff;
  border: 1px solid #e1edf7;
  border-radius: 16px;
  padding: 10px 12px;
}

.faculty-directory .portrait-circle.sm,
.faculty-directory .portrait-placeholder.sm {
  width: 78px;
  height: 78px;
}

.faculty-item .fw-bold {
  font-size: 20px;
}

.faculty-item .muted.small {
  font-size: 15px;
}

.page-academics .curriculum-levels {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.page-academics .curriculum-levels .section-title {
  display: none;
}

.page-academics .special-programs {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.page-academics .faculty-directory {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.page-academics .faculty-item {
  background: #ffffff;
}

.news-updates {
  background: var(--soft);
  border-radius: 20px;
}

/* Home sections without card/border look as requested */
.home-flat .home-programs .program-card,
.home-flat .home-features .feature-plain,
.home-flat .testimonials .testimonial-card,
.home-flat .stats-strip .stat-card {
  border: 0;
  box-shadow: none;
}

.home-flat .home-programs .program-card {
  background: transparent;
}

.home-flat .home-features .feature-plain,
.home-flat .testimonials .testimonial-card,
.home-flat .stats-strip .stat-card {
  background: transparent;
}

@media (max-width: 768px) {
  .home-features .icon-tile {
    width: 54px;
    height: 54px;
  }

  .home-features .icon-tile img {
    width: 40px;
    height: 40px;
  }

  .program-card {
    min-height: 260px;
  }

  .program-card .fw-bold {
    font-size: 16px;
  }

  .program-card .muted {
    font-size: 13px;
  }

  .home-programs .program-icon {
    width: 64px;
    height: 64px;
  }

  .home-programs .program-icon-img {
    width: 40px;
    height: 40px;
  }

  .testimonial-card .avatar {
    width: 48px;
    height: 48px;
  }

  .stat-value {
    font-size: 30px;
  }

  .stat-icon-img {
    width: 28px;
    height: 28px;
  }

  .admissions-steps .icon-tile {
    width: 60px;
    height: 60px;
  }

  .special-programs .icon-tile {
    width: 66px;
    height: 66px;
  }

  .faculty-directory .portrait-circle.sm,
  .faculty-directory .portrait-placeholder.sm {
    width: 62px;
    height: 62px;
  }
}

.gallery-albums .album-card {
  text-align: center;
}

.contact-split .contact-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.contact-split .contact-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef6fb;
  font-size: 12px;
}

.contact-map-card .map-placeholder {
  height: 100%;
  min-height: 260px;
  width: 100%;
  border-radius: 18px;
  background: #eef6fb;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.contact-map-card {
  display: flex;
  flex-direction: column;
}

.contact-section-title .section-kicker {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.contact-visit-card .visit-list {
  padding-inline-start: 1.2rem;
  margin: 0;
}

.contact-visit-card .visit-list li + li {
  margin-top: 6px;
}

.overlay-card {
  height: 140px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  background-color: #e9f2f8;
}

.overlay-text {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  align-items: center;
}

.partners-grid img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.9;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.portrait-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #eef6fb;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.portrait-placeholder.sm {
  width: 56px;
  height: 56px;
}

/* Page-specific responsive tuning */
@media (max-width: 1024px) {
  .home-section {
    margin-bottom: 2.25rem !important;
  }

  .program-card {
    min-height: 240px;
    padding: 18px 16px;
  }

  .news-events .news-item {
    padding: 10px;
  }

  .news-events .news-item img {
    width: 64px !important;
    height: 64px !important;
  }

  .event-calendar .date-box {
    width: 56px;
    height: 56px;
  }

  .contact-map-card .map-placeholder,
  .map-embed {
    min-height: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .section-kicker {
    font-size: 0.86rem;
  }

  .hero .hero-bg {
    min-height: 430px;
  }

  .hero .p-4.p-lg-5 {
    max-width: none !important;
    padding: 18px !important;
  }

  .hero .btn {
    width: 100%;
    justify-content: center;
  }

  .about-blob-svg {
    height: 220px;
  }

  .program-card {
    min-height: unset;
  }

  .home-programs .program-body {
    margin-top: 10px;
  }

  .news-events {
    padding: 16px !important;
  }

  .news-events .row > [class*="col-"] + [class*="col-"] {
    margin-top: 6px;
  }

  .news-events-head-action .btn,
  .news-events-head-action {
    width: 100%;
  }

  .photo-gallery .gallery-square {
    border-radius: 14px;
  }

  .testimonials .testimonial-card {
    padding: 12px;
  }

  .page-admissions .admissions-steps .feature-card {
    padding: 14px;
  }

  .page-admissions .tuition-section .card-tile {
    overflow-x: auto;
  }

  .page-admissions .tuition-table {
    min-width: 520px;
  }

  .page-admissions .admissions-apply {
    padding: 14px !important;
  }

  .page-admissions .admissions-apply .btn-apply {
    width: 100%;
  }

  .page-academics .curriculum-levels .level-card {
    padding: 12px 12px;
  }

  .page-academics .special-programs .feature-card {
    padding: 16px 14px;
  }

  .page-academics .faculty-item {
    padding: 9px 10px;
  }

  .page-news .news-updates {
    padding: 14px !important;
  }

  .page-news .overlay-card {
    height: 128px;
  }

  .page-gallery .gallery-albums .album-card img {
    height: 130px !important;
  }

  .page-gallery .contact-split .row {
    row-gap: 0.75rem !important;
  }

  .page-contact .contact-split .card-tile,
  .page-gallery .contact-split .card-tile {
    padding: 12px !important;
  }

  .page-contact .contact-map-card .map-placeholder,
  .page-gallery .contact-map-card .map-placeholder,
  .page-contact .map-embed,
  .page-gallery .map-embed {
    min-height: 200px;
    height: 200px;
  }

  .page-contact .contact-form-card textarea,
  .page-gallery .contact-form-card textarea {
    min-height: 120px;
  }

  .page-banner-overlay {
    padding: 14px;
  }

  .page-banner-overlay h1 {
    font-size: 1.5rem;
  }

  .card-tile,
  .section-soft,
  .section-soft-block {
    border-radius: 14px;
  }

  .news-item img[style*="width:72px"] {
    width: 56px !important;
    height: 56px !important;
    border-radius: 10px !important;
  }

  .tuition-section .card-tile {
    overflow-x: auto;
  }

  .tuition-table {
    min-width: 520px;
  }
}

@media (max-width: 420px) {
  .brand .title .en {
    font-size: 12px;
  }

  .brand .title .ar {
    font-size: 10px;
  }

  .nav-actions .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .footer .brand {
    gap: 8px;
  }

  .footer .brand img {
    width: 84px;
    height: 48px;
  }

  .social-row {
    grid-template-columns: repeat(2, 38px);
  }

  .brand .title .en,
  .brand .title .ar {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: block;
  }

  .hero h1,
  .hero h2 {
    font-size: 1.8rem;
    line-height: 1.22;
  }

  .hero .muted {
    font-size: 13px;
  }

  .page-banner img {
    height: 170px;
  }

  .page-banner-overlay h1 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.28rem;
  }
}
