:root {
  --pr-yellow: #01568D;
  --pr-blue: #FFF7AE;
  --white: #ffffff;
  --muted: #f4f6f8;
  --card: #FFF7AE;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(2, 40, 60, 0.06);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .9, .2, 1);
}

body {
  margin: 0;
  background: #01568D 100%;
  color: #03304a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  font-size: 16px;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 0 18px 60px;
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}


.site-header {
  background: var(--pr-blue);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  color: var(--pr-yellow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;

  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  color: #01568D;
  -webkit-text-fill-color: #01568D;

  animation: brandReveal 0.9s ease-out forwards;
}

/* Banner Image Styling */
.brand-banner {
  height: 125px;
  width: 300px;
  /* Forced width increase as requested */
  max-width: 100%;
  display: block;
  /* mix-blend-mode removed as image is now transparent */
}

/* Hide original elements if needed, or they are removed from HTML */
.brand {
  color: var(--pr-yellow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.topnav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.topnav a {
  color: var(--pr-yellow);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.topnav a:hover,
.topnav a.active {
  background: rgba(80, 122, 249, 0.18);
}

@media (max-width: 1200px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.centered-section {
  max-width: var(--max-width);
  margin: 0 auto;
}


.hero-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
  transform-origin: center;
  background-color: #FFF7AE;
}

.hero-title {
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  color: var(--pr-yellow);
}

.hero-sub {
  margin: 0 0 16px 0;
  color: #01568D;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
}

.btn-primary {
  background: var(--pr-blue);
  color: var(--pr-yellow);
  border: 2px solid rgba(255, 247, 174, 0.95);
}

.btn-outline {
  background: transparent;
  color: var(--pr-yellow);
  border: 2px solid var(--pr-yellow);
  display: inline-block;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.info {
  background: #01568D;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  color: #FFF7AE;
  box-shadow: 0 6px 14px rgba(1, 86, 141, 0.04);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side .card {
  background: #FFF7AE;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(1, 86, 141, 0.06);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600
}

.contact-list li {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(252, 243, 3, 0.06);
  color: #01568D;
}

.contact-list li a {
  color: #01568D;
  text-decoration: none;
}

.footer-col ul li a {
  color: #FFF7AE;
  text-decoration: none;
}

.footer-col h4 {
  color: #FFF7AE !important;
  font-weight: 700;
}

.footer-col p,
.footer-col a,
.footer-col li {
  color: #FFF7AE !important;
  font-weight: 400 !important;
}

.footer-col a:hover {
  font-weight: 700 !important;
}


.two-col-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
  align-items: stretch;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.card {
  background: #FFF7AE;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(2, 40, 60, 0.04);
}

.two-col-container>.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #FFF7AE;
}


.gallery.card.slideshow-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  height: 70vh;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: #000;
  margin-top: 12px;
}

.slideshow-container .slide {
  position: absolute;
  inset: 0;
  opacity: 0;

  transition: scale(1.04);
  transition: opacity 0.8s ease-in-out, transform 1.2s ease-in-out;
  display: flex;

}

.slideshow-container .slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-container .slide img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
  /* change to cover if you want crop */
  background: #fbfafa;
}

.slideshow-container .slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fbfafa;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  /* CRITICAL */
  gap: 8px;
  padding: 10;
  width: 100%;
  height: 100%;
  background: #01568D;

}



.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;

}

.gallery-grid img:hover {
  transform: scale(1.03);

}


.slideshow-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.slideshow-container:hover .slide.active {
  transform: scale(1.02);
}


.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 0;
  z-index: 5;

  transition: color 0.2s;
}

.slide-nav.prev {
  left: 16px;
}

.slide-nav.next {
  right: 16px;
}

.slide-nav:hover {
  background: rgba(0, 0, 0, 0.45);
}

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}

.slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width .18s;
}

.slide-dots .dot.active {
  width: 22px;
  background: #fff;
}

