@font-face {
  font-family: "Poppins";
  src: url(fonts/Poppins-Regular.ttf);
}

@font-face {
  font-family: Poppins-Bold;
  src: url(fonts/Poppins-Bold.ttf);
  font-weight: 700;
}

@font-face {
  font-family: IBMSerif-Bold;
  src: url(fonts/IBMPlexSerif-Bold.ttf);
  font-weight: 700;
}

/* Modern scrollbar styling for a clean, auto-hiding overlay scrollbar */

/* For WebKit browsers (Chrome, Safari, Edge) */
html {
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #a9a9a9 transparent; /* For Firefox: thumb and track color */
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent; /* Makes the track invisible */
}

html::-webkit-scrollbar-thumb {
  background-color: #a9a9a9; /* Color of the scroll thumb */
  border-radius: 10px; /* Round the corners of the thumb */
  border: 2px solid transparent; /* Creates padding around thumb */
  background-clip: content-box; /* Ensures border is not covered by the background */
}

/* Optional: Make the scrollbar thumb slightly darker on hover */
html::-webkit-scrollbar-thumb:hover {
  background-color: #8c8c8c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --hero-bg-image-current: none;
  --hero-bg-image-next: none;
  --hero-bg-transition-duration: 0.7s;
}

hr {
  margin: 10px 0;
  background-color: #f5f7f8;
  border-width: 0px;
  height: 2px;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: "Poppins";
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  scroll-behavior: smooth;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
  background-color: #f5f7f8;
  color: #212529;
  font-size: 16px;
  cursor: default;
}

section {
  width: 100%;
  min-height: 50vh;
}

a {
  text-decoration: none;
}

h2 {
  font-family: Poppins-Bold;
}

/* ==================================================== */
/*            CONTENT FADE/SLIDE-IN ANIMATIONS          */
/* ==================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-on-load {
  opacity: 0;
}

.animate-on-load.is-visible {
  /*
    animation: [animation-name] [duration] [timing-function] [delay] [iteration-count] [direction] [fill-mode];
  */
  animation-fill-mode: forwards; /* Ensures the element stays at its 'to' state after the animation */
  animation-duration: 0.5s; /* How long the animation takes */
  animation-timing-function: ease-out; /* The speed curve of the animation */
}

/* Specific animation types */
.is-visible.anim-fade-up {
  animation-name: fadeInUp;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
}
.is-visible.anim-fade-down {
  animation-name: fadeInDown;
}
.is-visible.anim-fade-left {
  animation-name: fadeInLeft;
}
.is-visible.anim-fade-right {
  animation-name: fadeInRight;
}
.is-visible.anim-zoom-in {
  animation-name: zoomIn;
}
.is-visible.anim-zoom-out {
  animation-name: zoomOut;
}

/* Optional: Staggering animations with animation-delay */
/* We can use these to make elements appear one after another. */
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* Preloader */
.preloader {
  position: fixed;
  /* Stays in place even when scrolling */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Full viewport height */
  z-index: 9999;
  /* Sits on top of everything else */

  /* Flexbox for centering the spinner */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Background */
  background-color: #f5f7f8;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* The class that will be added by JavaScript to hide the preloader */
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  position: absolute;
  width: 9px;
  height: 9px;
}

.spinner div {
  position: absolute;
  width: 50%;
  height: 150%;
  background: #1e4e82;
  transform: rotate(calc(var(--rotation) * 1deg))
    translate(0, calc(var(--translation) * 1%));
  animation: spinner-fzua35 1s calc(var(--delay) * 1s) infinite ease;
}

.spinner div:nth-child(1) {
  --delay: 0.1;
  --rotation: 36;
  --translation: 150;
}

.spinner div:nth-child(2) {
  --delay: 0.2;
  --rotation: 72;
  --translation: 150;
}

.spinner div:nth-child(3) {
  --delay: 0.3;
  --rotation: 108;
  --translation: 150;
}

.spinner div:nth-child(4) {
  --delay: 0.4;
  --rotation: 144;
  --translation: 150;
}

.spinner div:nth-child(5) {
  --delay: 0.5;
  --rotation: 180;
  --translation: 150;
}

.spinner div:nth-child(6) {
  --delay: 0.6;
  --rotation: 216;
  --translation: 150;
}

.spinner div:nth-child(7) {
  --delay: 0.7;
  --rotation: 252;
  --translation: 150;
}

.spinner div:nth-child(8) {
  --delay: 0.8;
  --rotation: 288;
  --translation: 150;
}

.spinner div:nth-child(9) {
  --delay: 0.9;
  --rotation: 324;
  --translation: 150;
}

.spinner div:nth-child(10) {
  --delay: 1;
  --rotation: 360;
  --translation: 150;
}

@keyframes spinner-fzua35 {
  0%,
  10%,
  20%,
  30%,
  50%,
  60%,
  70%,
  80%,
  90%,
  100% {
    transform: rotate(calc(var(--rotation) * 1deg))
      translate(0, calc(var(--translation) * 1%));
  }

  50% {
    transform: rotate(calc(var(--rotation) * 1deg))
      translate(0, calc(var(--translation) * 1.5%));
  }
}

body.loading {
  overflow: hidden;
}

/* Home Section */
.site-header {
  box-sizing: border-box;
  background-color: #f5f7f8;
  height: 8vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 30px;
  border-top: 1vh solid #3377cc;    
  box-shadow: 0 2px 4px rgba(33, 37, 41, 0.5);
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  transition: top 0.6s ease-in-out, background-color 0.6s ease-in-out,
    backdrop-filter 0.6s ease-in-out, height 0.6s ease-in-out,
    padding 0.6s ease-in-out;
}

.site-header--at-top {
  height: 9vh;
}

