/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair+Display&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;700&family=Montserrat:wght@400;500;700&display=swap");

.playfair-display-semibold {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.lato-thin {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* End of Fonts */

/* Variables */
:root {
  --primary-color: #0a1c2e; 
  --secondary-color: #06121f;
  --text-color: #333;
  --text-c-highlight: #3399ff;  
  --bg-color: #fff6ec;
  --accent-c-2: #f1f1f1;
}
/* End of Variables */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
}

.landing-page {
  position: relative;
  top: 0;
  left: 0;
}

.logo a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.mob-navbar {
  display: none;
  position: fixed;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: white;
  font-family: "Montserrat", sans-serif;
  padding-top: -10px;
  width: 100%;
  z-index: 1000;
}

header.transparent {
  background-color: transparent;
  box-shadow: none;
  height: 230px;
}

@media screen and (max-width: 768px) {
  .school-logo {
    width: 60px;
    margin: auto 8px;
    height: auto;
  }

  .school-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    margin: auto 0px;
    font-family: "Montserrat", sans-serif;
  }
}

@media screen and (max-width: 450px) {
  .school-name {
    font-size: 0.75rem;
  }

  .school-logo {
    width: 50px;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  color: white;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for height, background, and box-shadow */
}

header.solid {
  background-color: var(--primary-color);
  /* Vermillion */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .logo a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

header {
  position: absolute;
  /* or fixed depending on the requirement */
  top: 0;
  right: 0;
  color: #eaeaeb;
  background-color: var(--primary-color);
  /* Vermillion */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  /* Center the navbar items */
  align-items: center;
  position: absolute;
  top: 300px;
  bottom: 0;
  text-align: center;
  /* Optional: Center text inside the navbar */
  width: 100%;
  padding: 10px;
  /* transition: all 0.2s ease; */
  /* Smooth transition for height, background, and box-shadow */
}

.navbar.solid {
  background-color: var(--secondary-color);
  /* Vermillion */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  position: fixed; /* Keeps it at the top */
  top: 0; /* Moves it to the top */
  left: 0;
  width: 100%; /* Ensures full width */
  height: 70px; /* Set a fixed height for the navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensures it's above other elements */
  padding: 10px 20px;
}

.navbar.solid .nav-list li {
  background-color: transparent;
}

.nav-list {
  display: flex;
  list-style-type: none;
  justify-content: center;
}

.nav-list li {
  margin: 0 20px;
  /* Adjusted margin for better spacing */
  position: relative;
  /* To help with dropdown positioning */
  background: rgba(10, 10, 10, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 5px;
  font-weight: bold;
  padding: 2px 8px;
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
}

.mainmenu:hover {
  text-decoration: underline;
}

.entab {
  margin: auto auto;
  margin-right: 8px;
}

.btn-text {
  margin: auto auto;
  font-weight: 600;
  font-family: "Montserrat";
}

.parent-portal {
  position: fixed;
  top: 9px;
  right: 10px;
  margin-bottom: 5px;
  color: #eaeaeb;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  z-index: 1001;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.6s ease;
}

.parent-portal:hover {
  background-color: var(--secondary-color);
  color: var(--text-c-highlight);
}

.hamburger {
  background: var(--primary-color);
  padding: 5px 9.5px;
  border-radius: 5px;
  height: 40px;
  width: 40px;
  border: none;
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  position: fixed;
  z-index: 99999;
}

@media screen and (max-width: 600px) {
  .hamburger {
    top: 9px;
    right: 10px;
    height: 40px;
    width: 40px;
  }

  .parent-portal {
    right: 55px;
  }

  .mob-navbar {
    height: 60px;
    display: flex;
  }
}

.mob-menu {
  display: flex;
  position: fixed;
  top: 0;
  transform: translateX(100%);
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--secondary-color);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.navbar-container {
  font-weight: bold;
  list-style: none;
  width: 100%;
  max-width: 300px;
}

.navbar-container li {
  margin: 3px 0;
  list-style: none;
  position: relative;
  text-align: left;
  width: 100%;
}

.menu-header {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
  padding: 8px 5px;
  transition: color 0.3s, background-color 0.3s;
  border-bottom: solid 2px rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.mob-dropdown {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
  animation: dropdown-fade 0.3s ease-in-out forwards;
}

.shown {
  background-color: var(--primary-color);
  border-radius: 8px;
  color: var(--text-c-highlight);
}

.dropdown-header.shown a {
  color: var(--text-c-highlight);
  transition: background-color 0.3s ease, color 0.6s ease;
}

.mob-dropdown .dropdown-item a {
  font-size: 1rem;
  text-decoration: none;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  display: block;
  padding: 10px;
  padding-top: 0;
  transition: background-color 0.3s;
}

.mob-dropdown .dropdown-item:last-child a,
.contact-dropdown {
  border-bottom: none;
}

.contact-icon {
  margin-right: 10px;
}

.contact-icon.contact-icon-last {
  padding-left: 3px;
  margin-right: 12px;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Dropdown Styling */
.dropdown {
  display: none;
  position: absolute;
  /* margin-top: 0px; */
  top: 100%;
  /* Position below the button */
  left: 0;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: max-content;
  z-index: 10;
  text-align: left;
}

.dropdown a {
  padding: 12px;
  text-decoration: none;
  font-size: 14px;
  height: 100%;
  transition: background-color 0.3s ease, color 0.6s ease;
  border-bottom: var(--accent-c-2) 0.25px solid;
  border-top: var(--accent-c-2) 0.25px solid;
  display: block;
  /* Make the options stack vertically */
}

.dropdown a:first-child {
  border: none;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.dropdown a:last-child {
  border: none;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.cocur-dropdown {
  width: 115px;
}

/* Hover to display dropdown */
.nav-list li:hover .dropdown {
  display: block;
}

.dropdown a:hover {
  border-top: var(--accent-c-2) 0.25px solid;
  border-bottom: var(--accent-c-2) 0.25px solid;
  background-color: var(--secondary-color);
  color: var(--text-c-highlight);
}

.dropdown a:hover:first-child {
  border: none;
}

.dropdown a:hover:last-child {
  border: none;
}

.contact-icon {
  margin-right: 8px;
}

.contact-details {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

/* Logo Styling */
.logo-container {
  display: flex;
  justify-content: center;
  /* Centers the logo horizontally */
  align-items: center;
  height: 100%;
  /* Matches the header height */
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for size */
}

.logo-img {
  width: 100px;
  /* Initial size */
  height: auto;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for resizing */
}

header.solid .logo-img {
  width: 60px;
  /* Smaller size after scrolling */
}

header.solid .logo span {
  font-size: 1.2rem;
  /* Adjust text size after scrolling */
}

.school-motto {
  position: absolute;
  object-fit: contain;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-user-drag: none;
  -moz-uder-drag: none;
  -o-user-drag: none;
  height: 350px;
  z-index: 10;
}

/* Logo Styling */
.logo-container {
  display: flex;
  justify-content: center;
  /* Centers the logo horizontally */
  /* align-items: center; */
  z-index: 10;
  height: 100%;
  position: absolute;
  top: 50px;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  /* padding-bottom: 30px; */
  /* Matches the header height */
}

.school-name {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), -1px -1px 4px rgba(0, 0, 0, 0.6),
    1px -1px 4px rgba(0, 0, 0, 0.6), -1px 1px 4px rgba(0, 0, 0, 0.6);
}

.school-name-small {
  font-size: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), -1px -1px 4px rgba(0, 0, 0, 0.6),
    1px -1px 4px rgba(0, 0, 0, 0.6), -1px 1px 4px rgba(0, 0, 0, 0.6);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for size */
}

.logo-img {
  width: 100px;
  /* Initial size */
  height: auto;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for resizing */
}

/* Carousel and Banner Styles */
.carousel {
  position: relative;
  overflow: hidden;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
  pointer-events: none;
}

.slide {
  object-fit: cover;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

#noticeButtons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#noticeButtons button {
  padding: 12px 20px;
  width: 250px;
  font-size: 16px;
  background-color: #f7f7f7;
  color: var(--text-color);
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
}

#noticeButtons button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#noticeButtons button:focus {
  outline: none;
  box-shadow: 0 2px 6px #7cbbff;
}

/* Custom scrollbar */
*::-webkit-scrollbar {
  background-color: transparent;
  width: 8px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 50px;
  background-color: #ddd;
  border: 2px solid white;
}

/* Modal */
.modal {
  line-height: 1.5;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.25);
}

.modal-container {
  width: 90%;
  max-width: 500px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-container-header {
  padding: 16px 32px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f7f7f7;
}

.modal-container-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.modal-container-body {
  padding: 24px 32px;
  max-height: 70vh;
  overflow-y: auto;
}

.button {
  padding: 12px 20px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: white;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--primary-color);
}

.button:focus {
  outline: none;
  box-shadow: 0 2px 6px #7cbbff;
}

.eventnotice {
  margin: 60px 20px;
}

.eventsNotice-container {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex: 1 1 50%;
  gap: 20px;
}

.container {
  max-width: 400px;
  /* margin-left: 2%; */
  overflow: hidden;
  /* max-height: 80vh; */
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.container-scrollable {
  overflow-y: auto;
  -ms-overflow-style: none;
  flex: 1;
  scrollbar-width: none;
}

.container-scrollable::-webkit-scrollbar {
  display: none;
}

.container-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.noticeheading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--text-c-highlight);
  text-align: center;
}

.notice {
  background: var(--secondary-color);
  padding: 15px;
  margin: 10px 0;
  border-left: 5px solid var(--text-color);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: background 0.4s;
}

.notice:hover {
  background: #3c3c3c;
}

.notice-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  color: #f4f4f4;
}

.notice-date {
  font-size: 16px;
  color: #b1b1b1;
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--primary-color);
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  color: white;
  text-align: center;
}

.modal-content h1 {
  font-family: "Montserrat";
  font-size: 2rem;
  color: var(--text-c-highlight);
  padding-bottom: 0px;
}

.modal-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close-btn,
.download-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.3s;
  margin: 5px;
}