.pros-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: transparent;
  margin-top: 6px;
}

.pros-cta .left {
  font-weight: 700;
  color: var(--pr-yellow);
}

.pros-cta .right {
  text-align: right;
}

.collapse {
  border-radius: 10px;
  overflow: hidden;
  transition: max-height .36s var(--ease), opacity .3s var(--ease);
  max-height: 0;
  opacity: 0;
}

.collapse.open {
  max-height: 1000px;
  opacity: 1;
  padding: 12px 0 0 0;
}

footer {
  margin-top: 26px;
  text-align: center;
  color: #FFF7AE;
  font-size: 0.95rem;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}


@media (max-width:1200px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .pros-cta {
    flex-direction: column;
    align-items: flex-start
  }
}

@media (max-width:480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .slide-nav {
    font-size: 1.6rem;
    padding: 6px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}


.reveal {
  transform: translateY(8px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}

.reveal.visible {
  transform: none;
  opacity: 1;
}

.follow-inline {
  margin: 14px 0;
  padding: 14px;
  border-radius: 12px;
  background: #FFF7AE;
  box-shadow: 0 8px 20px rgba(1, 86, 141, 0.06);
}

.follow-inline h4 {
  margin: 0 0 6px 0;
  color: var(--pr-blue);
  font-size: 1.05rem;
}

.follow-inline p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #334a5a;
}

.follow-icons {
  display: flex;
  gap: 12px;
}

.follow-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.follow-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}


.follow-icons .fb {
  background: #1877F2;
}

.follow-icons .ig {
  background: #E1306C;
}

.follow-icons .tw {
  background: #000000;
}

.follow-icons .wa {
  background: #25D366;
}

.follow-icons .loc {
  background: #EA4335;
}


