:root {
    --primary: #082a5e;
    --primary-light: #0d3f8f;
    --secondary: #00aeef;
    --red: #d71920;
    --grey: #6f7480;
    --secondary-dark: #008ac0;
    --bg-light: #FFFFFF;
    --text-dark: #06152d;
    --text-muted: #777;
    --globe-blue: #1769d8;
    --globe-purple: #6a3fd1;

    --radius: 14px;
    --radius-lg: 24px;

    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

.custom-nav {
    backdrop-filter: blur(10px);
    background: rgba(var(--primary-rgb),0.35);
    transition: 0.3s;
}

.custom-nav.scrolled {
    background: var(--primary);
}

.nav-link {
    color: #fff !important;
    position: relative;
}

.nav-link::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--bright);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-slide {
    height: 90vh;
    position: relative;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(var(--primary-rgb),0.92), rgba(0,0,0,0.42));
}

.hero-title {
    font-size: 56px;
    max-width: 700px;
}

.hero-sub {
    font-size: 18px;
    opacity: 0.9;
}

.card-hover {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.4s;
}

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

.card-hover h5 {
    margin-top: 15px;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: var(--radius);
    transition: 0.3s;
    background: #fff;
}

.feature-card:hover {
    background: var(--primary);
    color: #fff;
}

.feature-card i {
    font-size: 40px;
    color: var(--bright);
}

.gallery img {
    border-radius: var(--radius);
    transition: 0.4s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.news-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 60px;
}

footer {
    background: #06152d;
}

footer a {
    text-decoration: none;
    color: #bbb;
}

footer a:hover {
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
    z-index: 99999;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media(max-width:768px){
    .hero-title {
        font-size: 32px;
    }

    .cta {
        padding: 30px;
    }
}

/* ************************************************************************ */


    /* ========================= CSS (styles.css) ========================= */
:root {
  --primary:#082a5e;
  --primary-light:#0d3f8f;
  --secondary:#00aeef;
  --red:#d71920;
  --grey:#6f7480;
  --secondary-dark:#008ac0;
  --accent:#1769d8;
  --globe-blue:#1769d8;
  --globe-purple:#6a3fd1;
  --bg-soft:#f3f8fd;
  --text-dark:#06152d;
  --radius:16px;
}

body {
  font-family: 'Poppins', sans-serif;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1px;
}
.custom-nav {
  background: rgba(var(--primary-rgb),0.32);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--secondary-rgb),0.25);
}
.custom-nav.scrolled {background:var(--primary);} 

.nav-link {color:#fff!important;position:relative;}
.nav-link::after {content:"";height:2px;width:0;background:var(--bright);position:absolute;bottom:0;left:0;transition:.3s;}
.nav-link:hover::after {width:100%;}

.btn-gold {background:var(--bright);color:#06152d;border-radius:30px;}
.btn-gold:hover {background:var(--secondary-dark);transform:scale(1.05);} 
.btn-gold {
  background: linear-gradient(135deg,var(--red),#f2474d);
  border:none;
  padding:12px 28px;
  font-weight:600;
  color:#06152d;
  box-shadow: 0 8px 20px rgba(var(--secondary-rgb),.4);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(var(--secondary-rgb),.6);
}

.hero-slide {height:90vh;position:relative;}
.overlay {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.95), rgba(10,10,10,.55)), linear-gradient(45deg, rgba(var(--secondary-rgb),.28), rgba(var(--accent-rgb),.22));
}


.section {padding:100px 0;}
.section-divider {
  width:60px;
  height:4px;
  background:var(--bright);
  border:none;
  margin:20px auto;
  border-radius:10px;
}

.card-hover {border:none;border-radius:var(--radius);transition:.3s;}
.card-hover:hover {transform:translateY(-10px);box-shadow:0 20px 60px rgba(0,0,0,.1);} 

.about-img {border-radius:20px;}

.feature-card {padding:30px;border-radius:var(--radius);transition:.3s;}
.feature-card:hover {
  background: var(--primary);
  color:#fff;
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(var(--primary-rgb),.28);
}
.feature-card i {font-size:40px;color:var(--bright);} 

.card-hover {
  transition: all .4s ease;
}

.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 70px rgba(0,0,0,.15);
}

.cta {
  background: linear-gradient(135deg,var(--primary),var(--primary-light),var(--bright));
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
  color:#fff;
}
.hero-title {
  animation: fadeZoom 1.2s ease;
}

@keyframes fadeZoom {
  from {
    opacity:0;
    transform:scale(0.9) translateY(20px);
  }
  to {
    opacity:1;
    transform:scale(1) translateY(0);
  }
}

