:root {
  --primary: #e70e2d;
  --light: #fff5f3;
  --dark: #103741;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Pop up ***/
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-inner {
  position: relative;
  max-width: 95%;
  width: 100%;
  max-height: 95vh;
  overflow: hidden;
}

.popup-image {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  background: white;
  color: black;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
  .popup-inner {
    max-width: 100%;
    max-height: 100vh;
  }

  .close-btn {
    top: 5px;
    right: 5px;
  }
}

/* pop out css  */


/* Styling the exit popup container */
#exitPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent backdrop */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
  /* Subtle blur effect */
}

/* Popup content styling */
.exit-popup-content {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

/* Close button styling */
.exit-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.2s;
}

.exit-popup-close:hover {
  color: var(--primary);
}

/* Heading styling */
.exit-popup-content h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Paragraph styling */
.exit-popup-content p {
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Input field styling */
.exit-popup-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--dark);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.exit-popup-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(231, 14, 45, 0.3);
}

/* Submit button styling */
.exit-popup-submit {
  background: var(--primary);
  color: var(--light);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 9999px;
  padding: 0.75rem 2.5rem;
  transition: background 0.2s, transform 0.1s;
}

.exit-popup-submit:hover {
  background: var(--dark);
  transform: scale(1.05);
}

/* Animation for popup entrance */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive design for smaller screens */
@media (max-width: 480px) {
  .exit-popup-content {
    width: 95%;
    padding: 1.5rem;
  }

  .exit-popup-content h3 {
    font-size: 1.25rem;
  }

  .exit-popup-submit {
    padding: 0.75rem 2rem;
  }
}


/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Lobster Two", cursive;
  font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
  font-weight: 600;
}

.font-secondary {
  font-family: "Lobster Two", cursive;
}

/*** Navbar ***/
.nav-logo-container {
  width: 80px;
  height: fit-content;
}

.navbar-brand h1 {
  line-height: 35px;
}

.nav-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.navbar .navbar-nav .nav-link {
  padding: 30px 15px;
  color: var(--dark);
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 5px;
  transition: 0.5s;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 15px;
    border-top: 1px solid #eeeeee;
  }

  .nav-logo-container {
    width: 60px;
    height: fit-content;
  }

  .navbar-brand h1 {
    font-size: 1.4rem;
    line-height: 25px;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    top: calc(100% - 15px);
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 10px;
  top: 0;
  left: 0;
  background: url(../aa_img/bg-header-top.png) center center repeat-x;
  z-index: 1;
}

.header-carousel::after,
.page-header::after {
  height: 19px;
  top: auto;
  bottom: 0;
  background: url(../aa_img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 500px;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .header-carousel .owl-carousel-item h1 {
    font-size: 30px;
    font-weight: 600;
  }

  .re img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 83% center;
  }
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  margin: 7px 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(../aa_img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/*** Facility ***/
.cust-img {
  width: 235px !important;
  height: 235px !important;
  object-fit: cover;
  object-position: center;
}

.facility-item .facility-icon {
  position: relative;
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-item .facility-icon::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.5s;
  z-index: 1;
}

.facility-item .facility-icon span {
  position: absolute;
  content: "";
  width: 15px;
  height: 30px;
  top: 0;
  left: 0;
  border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
  left: auto;
  right: 0;
}

.facility-item .facility-icon i {
  position: relative;
  z-index: 2;
}

.facility-item .facility-text {
  position: relative;
  padding: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 250px;
  border-radius: 50%;
}

.facility-item .facility-text::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.5s;
  z-index: 1;
}

.facility-item .facility-text * {
  position: relative;
  z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
  background: transparent;
}

.facility-item * {
  transition: 0.5s;
}

.facility-item:hover * {
  color: #ffffff !important;
}

.owl-carousel .owl-item .facility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure buttons are visible on smaller screens */
@media (max-width: 576px) {
  .owl-nav .owl-prev {
    left: -20px;
  }

  .owl-nav .owl-next {
    right: -20px;
  }
}

/*** About ***/
.img-about {
  width: 400px !important;
  height: 400px !important;
  object-fit: cover;
  object-position: center;
}

.about-img img {
  transition: 0.5s;
}

.about-img img:hover {
  background: var(--primary) !important;
}

/*** Classes ***/
.classes-item {
  transition: 0.5s;
}

.classes-item:hover {
  margin-top: -10px;
}

/*** Team ***/
.teacher-image-container {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.teacher-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/*** Testimonial ***/
.testimonial-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
}

.testimonial-carousel {
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .testimonial-carousel {
    padding: 0 2rem;
  }
}

.testimonial-video {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 0.75rem;
  background-color: #000;
  display: block;
  margin: 0 auto;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 1rem;
  z-index: 2;
}

.testimonial-carousel .owl-nav button {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.testimonial-carousel .owl-nav button:hover {
  background: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 45px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  font-size: 16px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary) !important;
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .form-control {
  border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: #ffffff;
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
  color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/*** Gallery ***/
.gallery-section {
  padding: 40px 20px;
  background: #f7f9fc;
  text-align: center;
}

.gallery-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/*** Lightbox ***/
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.lightbox-content {
  width: 90vw;
  height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-item img {
  max-width: 100%;
  max-height: calc(80vh - 40px);
  /* Reserve space for caption */
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  margin-top: 10px;
  max-width: 90%;
}

.lightbox-close {
  position: fixed;
  top: 2vh;
  right: 2vw;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 15px;
}

.lightbox-carousel .owl-nav button {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.lightbox-carousel .owl-nav button:hover {
  background: var(--dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95vw;
    height: 85vh;
  }

  .lightbox-item img {
    max-height: calc(85vh - 30px);
    /* Adjust for smaller caption space */
  }

  .lightbox-caption {
    font-size: 0.9rem;
    margin-top: 8px;
  }

  .lightbox-close {
    font-size: 2rem;
    top: 1vh;
    right: 3vw;
  }

  .lightbox-carousel .owl-nav button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .lightbox-content {
    width: 98vw;
    height: 90vh;
  }

  .lightbox-item img {
    max-height: calc(90vh - 20px);
  }

  .lightbox-caption {
    font-size: 0.8rem;
    margin-top: 5px;
  }

  .lightbox-close {
    font-size: 1.8rem;
    top: 1vh;
    right: 4vw;
  }

  .lightbox-carousel .owl-nav button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}


/* server admin css  */

/* Existing styles remain unchanged */
.admin-table {
  background: #fff5f3;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-label {
  color: #103741;
  font-weight: 500;
}

.form-control {
  border-color: #103741;
}

.form-control:focus {
  border-color: #e70e2d;
  box-shadow: 0 0 5px rgba(231, 14, 45, 0.3);
}