/*-------------------- loading screen --------------------*/
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0; 
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.loading-screen.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.logo-container {
  position: relative;
  width: 45mm;
}

.logo-container img {
  width: 100%;
  height: auto;
}

.logo-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: revealDown 2s forwards;
  animation-play-state: paused;
}

.loading-screen.animate .logo-container::after {
  animation-play-state: running;
}

@keyframes revealDown {
  from { height: 100%; }
  to { height: 0%; }
}

/* Main content hidden at first */
#main-content {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* When ready to show */
#main-content.show {
  opacity: 1;
}

/* Loader fade out (already has opacity transition from before) */
.loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

/*-------------------- Reset and Base --------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

body {
  color: var(--text-color);
}

:root {
  --primary-color: 128, 0, 0;
  --secondary-color: 219, 219, 219;
  --dark-color: 0, 0, 0;
  --text-color: #000000;
  --accent-color: #850c0cf1;
  --highlight-color: 253, 230, 118;
  --gold-color: 255, 255, 0;
  --text-white: 255, 255, 255;
  --shadow-dark: 0 6px 10px black;
  --shadow-dark2: 3px 4px 10px black;
  --transition: 0.6s ease;
  --transition2: 0.6s ease-in;
  --shadow-light: 2px 8px 10px rgba(255, 255, 255, 0.055),
    0px -5px 35px rgba(201, 22, 22, 0.384);
  --bs-body-font-family:"Poppins", sans-serif;
}

/*---------------------- Main ----------------------*/

@media (max-width: 480px) {
  main.Admission .txtholder h1 {
    font-size: 2rem;
  }

  .admissionBody {
    padding: 5vh;
  }
}
@media (min-width: 480px) {
  main.Admission .txtholder h1 {
    font-size: 2rem;
  }

  .admissionBody {
    padding: 5vh;
  }
}

@media (min-width: 768px) {
  .admissionBody {
    padding: 10vh;
  }
}
@media (max-width: 768px) {
  .introtxt {
    width: 80%;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
  }

  .introtxt h3 {
    font-size: 16px;
  }

  .introtxt p {
    font-size: 14px;
  }
}

.bgoverview {
  overflow: hidden;
  height: 32vh;
  /* Controls the height of the background section */
  position: relative;
  z-index: 1;
}

.bgoverview .overlay1 {
  background: rgba(27, 8, 8, 0.68);
  /* Slightly transparent dark overlay */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.bgoverview h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: inherit;
  color: rgba(var(--bs-secondary-bg-rgb));
  font-size: 80px;
  padding: 17px;
  margin-top: 17px;
  font-weight: 700;
}

/*-------------- Responsive --------------*/

/* ------------------ Burger (mobile nav) ------------------ */

/* Base styles */
.hamburger-nav {
  display: none;
}

#ham-icon {
  background-color: #eee;
}

#sidebar-active {
  display: none;
}

.open-sidebar-btn,
.close-sidebar-btn {
  display: none;
}

/* Link container for mobile menu */
.links-container {
  display: none;
  height: 100%;
  width: 100%;
  flex-direction: row;
  align-items: center;
}

/* Menu items */
.item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #eee;
}

.item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 30px;
  text-decoration: none;
  color: #000;
  box-sizing: border-box;
}

/* Dropdown submenu */
.sub-menu {
  width: 100%;
  display: none;
  flex-direction: column;
  padding-left: 20px;
  background-color: #dbdbdb;
}

.item.open .sub-menu {
  display: flex;
}

/* Responsive styles */
@media (max-width: 1080px) {
  header {
    display: none;
  }

  .hamburger-nav {
    display: flex;
    position: fixed;
    z-index: 10;
  }

  .open-sidebar-btn,
  .close-sidebar-btn {
    padding: 20px;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  nav a {
    text-decoration: none;
    color: #000;
    width: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
    display: block;
  }

  .links-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -200%;
    z-index: 10;
    width: 70vw;
    height: 100vh;
    background-color: #eee;
    transition: left 0.2s ease-out;
    overflow-y: auto;
  }

  #sidebar-active:checked ~ .links-container {
    left: 0;
  }

  #sidebar-active:checked ~ #overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    background-color: rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 768px) {
  .carousel .list li {
    max-width: 350px;
  }

  .carousel .list .prev {
    transform: translateX(-180px) scale(0.8);
  }
  .carousel .list .next {
    transform: translateX(180px) scale(0.8);
  }

  .carousel .list .hide {
    transform: translateX(-300px) scale(0.7);
  }

  .carousel .list .new-next {
    transform: translateX(300px) scale(0.7);
  }
}

@media (max-width: 480px) {
  .carousel .list li {
    max-width: 240px;
  }

  .carousel .list .prev {
    transform: translateX(-140px) scale(0.75);
  }
  .carousel .list .next {
    transform: translateX(140px) scale(0.75);
  }

  .carousel .list .hide {
    transform: translateX(-240px) scale(0.65);
  }

  .carousel .list .new-next {
    transform: translateX(240px) scale(0.65);
  }
}

/*-------------------- Social Media Icons --------------------*/
.fa {
  font-size: 30px;
  margin: 5px 2px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  width: 50px;
  display: inline-block;
}

.fa:hover {
  opacity: 0.7;
}

.fa-facebook {
  color: var(--highlight-color);
  border-radius: 50%;
}