@keyframes gradientMove {
  0% {background-position:0% 50%;}
  50% {background-position:100% 50%;}
  100% {background-position:0% 50%;}
}
footer {background:#06152d;} 
footer a {color:#bbb;text-decoration:none;} 
footer a:hover {color:#fff;} 

.floating-shape {
  position:absolute;
  width:200px;
  height:200px;
  background: rgba(255,255,255,0.08);
  border-radius:50%;
  top:20%;
  right:10%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% {transform:translateY(0);}
  50% {transform:translateY(-20px);}
}

.whatsapp-float {position:fixed;bottom:20px;right:20px;background:#25D366;width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;}
.whatsapp-float {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {box-shadow:0 0 0 0 rgba(37,211,102,.6);}
  70% {box-shadow:0 0 0 20px rgba(37,211,102,0);}
  100% {box-shadow:0 0 0 0 rgba(37,211,102,0);}
}
@media(max-width:768px){
.hero-title{font-size:32px;}
}

.section {
  padding: 100px 0;
  position: relative;
}

/* alternating backgrounds */
.section:nth-child(even) {
  background: var(--bg-soft);
}

.section:nth-child(odd) {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #06152d);
  background-size: 200% 200%;
  animation: gradientFlow 10s ease infinite;
  color: #fff;
}

@keyframes gradientFlow {
  0% {background-position:0% 50%;}
  50% {background-position:100% 50%;}
  100% {background-position:0% 50%;}
}
.section::before {
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  background: radial-gradient(circle, rgba(var(--secondary-rgb),0.16), transparent 70%);
  top:-100px;
  left:-100px;
  z-index:0;
}

.section .container {
  position:relative;
  z-index:2;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 20px;
  opacity: 0.9;
}

.card-hover {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  transition: all .4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.card-hover i {
  width:70px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(var(--secondary-rgb),0.14);
  border-radius:50%;
  margin:0 auto 15px;
}

.wave {
  height:100px;
  background: url('https://svgshare.com/i/uZq.svg') no-repeat center/cover;
}

.feature-card {
  padding:40px 25px;
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition:.3s;
}

.feature-card:hover {
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  color:#fff;
}

.section h2 {
  font-weight:700;
  margin-bottom:10px;
}

.section h2::after {
  content:"";
  width:50px;
  height:4px;
  background: var(--bright);
  display:block;
  margin:10px auto 0;
  border-radius:10px;
}

footer {
  background: linear-gradient(135deg,#06152d,var(--primary));
  padding-top:60px;
}

footer h5 {
  margin-bottom:15px;
  color:#fff;
}

footer p, footer a {
  color:#aaa;
}

.section {
  position: relative;
  overflow: hidden;
}

.section:nth-child(odd)::before,
.section:nth-child(odd)::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

/* Bubble 1 */
.section:nth-child(odd)::before {
  width: 300px;
  height: 300px;
  background: rgba(var(--secondary-rgb),0.32);
  top: -100px;
  left: -100px;
  animation: floatBubble 12s ease-in-out infinite;
}

/* Bubble 2 */
.section:nth-child(odd)::after {
  width: 400px;
  height: 400px;
  background: rgba(var(--secondary-rgb),0.25);
  bottom: -150px;
  right: -150px;
  animation: floatBubble 15s ease-in-out infinite reverse;
}

@keyframes floatBubble {
  0% {transform: translate(0,0);}
  50% {transform: translate(40px, -60px);}
  100% {transform: translate(0,0);}
}
.section:nth-child(even) {
  background: linear-gradient(180deg, #ffffff, #f3f8fd);
}
.section:nth-child(even) {
  background: linear-gradient(180deg, #ffffff, #f3f8fd);
}

.bubbles span {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: rise 10s infinite ease-in;
}

.bubbles span:nth-child(1) { left:20%; animation-duration:8s;}
.bubbles span:nth-child(2) { left:50%; animation-duration:12s;}
.bubbles span:nth-child(3) { left:80%; animation-duration:10s;}

@keyframes rise {
  0% {transform: translateY(100px); opacity:0;}
  50% {opacity:1;}
  100% {transform: translateY(-200px); opacity:0;}
}

/* ========================= AIS2 polished homepage ========================= */
.ais-home {
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  background: #fff;
}

.ais-home h1,
.ais-home h2,
.ais-home h3,
.ais-home h4,
.ais-home h5,
.ais-home .navbar-brand {
  font-family: 'Poppins', sans-serif;
}

.ais-home .custom-nav {
  padding: 14px 0;
}

.ais-home .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 2px solid var(--bright);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

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

.brand-text {
  max-width: 170px;
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
}

.ais-home .navbar-toggler {
  border-color: rgba(var(--secondary-rgb),0.55);
  background: rgba(255,255,255,0.96);
}

.ais-home .nav-link {
  font-weight: 600;
  margin: 0 6px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-section {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
}

.hero-media,
.hero-section .overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-section .overlay {
  background:
    linear-gradient(105deg, rgba(var(--primary-rgb),0.96) 0%, rgba(var(--primary-rgb),0.82) 44%, rgba(0,0,0,0.38) 100%),
    radial-gradient(circle at 72% 18%, rgba(var(--secondary-rgb),0.32), transparent 28%),
    radial-gradient(circle at 62% 35%, rgba(var(--accent-rgb),0.28), transparent 30%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-section .row {
  flex: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--primary);
}

.ais-home .hero-title {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(20px, 4.7vw, 31px);
  line-height: 1.12;
  letter-spacing: 0;
}

.ais-home .hero-sub {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.9);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .btn,
.ais-home .cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
}

.section-heading h2,
.about-section h2,
.admissions-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.about-section p,
.admissions-section p {
  color: #5d5d5d;
  font-size: 17px;
  line-height: 1.8;
}

.why-section .section-heading p,
.news-section .section-heading p,
.admissions-section .cta p {
  color: rgba(255,255,255,0.82);
}

.ais-home .programme-card,
.ais-home .feature-card,
.ais-home .news-card,
.ais-home .stat-box {
  border: 1px solid rgba(var(--primary-rgb),0.08);
}

.programme-card {
  min-height: 100%;
}

.programme-card h5,
.feature-card h5,
.news-card h5 {
  color: var(--text-dark) !important;
  font-weight: 800;
}

.programme-card p,
.feature-card p,
.news-card p {
  color: #666;
  line-height: 1.7;
}

.programme-card:hover h5,
.programme-card:hover p,
.feature-card:hover h5,
.feature-card:hover p {
  color: #fff;
}

.programme-card i,
.feature-card i,
.stat-box i {
  color: var(--bright);
}

.image-stack {
  position: relative;
}

.image-stack img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 220px;
  padding: 20px;
  border-left: 5px solid var(--bright);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.experience-badge i {
  color: var(--bright);
  font-size: 26px;
}

.experience-badge strong,
.experience-badge span,
.stat-box strong,
.stat-box span {
  display: block;
}

.experience-badge strong {
  margin-top: 8px;
  color: var(--primary);
  font-size: 20px;
}

.experience-badge span,
.stat-box span {
  color: #666;
  font-size: 14px;
}

.ais-home .stat-box {
  height: 100%;
  padding: 22px;
  text-align: left;
}

.stat-box i {
  margin-bottom: 12px;
  font-size: 30px;
}

.stat-box strong {
  margin-bottom: 6px;
  color: var(--primary);
}

.why-section,
.news-section {
  background:
    radial-gradient(circle at top left, rgba(var(--secondary-rgb),0.2), transparent 32%),
    linear-gradient(135deg, var(--primary), var(--primary-light), #06152d);
}

.ais-home .feature-card {
  background: rgba(255,255,255,0.96);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.news-card {
  background: #fff;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admissions-section {
  background: #fff;
}

.ais-home .cta {
  border: 1px solid rgba(var(--secondary-rgb),0.28);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.site-footer {
  padding-top: 70px;
  background:
    radial-gradient(circle at 85% 10%, rgba(var(--secondary-rgb),0.18), transparent 25%),
    linear-gradient(135deg, #06152d, var(--primary));
}

.site-footer h5 {
  color: #fff;
  font-weight: 800;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255,255,255,0.72);
}

.footer-links li,
.contact-list li {
  margin-bottom: 10px;
}

.contact-list i {
  margin-right: 8px;
  color: var(--bright);
}

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

.footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.footer-socials a:hover {
  background: var(--bright);
  color: #06152d;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.62);
  font-size: 14px;
}

@media (max-width: 991px) {
  .ais-home .navbar-collapse {
    margin-top: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb),0.98);
  }

  .image-stack img {
    min-height: 340px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .brand-text {
    max-width: 132px;
    font-size: 12px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .hero-section {
    min-height: 820px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

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

  .hero-trust span {
    width: 100%;
  }

  .experience-badge {
    position: static;
    max-width: none;
    margin-top: 16px;
  }
}

.ais-home .programme-section,
.ais-home .about-section,
.ais-home .gallery-section,
.ais-home .admissions-section {
  background: linear-gradient(180deg, #fff, #f3f8fd);
  color: var(--text-dark);
}

.ais-home .why-section,
.ais-home .news-section {
  color: #fff;
}

.ais-home .programme-section::before,
.ais-home .programme-section::after,
.ais-home .about-section::before,
.ais-home .about-section::after,
.ais-home .gallery-section::before,
.ais-home .gallery-section::after,
.ais-home .admissions-section::before,
.ais-home .admissions-section::after {
  display: none;
}

.ais-home .hero-section,
.ais-home .hero-section .carousel,
.ais-home .hero-section .carousel-inner,
.ais-home .hero-section .carousel-item {
  min-height: 92vh;
}

.ais-home .hero-section .carousel-item {
  position: relative;
}

.ais-home .hero-section .container {
  min-height: 92vh;
}

.ais-home .hero-title {
  max-width: 760px;
  font-size: clamp(20px, 4.7vw, 34px);
  line-height: 1.12;
}

.ais-home .hero-sub {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.65;
}

.ais-home .carousel-indicators {
  bottom: 28px;
  gap: 8px;
}

.ais-home .carousel-indicators [data-bs-target] {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.55);
}

.ais-home .carousel-indicators .active {
  background-color: var(--bright);
}

.ais-home .carousel-control-prev,
.ais-home .carousel-control-next {
  width: 7%;
}

.ais-home .programme-card:hover,
.ais-home .feature-card:hover {
  border-color: rgba(var(--secondary-rgb),0.55);
  background:
    radial-gradient(circle at top right, rgba(var(--secondary-rgb),0.32), transparent 34%),
    linear-gradient(135deg, #06152d 0%, var(--primary) 48%, #06152d 100%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(var(--primary-rgb),0.35);
}

.ais-home .programme-card:hover h5,
.ais-home .programme-card:hover p,
.ais-home .feature-card:hover h5,
.ais-home .feature-card:hover p {
  color: #fff;
}

.ais-home .programme-card:hover i,
.ais-home .feature-card:hover i {
  color: var(--bright);
  background: rgba(255,255,255,0.14);
}

.director-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(var(--secondary-rgb),0.14), transparent 30%),
    linear-gradient(180deg, #fff, #f3f8fd);
}

.director-section::before,
.director-section::after {
  display: none;
}

.director-panel {
  padding: 46px;
  border: 1px solid rgba(var(--secondary-rgb),0.26);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--secondary-rgb),0.26), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(var(--secondary-rgb),0.18), transparent 28%),
    linear-gradient(135deg, #06152d 0%, var(--primary) 48%, var(--primary-light) 100%);
  box-shadow: var(--shadow-lg);
}

.director-photo-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.director-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid rgba(255,255,255,0.9);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.director-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #06152d;
  background: var(--bright);
  font-size: 36px;
  box-shadow: var(--shadow-md);
}

.director-panel h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.director-panel p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  line-height: 1.85;
}

.director-message {
  font-size: 19px;
}

.director-signature {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 3px solid var(--bright);
}

.director-signature strong {
  color: #fff;
  font-size: 18px;
}

.director-signature span {
  color: rgba(255,255,255,0.72);
}

@media (max-width: 991px) {
  .ais-home .hero-title {
    max-width: 680px;
    font-size: clamp(20px, 6vw, 32px);
  }
}

@media (max-width: 575px) {
  .ais-home .hero-section,
  .ais-home .hero-section .carousel,
  .ais-home .hero-section .carousel-inner,
  .ais-home .hero-section .carousel-item,
  .ais-home .hero-section .container {
    min-height: 760px;
  }

  .ais-home .hero-title {
    font-size: 20px;
    line-height: 1.16;
  }

  .ais-home .hero-sub {
    font-size: 16px;
  }

  .ais-home .carousel-control-prev,
  .ais-home .carousel-control-next {
    display: none;
  }

  .director-panel {
    padding: 28px;
  }

  .director-badge {
    right: 18px;
  }
}

/* ========================= Inner pages ========================= */
.ais-inner {
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  background: #fff;
}

.ais-inner h1,
.ais-inner h2,
.ais-inner h3,
.ais-inner h4,
.ais-inner h5,
.ais-inner .navbar-brand {
  font-family: 'Poppins', sans-serif;
}

.ais-inner .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
}

.ais-inner .nav-link {
  font-weight: 600;
  margin: 0 6px;
}

.ais-inner .navbar-toggler {
  border-color: rgba(var(--secondary-rgb),0.55);
  background: rgba(255,255,255,0.96);
}

.inner-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(var(--primary-rgb),0.97), rgba(var(--primary-rgb),0.82), rgba(11,11,11,0.64)),
    var(--inner-image, url('school.jpg')) center/cover;
}

.inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(var(--secondary-rgb),0.26), transparent 28%),
    radial-gradient(circle at 68% 36%, rgba(var(--accent-rgb),0.22), transparent 30%);
}

.inner-hero .container {
  position: relative;
  z-index: 2;
}

.inner-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.inner-hero p {
  max-width: 700px;
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb-lite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inner-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #fff, #f3f8fd);
}

.inner-section.alt {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(var(--secondary-rgb),0.19), transparent 32%),
    linear-gradient(135deg, var(--primary), var(--primary-light), #06152d);
}

.inner-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.inner-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.inner-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
}

.inner-heading p {
  color: #5d5d5d;
  font-size: 17px;
  line-height: 1.8;
}

.inner-section.alt .inner-heading p,
.inner-section.alt .text-soft {
  color: rgba(255,255,255,0.78);
}

.info-card,
.value-card,
.admission-step,
.event-card,
.contact-card,
.faq-card {
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(var(--primary-rgb),0.09);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-card i,
.value-card i,
.admission-step i,
.event-card i,
.contact-card i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--bright);
  background: rgba(var(--secondary-rgb),0.14);
  font-size: 26px;
}

.info-card h5,
.value-card h5,
.admission-step h5,
.event-card h5,
.contact-card h5,
.faq-card h5 {
  color: var(--text-dark);
  font-weight: 800;
}

.info-card p,
.value-card p,
.admission-step p,
.event-card p,
.contact-card p,
.faq-card p {
  color: #626262;
  line-height: 1.75;
}

.inner-section.alt .value-card {
  background: rgba(255,255,255,0.96);
}

.split-image {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.74));
  font-weight: 800;
}