.insta-preview {
  margin: 16px 0;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.insta-preview h4 {
  color: var(--pr-blue);
  margin-bottom: 4px;
}

.insta-preview p {
  font-size: 0.9rem;
  color: #334a5a;
  margin-bottom: 10px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.insta-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

@media (max-width: 600px) {

  form {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  form input,
  form select,
  form textarea,
  form button {
    width: 100%;
  }

  .topnav a {
    padding: 10px 14px;
  }


  body {
    font-size: 15px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .brand h1 {
    font-size: 1.3rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .slideshow-container {
    height: 55vh;
  }

  .slideshow-container .slide img,
  .slideshow-container .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  footer div {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {

  .hero {
    grid-template-columns: 1fr;
  }

  .slideshow-container {
    height: 65vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .brand h1 {
    font-size: 1.45rem;
  }
}

@media (min-width: 1200px) {
  .slideshow-container {
    height: 75vh;
  }
}

.site-footer {
  background: #01568D;
  /* yellow background */
  margin-top: 40px;
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #7a1c1c;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

.footer-col p {
  margin: 8px 0;
  color: #fff;
  font-weight: 500;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  width: 120px;
  border-radius: 50%;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom {
  background: #6b2c2c;
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Copyright section */
.copyright-section {
  margin-top: 14px;
  /* space from footer */
  padding-bottom: 36px;
  /* space below so page background shows */
}

/* This is the boxed alignment */
.copyright-box {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 18px;
  background: #01568D;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2, 40, 60, 0.04);
  text-align: center;
  font-size: 0.9rem;
  color: #FFF7AE;
}

footer.two-col {
  margin-top: 40px;
}

footer.two-col .card {
  background-color: #01568D;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
  padding: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo {
  width: 140px;
  /* small logo */
  height: auto;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-left: 15px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #FFF7AE;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #03304a;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #03304a;
  line-height: 1.5;
}

@media (max-width: 768px) {
  footer.two-col .card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}


/* Default state for phone & email links */
a[href^="tel:"],
a[href^="mailto:"] {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Hover & focus state */
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover,
a[href^="tel:"]:focus-visible,
a[href^="mailto:"]:focus-visible {
  color: var(--pr-blue);
}

.contact-list a:hover {
  color: var(--pr-yellow);
  text-shadow: 0 0 6px var(--pr-yellow),
    0 0 12px var(--pr-yellow);
}

/* Footer main card */
footer .card {
  background: #01568D;
  color: #fff;
}

footer,
footer p,
footer li,
footer a,
footer h4 {
  color: #fff;
}

footer h4 {
  color: #FFD966;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

footer a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

footer a:hover {
  color: var(--pr-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-logo {
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 12px;
  margin-left: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 8px;
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social .fb {
  background: #1877F2;
}

.footer-social .wa {
  background: #25D366;
}

.footer-social .ig {
  background: #E1306C;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--pr-blue);
}

footer .card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  footer .card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

  }

  .footer-menu {
    padding-left: 8px;
  }

  .footer-address {
    padding-right: 8px;
  }
}

.footer-social {
  justify-content: center;
  display: flex;
  flex-wrap: nowrap;
  /* 🔴 prevents next line */
  gap: 8px;
}

/* Full-width gallery section resolved */
#home-gallery {
  width: 100%;
  margin: 0;
  padding: 0;
}

:root {
  --text-main: #01568D;
}

body {
  color: var(--text-main);
}

.site-header,
.site-header * {
  color: inherit;
}

@media (max-width: 768px) {
  .footer-social {
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {

  .latest-notices ul {
    padding-left: 0;
    margin: 0;
    list-style-position: inside;
  }

  .latest-notices li {
    margin: 0;
    padding: 0;
    text-align: left;
  }

}

@media (max-width: 768px) {

  footer .card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Logo + social full width on top */
  footer .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  footer .footer-social {
    justify-content: center;
  }

  /* Menu (left) */
  footer .footer-col:nth-of-type(2) {
    text-align: left;
  }

  /* Address (right) */
  footer .footer-col:nth-of-type(3) {
    text-align: left;
  }

  /* Clean list spacing */
  footer ul {
    padding-left: 0;
    margin: 0;
  }

  footer li {
    list-style: none;
    margin-bottom: 6px;
  }

  /* Contact text wrapping fix */
  footer p,
  footer a {
    word-break: break-word;
    font-size: 14px;
  }

}

@media (max-width: 768px) {

  .programs-facilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .programs-facilities li {
    position: relative;
    padding-left: 16px;
    text-align: left;
    margin-bottom: 10px;
  }

  .programs-facilities li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--pr-yellow);
    font-weight: bold;
  }

}

/* Principal Section Styling */
.principal-card {
  background: #FFF7AE;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.principal-content {
  max-width: 700px;
  margin: 0 auto;
}

.principal-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 4px solid #f0f0f0;
}

.principal-card h3 {
  margin: 10px 0 8px;
  color: var(--pr-yellow);
}

.principal-card p {
  font-size: 1rem;
  color: #01568D;
  line-height: 1.6;
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Button (Inherits from Nav Links) */
.dropdown .dropbtn {
  font-size: 16px;
  /* Match body/nav size */
  border: none;
  outline: none;
  color: var(--pr-yellow);
  /* Match .topnav a color */
  padding: 8px 12px;
  /* Match .topnav a padding */
  background-color: transparent;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: 600;
  /* Match .topnav a weight */
  border-radius: 8px;
  /* Match .topnav a radius */
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Ensure the button looks active if a child is active (optional, simplified for now) */

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  /* Wider for names */
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 8px;
  top: 100%;
  left: 0;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

/* Add a background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: rgba(80, 122, 249, 0.1);
  color: var(--pr-blue);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hover style for the main Dropdown Button */
.dropdown:hover .dropbtn {
  background: rgba(80, 122, 249, 0.18);
  color: var(--pr-blue);
}

/* Specific fix for contact page links */
.contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #01568D !important;
  text-decoration: underline;
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES
   ========================================= */
@media (max-width: 768px) {

  /* 1. Header Logo Size Fix - Increased Width */
  .brand-banner {
    width: 100% !important;
    /* Force full width */
    max-width: 100% !important;
    height: auto !important;
    /* Maintain aspect ratio */
    max-height: 150px;
    /* Increased limit to allow full width scaling */
    object-fit: contain;
  }

  /* 2. Home Page Buttons Overlap Fix */
  .hero-card .btn,
  .card .btn,
  .programs-facilities .btn,
  aside .btn {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    text-align: center;
  }

  /* Remove spacing for the last button to avoid extra gap */
  .card p .btn:last-child {
    margin-bottom: 0 !important;
  }

  /* 3. Program and Facilities Section Layout Fix */
  .section-grid,
  .facilities-grid {
    /* Assuming generic grid names, check context if specific class exists */
    grid-template-columns: 1fr !important;
  }

  /* Fix specifically for the 2-col layout often used */
  .two-col {
    grid-template-columns: 1fr !important;
  }

  /* 4. Contact Form Layout Fix */
  form {
    grid-template-columns: 1fr !important;
  }

  form textarea {
    grid-column: 1 / -1 !important;
  }

  input,
  select,
  textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. General Container Padding Adjustment */
  .wrap,
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* =========================================
   COMPACT STAR PERFORMERS (HOME PAGE)
   ========================================= */

/* Main Grid for Toppers */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 10px;
  justify-items: center;
}

/* Individual Item Wrapper */
.sp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Photo Circle Styling */
.sp-photo-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--pr-blue);
  margin-bottom: 4px;
  background-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Student of the Year - Featured Top Section */
.sp-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ccc;
  width: 100%;
}

.sp-featured .sp-photo-box {
  width: 85px;
  height: 85px;
  border: 3px solid var(--pr-blue);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 6px;
}

.sp-featured .sp-name {
  font-size: 1rem;
  margin-bottom: 2px;
}

.sp-featured .sp-class {
  font-size: 0.85rem;
  color: var(--pr-blue);
  font-weight: 700;
}

/* Common Image Styling */
.sp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.35) translateY(5px);
}

/* Text Styling */
.sp-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pr-blue);
  line-height: 1.1;
  margin-top: 2px;
}

.sp-class {
  font-size: 0.7rem;
  color: #555;
  font-weight: 500;
}

/* Mobile Tweak */
@media (max-width: 400px) {
  .sp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   COMPACT STAR PERFORMERS (PYRAMID LAYOUT)
   ========================================= */

.sp-pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  /* Vertical gap between rows */
  margin-top: 15px;
}

.sp-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  /* Horizontal gap between items */
  width: 100%;
}

.sp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: auto;
  /* Allow natural width */
}

/* Photo Circle Styling */
.sp-photo-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--pr-blue);
  margin-bottom: 4px;
  background-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Student of the Year - Slightly Larger */
.sp-row:first-child .sp-photo-box {
  width: 80px;
  height: 80px;
  border: 3px solid var(--pr-blue);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Common Image Styling */
.sp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.35) translateY(5px);
}

/* Text Styling */
.sp-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pr-blue);
  line-height: 1.1;
  margin-top: 2px;
}

/* Hide other details as requested */
.sp-class,
.sp-rank,
.sp-desc {
  display: none !important;
}

/* Mobile Tweak - If rows get too crowded */
@media (max-width: 400px) {
  .sp-row {
    gap: 8px;
  }

  .sp-photo-box {
    width: 50px;
    height: 50px;
  }

  .sp-row:first-child .sp-photo-box {
    width: 70px;
    height: 70px;
  }
}

.side h4 {
  color: #01568D;
}

.copyright-box a {
  font-weight: 700;
  transition: color 0.2s ease;
}

.copyright-box a:hover {
  color: #d4c77e !important;
}