.close-btn:hover,
.download-btn:hover {
  color: var(--text-c-highlight);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.container2 {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 50px 20px;
}

.header h1 {
  text-align: center;
  font-size: 2.5em;
  font-weight: bold;
  color: #1f4b6d;
  margin-bottom: 40px;
}

.image {
  border-radius: 10%;
}

footer {
  background: var(--secondary-color);
  color: white;
  font-size: 16px;
  padding-bottom: 20px;
}

footer * {
  box-sizing: border-box;
  border: none;
  outline: none;
}

.row {
  padding: 1em 1em;
}

.row.primary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding-bottom: 0;
  align-items: stretch;
}

.column {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 2em;
  min-height: 15em;
}

.about p {
  text-align: justify;
  line-height: 2;
  margin: 0;
}

div.social {
  display: flex;
  font-size: 1.5em;
  flex-direction: row;
  margin-top: 0.5em;
}

.social i {
  color: white;
  margin-right: 20px;
  cursor: pointer;
  transition: color 0.6s ease;
}

.social i:hover {
  color: var(--text-c-highlight);
}

.footer-school-name {
  padding: 0.3em 1em;
  padding-top: 10px;
  font-size: 0.7rem;
  display: block;
  text-align: center;
  justify-content: stretch;
}

.footer-menu {
  float: left;
  margin-top: 10px;
}

