:root {
  --primary-color: #0d0436;
  --secondary-color: #6c757d;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #495057;
  --heading-color: #343a40;

  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }

  .opacity-9 {
    opacity: 0.9;
  }

  .opacity-8 {
    opacity: 0.8;
  }

  .opacity-7 {
    opacity: 0.7;
  }

  .opacity-6 {
    opacity: 0.6;
  }

  .opacity-5 {
    opacity: 0.5;
  }

  .navbar-toggler,
  .navbar-toggler-icon:hover {
    border: none !important;
  }

  .btn-link-text-white {
    color: white !important;
    text-decoration: none !important;
  }

  .my-hover-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .my-hover-btn:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: calc(1rem + 0.1rem);
    font-weight: bolder;
  }

  .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }

  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
  }
}

*,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-bg {
  /* margin-block-start: -3rem; */
  width: 100%;

}

.contact-bg.loaded {
  background: url("/static/a/images/early1.jpg") no-repeat center center/cover;
  overflow: hidden;
}


body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  padding-top: 80px;
  /* Adjust padding to make space for both pre-nav and main nav */
}

.pre-nav {
  background-color: var(--dark-color);
  color: #fff;
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  /* Higher than the main navbar */
  transition: opacity 0.5s ease-in-out;
}

.pre-nav.fade-out {
  opacity: 0;
  pointer-events: none;
  /* Disables clicks once faded */
}

.pre-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pre-nav .contact-info {
  display: flex;
  gap: 20px;
}

.pre-nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.pre-nav a:hover {
  color: var(--primary-color);
}

.navbar {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  top: 40px;
  /* Position below the pre-nav */
  transition: top 0.5s ease-in-out;
}

/* Adjust navbar position when pre-nav fades out */
.fade-out+.navbar {
  top: 0;
}

.navbar {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#mainnav button:focus {
  box-shadow: none !important;
}

/* Add this custom CSS to your existing <style> block */
.hero-section .carousel-item {
  background: rgba(0, 0, 0, 0.6);
  position: relative;
}

.hero-section img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-section .carousel-caption {
  background: rgba(0, 0, 0, 0.6);
}

.hero-section h1 {
  font-size: 3.5rem;
}



.card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.program-card {
  height: 430px;
}

.program-card img {
  height: 200px;
  object-fit: cover;
}

.program-card button{
  margin-block-end: 0.5rem;
}

.testimonial-card {
  background-color: var(--light-color);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.footer {
  background-color: var(--dark-color);
  color: #fff;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-color);
}


.about p {
  font-size: 1.2rem;
  font-weight: 400;
}

.admission input{
  border: 0.1rem solid var(--primary-color);
}

.admission select[type="select"]{
   border: 0.1rem solid var(--primary-color) !important;
}


@media (max-width: 599px) {
  .pre-nav {
    display: none;
  }

  #mainnav {
    top: -3px;
  }

  #mainnav button:focus {
  box-shadow: none !important;
}

  .hero-section {
    top: -20px;
  }

  .hero-section .carousel-item {
    height: 40vh;
    padding-block-end: 2rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

 .program-card {
  height: 450px;
}

  footer{
    padding-block-start: -2rem;
  }

}

@media (max-width: 991.98px) {
  .pre-nav {
    display: none;
  }

  #mainnav {
    top: -3px;
  }

  #mainnav button:focus {
  box-shadow: none !important;
}

  .hero-section {
    top: -20px;
  }

  .hero-section .carousel-item {
    height: 30rem;
    /* Make the carousel full height */
  }

 .program-card {
  height: 450px;
}

}

@media (min-width: 992px) {
  .hero-section .carousel-item {
    height: 80vh;
    /* Make the carousel full height */
    background: rgba(0, 0, 0, 0.6);
    position: relative;
    margin-block-end: 3rem;
  }

}