.accordion-item {
  border: 1px solid rgba(var(--primary-rgb),0.12);
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-weight: 800;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.accordion-button:focus {
  border-color: var(--bright);
  box-shadow: 0 0 0 .25rem rgba(var(--secondary-rgb),0.22);
}

.contact-list-large {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list-large li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  color: #5d5d5d;
}

.contact-list-large i {
  color: var(--bright);
}

.form-control,
.form-select {
  min-height: 52px;
  border-color: rgba(var(--primary-rgb),0.18);
  border-radius: 12px;
}

textarea.form-control {
  min-height: 140px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bright);
  box-shadow: 0 0 0 .25rem rgba(var(--secondary-rgb),0.18);
}

.news-list-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.news-list-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-list-card .card-body {
  padding: 26px;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-cta {
  padding: 54px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--secondary-rgb),0.32), transparent 28%),
    linear-gradient(135deg, #06152d, var(--primary), var(--primary-light));
  box-shadow: var(--shadow-lg);
}

@media (max-width: 991px) {
  .ais-inner .navbar-collapse {
    margin-top: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb),0.98);
  }

  .inner-hero {
    min-height: 380px;
  }

  .split-image {
    min-height: 330px;
  }
}

@media (max-width: 575px) {
  .inner-section {
    padding: 64px 0;
  }

  .page-cta {
    padding: 34px 24px;
  }
}