.site-header--blurred {
  background-color: rgba(30, 30, 30, 0.6);
  color: #ffffff;
  /* White text */
  backdrop-filter: blur(10px);
  /* Blur effect */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

.site-header--blurred .logo-title h2 {
  color: #f5f7f8;
  transition: color 0.6s ease-in-out;
}

.site-header--blurred .hamburger,
.site-header--blurred .hamburger::after,
.site-header--blurred .hamburger::before {
  background: #f5f7f8;
}

.site-header--hidden {
  top: -10vh;
}

.brand {
  height: 100%;
  width: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 80%;
  width: auto;
  margin-right: 15px;
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo-title h2 {
  font-family: Poppins-Bold;
  font-size: 1rem;
  color: #1e4e82;
}

.main-nav {
  display: block;
  order: 3;
}

.nav-list {
  width: 90%;
  list-style: none;
  margin: 0;
  position: fixed;
  top: 8vh;
  right: -1vh;
  bottom: auto;
  max-height: calc(100vh - 8vh - 20px);
  background-color: #f5f7f8;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  display: flex;
  z-index: 999;
  box-shadow: -4px 4px 4px #2423236e;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.nav-list.nav-open {
  transform: translateX(0);
  overflow: hidden;
}

.nav-list.nav-open {
  transform: translateX(0);
}

.nav-list li {
  margin: 0;
  width: 100%;
}

.nav-list li a {
  color: #242323;
  text-decoration: none;
  font-size: 1rem;
  padding: 15px 30px;
  display: block;
  text-align: left;
}

.nav-list li a:hover,
.nav-list li a:focus {
  color: #3b8cdd;
}

/* --- HAMBURGER TOGGLE BUTTON --- */
.nav-toggle {
  display: block;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  margin-left: auto;
  order: 2;
}

.hamburger {
  display: block;
  position: relative;
  width: 2em;
  height: 3px;
  background: #1e4e82;
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1e4e82;
  transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-open .hamburger {
  background-color: transparent;
}

.nav-open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  background-color: #1e4e82;
}

.nav-open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
  background-color: #1e4e82;
}

.nav-item-has-dropdown {
  position: relative;
}

.dropdown-toggle .dropdown-arrow {
  font-size: 1rem;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-item-has-dropdown.dropdown-open > .dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  display: none;
  background-color: #e9edf0;
  width: 100%;
}

.nav-item-has-dropdown.dropdown-open > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  font-size: 1rem;
  padding: 15px 0;
  text-align: center;
}

/* Hero Section */
.hero-banner {
  min-height: 100vh;
}

.hero {
  min-height: 40vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url(images/bgOne.jpg);
  background-size: cover;
  background-position: center -260px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f7f8;
  padding: 60px 30px 0;
}

.hero > span {
  text-align: left;
  border-left: #f5f7f8 5px solid;
  padding: 30px;
}

.hero > span > h3 {
  font-size: 1.5rem;
  text-shadow: 0 4px 4px #000000;
}

.hero > span > h2 {
  font-family: IBMSerif-Bold;
  font-size: 2rem;
  text-shadow: 0 4px 4px #000000;
}

.hero-banner > hr {
  border: none;
  margin: 0;
  height: 1vh;
  background-color: #3377cc ;
}

.bottom-hero {
  min-height: 50vh;
  width: 100%;
  background-color: #f4f4f2;
  display: flex;
  flex-direction: column;
  padding: 30px 0;
  color: #f5f7f8;
  box-shadow: 0 4px 4px 0 rgba(30, 30, 30, 0.5) inset;
}