.footer-menu a {
  color: #cfd2d6;
  padding: 6px;

  text-decoration: none;
}

.footericon {
  margin-right: 8px;
}

.footer-menu a:hover {
  color: #27bcda;
}

.column h3 {
  border-bottom: var(--text-c-highlight) 5px solid;
  max-width: fit-content;
  margin-bottom: 20px;
  padding-top: 15px;
}

.column.about {
  justify-self: start;
}

.column.subscribe {
  justify-self: end;
  padding-bottom: 0;
}

.h3element {
  width: 100%;
  text-align: left;
  color: white;
  font-size: 1.4em;
  white-space: nowrap;
}
.ulelement {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
.lielement:not(:first-child) {
  margin-top: 0.8em;
}
.ulelement .lielement .aelement {
  color: white;
  transition: color 0.5s ease;
  text-decoration: none;
}
.ulelement .lielement .aelement:hover {
  color: var(--text-c-highlight);
  transition: color 0.6 ease;
}

.lielement:hover {
  color: var(--text-c-highlight);
}

#eventnotice {
  margin-bottom: 100px;
}

/* Principal's Message and Prospectus */

.principalsection {
  margin: 60px 20px;
  display: flex;
}

.principalcontainer {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 20px;
}

/* Flexbox layout for cards */
.principalcard,
.prospectus-card {
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.3);
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