/* ========================= Tenant identity overrides ========================= */

.fti-home .custom-nav,
.fti-inner .custom-nav {
  background: rgba(var(--primary-rgb),0.36);
  border-bottom-color: rgba(255,255,255,0.14);
}

.fti-home .custom-nav.scrolled,
.fti-inner .custom-nav.scrolled {
  background: var(--primary);
}

.fti-home .brand-mark,
.fti-inner .brand-mark {
  width: 56px;
  height: 62px;
  padding: 0;
  border: 3px solid var(--primary);
  border-radius: 12px 12px 18px 18px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  position: relative;
  overflow: visible;
}

.fti-home .brand-mark::after,
.fti-inner .brand-mark::after {
  content: "DOING IT ONCE";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 72px;
  padding: 2px 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 6px;
  line-height: 1;
  text-align: center;
}

.fti-home .brand-mark img,
.fti-inner .brand-mark img {
  /* display: none; */
}

.fti-home .btn-gold,
.fti-inner .btn-gold,
.fti-home .btn-red,
.fti-inner .btn-red {
  background: linear-gradient(135deg, var(--red), #f2474d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(215,25,32,0.28);
}

.fti-home .btn-gold:hover,
.fti-inner .btn-gold:hover,
.fti-home .btn-red:hover,
.fti-inner .btn-red:hover {
  background: linear-gradient(135deg, #b91319, var(--red));
  color: #fff;
}

.fti-home .overlay,
.fti-inner .inner-hero {
  background-color: var(--primary);
}

.fti-home .hero-section .overlay {
  background:
    linear-gradient(105deg, rgba(var(--primary-rgb),0.96) 0%, rgba(var(--primary-rgb),0.82) 46%, rgba(6,21,45,0.45) 100%),
    radial-gradient(circle at 72% 18%, rgba(var(--secondary-rgb),0.32), transparent 28%);
}

.fti-inner .inner-hero {
  background:
    linear-gradient(110deg, rgba(var(--primary-rgb),0.96), rgba(var(--primary-rgb),0.82), rgba(6,21,45,0.62)),
    var(--inner-image, url('school.jpg')) center/cover;
}

.fti-home .programme-section,
.fti-home .about-section,
.fti-home .gallery-section,
.fti-home .admissions-section,
.fti-inner .inner-section {
  background: linear-gradient(180deg, #fff, #f3f8fd);
}

.fti-home .why-section,
.fti-home .news-section,
.fti-inner .inner-section.alt {
  background:
    radial-gradient(circle at top left, rgba(var(--secondary-rgb),0.22), transparent 32%),
    linear-gradient(135deg, var(--primary), var(--primary-light), #06152d);
}

.fti-home .programme-card:hover,
.fti-home .feature-card:hover,
.fti-home .card-hover:hover,
.fti-inner .value-card:hover,
.fti-inner .event-card:hover,
.fti-inner .admission-step:hover {
  border-color: rgba(var(--secondary-rgb),0.55);
  background:
    radial-gradient(circle at top right, rgba(var(--secondary-rgb),0.32), transparent 34%),
    linear-gradient(135deg, #06152d 0%, var(--primary) 48%, var(--primary-light) 100%);
  color: #fff;
}

.fti-home .programme-card:hover h5,
.fti-home .programme-card:hover p,
.fti-home .feature-card:hover h5,
.fti-home .feature-card:hover p,
.fti-home .card-hover:hover h5,
.fti-home .card-hover:hover p,
.fti-inner .value-card:hover h5,
.fti-inner .value-card:hover p,
.fti-inner .event-card:hover h5,
.fti-inner .event-card:hover p,
.fti-inner .admission-step:hover h5,
.fti-inner .admission-step:hover p {
  color: #fff;
}

.fti-home .director-panel,
.fti-home .cta,
.fti-inner .page-cta {
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--secondary-rgb),0.26), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(215,25,32,0.18), transparent 28%),
    linear-gradient(135deg, #06152d 0%, var(--primary) 48%, var(--primary-light) 100%);
}

.fti-home .director-signature,
.fti-home .experience-badge,
.fti-inner .page-cta {
  border-color: var(--red);
}

.fti-home .site-footer,
.fti-inner .site-footer {
  background:
    radial-gradient(circle at 85% 10%, rgba(var(--secondary-rgb),0.18), transparent 25%),
    linear-gradient(135deg, #06152d, var(--primary));
}

.fti-home .contact-list i,
.fti-inner .contact-list i,
.fti-inner .contact-list-large i {
  color: var(--bright);
}

@media (max-width: 575px) {
  .fti-home .brand-mark,
  .fti-inner .brand-mark {
    width: 48px;
    height: 54px;
    font-size: 12px;
  }
}

/* ========================= Gallery albums and lightbox ========================= */
.album-card,
.album-image {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.album-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.album-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}

.album-card:hover img,
.album-card:focus-visible img {
  transform: scale(1.06);
}

.album-card:focus-visible,
.album-image:focus-visible {
  outline: 4px solid rgba(var(--secondary-rgb),.45);
  outline-offset: 4px;
}

.album-count {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6,21,45,.74);
  font-size: 13px;
  font-weight: 800;
}

.album-card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6,21,45,.86));
}

.album-card-body h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
}

.album-card-body p {
  margin-bottom: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}

.album-viewer {
  margin-top: 12px;
}