.announcement {
  width: 100%;
  height: auto;
  display: flex;
  padding: 30px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.announcement > h2 {
  font-size: 1.5rem;
  padding: 0 0 15px;
  color: #1e1e1e;
}

/* --- Announcement Carousel Wrapper --- */
.announcement-carousel-container {
  position: relative;
  height: 90%;
  margin: 0 auto;
  padding-bottom: 30px;
}
.page-404 {
  height: auto;
}
.announcement-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.announcement-carousel-slider {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.announcement-item {
  min-width: 100%;
  box-sizing: border-box;
}

.announcement-item img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: contain;
}

/* --- Carousel Navigation Buttons --- */
.announce-carousel-button {
  position: absolute;
  top: 40%;
  background-color: rgb(0, 0, 0, 0);
  color: #1e1e1e;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease-in-out;
}

.announce-carousel-button.prev:hover {
  transform: translateX(-20%);
}

.announce-carousel-button.next:hover {
  transform: translateX(20%);
}

.announce-carousel-button.prev {
  left: 10px;
}

.announce-carousel-button.next {
  right: 10px;
}

/* --- Carousel Dots/Indicators --- */
.announce-carousel-dots {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.announce-carousel-dots .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid #1e1e1e;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.announce-carousel-dots .carousel-dot.active {
  transform: scale(1.2);
  background-color: #1e1e1e;
}
.container {
  width: 100%;
  flex-grow: 1;
  background-color: #3377cc;
  padding: 30px 30px;
}

.item {
  width: 100%;
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

.item > h2 {
  padding: 30px 0 15px;
}

.item > p {
  text-align: center;
  padding: 15px 0;
}

/*  s Section */
.course {
  min-height: 50vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10vh 30px;
}

.titleText {
  width: 100%;
  height: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.titleText > h1 {
  font-size: 2rem;
  font-family: Poppins-Bold;
  color: inherit;
}

.coursesCard {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-content: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
}

.cardCourse {
  cursor: pointer;
  width: 72vw;
  min-height: 30vh;
  margin: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cardCourse:hover,
.cardCourse:focus {
  box-shadow: 0 0.8em 0.8em -0.8em var(--hover);
  transform: translateY(-1em);
}

.cardCourse:hover .topRect {
  border-top: 3px solid #600bff;
  border-left: 3px solid #600bff;
  border-right: 3px solid #600bff;
  border-bottom: 0px;
}

.cardCourse:hover .bottomRect {
  border-bottom: 3px solid #600bff;
  border-left: 3px solid #600bff;
  border-right: 3px solid #600bff;
  border-top: 0px;
  box-shadow: 0 15px 5px rgba(0, 0, 0, 0.2);
}

.topRect {
  width: 100%;
  height: 14vh;
  background-color: #0072eb;
  border-top-right-radius: 40px;
  border-top-left-radius: 40px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  border-top: 3px solid transparent;
  border-bottom: 0px;
}

.cba {
  background-image: linear-gradient(to right, #ffce1b);
}

.cased {
  background-image: linear-gradient(to right, #061a5a);
}

.ccs {
  background-image: linear-gradient(to right, #7150ff);
}

.coe {
  background-image: linear-gradient(to right, #437092);
}

.coa {
  background-image: linear-gradient(to right, #9a2337);
}

.con {
  background-image: linear-gradient(to right, #51a953);
}

.grad {
  background-image: linear-gradient(to right, #0072eb);
}

.basiced {
  background-image: linear-gradient(to right, #0365ce);
}

.ccista {
  background-image: linear-gradient(to right, #070ba6);
}

.logoBox {
  width: 100%;
  top: 8vh;
  display: flex;
  justify-content: center;
  position: absolute;
  min-height: auto;
}

.logoBox img {
  border-radius: 80px;
  width: 12vh;
}

.bottomRect {
  text-align: center;
  text-decoration: underline;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 9px 8px rgba(0, 0, 0, 0.2);
  padding: 40px 30px 40px 30px;
  border: 3px solid transparent;
  border-top: 0px;
}

.bottomRect > h5 {
  font-size: 1rem;
  margin-top: 10%;
  z-index: 5;
}

.spText {
  z-index: 10;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.712);
}

/* Modal Content/Box */
.modal-content {
  z-index: 1001;
  background-color: #fefefe;
  width: 80%;
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 30px;
  flex-direction: column;
  margin: 15vh auto;
}

.logoSide {
  border-radius: 24px 24px 0 0;
  width: 100%;
  height: 15%;
  background: linear-gradient(to bottom, #061a5a);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cbaM {
  background-image: linear-gradient(to bottom, #ffce1b);
}

.ccsM {
  background-image: linear-gradient(to bottom, #7150ff);
}

.coeM {
  background-image: linear-gradient(to bottom, #437092);
}

.coaM {
  background-image: linear-gradient(to bottom, #a8273c);
}

.conM {
  background-image: linear-gradient(to bottom, #51a953);
}

.gradM {
  background-image: linear-gradient(to bottom, #0072eb);
}

.basicedM {
  background-image: linear-gradient(to bottom, #0365ce);
}

.ccistaM {
  background-image: linear-gradient(to bottom, #070ba6);
}

.courseSide {
  border-radius: 0 0 18px 18px;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow-y: scroll;
}

.courseSide::-webkit-scrollbar-track {
  background-color: transparent;
  height: 50%;
}

.stickyTitle {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.486);
  width: 100%;
  height: 15%;
  position: sticky;
  top: 0;
  background-color: rgb(255, 255, 255);
  z-index: 1;
  padding: 7vh 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  color: rgb(0, 0, 0);
  white-space: normal;
  font-size: 1rem;
}
.stickyTitle span {
  font-weight: normal;
}

.listCourse {
  width: 100%;
  height: auto;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-left: 17%;
  padding-top: 3vh;
  padding-bottom: 10%;
  padding-right: 5%;
}

.indentedText {
  padding-left: 20px;
}

/* The Close Button */
.close {
  color: #ffffff;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 2vh;
  z-index: 43;
  left: 90%;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.logoBox2 {
  width: 20%;
  height: 10%;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 2%;
}

.logoBox2 img {
  border-radius: 130px;
  z-index: 2000;
  box-shadow: 0 8px 6px rgba(33, 37, 41, 0.5);
}

/* About Section */
.about {
  position: relative;
  display: flex;
  flex-direction: column;
}

.info {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 50vh;
  background-color: #3377cc;
  padding: 20px 0;
  box-shadow: 0 4px 4px rgba(33, 37, 41, 0.5);
}

.info-2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 30px 0;
  min-height: 50vh;
  background-color: #dcdcdc;
  padding: 20px 0 0;
  box-shadow: 0 4px 4px rgba(33, 37, 41, 0.5);
}

.info-2-container {
  height: auto;
  background-color: #ffffff;
}

.info-text {
  padding: 20px;
  color: #f5f7f8;
}

.info-text > h2 {
  font-family: Poppins-Bold;
}

.info-2 hr {
  background-color: #212529;
  color: #212529;
}

.info-2 .info-text {
  color: #212529;
  position: relative;
  z-index: 1;
  box-shadow: 0px 4px 4px rgba(33, 37, 41, 0.5);
}

.info-button {
  width: 100%;
  height: 50px;
  position: relative;
  font-family: Poppins-Bold;
  font-size: 18px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  background: linear-gradient(45deg, #1e4e82, #2a8a8c);
  color: #f5f7f8;
  overflow: hidden;
  color: #f5f7f8;
}

.info-button img {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
}

.info-button span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
}

.info-button::before,
.info-button::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.info-button::before {
  content: "";
  background: #3377cc;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.8s cubic-bezier(0.3, 1, 0.8, 1);
}

.info-button:hover::before {
  transform: translate3d(100%, 0, 0);
}

.info-button:active {
  transform: scaleX(0.95);
}

/* News Section */
.news-section {
  background-image: linear-gradient(
      to left,
      rgba(37, 98, 163, 0.9) 25%,
      rgba(23, 60, 99, 0.9) 75%
    ),
    url(images/bgOne.jpg);
  min-height: 60vh;
  padding: 15px 30px 45px;
  background-position: center;
  background-size: cover;
  position: relative;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f5f7f8;
  padding: 0 0 15px;
}
.news-header > h2 {
  font-family: Poppins-Bold;
  font-size: 1.8rem;
  color: #f5f7f8;
}
.news-header > a {
  color: #d9dbdb;
}
.news-header > a:hover {
  color: #f5f7f8;
}
.newspage {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  padding: 8vh 0 0;
  z-index: -1;
}

.newspage::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  background-image: var(--section-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
}

.newspage .article-text {
  position: relative;
  z-index: 1;
  padding: 30px;
  background-color: #f5f7f8;
}

.article-text h2 {
  font-family: Poppins-Bold;
  font-size: 1.5rem;
}

.newspage img {
  margin: 30px 5vw;
  width: 90vw;
}

.article-text h2 {
  font-family: Poppins-Bold;
  font-size: 1.5rem;
}

.newspage img {
  margin: 30px 5vw;
  width: 90vw;
}

.news-title {
  min-height: 40vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(images/default_news_bg.jpg);
  background-size: cover;
  background-position: center -230px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: start;
  color: #f5f7f8;
  padding: 30px;
}

.news-title > span {
  text-align: left;
  border-left: #f5f7f8 5px solid;
  padding: 30px;
}

.news-title > span > h2 {
  font-size: 2rem;
  text-shadow: 0 4px 4px #000000;
  font-family: Poppins-Bold;
}

.newspage-container {
  width: 100%;
  color: #1e1e1e;
  display: flex;
  flex-direction: column;
  padding: 15px 30px;
  justify-content: space-between;
}

.news-info {
  min-height: 50vh;
}

.news-info > h2 {
  width: 100%;
  border-bottom: #1e1e1e 2px solid;
  margin: 15px 0;
  font-size: 1.5rem;
  padding: 0 15px;
  text-transform: uppercase;
}

.newspage-image {
  padding: 15px 0 30px;
}

.newspage-photos {
  min-height: 40vh;
  padding: 30px;
  background-color: #11213b;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.news-photo {
  max-width: 400px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.news-photo:hover img {
  transform: scale(1.05);
}

.news-nav {
  min-height: 50vh;
  padding: 15px 0;
}

.news-nav > h2 {
  padding: 5px 15px;
  width: 100%;
  background-color: #1e4e82;
  color: #f5f7f8;
  border: none;
}

.news-nav > ul {
  list-style: none;
  padding: 15px;
}

.news-nav > ul li {
  padding-top: 5px;
}

.news-nav > ul li > a {
  text-transform: uppercase;
  text-decoration: none;
  color: #1e1e1e;
}

.news-nav > ul li > a:hover {
  font-weight: 900;
  color: #1e4e82;
}

/* --- Carousel Wrapper & Carousel --- */
.carousel-wrapper {
  position: relative;
  margin-top: 15px;
  width: 100%;
  min-height: 50vh;
  background-color: rgba(23, 60, 99, 0.95);
  overflow: hidden;
}

.news-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.news-item {
  min-width: 100%;
  box-sizing: border-box;
}

.news-container {
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-text {
  position: relative;
  flex-grow: 1;
  min-height: 20vh;
}

.news-text h3 {
  font-size: 1.25rem;
  color: #f5f7f8;
  line-height: 1.3;
  padding: 15px 30px;
  text-transform: uppercase;
}

.news-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f5f7f8;
  padding: 0 30px 30px;
}

.news-button {
  padding-left: 30px;
  text-decoration: none;
  color: #f5f7f8;
  cursor: pointer;
  display: flex;
  align-items: start;
}
.news-button > span {
  letter-spacing: 4px;
  padding-right: 15px;
  text-transform: uppercase;
}
.news-button svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.news-button:hover svg {
  transform: translateX(0);
}

.news-button:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: #f5f7f8;
  padding-bottom: 15px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f5f7f8;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.news-button:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
/* --- Carousel Navigation Buttons --- */
.carousel-button {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  background-color: rgba(30, 78, 130, 0.7);
  color: #f5f7f8;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.carousel-button:hover,
.carousel-button:focus {
  background-color: #1e4e82;
}

.carousel-button.prev {
  left: 15px;
}

.carousel-button.next {
  right: 15px;
}

/* --- Carousel Dots/Indicators --- */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid #f5f7f8;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  transform: scale(1.2);
  background-color: #f5f7f8;
}

/*News Blog Cards*/
.news-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  background-color: #f5f7f8;
}
.band {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-gap: 15px;
  @media (min-width: 60em) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.news-card {
  height: 100%;
}
.card-link {
  background: white;
  text-decoration: none;
  color: #1e1e1e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  transition: all 0.1s ease-in;
  &:hover {
    top: -2px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  }
}
.thumb {
  display: flex;
  height: 300px;
  width: 100%;
  position: relative;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-link article {
  padding: 15px 15px 45px;
}
.card-link > article > h1 {
  font-size: 1.2rem;
}
.card-link > article > p {
  line-height: 1.5;
}
.card-link > article > h1,
.card-link > article > p {
  padding-bottom: 15px;
}
.card-link > article > .news-date {
  font-size: 1rem;
  color: #858484;
}
.card-link > article > span {
  position: absolute;
  bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.05rem;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
  font-family: sans-serif;
}
.pagination ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 8px; /* Spacing between buttons */
}
.pagination li a,
.pagination li span {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  background-color: #fff;
}
/* Hover state for clickable links */
.pagination li a:hover {
  background-color: #f5f5f5;
  color: #1e4e82; /* Your brand color */
}
/* Active state for the current page */
.pagination li.active span {
  background-color: #1e4e82; /* Your brand color */
  color: #fff;
  border-color: #1e4e82;
  cursor: default;
}
/* Disabled state for Prev/Next at the ends */
.pagination li.disabled span {
  color: #aaa;
  background-color: #f9f9f9;
  cursor: not-allowed;
}

/*Team section*/
.team {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 7vh 0 0 0;
}

.Tree {
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  flex-wrap: wrap;
}

.Tree h4 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #d9ebfc;
  border-bottom-left-radius: 50px;
  border-top-right-radius: 50px;
  background-image: linear-gradient(to right, #127cee);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  width: 60%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  white-space: normal;
  padding: 20px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    background-color 0.7s ease;
  word-break: break-word;
  z-index: 666;
}

.firstSect {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  flex-wrap: wrap;
  background-image: linear-gradient(
      to top,
      rgb(33, 37, 41) 10%,
      rgba(255, 255, 255, 0) 30%
    ),
    linear-gradient(to bottom, rgb(33, 37, 41) 10%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(rgba(55, 62, 68, 0.534), rgba(48, 54, 59, 0.8)),
    url("../css/images/bgSchool.jpg");
  background-position: 48% 58%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  width: 100%;
}

.firstSect h5,
.firstSect span {
  color: rgb(255, 255, 255);
}

.secondSect {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  flex-wrap: wrap;
  background-color: #212529;
  background-image: linear-gradient(
      to top,
      rgb(33, 37, 41) 10%,
      rgba(255, 255, 255, 0) 30%
    ),
    linear-gradient(to bottom, rgb(33, 37, 41) 10%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(rgba(55, 62, 68, 0.534), rgba(48, 54, 59, 0.8)),
    url("../css/images/bgSchool.jpg");
  background-position: 48% 58%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  width: 100%;
  position: relative;
}

.secondSect h5,
.secondSect span {
  color: rgb(255, 255, 255);
}

.thirdSect {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  flex-wrap: wrap;
  background-image: linear-gradient(
      to top,
      rgb(33, 37, 41) 10%,
      rgba(255, 255, 255, 0) 30%
    ),
    linear-gradient(to bottom, rgb(33, 37, 41) 10%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(rgba(55, 62, 68, 0.534), rgba(48, 54, 59, 0.8)),
    url("../css/images/bgSchool.jpg");
  background-position: 48% 58%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding-bottom: 7vh;
  width: 100%;
}

.thirdSect h5,
.thirdSect span {
  color: rgb(255, 255, 255);
}

.Tree hr {
  width: 100%;
  border: none;
  height: 5px;
  background: linear-gradient(to right, transparent, #237edf, transparent);
  border-radius: 5px;
  margin: 2rem 0;
}

.otherAdmins {
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;

  flex-wrap: wrap;
}

.conAdmin {
  border: 2px solid transparent;
  border-radius: 10px;
  height: 300px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: padding 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease, background-color 0.7s ease;
  padding-bottom: 20px;
  box-sizing: border-box;
  margin-top: 30px;
}

.conAdmin:hover,
.conAdmin:focus {
  box-shadow: 0 0.8em 0.8em -0.8em var(--hover);
  transform: translateY(-1.5em);
  padding: 20px 0 20px 0;
}

.outsideCirc {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 15px solid #2f71ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.middleCirc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid #ffffffec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insideCirc {
  width: 100%;
  height: 100%;
  border-radius: 50%;

  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.insideCirc:hover,
.insideCirc:focus {
  box-shadow: 0 0.8em 0.8em -0.8em var(--hover);
  transform: scale(1.1);
}

.conPos {
  height: 20%;
  width: 90%;
  text-align: center;
  white-space: normal;
}

.conPos span {
  font-size: 0.8rem;
  text-align: center;
  word-wrap: break-word;
  word-break: break-word;
}

.conPos h5 {
  font-size: 1rem;
}

.conTeam img {
  width: 100%;
  height: auto;
  display: block;
}

/* Admission Page */
.admission-title {
  min-height: 40vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url(images/bgSchool.jpg);
  background-size: cover;
  background-position: center -10px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: start;
  color: #f5f7f8;
  padding: 30px;
}

.admission-title > span {
  text-align: left;
  border-left: #f5f7f8 5px solid;
  padding: 0 30px;
}

.admission-title > span > h2 {
  font-size: 2rem;
  text-shadow: 0 4px 4px #000000;
  font-family: Poppins-Bold;
}

.admission-container {
  min-height: 50vh;
  width: 100%;
  color: #1e1e1e;
  display: flex;
  flex-direction: column;
}

.admission-text {
  width: 100%;
  padding: 30px 30px;
  border-right: 2px solid #1e1e1e18;
}

.admission-text > h2,
.admission-info > h2 {
  font-size: 1.5rem;
  font-family: Poppins;
  margin-bottom: 30px;
}

.admission-text > ul {
  padding: 30px 30px;
}

.admission-info {
  padding: 30px 30px;
}

.admission-info > img {
  padding: 0 0 30px;
}

/* Library Page */
.library-title {
  min-height: 40vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.534), rgba(0, 0, 0, 0.781)),
    url(images/libraryBG.png);
  background-size: cover;
  background-position: center -110px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: start;
  color: #f5f7f8;
  padding: 30px;
}

.library-title > span {
  text-align: left;
  border-left: #f5f7f8 5px solid;
  padding: 0 30px;
}

.library-title > span > h2 {
  font-size: 2rem;
  text-shadow: 0 4px 4px #000000;
  font-family: Poppins-Bold;
}

.library-team {
  margin: 15px 0;
  padding: 15px;
  color: #fefefe;
  background: linear-gradient(to right, #11213b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.library-team h1 {
  color: #ffffff;
}

.staff {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
}

.library-team img {
  width: 70%;
}

/* Service Page */
.service-title {
  min-height: 40vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(images/RIKDO.png);
  background-size: cover;
  background-position: center -210px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: start;
  color: #f5f7f8;
  padding: 30px;
}

.alumni {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(images/alumni.jpg);
  background-position: 20% -350px;
}

.extension {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(images/cci-aro2.png);
  background-position: 80% -350px;
}
.ministry {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(images/cci-aro2.png);
  background-position: 80% -230px;
}
.page-not-found {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(images/bgSchool.jpg);
  background-position: center;
}

.service-title > span {
  text-align: left;
  border-left: #f5f7f8 5px solid;
  padding: 30px;
}

.service-title > span > h2 {
  font-size: 2rem;
  text-shadow: 0 4px 4px #000000;
  font-family: Poppins-Bold;
}

.alumni-title > span {
  text-align: left;
  border-left: #f5f7f8 5px solid;
  padding: 30px;
}

.alumni-title > span > h2 {
  font-size: 2rem;
  text-shadow: 0 4px 4px #000000;
  font-family: Poppins-Bold;
}

.service-container {
  width: 100%;
  color: #1e1e1e;
  display: flex;
  flex-direction: column;
  padding: 15px 30px;
  justify-content: space-between;
}

.service-info {
  min-height: 50vh;
}

.service-info > h2 {
  width: 100%;
  border-bottom: #1e1e1e 2px solid;
  margin: 15px 0;
  font-size: 1.5rem;
  padding-left: 15px;
}

.service-info > ol {
  list-style: outside numbers;
  padding: 15px 30px;
}

.service-info > ol > li {
  padding-left: 15px;
}

.service-team {
  margin: 15px 0;
  padding: 15px;
  color: #fefefe;
  background-color: #11213b;
  display: flex;
  flex-direction: column;
}

.director-text {
  padding: 15px;
}

.director-text > h3 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 15px;
}

.director-text > p {
  margin-bottom: 15px;
}

.service-nav {
  min-height: 50vh;
  padding: 15px 0;
}

.service-nav > h2 {
  padding: 5px 15px;
  width: 80%;
  background-color: #1e4e82;
  color: #f5f7f8;
  border: none;
}

.service-nav > ul {
  list-style: none;
  padding: 15px;
}

.service-nav > ul li > a {
  text-decoration: none;
  color: #1e1e1e;
}

.service-nav > ul li > a:hover {
  font-weight: 900;
  color: #1e4e82;
}
/* Page 404 */

.page-404-info > h2 {
  font-size: 2.5rem;
}
.page-404-info > p {
  font-size: 2rem;
}
.service-nav > p {
  padding: 15px 0;
}

/* Footer Section */
footer > section {
  width: 100%;
  min-height: 10vh;
}

footer > p {
  width: 100%;
  text-align: center;
  padding: 5px 30px;
  background-color: #153a61;
  color: #f5f7f8;
  font-size: 0.8rem;
}

.footer-container {
  background-image: linear-gradient(to right, #1e4e82da, #1e4e82fd),
    url(images/cci.jpeg);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  text-align: left;
  padding: 30px;
  color: #f5f7f8;
  position: relative;
}

.footer-container > h2 {
  font-family: Poppins-Bold;
  font-size: 2rem;
}

.link-text {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  color: #f5f7f8;
}

.link-text:hover {
  text-decoration: underline;
}

.link-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 5px;
}

/* ==================================================== */
/*                IMAGE MODAL MODULE STYLES             */
/* ==================================================== */
.modal-trigger {
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* The main modal container - hidden by default */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000; /* Must be on top of everything */

  /* Hide it and prepare for fade-in */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  /* Use flexbox to center the content */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The class added by JS to show the modal */
.image-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

/* The dark background overlay */
.image-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark, semi-transparent */
  cursor: pointer; /* Allows closing by clicking the background */
}

/* The content area holding the image and close button */
.image-modal__content {
  position: relative; /* So the close button can be positioned relative to it */
  max-width: 90vw; /* Max 90% of viewport width */
  max-height: 90vh; /* Max 90% of viewport height */
  display: flex; /* Helps with image sizing */
  overflow: hidden;
  /* Animation for the image popping in */
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* When the modal is visible, animate the content in */
.image-modal.is-visible .image-modal__content {
  transform: scale(1);
  opacity: 1;
}

/* The actual image inside the modal */
.image-modal__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Ensures the whole image is visible without distortion */
  display: block;
  cursor: zoom-in; /* NEW: Show a zoom-in cursor by default */
  transition: transform 0.3s ease; /* NEW: Animate the zoom scale */
}
/* State when the image is zoomed-in */
.image-modal__image.is-zoomed {
  transform: scale(2); /* Zoom the image to 200%. Adjust as needed. */
  cursor: grab; /* Show a 'grab' hand cursor */
}

.image-modal__image.is-zoomed:active {
  cursor: grabbing; /* Show a 'grabbing' hand when dragging */
}

/* The close button ('X') */
.image-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background-color: white;
  color: #333;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10001; /* Add a z-index to ensure it's on top of the content */
}

.image-modal__close:hover {
  transform: scale(1.1);
  background-color: #f1f1f1;
}

@media (max-width: 767px) {
  .announce-carousel-button {
    display: none;
  }
}

/* --- MEDIA QUERY FOR DESKTOP (Larger Screens) --- */
@media (min-width: 1280px) and (min-height: 720px) {
  /* Header Section */
  .site-header {
    justify-content: space-between;
    padding: 0 8vw;
    height: 8vh;
  }

  .site-header--at-top {
    height: 9vh;
  }

  .logo-title h2 {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: none;
    margin-left: 0;
  }

  .main-nav {
    width: auto;
    display: flex;
    align-items: center;
    order: 0;
  }

  .nav-list {
    position: static;
    transform: translateX(0);
    background-color: transparent;
    color: inherit;
    flex-direction: row;
    justify-content: flex-end;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: none;
  }

  .nav-list li {
    width: auto;
    padding: 0 0.5rem;
  }

  .nav-list li:first-child {
    margin-left: 0;
  }

  .nav-list li a:hover,
  .nav-list li a:focus {
    color: #3b8cdd;
    font-weight: 900;
  }

  .nav-list li a {
    color: inherit;
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .dropdown-menu {
    position: absolute;
    top: 6.5vh;
    left: 0;
    min-width: 200px;
    background-color: #f5f7f8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    display: block;
    padding: 0;
    margin: 0;
  }

  .dropdown-menu li {
    padding: 0;
    margin: 0;
  }

  .nav-item-has-dropdown:hover > .dropdown-menu,
  .nav-item-has-dropdown:focus-within > .dropdown-menu,
  .nav-item-has-dropdown.dropdown-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu li a {
    display: block;
    color: #333;
    font-size: 0.9rem;
    text-align: left;
    padding: 0.6rem 10px;
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a:focus {
    background-color: #e9edf0;
    color: #1e4e82;
  }

  .dropdown-toggle .dropdown-arrow {
    font-size: 0.9rem;
  }

  /* Hero Section */
  .hero {
    padding: 10vh 12vw 0;
    background-position: center -290px;
  }

  .hero > span > h3 {
    font-size: 2rem;
  }

  .hero > span > h2 {
    font-size: 3.5rem;
  }

  .bottom-hero {
    flex-direction: row;
    padding: 0 8vw;
  }

  .announcement {
    min-width: 45vw;
    min-height: 50vh;
    max-height: 90vh;
  }

  .announcement > h2 {
    font-size: 2rem;
  }

  /* --- Announcement Carousel --- */
  .announcement-carousel-container {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .announcement-carousel-container .page-404 {
    height: auto;
  }
  .announcement-item {
    width: 100%;
    height: 100%;
  }
  .announcement-item img {
    height: 500px;
    object-fit: contain;
  }
  .announcement-carousel-wrapper {
    box-shadow: none;
  }

  .announce-carousel-button.prev {
    left: -2vw;
  }

  .announce-carousel-button.next {
    right: -2vw;
  }

  .container {
    max-width: 25vw;
  }

  /* About Section */
  .info {
    flex-direction: row;
    padding: 0 8vw 0;
  }

  .info > img {
    min-width: 25vw;
  }

  .info-2 {
    flex-direction: row-reverse;
    padding: 0 8vw 0;
  }

  .info-2 > img {
    min-width: 25vw;
  }

  .info-text {
    height: 90%;
  }

  .info-button img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
  }

  .info-button {
    height: 10%;
  }

  .info h2 {
    font-size: 1.5rem;
  }

  .info p {
    font-size: 1.2rem;
  }

  .info-2 h2 {
    font-size: 1.5rem;
  }

  .info-2 p {
    font-size: 1.2rem;
  }

  /* News Section */
  .news-section {
    padding: 30px 8vw 45px;
  }
  .news-header > h2 {
    font-size: 3rem;
  }
  .carousel-wrapper {
    min-height: 40vh;
    padding: 0;
  }

  .news-image {
    height: 100%;
    max-width: 40%;
    background-color: #f5f7f8;
  }
  .news-container {
    flex-direction: row;
  }

  .news-text {
    padding: 15px 15px;
    flex-grow: 0;
  }

  .news-text h3 {
    padding: 15px 15px;
    font-size: 2rem;
  }

  .news-text p {
    font-size: 1.2rem;
    padding: 15px;
  }
  .news-button {
    font-size: 1.2rem;
    padding: 15px;
  }
  .news-button svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .carousel-button {
    top: 50%;
    background-color: rgb(0, 98, 138, 0.7);
  }

  /* News Page */
  .news-title {
    padding: 8vh 8vw 0;
    background-position: center -160px;
  }

  .news-title > span > h2 {
    font-size: 3rem;
  }

  .newspage-container {
    flex-direction: row;
    padding: 15px 8vw;
  }

  .news-info {
    width: 60vw;
    padding: 0 2vw 30px;
  }

  .news-nav {
    width: 25vw;
  }

  .newspage-image {
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .newspage-image > img {
    height: 400px;
    object-fit: cover;
  }

  .newspage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .newspage .article-text {
    padding: 30px 8vw;
    width: 100%;
  }

  .newspage img {
    margin: 0;
    width: auto;
    position: relative;
    max-height: 80vh;
    padding: 12vh 10vw 30px;
  }

  .article-text h2 {
    font-size: 2.2rem;
  }

  .article-text p {
    font-size: 1.2rem;
  }
  .news-cards {
    padding: 30px 8vw;
  }
  .news-card:nth-child(6n + 1) {
    grid-column: 1 / span 2;

    h1 {
      font-size: 1.4rem;
    }
    .thumb {
      height: 500px;
    }
  }
  .news-card:nth-child(6) {
    grid-column: 3 / span 2;

    h1 {
      font-size: 1.4rem;
    }
    .thumb {
      height: 500px;
    }
  }
  .card-link > article > h1 {
    font-size: 1.2rem;
  }
  .card-link > article > p {
    font-size: 1.1rem;
  }

  /* Course Section*/
  .course {
    padding: 7vh 8vw;
  }

  .titleText > h1 {
    font-size: 2.5rem;
  }

  .coursesCard {
    width: 100%;
    justify-content: space-evenly;
  }

  .cardCourse {
    width: 34%;
    min-height: 50vh;
    margin: 0px;
  }

  .logoBox {
    height: auto;
    top: 14vh;
  }

  .topRect {
    height: 20vh;
  }

  .bottomRect {
    height: 20vh;
  }

  .bottomRect > h5 {
    font-size: 1rem;
  }

  .modal-content {
    flex-direction: row;

    height: 70%;
    width: 60%;
  }

  .logoSide {
    border-radius: 24px 0 0 24px;
    width: 50%;
    height: 100%;
  }

  .courseSide {
    margin-top: 0;
  }

  .stickyTitle {
    font-size: 1.2rem;
    border-top-right-radius: 14px;
  }
  .stickyTitle span {
    font-size: 1rem;
  }

  .listCourse {
    font-size: 1.1rem;

    text-align: left;
  }

  .logoBox img {
    border-radius: 2000px;
    width: 34.5%;
  }

  .logoBox2 {
    width: 32%;
    height: 32%;
    top: 28%;
  }

  .logoBox2 img {
    border-radius: 2000px;
    z-index: 2000;
  }

  .close {
    color: #686868;
    top: 5vh;
    left: 95%;
  }

  /* Team Page*/
  .Tree h4 {
    font-size: 1.3rem;
    width: 70%;
  }

  .firstSect {
    padding-left: 25%;
    padding-right: 25%;
    background-image: linear-gradient(
        to top,
        rgb(218, 234, 255) 0%,
        rgba(255, 255, 255, 0) 1%
      ),
      linear-gradient(
        to bottom,
        rgb(218, 234, 255) 0%,
        rgba(255, 255, 255, 0) 2%
      ),
      linear-gradient(rgba(55, 62, 68, 0.658), rgba(48, 54, 59, 0.8)),
      url(images/bgSchool.jpg);
    background-position: 50% 50%;
    background-size: cover;
  }

  .secondSect {
    padding-left: 25%;
    padding-right: 25%;
    background-image: linear-gradient(
        to top,
        rgb(218, 234, 255) 0%,
        rgba(255, 255, 255, 0) 1%
      ),
      linear-gradient(
        to bottom,
        rgb(218, 234, 255) 0%,
        rgba(255, 255, 255, 0) 2%
      ),
      linear-gradient(rgba(55, 62, 68, 0.658), rgba(48, 54, 59, 0.8)),
      url(images/bgSchool.jpg);
    background-position: 50% 50%;
    background-size: cover;
  }

  .thirdSect {
    padding-left: 25%;
    padding-right: 25%;
    background-image: linear-gradient(
        to top,
        rgb(218, 234, 255) 0%,
        rgba(255, 255, 255, 0) 1%
      ),
      linear-gradient(
        to bottom,
        rgb(218, 234, 255) 0%,
        rgba(255, 255, 255, 0) 2%
      ),
      linear-gradient(rgba(55, 62, 68, 0.658), rgba(48, 54, 59, 0.8)),
      url(images/bgSchool.jpg);
    background-position: 50% 50%;
    background-size: cover;
  }

  /* Admission Page */
  .admission-title {
    padding: 8vh 8vw 0;
  }

  .admission-title > span > h2 {
    font-size: 3rem;
  }

  .admission-container {
    padding: 0 8vw;
    flex-direction: row;
  }

  .admission-text > h2,
  .admission-info > h2 {
    font-size: 2rem;
    font-family: Poppins;
    margin-bottom: 30px;
  }

  .admission-text > h3 {
    font-size: 1.5rem;
  }

  .admission-text > ul > li {
    font-size: 1.2rem;
  }

  .admission-text {
    width: 50%;
  }

  .admission-info {
    width: 50%;
  }

  /* Library Page */
  .library-title {
    padding: 8vh 8vw 0;
  }

  .library-team img {
    width: 28%;
  }

  .library-team h1 {
    font-size: 1.5rem;
  }

  .staff {
    flex-direction: row;
    gap: 20px;
  }

  .servicesLibrary img {
    width: 50%;
  }

  .servicesLibrary {
    width: 80%;
  }

  .schedLibrary {
    width: 80%;
  }

  .library-title > span > h2 {
    font-size: 3rem;
  }

  /* Service Page */
  .service-title {
    padding: 8vh 8vw 0;
  }

  .alumni {
    background-position: 20% -250px;
  }

  .extension {
    background-position: 10% -250px;
  }

  .service-title > span > h2 {
    font-size: 3rem;
  }

  .service-container {
    flex-direction: row-reverse;
    padding: 15px 8vw;
  }

  .service-info {
    width: 60vw;
  }

  .service-team {
    flex-direction: row;
  }

  .service-nav {
    width: 25vw;
  }
  /* Page 404 */
  .service-nav > .page-404 {
    width: 100%;
  }
  .page-404-info {
    padding: 0 30px;
  }
  /* Footer Section */
  .footer-container {
    padding: 30px 8vw;
    background-position: center 169px;
  }

  .footer-container > h2 {
    font-size: 2.5rem;
  }

  .footer-container > h3 {
    font-size: 1.5rem;
  }

  .footer-container > p {
    font-size: 1rem;
  }
}

@media (min-width: 1536px) {
  * {
    font-size: 18px;
  }

  /* Header Section */
  .site-header {
    padding: 0 12vw;
  }

  .hero {
    background-position: center -390px;
  }

  /* Hero Section */
  .bottom-hero {
    padding: 0 12vw;
  }

  .announcement {
    min-width: 40vw;
    max-height: 65vh;
  }

  /* --- Announcement Carousel --- */
  .announcement-item img {
    height: 50vh;
  }

  .announce-carousel-button.prev {
    left: -0.2vw;
  }

  .announce-carousel-button.next {
    right: -0.2vw;
  }

  /* About Section */
  .info,
  .info-2 {
    padding: 0 12vw 0;
  }

  /* News Section */
  .news-section {
    padding: 30px 12vw 45px;
  }
  .news-text h3 {
    font-size: 2rem;
    padding: 30px 15px;
  }
  .news-text p {
    font-size: 1.5rem;
  }
  .news-button > span {
    font-size: 1.5rem;
  }

  .news-button svg {
    width: 2rem;
    height: 2rem;
  }
  /* News Page */
  .newspage .article-text {
    padding: 30px 12vw;
  }

  .news-title {
    padding: 8vh 12vw 0;
    background-position: center -220px;
  }

  .newspage-container {
    padding: 15px 12vw;
  }
  .news-cards {
    padding: 30px 12vw;
  }

  /* Course Section*/
  .course {
    padding: 5vh 12vw;
  }

  .stickyTitle {
    border-top-right-radius: 20px;
    font-size: 1.5rem;
  }

  .courseSide {
    overflow-x: hidden;
  }

  .cardCourse {
    width: 30%;
  }

  .logoBox {
    height: auto;
    top: 16vh;
  }

  .topRect {
    height: 17vh;
  }

  .bottomRect {
    height: 17vh;
  }

  .logoBox img {
    width: 14vh;
  }

  .listCourse {
    font-size: 1.5rem;
    margin-left: 5%;
    text-align: left;
  }

  .titleText > h1 {
    font-size: 3rem;
  }

  /* Admission Page */
  .admission-title {
    padding: 8vh 12vw 0;
  }

  .admission-container {
    padding: 0 12vw;
    flex-direction: row;
  }

  /*team*/

  .Tree h5 {
    font-size: 0.8rem;
  }

  .Tree span {
    font-size: 0.7rem;
  }

  .conPos h5 {
    font-size: 1rem;
  }
  .conPos span {
    font-size: 1rem;
  }
  .conAdmin {
    height: 350px;
    width: 250px;
  }
  .outsideCirc {
    width: 160px;
    height: 160px;
  }

  /* Library Page */
  .library-title {
    padding: 8vh 12vw 0;
  }

  .contentLibrary {
    gap: 30px;
  }

  .contentLibrary h1 {
    font-size: 1.5rem;
  }

  .aboutLibrary {
    width: 43%;
  }

  .libraryStaff img {
    width: 45%;
  }

  .missionLibrary {
    width: 70%;
  }

  .visionLibrary {
    width: 70%;
  }

  .goalsAndObj {
    width: 70%;
  }

  .librarySchedule {
    width: 50%;
  }

  .servicesLibrary img {
    width: 70%;
  }

  .servicesLibrary {
    width: 70%;
  }

  .schedLibrary {
    width: 70%;
  }

  /* service Page */
  .service-title {
    padding: 8vh 12vw 0;
  }

  .service-container {
    padding: 15px 12vw;
  }

  /* Footer Section */
  .footer-container {
    padding: 30px 12vw;
    background-position: center 189px;
  }
}

@media (min-width: 2560px) {
  * {
    font-size: 22px;
  }

  /* Header Section */
  .site-header {
    padding: 0 17vw;
  }

  /* Hero Section */
  .bottom-hero {
    padding: 0 17vw;
  }

  .announcement {
    min-width: 40vw;
    max-height: 60vh;
  }

  /* --- Announcement Carousel --- */
  .announcement-item img {
    height: 620px;
  }

  .announce-carousel-button.prev {
    left: -1vw;
  }

  .announce-carousel-button.next {
    right: -1vw;
  }

  /* About Section */
  .info,
  .info-2 {
    padding: 0 17vw 0;
  }

  /*Team Section*/
  .conAdmin {
    height: 350px;
    width: 300px;
  }

  .conPos h5 {
    font-size: 1.1rem;
  }
  .conPos span {
    font-size: 1rem;
  }
  .outsideCirc {
    width: 170px;
    height: 170px;
  }

  /* News Section */
  .news-section {
    padding: 30px 17vw 45px;
  }
  .news-text h3 {
    padding: 45px 15px;
    font-size: 2.2rem;
  }

  .news-text p {
    font-size: 1.5rem;
  }
  .news-button > span {
    font-size: 1.5rem;
  }

  .news-button svg {
    width: 2rem;
    height: 2rem;
  }

  /* News Page */
  .newspage .article-text {
    padding: 30px 17vw;
  }

  .news-title {
    padding: 8vh 17vw 0;
    background-position: center -330px;
  }

  .newspage-container {
    padding: 15px 17vw;
  }
  .news-cards {
    padding: 30px 17vw;
  }
  /* Course Section*/
  .course {
    padding: 5vh 17vw;
  }

  .logoBox {
    height: auto;
    top: 17vh;
  }
  .logoBox img {
    width: 12vh;
  }

  .topRect {
    height: 15vh;
  }

  .bottomRect {
    height: 15vh;
  }

  /* Admission Page */
  .admission-title {
    padding: 8vh 17vw 0;
  }

  .admission-container {
    padding: 0 17vw;
    flex-direction: row;
  }

  /* Library Page */
  .library-title {
    padding: 8vh 17vw 0;
  }

  /* service Page */
  .service-title {
    padding: 8vh 17vw 0;
  }

  .service-container {
    padding: 15px 17vw;
  }

  /* Footer Section */
  .footer-container {
    padding: 30px 17vw;
    background-position: center 469px;
  }
}