.principalcard-header h1,
.prospectus-card-header h1 {
  color: var(--text-c-highlight);
  font-weight: bold;
  text-align: center;
}

.principalcard-image-and-msg {
  display: flex;
  gap: 20px;
}

.principal-img-name img {
  border-radius: 16px;
  margin: auto auto;
  max-width: 100%;
}

.principal-img-name p {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  text-align: center;
}

.principalMsg,
.prospectusMsg {
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
  padding-top: 20px;
}

.prospectusMsg {
  margin-bottom: 20px;
}

.principal-msg p.principalMsg,
.prospectus-card-content p.prospectusMsg {
  font-size: larger;
  text-align: justify;
}

.expand-icon .material-icon {
  position: absolute;
  bottom: 5px;
  right: 15px;
  font-size: large;
  cursor: pointer;
  padding: 7.5px;
  text-align: right;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.6s ease;
}

.expand-icon .material-icon:hover {
  background-color: var(--secondary-color);
  color: var(--text-c-highlight);
}

.principal-modal-container {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.principal-modal {
  display: flex;
  background: var(--primary-color, #5c0000); /* Fallback color based on image */
  color: white;
  padding: 2rem;
  max-width: 75%;
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.principal-modal::-webkit-scrollbar {
  display: none;
}

.modal-principal-img-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 2rem;
  min-width: 200px;
}

.modal-principal-img-name .principal-name {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
}

img.modal-principal-img {
  width: 100%;
  max-width: 200px;
  border-radius: 10%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.principal-modal-text {
  flex: 1;
}

.principal-modal h2 {
  color: var(--text-c-highlight, #d4af37);
  font-family: "Montserrat", serif;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
}

.principal-modal p {
  font-size: 1rem;
  line-height: 1.8;
  color: white;
  text-align: justify;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--text-c-highlight, #d4af37);
}

/* Media Queries */

/* Large desktop and laptops */
@media screen and (min-width: 1200px) {
  .principal-modal {
    max-width: 1000px;
    padding: 2.5rem;
  }

  .principal-modal h2 {
    font-size: 2.2rem;
  }

  .principal-modal p {
    font-size: 1.1rem;
  }
}

/* Standard desktop and smaller laptops */
@media screen and (max-width: 1199px) {
  .principal-modal {
    max-width: 85%;
  }

  .parent-portal span {
    display: none;
  }

  .parent-portal {
    padding: 5px;
    margin-top: 4px;
  }

  .parent-portal svg {
    margin: 0;
  }
}

/* Tablets and small desktops */
@media screen and (max-width: 992px) {
  .principal-modal {
    max-width: 90%;
    padding: 1.8rem;
  }

  img.modal-principal-img {
    max-width: 180px;
  }

  .principal-modal h2 {
    font-size: 1.8rem;
  }

  .mob-navbar {
    display: flex;
    z-index: 1000;
    height: 70px;
    background-color: var(--secondary-color);
  }

  .navbar,
  .navbar.solid {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .hamburger {
    display: block;
    position: fixed;
    top: 9px;
    padding: 5px;
    right: 10px;
  }
  .parent-portal {
    right: 55px;
    top: 5px;
  }
}

/* Tablets */
@media screen and (max-width: 768px) and (min-width: 577px) {
  .principal-modal {
    padding: 1.8rem;
  }

  img.modal-principal-img {
    max-width: 180px;
  }

  .principal-modal h2 {
    font-size: 1.7rem;
  }
}

@media screen and (max-width: 768px) {
  .parent-portal {
    right: 55px;
    top: 0;
  }
}

/* Mobile phones */
@media screen and (max-width: 576px) {
  .principal-modal {
    max-width: 95%;
    padding: 1.2rem;
    max-height: 90vh;
    flex-direction: column;
    align-items: center;
  }

  .modal-principal-img-name {
    margin-right: 0;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  img.modal-principal-img {
    max-width: 180px; /* Increased size for mobile */
  }

  .modal-principal-img-name .principal-name {
    font-size: 0.9rem;
  }

  .principal-modal-text {
    width: 100%;
  }

  .principal-modal h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .principal-modal p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .close-modal {
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
  }
}

/* Extra small devices */
@media screen and (max-width: 400px) {
  .principal-modal {
    padding: 1rem;
  }

  img.modal-principal-img {
    max-width: 160px; /* Still larger than before */
  }

  .principal-modal h2 {
    font-size: 1.2rem;
  }

  .principal-modal p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* For landscape orientation on mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .principal-modal {
    max-height: 95vh;
  }

  img.modal-principal-img {
    max-width: 150px;
  }

  .principal-modal h2 {
    font-size: 1.3rem;
  }
}

.map iframe {
  margin-top: 20px;
  border-radius: 10px;
}

.position-absolute {
  position: absolute;
  /* width: 100%; */
  overflow: hidden;
}

.max-width-fit-content {
  /* transition: background-color 0.1s ease;
    transition-delay: 0.35s; */
  background-color: transparent;
  width: max-content;
}

.z-index-10000 {
  z-index: 10000;
}

.transform-x {
  transform: translateX(0);
}

/* MEDIA QUERIES */
@media screen and (max-width: 1024px) {
  .parent-portal span {
    display: none;
  }

  .parent-portal {
    padding: 5px;
    margin-top: 4px;
  }

  .parent-portal:active,
  .parent-portal:visited {
    background-color: var(--primary-color);
    color: #eaeaeb;
  }

  .parent-portal svg {
    margin-right: 0;
  }

  .principalcontainer {
    flex-direction: column;
  }
  .principalcard,
  .prospectus-card {
    width: 100%;
    max-width: fit-content;
  }

  .prospectus-card p {
    padding-bottom: 15px;
  }

  .principalcard-image-and-msg {
    margin-top: 20px;
  }
}

@media screen and (max-width: 768px) {
  .school-motto {
    height: 300px;
  }

  .parent-portal {
    margin-top: 9px;
  }

  .navbar,
  .navbar.solid {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .curved-banner:first-of-type {
    margin-bottom: 50px;
  }

  .curved-banner.smaller {
    margin-top: 50px;
    /* width: 100%; */
    text-align: center;
  }

  .curved-text {
    max-width: none;
    font-size: 1rem;
  }

  #eventsContainer {
    padding: 3%;
    width: 100%;
    max-width: 79%;
    padding-top: 0;
  }

  #noticeButtons button {
    width: 200px;
    font-size: 14px;
  }

  .modal-container {
    width: 90%;
    max-width: 400px;
  }

  .modal-container-header {
    padding: 16px 24px;
  }

  .modal-container-title {
    font-size: 1.1rem;
  }

  .modal-container-body {
    padding: 20px;
  }

  .modal-container-footer {
    padding: 16px 24px;
  }

  .button {
    padding: 10px 18px;
  }

  .container {
    max-width: none;
    padding: 3%;
    margin-left: 0%;
    margin-right: 0%;
  }

  .eventnotice {
    margin-top: -30px;
    flex-direction: column; /* Notice Board on top */
    gap: 20px; /* Adds space between elements */
    /* width: 120%; Increase width slightly */
  }

  .eventsNotice-container {
    margin: 0;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .row {
    flex-direction: column;
    align-items: center;
  }

  .column {
    text-align: center;
    padding: 0 1em;
  }

  .footer-menu {
    align-items: flex-start;
    gap: 0.5em;
    margin-top: 0.5em;
  }

  .social {
    justify-content: center;
    gap: 1.2em;
  }

  .row.primary {
    display: flex;
    /* flex-direction: column; */
    /* align-items: center; */
  }

  .column.about,
  .column.subscribe {
    padding: 0 1em;
    padding-bottom: 0;
    min-height: 0;
  }

  .column.links {
    text-align: left;
  }

  .column.subscribe {
    text-align: left;
  }

  .column.links ul {
    padding-left: 20px;
    margin: 0;
  }

  .column.links ul li {
    margin-top: 0.8em;
  }

  .column.about,
  .column.links {
    display: none;
  }

  .row.primary {
    /* display: block; */
    width: 100%;
  }

  .column.subscribe {
    width: 100%;
    text-align: left;
    padding: 1em 0;
    box-sizing: border-box;
    padding-bottom: 0;
  }

  footer {
    width: 100%;
    margin: 0;
    padding: 0;
    padding-bottom: 15px;
  }
}

@media screen and (min-width: 600px) and (max-width: 768px) {
  .row.primary {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0px;
  }

  .footer-school-name {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 600px) {
  .school-motto {
    height: 225px;
  }

  .footer-school-name {
    font-size: 0.8rem;
  }

  .principalcard-image-and-msg {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .school-motto {
    height: 200px;
  }

  .container {
    width: 100%;
    padding: 15px;
  }

  #noticeButtons button {
    width: 180px;
    font-size: 12px;
  }

  .modal-container {
    width: 90%;
    max-width: 350px;
  }

  .modal-container-header {
    padding: 14px 18px;
  }

  .modal-container-title {
    font-size: 1rem;
  }

  .modal-container-body {
    padding: 16px 20px;
  }

  .modal-container-footer {
    padding: 14px 20px;
  }

  .button {
    padding: 8px 14px;
  }
}

@media screen and (max-width: 460px) {
  .school-name {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 450px) {
  main {
    display: flex;
    flex-direction: column;
  }

  .principalsection {
    margin: 20px;
  }

  .eventnotice {
    margin: 20px;
  }
}

@media screen and (max-width: 350px) {
  .school-motto {
    height: 175px;
  }

  .principal-img-name img {
    height: 50%;
  }
}

@media screen and (max-width: 330px) {
  .school-name {
    font-size: 1.4rem;
  }

  .footer-school-name {
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  .parent-portal span {
    display: none;
  }

  .parent-portal {
    padding: 5px;
    border-radius: 5px;
    right: 55px;
  }

  .parent-portal:active,
  .parent-portal:visited {
    background-color: var(--primary-color);
    color: #eaeaeb;
  }

  .parent-portal svg {
    margin-right: 0;
  }
}

.container-scrollable {
  overflow-y: auto;
  -ms-overflow-style: none;
  flex: 1;
  scrollbar-width: none;
  max-height: 650px;
}

/* Flyer Popup */
.flyer-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10001; /* Higher than other modals */
    justify-content: center;
    align-items: center;
}

.flyer-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flyer-popup-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image is fully visible without cropping */
    max-width: 100vw;
    max-height: 100vh;
}

.flyer-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.flyer-close-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-c-highlight);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .flyer-close-btn {
        font-size: 1.2rem;
        padding: 8px 12px;
        top: 15px;
        right: 15px;
    }
}

@media screen and (max-width: 576px) {
    .flyer-close-btn {
        font-size: 1rem;
        padding: 6px 10px;
        top: 10px;
        right: 10px;
    }
}