.album-toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid rgba(var(--primary-rgb),.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.album-toolbar h3 {
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 800;
}

.album-toolbar p {
  margin-bottom: 0;
  color: #626977;
}

.album-image {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.album-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-image span {
  display: block;
  min-height: 58px;
  padding: 14px;
  color: var(--dark);
  font-weight: 800;
}

.album-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.album-pagination span {
  color: var(--grey);
  font-weight: 800;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3,10,22,.92);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox figure {
  max-width: min(980px, 86vw);
  margin: 0;
}

.image-lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  background: #06152d;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.image-lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: #fff;
}

.image-lightbox figcaption span {
  color: rgba(255,255,255,.68);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 22px;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: var(--red);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

body.lightbox-active {
  overflow: hidden;
}

@media (max-width: 767px) {
  .album-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .album-pagination {
    flex-direction: column;
  }

  .lightbox-nav {
    bottom: 22px;
  }

  .lightbox-prev {
    left: calc(50% - 62px);
  }

  .lightbox-next {
    right: calc(50% - 62px);
  }
}

/* ========================= News detail ========================= */
.blog-article,
.blog-sidebar {
  border: 1px solid rgba(var(--primary-rgb),.09);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.blog-article {
  overflow: hidden;
}

.blog-hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 28px 0;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--grey);
  font-size: 14px;
  font-weight: 800;
}

.blog-meta i {
  color: var(--bright);
}

.blog-body {
  padding: 22px 28px 34px;
}

.blog-body p {
  color: #4f5868;
  font-size: 17px;
  line-height: 1.9;
}

.blog-body p:last-child {
  margin-bottom: 0;
}

.event-details {
  margin: 24px 28px 0;
  padding: 24px;
  border: 1px solid rgba(var(--secondary-rgb),.24);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: #f3f8fd;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-detail-grid div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
}

.event-detail-grid i {
  grid-row: span 2;
  color: var(--bright);
  font-size: 22px;
}

.event-detail-grid strong {
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
}

.event-detail-grid span {
  color: #4f5868;
  line-height: 1.55;
}

.blog-sidebar {
  position: sticky;
  top: 110px;
  padding: 24px;
}

.blog-sidebar h4 {
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
}

.related-posts {
  display: grid;
  gap: 14px;
}

.related-post {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(var(--primary-rgb),.08);
  border-radius: 12px;
  color: var(--dark);
  text-decoration: none;
}

.related-post:hover {
  border-color: rgba(var(--secondary-rgb),.45);
  background: #f3f8fd;
}

.related-post img {
  width: 82px;
  height: 74px;
  grid-row: span 2;
  object-fit: cover;
  border-radius: 10px;
}

.related-post span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.related-post strong {
  font-size: 14px;
  line-height: 1.35;
}

.sidebar-cta {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.sidebar-cta p {
  color: rgba(255,255,255,.78);
}

@media (max-width: 991px) {
  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 575px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Edufelt reusable-school integration (Phase 2) ===== */
.school-site { padding-top: 0; background: #fff; color: var(--text-dark); }
.school-site .custom-nav { z-index: 1040; min-height: 78px; }
.school-site .school-brand { display:flex; align-items:center; gap:12px; max-width:360px; color:#fff; font-weight:700; }
.school-site .brand-mark { width:54px; height:54px; border-radius:50%; background:#fff; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; flex:0 0 auto; box-shadow:0 5px 18px rgba(0,0,0,.12); }
.school-site .brand-mark img { width:46px; height:46px; object-fit:contain; }
.school-site .brand-fallback { width:50px; height:50px; display:inline-flex; align-items:center; justify-content:center; border-radius:14px; background:#fff; color:var(--primary); }
.school-site .brand-text { color:#fff; font-size:1rem; line-height:1.15; white-space:normal; }
.school-site .navbar-toggler { border-color:rgba(255,255,255,.55); background:rgba(255,255,255,.92); }
.school-site .dropdown-menu { border:0; border-radius:14px; box-shadow:0 15px 35px rgba(6,21,45,.16); padding:10px; }
.school-site .dropdown-item { border-radius:9px; padding:9px 12px; }
.school-site .dropdown-item:hover { background:var(--bg-soft); color:var(--primary); }
.school-site .hero-section { min-height: 690px; background:var(--primary); }
.school-site .hero-section .carousel,
.school-site .hero-section .carousel-inner,
.school-site .hero-section .carousel-item { min-height:690px; }
.school-site .hero-section .carousel-item { position:relative; }
.school-site .hero-media { position:absolute; inset:0; background-size:cover; background-position:center; }
.school-site .hero-section .overlay { position:absolute; inset:0; width:100%; height:100%; }
.school-site .hero-section .container { min-height:690px; position:relative; z-index:2; display:flex; align-items:center; padding-top:90px; padding-bottom:50px; }
.school-site .hero-content { max-width:850px; }
.school-site .hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.school-site .hero-actions .btn { padding:12px 24px; border-radius:30px; font-weight:600; }
.school-site .hero-trust { display:flex; flex-wrap:wrap; gap:16px 24px; margin-top:28px; font-size:.94rem; }
.school-site .hero-trust span { display:inline-flex; align-items:center; gap:7px; }
.school-site .hero-title { line-height:1.05; }
.school-site .hero-sub { max-width:760px; }
.school-site .section-heading { max-width:800px; margin:0 auto 45px; }
.school-site .section-heading h2 { font-weight:800; }
.school-site .school-structure-content { max-width:980px; margin:0 auto; }
.school-site .bg-soft { background:var(--bg-soft); }
.school-site .image-stack { position:relative; }
.school-site .image-stack .about-img { width:100%; max-height:500px; object-fit:cover; }
.school-site .experience-badge { position:absolute; left:24px; bottom:24px; max-width:270px; padding:18px 20px; border-radius:16px; background:rgba(255,255,255,.95); box-shadow:var(--shadow-md); }
.school-site .experience-badge i { color:var(--secondary); font-size:1.5rem; margin-right:8px; }
.school-site .experience-badge strong, .school-site .experience-badge span { display:block; }
.school-site .director-panel { position:relative; overflow:hidden; padding:50px; border-radius:24px; background:linear-gradient(135deg,var(--primary),var(--primary-light)); color:#fff; box-shadow:var(--shadow-lg); }
.school-site .director-panel h2 { color:#fff; }
.school-site .welcome-icon { position:absolute; right:28px; top:20px; font-size:5rem; opacity:.13; }
.school-site .welcome-speech { font-family:'Inter',sans-serif; font-size:1.03rem; line-height:1.85; }
.school-site .welcome-speech p:last-child { margin-bottom:0; }
.school-site .why-section { background:linear-gradient(135deg,var(--primary),#031a3a); }
.school-site .why-section .feature-card { background:rgba(255,255,255,.98); }
.school-site .why-section .feature-card:hover { background:#fff; color:var(--text-dark) !important; transform:translateY(-7px); }
.school-site .why-section .feature-card:hover > p {  color:var(--text-dark) !important; transform:translateY(-7px); }
.school-site .home-gallery-item { display:block; position:relative; overflow:hidden; border-radius:var(--radius); }
.school-site .home-gallery-item img { width:100%; height:280px; object-fit:cover; }
.school-site .home-gallery-item span { position:absolute; left:14px; right:14px; bottom:14px; padding:10px 12px; border-radius:10px; background:rgba(var(--primary-rgb),.88); color:#fff; font-weight:600; }
.school-site .news-section { background:linear-gradient(135deg,#06152d,var(--primary)); }
.school-site .news-card .card-body { position:relative; }
.school-site .news-card .stretched-link { color:var(--primary); font-weight:700; text-decoration:none; }
.school-site .empty-home-state { padding:36px; border:1px dashed rgba(127,127,127,.35); border-radius:16px; }
.school-site .empty-home-state i { font-size:2.2rem; }
.school-site .event-modern-card { display:flex; gap:18px; padding:24px; border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); border:1px solid rgba(var(--primary-rgb),.07); }
.school-site .event-date-box { width:72px; min-width:72px; height:78px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--primary); color:#fff; }
.school-site .event-date-box strong { font-size:1.75rem; line-height:1; }
.school-site .event-date-box span { text-transform:uppercase; font-size:.8rem; margin-top:5px; }
.school-site .event-modern-body h5 { font-weight:700; }
.school-site .event-modern-body > a { text-decoration:none; font-weight:700; }
.school-site .event-meta { display:flex; flex-direction:column; gap:5px; color:var(--text-muted); font-size:.9rem; margin:10px 0 14px; }
.school-site .event-meta span { display:block; }
.school-site .site-footer { padding:70px 0 0; background:#06152d; }
.school-site .footer-brand-row { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.school-site .footer-brand-row h5 { margin:0; }
.school-site .footer-logo { width:50px; height:50px; border-radius:50%; object-fit:contain; background:#fff; padding:3px; }
.school-site .footer-socials { display:flex; gap:10px; margin-top:20px; }
.school-site .footer-socials a { width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.1); display:inline-flex; align-items:center; justify-content:center; color:#fff; }
.school-site .footer-socials a:hover { background:var(--secondary); }
.school-site .footer-links li { margin-bottom:9px; }
.school-site .contact-list li { display:flex; align-items:flex-start; gap:9px; margin-bottom:10px; color:#c9ced7; }
.school-site .contact-list a { color:#c9ced7; }
.school-site .footer-bottom { margin-top:48px; padding:22px 0; border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:#aeb6c4; font-size:.9rem; }
.school-site .footer-bottom a { color:#fff; }
.school-site .inner-hero { padding-top:150px; }

/* Authentication pages need explicit clearance for the fixed public navigation. */
.school-site .login-page {
  min-height: calc(100vh - 240px);
  padding: 132px 0 72px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--secondary-rgb),.12), transparent 30%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.school-site .login-panel { max-width: 400px; }

@media (max-width: 991.98px) {
  .school-site .login-page {
    min-height: calc(100vh - 180px);
    padding: 110px 0 56px;
  }
}

@media (max-width: 991.98px) {
  .school-site .custom-nav { background:var(--primary); }
  .school-site .navbar-collapse { padding:16px 0 20px; max-height:calc(100vh - 78px); overflow:auto; }
  .school-site .brand-text { max-width:220px; }
  .school-site .hero-title { font-size:46px; }
}
@media (max-width: 767.98px) {
  .school-site .brand-mark { width:46px; height:46px; }
  .school-site .brand-mark img { width:39px; height:39px; }
  .school-site .brand-text { font-size:.86rem; max-width:190px; }
  .school-site .hero-section, .school-site .hero-section .carousel, .school-site .hero-section .carousel-inner, .school-site .hero-section .carousel-item, .school-site .hero-section .container { min-height:640px; }
  .school-site .hero-title { font-size:36px; }
  .school-site .hero-sub { font-size:16px; }
  .school-site .section { padding:70px 0; }
  .school-site .director-panel { padding:34px 24px; }
  .school-site .experience-badge { position:static; margin-top:14px; max-width:none; }
  .school-site .home-gallery-item img { height:240px; }
}

/* Phase 3: tenant-configurable branding */
.school-site .principal-home-photo{width:190px;height:220px;object-fit:cover;border-radius:18px;border:5px solid rgba(255,255,255,.2);box-shadow:var(--shadow-md)}
.school-site .principal-signoff{margin-top:20px;display:flex;flex-direction:column;gap:3px}.school-site .principal-signoff strong{font-size:1.05rem}.school-site .principal-signoff span{opacity:.75;font-size:.92rem}
.school-site .btn-outline-primary{color:var(--primary);border-color:var(--primary)}.school-site .btn-outline-primary:hover{background:var(--primary);border-color:var(--primary);color:#fff}

.school-site .homepage-sections{display:flex;flex-direction:column}

/* ===== Phase 6.1: selectable per-school slider templates ===== */
.school-site .hero-section .slider-template-indicators{z-index:5;margin-bottom:24px}
.school-site .hero-section .slider-template-indicators [data-bs-target]{width:34px;height:4px;border:0;border-radius:4px;opacity:.5}
.school-site .hero-section .slider-template-indicators .active{opacity:1}

/* Template 1: Classic Overlay - familiar left aligned cinematic hero */
.school-site .slider-template-classic-overlay .overlay{
  background:linear-gradient(90deg,rgba(var(--primary-rgb),.90) 0%,rgba(var(--primary-rgb),.68) 43%,rgba(3,12,28,.24) 76%,rgba(3,12,28,.10) 100%);
}
.school-site .slider-template-classic-overlay .hero-content{max-width:850px}
.school-site .slider-template-classic-overlay .hero-title{max-width:820px}
.school-site .slider-template-classic-overlay .slider-template-indicators{justify-content:flex-start;margin-left:max(7%,calc((100vw - 1320px)/2));margin-right:0}

/* Template 2: Centered Spotlight - symmetrical and campaign-like */
.school-site .slider-template-centered-spotlight .overlay{
  background:radial-gradient(circle at 50% 46%,rgba(var(--primary-rgb),.26) 0%,rgba(3,13,30,.62) 58%,rgba(3,13,30,.86) 100%);
}
.school-site .slider-template-centered-spotlight .hero-section .container,
.school-site .slider-template-centered-spotlight .container{justify-content:center;text-align:center}
.school-site .slider-template-centered-spotlight .row{width:100%;justify-content:center}
.school-site .slider-template-centered-spotlight .row > [class*="col-"]{width:100%;max-width:1050px;margin-left:auto;margin-right:auto}
.school-site .slider-template-centered-spotlight .hero-content{max-width:980px;margin:0 auto;text-align:center}
.school-site .slider-template-centered-spotlight .hero-title{max-width:920px;margin-left:auto;margin-right:auto;font-size:clamp(2.8rem,5.2vw,5.2rem);letter-spacing:-.035em}
.school-site .slider-template-centered-spotlight .hero-sub{max-width:760px;margin-left:auto;margin-right:auto;font-size:1.12rem}
.school-site .slider-template-centered-spotlight .hero-actions,
.school-site .slider-template-centered-spotlight .hero-trust{justify-content:center}
.school-site .slider-template-centered-spotlight .eyebrow{display:inline-flex;padding:9px 15px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.10);backdrop-filter:blur(8px)}
.school-site .slider-template-centered-spotlight .carousel-control-prev,
.school-site .slider-template-centered-spotlight .carousel-control-next{width:58px;height:58px;top:50%;bottom:auto;margin-top:-29px;border-radius:50%;background:rgba(0,0,0,.28);opacity:.8}
.school-site .slider-template-centered-spotlight .carousel-control-prev{left:24px}.school-site .slider-template-centered-spotlight .carousel-control-next{right:24px}

/* Template 3: Glass Card - bright premium content card over the school photo */
.school-site .slider-template-glass-card .hero-media{background-position:center}
.school-site .slider-template-glass-card .row{justify-content:flex-end}
.school-site .slider-template-glass-card .hero-content{margin-left:auto}
.school-site .slider-template-glass-card .overlay{
  background:linear-gradient(90deg,rgba(3,13,30,.10) 0%,rgba(3,13,30,.05) 48%,rgba(var(--primary-rgb),.35) 100%);
}
.school-site .slider-template-glass-card .hero-content{
  max-width:650px;padding:38px 40px;border-radius:26px;background:rgba(255,255,255,.94);color:var(--text-dark)!important;
  box-shadow:0 26px 70px rgba(1,16,36,.28);border:1px solid rgba(255,255,255,.8);backdrop-filter:blur(13px);
  position:relative;overflow:hidden;
}
.school-site .slider-template-glass-card .hero-content:before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(180deg,var(--secondary),var(--accent))}
.school-site .slider-template-glass-card .hero-title{color:var(--primary)!important;font-size:clamp(2.4rem,4.2vw,4.35rem);letter-spacing:-.03em}
.school-site .slider-template-glass-card .hero-sub{color:#526170!important}
.school-site .slider-template-glass-card .eyebrow{color:var(--secondary-dark)!important}
.school-site .slider-template-glass-card .hero-trust{color:var(--primary);border-top:1px solid rgba(var(--primary-rgb),.12);padding-top:18px;margin-top:22px}
.school-site .slider-template-glass-card .btn-outline-light{color:var(--primary);border-color:var(--primary)}
.school-site .slider-template-glass-card .btn-outline-light:hover{color:#fff;background:var(--primary)}
.school-site .slider-template-glass-card .carousel-control-prev,
.school-site .slider-template-glass-card .carousel-control-next{width:48px;height:48px;top:auto;bottom:28px;border-radius:50%;background:var(--primary);opacity:.9}
.school-site .slider-template-glass-card .carousel-control-prev{left:auto;right:84px}.school-site .slider-template-glass-card .carousel-control-next{right:28px}
.school-site .slider-template-glass-card .slider-template-indicators{justify-content:flex-start;margin-left:max(7%,calc((100vw - 1320px)/2));margin-right:0}

/* Template 4: Editorial Bottom - photograph-first with a bold lower caption panel */
.school-site .slider-template-editorial-bottom .overlay{
  background:linear-gradient(180deg,rgba(2,11,25,.06) 10%,rgba(2,11,25,.14) 46%,rgba(2,11,25,.74) 100%);
}
.school-site .slider-template-editorial-bottom .hero-section .container,
.school-site .slider-template-editorial-bottom .container{align-items:flex-end;padding-bottom:66px}
.school-site .slider-template-editorial-bottom .row{width:100%}
.school-site .slider-template-editorial-bottom .row > [class*="col-"]{width:100%}
.school-site .slider-template-editorial-bottom .hero-content{
  max-width:1120px;padding:27px 32px 28px 35px;border-left:7px solid var(--accent);border-radius:0 18px 18px 0;
  background:linear-gradient(90deg,rgba(var(--primary-rgb),.95),rgba(var(--primary-rgb),.72) 70%,rgba(var(--primary-rgb),.40));
  box-shadow:0 18px 48px rgba(0,0,0,.20);backdrop-filter:blur(5px)
}
.school-site .slider-template-editorial-bottom .hero-title{font-size:clamp(2.5rem,4.7vw,4.9rem);max-width:980px;margin-bottom:12px}
.school-site .slider-template-editorial-bottom .hero-sub{font-size:1.02rem;max-width:820px;margin-bottom:0}
.school-site .slider-template-editorial-bottom .hero-actions{margin-top:20px}
.school-site .slider-template-editorial-bottom .hero-trust{display:none}
.school-site .slider-template-editorial-bottom .eyebrow{font-size:.78rem;letter-spacing:.09em;text-transform:uppercase}
.school-site .slider-template-editorial-bottom .carousel-control-prev,
.school-site .slider-template-editorial-bottom .carousel-control-next{top:auto;bottom:78px;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.18);opacity:.95;z-index:6}
.school-site .slider-template-editorial-bottom .carousel-control-prev{left:auto;right:82px}.school-site .slider-template-editorial-bottom .carousel-control-next{right:28px}
.school-site .slider-template-editorial-bottom .slider-template-indicators{justify-content:flex-end;margin-right:140px;margin-left:0;margin-bottom:30px}

@media (max-width: 991.98px){
  .school-site .slider-template-glass-card .hero-content{max-width:610px}
  .school-site .slider-template-editorial-bottom .hero-content{margin-right:72px}
}
@media (max-width: 767.98px){
  .school-site .slider-template-centered-spotlight .carousel-control-prev,
  .school-site .slider-template-centered-spotlight .carousel-control-next{width:42px;height:42px;margin-top:-21px}.school-site .slider-template-centered-spotlight .carousel-control-prev{left:10px}.school-site .slider-template-centered-spotlight .carousel-control-next{right:10px}
  .school-site .slider-template-glass-card .hero-content{padding:29px 23px 28px;border-radius:20px;margin:0 4px}.school-site .slider-template-glass-card .hero-title{font-size:2.35rem}.school-site .slider-template-glass-card .hero-trust{gap:9px 14px;font-size:.82rem}
  .school-site .slider-template-glass-card .carousel-control-prev,.school-site .slider-template-glass-card .carousel-control-next{bottom:18px}
  .school-site .slider-template-editorial-bottom .container{padding-bottom:78px}.school-site .slider-template-editorial-bottom .hero-content{margin:0;padding:24px 20px 25px 23px;border-left-width:5px;border-radius:0 15px 15px 0}.school-site .slider-template-editorial-bottom .hero-title{font-size:2.35rem}.school-site .slider-template-editorial-bottom .carousel-control-prev,.school-site .slider-template-editorial-bottom .carousel-control-next{bottom:20px}.school-site .slider-template-editorial-bottom .slider-template-indicators{justify-content:flex-start;margin-left:24px;margin-right:0;margin-bottom:31px}
  .school-site .slider-template-classic-overlay .slider-template-indicators,.school-site .slider-template-glass-card .slider-template-indicators{margin-left:24px}
}

/* ===== Phase 6.2: navigation, mixed media gallery and programme contrast ===== */
/* Keep the dropdown chevron beside the label instead of inheriting the animated underline pseudo-element. */
.school-site .custom-nav .dropdown-toggle{
  display:inline-flex!important;
  align-items:center;
  gap:.42rem;
  padding-right:.65rem!important;
}
.school-site .custom-nav .dropdown-toggle::after{
  content:""!important;
  position:static!important;
  display:inline-block!important;
  flex:0 0 auto;
  width:.46rem!important;
  height:.46rem!important;
  margin:0 0 .18rem .08rem!important;
  border:0!important;
  border-right:2px solid currentColor!important;
  border-bottom:2px solid currentColor!important;
  background:transparent!important;
  transform:rotate(45deg)!important;
  transition:transform .2s ease!important;
}
.school-site .custom-nav .dropdown.show > .dropdown-toggle::after,
.school-site .custom-nav .dropdown:hover > .dropdown-toggle::after{
  transform:rotate(225deg) translate(-1px,-1px)!important;
}
@media (min-width:992px){
  .school-site .custom-nav .nav-item.dropdown{position:relative}
  .school-site .custom-nav .nav-item.dropdown > .dropdown-menu{margin-top:0;top:100%}
  .school-site .custom-nav .nav-item.dropdown:hover > .dropdown-menu{display:block}
}

/* The generic alternating-section rule made the first homepage programme section use
   the primary theme colour while its heading text remained dark. Force a consistently
   readable light treatment regardless of the school's chosen palette. */
.school-site .homepage-sections .programme-section{
  background:linear-gradient(180deg,#ffffff 0%,var(--bg-soft) 100%)!important;
  color:var(--text-dark)!important;
  animation:none!important;
}
.school-site .homepage-sections .programme-section::before,
.school-site .homepage-sections .programme-section::after{display:none!important}
.school-site .homepage-sections .programme-section .section-heading .eyebrow.dark{
  color:var(--primary)!important;
  opacity:1!important;
}
.school-site .homepage-sections .programme-section .section-heading h2{
  color:var(--text-dark)!important;
}
.school-site .homepage-sections .programme-section .section-heading p{
  color:#606573!important;
  opacity:1!important;
}
.school-site .homepage-sections .programme-section .programme-card{
  background:#fff!important;
  border:1px solid rgba(var(--primary-rgb),.10)!important;
  color:var(--text-dark)!important;
  box-shadow:0 14px 40px rgba(17,31,54,.07);
}
.school-site .homepage-sections .programme-section .programme-card > i{
  width:56px;height:56px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--accent)!important;
  background:rgba(var(--accent-rgb),.11)!important;
  font-size:1.25rem;
  margin-bottom:20px;
}
.school-site .homepage-sections .programme-section .programme-card h5{color:var(--text-dark)!important}
.school-site .homepage-sections .programme-section .programme-card p{color:#626771!important}
.school-site .homepage-sections .programme-section .programme-card:hover{
  background:linear-gradient(135deg,#07152d 0%,var(--primary) 60%,#07152d 100%)!important;
  border-color:rgba(var(--secondary-rgb),.5)!important;
}
.school-site .homepage-sections .programme-section .programme-card:hover h5,
.school-site .homepage-sections .programme-section .programme-card:hover p{color:#fff!important}
.school-site .homepage-sections .programme-section .programme-card:hover > i{
  color:var(--secondary)!important;background:rgba(255,255,255,.14)!important
}

/* Mixed photo + video gallery */
.album-media-breakdown{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:.78rem;color:rgba(255,255,255,.9);font-weight:700}
.album-media-breakdown span{display:inline-flex;align-items:center;gap:5px}
.mixed-media-card{position:relative;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 12px 35px rgba(14,31,53,.10);border:1px solid rgba(var(--primary-rgb),.08)}
.mixed-media-card .album-image{position:relative;display:block;width:100%;height:auto;min-height:0;border-radius:0;overflow:hidden;background:#07152d;box-shadow:none;cursor:pointer}
.mixed-media-card .album-image img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .35s ease,opacity .35s ease}
.mixed-media-card .album-image:hover img{transform:scale(1.035);opacity:.9}
.mixed-media-card .media-type-chip{
  position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;
  display:inline-flex!important;align-items:center;gap:6px;
  width:auto!important;min-height:0!important;padding:6px 10px!important;margin:0!important;
  border-radius:999px;background:rgba(5,15,31,.78)!important;color:#fff!important;
  font-size:.74rem!important;font-weight:700!important;line-height:1!important;z-index:3
}
.mixed-media-card .gallery-play{
  position:absolute!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%);
  width:68px!important;height:68px!important;min-height:0!important;padding:0!important;margin:0!important;
  display:flex!important;align-items:center;justify-content:center;border-radius:50%!important;
  color:#fff!important;background:rgba(var(--accent-rgb),.92)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.28);font-size:2rem!important;z-index:2
}
.mixed-media-caption{padding:14px 16px 16px;color:#5e6570;font-size:.92rem;line-height:1.55}
.gallery-video-modal-content{border:0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.32)}
#galleryVideoHost{overflow:hidden;border-radius:14px;background:#000}
#galleryVideoHost iframe,#galleryVideoHost video{width:100%;height:100%;border:0}
.school-site .home-gallery-item{background:#07152d}
.school-site .home-gallery-media-badge{
  position:absolute;top:12px;right:12px;left:auto;bottom:auto;
  width:auto;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.72);
  color:#fff;font-size:.75rem;font-weight:700;z-index:3
}
.school-site .home-gallery-item .home-gallery-media-badge{
  position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;
  width:auto!important;min-height:0!important;padding:6px 10px!important;margin:0!important;border-radius:999px!important;
  background:rgba(0,0,0,.72)!important;color:#fff!important;font-size:.75rem!important;font-weight:700!important;z-index:3
}

/* Phase 6.4: actual image elements allow browser-native lazy loading for non-first slides. */
.school-site .hero-media{overflow:hidden;}
.school-site .hero-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;}
.school-site .slider-template-glass-card .hero-media img{object-position:center;}
