/* 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");

.playfair-display-semibold {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.lato-thin {
  font-family: "Lato", serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", serif;
  font-weight: 900;
  font-style: italic;
}

/* End of Fonts */

/* Variables */
:root {
  --primary-color: #4c0000;
  /* original - #800000 */
  --secondary-color: #1a0000;
  --text-color: #333;
  --text-c-highlight: #d4af37;
  --accent-c-1: #a3d9a5;
  --accent-c-2: #f1f1f1;
}
/* End of Variables */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff6ec;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;

  transition: all 0.3s ease-in-out;
  /* Smooth transition for height, background, and box-shadow */
}

header.transparent {
  background-color: transparent;
  box-shadow: none;
  height: 230px;
}

header.solid {
  background-color: var(--primary-color);
  /* Vermillion */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  height: 180px;
}

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 */
.navbar {
  display: flex;
  justify-content: center;
  /* Center the navbar items */
  align-items: center;
  position: absolute;
  bottom: 0;
  text-align: center;
  /* Optional: Center text inside the navbar */
  width: 100%;
  padding: 10px;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for height, background, and box-shadow */
}

.navbar.transparent {
  background-color: transparent;
  box-shadow: none;
}

.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: 60px; /* 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;
}

.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;
  padding: 2px 8px;
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
}

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

.parent-portal {
  position: fixed;
  /* or fixed depending on the requirement */
  top: 0;
  right: 0;
  margin-top: 9px;
  margin-right: 12px;
  color: #eaeaeb;
  background-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  z-index: 10000;
  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);
}

.parent-portal i {
  margin-right: 8px;
  /* Space between icon and text */
}

/* 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: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: max-content;
  z-index: 10;
  text-align: left;
  border-radius: 8px;
}

.dropdown a {
  padding: 12px;
  text-decoration: none;
  font-size: 14px;
  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:hover {
  border: none;
}

.dropdown a:first-child {
  border-top: none;
}

.dropdown a:last-child {
  border-bottom: none;
}

.cocur-dropdown {
  width: 115px;
}

/* Hover to display dropdown */
.nav-list li:hover .dropdown {
  display: block;
}

.innermenu:hover {
  background-color: var(--secondary-color);
  color: var(--text-c-highlight);
  border-radius: 5px;
  border-bottom: none;
}

/* Logo Styling */
.logo-container {
  display: flex;
  justify-content: center;
  /* Centers the logo horizontally */
  align-items: center;
  height: 100%;
  padding-bottom: 30px;
  /* 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 */
}

/* Carousel and Banner Styles */
.carousel {
  position: relative;
  overflow: hidden;
  height: 100vh;
  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: 1;
  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;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

/* Curved Banner Styles */
.curved-banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: "Times New Roman", Times, serif;
  /* Include fallback fonts */
}

.curved-banner:first-of-type {
  bottom: 10%;
}

.curved-text {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.curved-text text {
  fill: white;
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.curved-banner.smaller {
  bottom: 5%;
}

.curved-banner.smaller .curved-text {
  max-width: 600px;
}

.curved-banner.smaller .curved-text text {
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Times New Roman", Times, serif;
  /* Include fallback fonts */
}

.eventnotice {
  margin-right: 20px;
}

#eventsContainer {
  width: 100%;
  max-width: 75%;
  padding: 29px;
  padding-top: 0px;
  background-color: var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 80vh;
  text-align: center;
}

#eventsContainer h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-c-highlight);
  font-weight: 600;
}

.eventsheader {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--primary-color);
  padding-top: 30px;
}

.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  outline: none;
  background-color: #f8f8f8;
  transition: all 0.3s ease;
}

.search-bar:focus {
  border-color: var(--primary-color);
  background-color: white;
}

.event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 12px;
  margin: 10px 0;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  border-left: 5px solid var(--text-color);
}

/* Add this to your existing CSS */
.event-description {
  display: none;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.event.expanded .event-description {
  display: block;
  opacity: 1;
  max-height: 500px;
  /* Adjust depending on your content */
}

/* Optional: Add a transition effect for smoothness */
.event:hover {
  transform: scale(1.03);
}

.event img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
}

.event-content {
  flex-grow: 1;
  text-align: left;
}

.event h3 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 500;
}

.event p {
  font-size: 1rem;
  margin-top: 5px;
  line-height: 1.4;
}

.event-date-time {
  font-size: 0.9rem;
  color: #9f9f9f;
  margin-top: 10px;
}

