/* ==========================================================
   Al Falah University – Home page
   ========================================================== */

:root {
  --green-900: #063d1d;
  --green-800: #0b5226;
  --green-700: #0e6a31;
  --green-100: #e6f2ea;
  --gold: #b88a1a;
  --text: #2c3a33;
  --muted: #6b7a72;
  --bg: #ffffff;
  --tint: #f3f5f4;
  --line: #e2e8e4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 20px rgba(10, 50, 25, .08);
  --shadow-hover: 0 14px 32px rgba(10, 50, 25, .16);
  --gap: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Broken-image fallback (added by script.js) */
img.img-fallback {
  background: linear-gradient(135deg, #cfe3d6, #9fc3ad);
  min-height: 120px;
  object-fit: cover;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 16px;
  background: var(--green-900);
  color: #fff;
  font-size: 12px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar .phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.topbar .phone:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar .sep {
  opacity: .5;
}

.pill {
  padding: 3px 12px;
  background: var(--green-700);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.pill:hover {
  background: #138a41;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- Header ---------- */
.header {
  background: #fff;
  padding: 12px 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 60px;
  height: 75px;
}

.brand__title {
  font-size: 32px;
  font-weight: 700;
  color: #007848;
  letter-spacing: .2px;
}

.header__tag {
  max-width: 280px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-800);
  line-height: 1.4;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.header__tag--mobile {
  display: none;
}

.header__tag--desktop {
  display: block;
}

/* ---------- Navigation ---------- */
.nav {
  display: block;
  background: var(--green-900);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav__inner {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding-block: 8px;
}

.nav__list>li {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
 gap: 4px;
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.nav__link:hover {
  background: rgba(255, 255, 255, .12);
}

.nav__link.is-active {
  background: #fff;
  color: var(--green-900);
}

.caret {
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.caret-right {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform .2s;
}

.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  width: auto;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* Specific width for Academic dropdown only */
.nav-academic>.sub,
.nav__list>li:nth-child(3)>.sub,
.sub:has(a[href*="academic-calendar"]) {
  min-width: 290px;
  width: max-content;
  max-width: 400px;
}

.sub li {
  position: relative;
  list-style: none;
}

.has-sub-sub>a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sub-sub {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  width: max-content;
  max-width: 340px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  list-style: none;
  margin: 0;
  z-index: 60;
}

.sub::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
}

.sub-sub::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}

.has-sub:hover>.sub,
.has-sub:focus-within>.sub,
.has-sub.is-expanded>.sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.has-sub-sub:hover>.sub-sub,
.has-sub-sub:focus-within>.sub-sub,
.has-sub-sub.is-expanded>.sub-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.has-sub-sub:hover>a,
.has-sub-sub:focus-within>a {
  background: var(--green-100);
  color: var(--green-800) !important;
}

.sub a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
  color: var(--text) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.sub-sub a {
  white-space: nowrap;
}

.sub a:hover {
  background: var(--green-100);
  color: var(--green-800) !important;
}

.nav__toggle {
  display: none;
  margin: 0;
  padding: 10px 0;
  background: transparent;
  color: #fff;
  border: none;
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero + notification bar ---------- */
.hero {
  position: relative;
  background: #000;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero__slides {
     position: relative;
    aspect-ratio: 1825 / 787;
    max-height: 803px;
    min-height: 260px;
    overflow: hidden;
    width: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  /* waiting off-screen on the right */
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}

.hero__slide.is-active {
  transform: translateX(0);
}

.hero__slide.is-leaving {
  transform: translateX(-100%);
}

/* exits to the left */
.hero__slide.no-anim {
  transition: none;
}

/* Circular thumbnail pager with "Slide N" tooltip */
.hero__thumbs {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero__thumb {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .2s;
}

.hero__thumb:hover {
  transform: translateY(-3px);
}

/* Active thumbnail: image stays visible, only ring + size change */
.hero__thumb.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--green-700), 0 3px 10px rgba(0, 0, 0, .5);
  transform: scale(1.12);
}

.hero__thumb:not(.is-active) {
  opacity: .85;
}

.hero__thumb:not(.is-active):hover {
  opacity: 1;
}

.hero__thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(20, 24, 22, .92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.hero__thumb:hover::after,
.hero__thumb:focus-visible::after {
  opacity: 1;
}

/* Fix #1 – both label and text are now truly vertically centred */
.notice {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  height: 46px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(4px);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.notice__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  /* vertical centre */
  padding: 0 34px 0 20px;
  background: var(--green-900);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.notice__marquee {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  display: flex;
  align-items: center;
  /* vertical centre */
  overflow: hidden;
  margin-left: -6px;
}

.notice__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding-left: 28px;
  animation: marquee 68s linear infinite;
}

.notice__marquee:hover .notice__track {
  animation-play-state: paused;
}

.notice__track a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  white-space: nowrap;
      font-size: 16px;
    font-weight: 700;
  color: #d4262a;
}

.notice__track a::before {
  content: "|";
  margin-right: 28px;
  color: #d4262a;
  opacity: .5;
}

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Leaders (2-up slider) ---------- */
.leaders {
  background: var(--green-900);
  padding: 56px 0 40px;
  color: #fff;
}

.leader {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: 4px;
}

.leader__photo {
  width: 170px;
  height: 190px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

.leader__info h3 {
  font-size: 20px;
  font-weight: 700;
}

.leader__info .designation {
  margin: 6px 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.leader__info .btn {
  margin-top: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .2s;
}

.btn--solid {
  background: var(--green-800);
  color: #fff;
}

.btn--solid:hover {
  background: #138a41;
  transform: translateY(-1px);
  color: #fff !important;
}

.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  text-transform: none;
  font-size: 12.5px;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--green-900);
}

.btn--sm {
  padding: 7px 18px;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--tint);
}

.section__title {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 12px;
  font-size: 24px;
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: .3px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

/* ---------- Carousel ---------- */
.carousel {
  --pv: 4;
  width: 100%;
}

.carousel__viewport {
  overflow: hidden;
  margin-inline: calc(var(--gap) / -2);
  padding-block: 8px 14px;
}

.carousel__track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .7, .2, 1);
  will-change: transform;
}

.carousel__item {
  flex: 0 0 calc(100% / var(--pv));
  padding-inline: calc(var(--gap) / 2);
  display: flex;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b9c6bf;
  cursor: pointer;
  transition: all .25s;
}

.carousel__dots button.is-active {
  width: 24px;
  background: var(--green-800);
}

.carousel__dots--light button {
  background: rgba(255, 255, 255, .4);
}

.carousel__dots--light button.is-active {
  background: #fff;
}

/* ---------- Cards (Study + Latest Updates) ---------- */
/* Fix #3/#4 – soft border, rounded corners, light shadow instead of heavy sharp border */
.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

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

.card__img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.card__title {
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
}

.card__text {
  flex: 1;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color:#2c3e35;
}

.card .btn {
  align-self: flex-start;
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.about__text p {
  margin-bottom: 22px;
  font-size: 13.5px;
  color: #4a5a52;
  line-height: 1.8;
  text-align: justify;
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  height: auto;
  /* keep the original 3:2 shape with its page-curl corners */
  filter: drop-shadow(0 10px 18px rgba(10, 50, 25, .22));
  /* follows the transparent curl edges */
  border-radius: 10px;
}

/* ---------- Gallery ---------- */
/* Fix #5 – uniform tiles, equal gaps, consistent crop */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tint);
  box-shadow: var(--shadow);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery__item::after {
  content: "\2315";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fff;
  background: rgba(6, 61, 29, .45);
  opacity: 0;
  transition: opacity .3s;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item:hover::after {
  opacity: 1;
}

/* ---------- Upcoming events ---------- */
/* Fix #6 – rounded cards */
.events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.event {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.event:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.event__img {
  width: 96px;
  height: 84px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
}

.event__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.event__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: #555;
}

.event__text {
  margin-top: 4px;
  font-size: 13.5px;
  color: #4a5a52;
}

.event__more {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-800);
}

.event__more:hover {
  text-decoration: underline;
}

.title-icon {
  display: inline-flex;
  margin-right: 6px;
  color: #222;
  vertical-align: middle;
}

.title-icon .icon {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */
.footer {
  background: #0b1511;
  color: #cfd8d3;
  padding-top: 56px;
  font-size: 13px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 1.2fr;
  gap: 40px;
}

.footer__logo {
  width: 64px;
  margin-bottom: 14px;
}

.footer__muted {
  margin-bottom: 14px;
  color: #7f8d86;
}

.footer__contact li {
  margin-bottom: 8px;
  color: #8fa097;
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer__links ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
}

.footer__links-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.footer__links-cols ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer__links a,
.footer__schools a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #8fa097;
  font-size: 12px;
  text-transform: uppercase;
  transition: all .2s;
}

.footer__schools a {
  text-transform: none;
  font-size: 12.5px;
}

.footer__links a:hover,
.footer__schools a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.footer h5 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #3b4a42;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #cfd8d3;
  transition: all .2s;
}

.social a:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.subscribe {
  flex: 0 1 460px;
}

.subscribe__field {
  display: flex;
}

.subscribe input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px 0 0 8px;
  font: inherit;
  font-size: 13px;
}

.subscribe button {
  padding: 0 22px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--green-700);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.subscribe button:hover {
  background: #138a41;
}

.footer__bottom {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid #1f2d26;
  font-size: 11px;
  color: #8fa097;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom-links a {
  color: #8fa097;
  text-decoration: none;
  transition: color .2s ease;
}

.footer__bottom-links .sep {
  opacity: .5;
}

.footer__bottom-links a:hover {
  color: #fff;
}

/* ---------- Back to top + Lightbox ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--green-800);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .3s;
  z-index: 60;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Enhanced Modern Lightbox / Modal */
.lightbox {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(3, 18, 9, 0.94) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  padding: 24px !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.lightbox.is-open {
  opacity: 1 !important;
  visibility: visible !important;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  display: block !important;
  max-width: min(90vw, 1050px) !important;
  max-height: 82vh !important;
  width: auto !important;
  height: auto !important;
  min-width: min(640px, 88vw) !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  transform: scale(0.95);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) !important;
  image-rendering: -webkit-optimize-contrast;
}

.lightbox.is-open img {
  transform: scale(1) !important;
}

.lightbox__close {
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  font-size: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
  z-index: 10 !important;
  line-height: 1 !important;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  transform: scale(1.08) !important;
}

.lightbox__nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  font-size: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
  z-index: 10 !important;
  user-select: none !important;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.lightbox__prev {
  left: 24px !important;
}

.lightbox__next {
  right: 24px !important;
}

.lightbox__counter {
  position: absolute !important;
  bottom: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  padding: 5px 16px !important;
  border-radius: 999px !important;
  letter-spacing: 0.5px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .lightbox img {
    min-width: unset !important;
    max-width: 92vw !important;
  }
  .lightbox__prev {
    left: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
  .lightbox__next {
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
  .lightbox__close {
    top: 12px !important;
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 24px !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer__about {
    order: 1;
  }

  .footer__links {
    order: 2;
  }

  .footer__schools {
    order: 3;
    grid-column: 1 / -1;
  }

  .brand__title {
    font-size: 20px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .carousel {
    --pv: 2;
  }

  .carousel__item {
    flex: 0 0 50%;
  }
}

@media (max-width: 767px) {
  .header__tag--desktop {
    display: none !important;
  }

  .header__tag--mobile {
    display: block !important;
    max-width: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--green-800);
    line-height: 1.35;
    margin-top: 2px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .brand__logo {
    width: 50px;
    height: auto;
    max-height: 65px;
    flex-shrink: 0;
  }

  .brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }

  .header__tag {
    max-width: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 12px;
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__inner {
    flex-wrap: wrap;
  }

  .nav__link {
    width: 100%;
    border-radius: 8px;
  }

  .sub {
    position: static;
    min-width: unset;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, .2) !important;
    border-radius: 8px;
    padding: 6px 4px !important;
    margin: 4px 0 8px;
    display: none;
  }

  .has-sub:hover>.sub,
  .has-sub:focus-within>.sub,
  .has-sub.is-expanded>.sub {
    display: block;
  }

  .sub a,
  .sub-sub a {
    color: #ffffff !important;
    white-space: normal;
    padding: 9px 14px !important;
    font-size: 13.5px;
    line-height: 1.4;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    transition: background .2s, color .2s;
  }

  .sub a .caret-right,
  .sub-sub a .caret-right {
    border-color: #ffffff !important;
  }

  .sub a:hover,
  .sub a:focus,
  .sub a:active,
  .sub-sub a:hover,
  .sub-sub a:focus,
  .sub-sub a:active {
    background: rgba(255, 255, 255, .16) !important;
    color: #ffffff !important;
  }

  .has-sub-sub:hover>a,
  .has-sub-sub:focus-within>a,
  .has-sub-sub.is-expanded>a {
    background: rgba(255, 255, 255, .16) !important;
    color: #ffffff !important;
  }

  .sub a.is-active,
  .sub-sub a.is-active {
    background: #ffffff !important;
    color: var(--green-900) !important;
    font-weight: 700;
  }

  .sub-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, .25) !important;
    border-radius: 6px;
    display: none;
    padding-left: 10px;
    margin: 4px 0;
  }

  .has-sub-sub:hover>.sub-sub,
  .has-sub-sub:focus-within>.sub-sub,
  .has-sub-sub.is-expanded>.sub-sub {
    display: block;
  }

  .topbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 14px !important;
    gap: 8px !important;
    width: 100% !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
  }

  .topbar__left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 3px !important;
    width: 100% !important;
    font-size: 12px !important;
    color: #ffffff !important;
  }

  .topbar__email-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .topbar__email {
    color: #ffffff !important;
    text-decoration: none !important;
  }

  .topbar__address {
    display: block !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .topbar__right {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 2px !important;
  }

  .topbar__pills {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .topbar .pill {
    padding: 5px 14px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: var(--green-700) !important;
    color: #ffffff !important;
  }

  .topbar .phone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
  }

  .header__inner,
  .nav__inner {
    padding-inline: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand__title {
    font-size: 17px;
    line-height: 1.25;
  }

  .header__tag {
    font-size: 11px;
    line-height: 1.4;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero__slides {
    aspect-ratio: 16 / 9;
    min-height: 210px;
    max-height: 280px;
    width: 100%;
    overflow: hidden;
  }

  .hero__slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }

  .hero__thumbs {
    bottom: 46px;
    gap: 6px;
  }

  .hero__thumb {
    width: 28px;
    height: 28px;
  }

  .notice {
    height: 38px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .notice__label {
    padding: 0 22px 0 10px;
    font-size: 11.5px;
  }

  .notice__marquee {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    overflow: hidden;
  }

  .notice__track a {
    font-size: 12px;
  }

  /* Carousel: 1 slide per view on mobile */
  .carousel {
    --pv: 1 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .carousel__viewport {
    padding-block: 6px 12px;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .carousel__track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    transition: transform .55s cubic-bezier(.22, .7, .2, 1);
    will-change: transform;
  }

  .carousel__item {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
  }

  .carousel__item > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Leaders section (Banner panel slider): mobile optimization */
  .leaders {
    padding: 30px 0 24px;
  }

  .leader {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .leader__photo {
    width: 130px;
    height: 145px;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, .9);
    margin: 0 auto;
  }

  .leader__info {
    width: 100%;
  }

  .leader__info h3 {
    font-size: 18px;
    margin: 0;
  }

  .leader__info .designation {
    font-size: 14px;
    margin: 4px 0 8px;
    color: #e2ede6;
  }

  .leader__info p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .leader__info .btn {
    margin-top: 4px;
    padding: 7px 18px;
    font-size: 12px;
  }

  .carousel__dots {
    margin-top: 14px;
  }

  .carousel__dots button {
    width: 10px;
    height: 10px;
  }

  .carousel__dots button.is-active {
    width: 24px;
  }

  .about__inner,
  .events,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__about {
    order: 1 !important;
  }

  .footer__links {
    order: 2 !important;
    grid-column: auto !important;
  }

  .footer__schools {
    order: 3 !important;
    grid-column: auto !important;
  }

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

  .section {
    padding: 44px 0;
  }

  .event {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px 10px 10px !important;
  }

  .event__img {
    width: 105px !important;
    height: 95px !important;
    flex: 0 0 105px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  .event__body {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .event__title {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .event__meta {
    font-size: 11px !important;
    margin-top: 2px !important;
  }

  .event__text {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-top: 2px !important;
  }

  .event__more {
    margin-top: 3px !important;
    font-size: 11.5px !important;
  }

  .footer__links ul {
    grid-template-columns: 1fr;
  }

  .footer__links-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer__bottom-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Single-colour line icons (inherit text colour) ---------- */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event__meta .icon {
  width: 12px;
  height: 12px;
}

.topbar .phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__contact .icon {
  width: 15px;
  height: 15px;
  margin-top: 5px;
  color: #cfd8d3;
}

/* ---------- Theme Pagination (Al-Falah University Green) ---------- */
.pagination {
  --bs-pagination-color: #063d1d !important;
  --bs-pagination-hover-color: #063d1d !important;
  --bs-pagination-hover-bg: #e8f5ed !important;
  --bs-pagination-hover-border-color: #a3cfbb !important;
  --bs-pagination-focus-color: #063d1d !important;
  --bs-pagination-focus-bg: #e8f5ed !important;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(6, 61, 29, 0.2) !important;
  --bs-pagination-active-color: #ffffff !important;
  --bs-pagination-active-bg: #063d1d !important;
  --bs-pagination-active-border-color: #063d1d !important;
  --bs-pagination-border-color: #d1e2d8 !important;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination .page-item .page-link {
  color: #063d1d !important;
  border-radius: 8px !important;
  border: 1px solid #d1e2d8 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 6px 14px !important;
  background-color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
}

.pagination .page-item .page-link:hover {
  background-color: #e8f5ed !important;
  border-color: #a3cfbb !important;
  color: #063d1d !important;
}

.pagination .page-item.active .page-link {
  background-color: #063d1d !important;
  border-color: #063d1d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(6, 61, 29, 0.22) !important;
}

.pagination .page-item.disabled .page-link {
  background-color: #f8faf9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

.pagination .page-item .page-link:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.25rem rgba(6, 61, 29, 0.2) !important;
}

.point::before {
    content: "♦";
    margin-right: 5px;
}

.clean-section-title{
  text-transform: uppercase !important;
  margin-bottom: 0px !important;
}