.event-description {
  display: none;
  margin-top: 15px;
  color: #444;
  font-size: 1rem;
}

.event.expanded .event-description {
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.5s ease-out forwards;
}

.pagination button {
  padding: 10px 25px;
  background-color: var(--secondary-color);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover {
  color: var(--text-c-highlight);
}

.pagination button:disabled {
  background-color: #ddd;
  color: black;
  cursor: not-allowed;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade-in effect to event cards */
.event.show {
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.5s ease-out forwards;
}

html {
  scroll-behavior: smooth;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

#noticesContainer {
  width: 550px;
  height: 680px;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 4px solid var(--primary-color);
}

#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;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  #noticesContainer {
    width: 90%;
    height: auto;
    padding: 20px;
  }

  #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;
  }
}

@media (max-width: 480px) {
  #noticesContainer {
    width: 95%;
    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;
  }
}

.eventnotice {
  display: flex;
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 20px;
}

.container {
  max-width: 800px;
  margin-left: 4%;
  padding: 30px;
  background: var(--primary-color);
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.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: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}

.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: black;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  color: white;
  text-align: center;
}

.modal-content h1 {
  font-family: "Playfair Display";
  color: var(--text-c-highlight);
  margin-bottom: 15px;
}

.modal-content h1:hover {
  text-decoration: underline;
}

.modal-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close-btn,
.download-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  margin: 5px;
}

.close-btn:hover,
.download-btn:hover {
  background: var(--secondary-color);
  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: black;
  color: #a7a7a7;
  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 2fr;
  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: #bac6d9;
  margin-right: 20px;
  cursor: pointer;
}

.social i:hover {
  color: white;
}

.copyright {
  padding: 0.3em 1em;
  border-top: 3px solid #4e5a6b;
}

.footer-menu {
  float: left;
  margin-top: 10px;
}

.footer-menu a {
  color: #cfd2d6;
  padding: 6px;

  text-decoration: none;
}

.contact i {
  margin-right: 5px;
}

.footer-menu a:hover {
  color: #27bcda;
}

.copyright p {
  font-size: 0.9em;
  text-align: right;
}

.column h3 {
  border-bottom: #800000 5px solid;
  max-width: fit-content;
  margin-bottom: 20px;
  padding-top: 15px;
}

@media screen and (max-width: 850px) {
  .row .primary {
    grid-template-columns: 1fr;
  }
}

.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: #a7a7a7;
  transition: color 0.5s ease;
  text-decoration: none;
}
.ulelement .lielement .aelement:hover {
  color: var(--text-c-highlight);
  transition: color 0.5 ease;
}

.lielement:hover {
  color: var(--text-c-highlight);
}

#eventnotice {
  margin-bottom: 100px;
}

/* Principal's Message and Prospectus */

.principalsection {
  margin: 60px 20px;
}

.principalcontainer {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex: 1 1 50%;
  gap: 20px;
}

/* Flexbox layout for cards */
.principalcard,
.prospectus-card {
  border-radius: 8px;
  padding: 20px;
  max-width: fit-content;
  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: 600;
  text-align: center;
}

.principalcard-image-and-msg {
  display: flex;
  gap: 20px;
}

/*.principalcard-image-and-msg img{}*/

.principalcard-image-and-msg p,
.prospectus-card-content p {
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: justify;
  padding-top: 20px;
}

.prospectus-card-content p {
  margin-bottom: 20px;
}

.expand-icon .material-icons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  padding: 5px 5px;
  color: white;
}

.expand-icon .material-icons:hover {
  background-color: var(--secondary-color);
  color: var(--text-c-highlight);
  border-radius: 5px;
}

/* Ensure responsive behavior */
@media screen and (max-width: 1024px) {
  .principalcontainer {
    flex-direction: column; /* Stack cards on smaller screens */
  }

  .principalcard-image-and-msg img {
    margin-top: 20px;
  }

  .principalcard-container,
  .prospectus-card {
    flex: 1 1 100%; /* Each card takes full width */
  }
}
/* End of Principals Message and Prospectus */

.hamburger {
  display: none; /* Hidden by default */
  font-size: 24px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  ul.nav-list {
      display: none; /* Hide the links */
      flex-direction: column;
      background: #333;
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      text-align: center;
      padding: 10px 0;
  }

  li.active {
      display: flex;
  }

  .hamburger {
      display: block; /* Show hamburger icon */
  }
}