/********** Template CSS **********/
:root {
  --primary: #ad1d37;
  --light: #fff5f3;
  --dark: #213467;
}

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

.whatsapp-link {
  position: fixed;
  display: none;
  left: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** 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-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

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

.font-secondary {
  /* font-family: 'Lobster Two', cursive; */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/*** Navbar ***/
.navbar .navbar-nav .nav-link {
  padding: 10px 15px;
  color: var(--dark);
  font-weight: 500;
  outline: none;
  white-space: nowrap;
}

.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: 1200px) {
  .navbar .navbar-nav .nav-link {
    padding: 10px;
  }
}

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

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

@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(../img/bg-header-top.png) center center repeat-x; */
  z-index: 1;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); */
}

.header-carousel::after,
.page-header::after {
  height: 19px;
  top: auto;
  bottom: 0;
  /* background: url(../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;
  }
}

.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: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  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);
  color: #ffffff;
}

.page-header {
  /* background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(../img/students/2.JPG) center center no-repeat; */
  /* background-size: cover; */
}

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

/*** Facility ***/
.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;
  min-height: 250px;
  padding: 30px;
  border-radius: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.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: #213468 !important;
}

/*** About ***/
.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 ***/
.team-item .team-text {
  position: absolute;
  width: 250px;
  height: 250px;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ffffff;
  border: 17px solid var(--light);
  border-radius: 250px;
  transition: 0.5s;
}

.team-item:hover .team-text {
  border-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 576px) {
  .testimonial-carousel {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.testimonial-carousel .testimonial-item .border {
  border: 1px dashed rgba(0, 185, 142, 0.3) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 100%;
  height: 45px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 45px;
  font-size: 20px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next: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;
}

/* Add this to your existing CSS */
.program-item {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.program-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-box {
  transition: all 0.3s ease;
}

.program-item:hover .icon-box {
  background: linear-gradient(135deg, var(--primary), #2c6ecb) !important;
}

.btn-outline-primary {
  border-width: 2px;
  font-weight: 500;
  padding: 0.4rem 1.2rem;
}

.btn-outline-primary:hover {
  color: white;
}

/* ************* Dropdown ************* */

.dropdown-menu {
  min-width: 350px;
  padding: 16px 0;
  border: none !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.dropdown-item {
  padding: 14px 24px !important;
  margin: 4px 16px;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  position: relative;
  border-left: 4px solid transparent;
  background: transparent;
}
.dropdown-item:hover {
  background: rgba(173, 29, 55, 0.05) !important;
  transform: translateX(4px);
  color: var(--primary) !important;
  border-left-color: var(--primary);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}
.dropdown-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin-right: 16px;
  color: white;
  font-size: 18px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.dropdown-item:hover i {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ************* End Dropdown ************* */
/* ************* Navbar Custom ************* */
.navbar-nav .nav-link {
  position: relative;
  border-radius: 15px;
  transition: all 0.3s ease;
  margin: 0 5px;
}
.navbar-nav .nav-link.active {
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

.navbar-nav .nav-link:not(.active):hover {
  color: var(--primary) !important;
  background: rgba(173, 29, 55, 0.05) !important;
}
/* ************* End Navbar Custom ************* */

/* ************* General Custom Styles  ************* */

.breadcrumb-item a {
  color: rgb(199, 199, 199);
}

.nav-item {
  text-align: center;
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
}

img[src^="/img/icons/"] {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

/* blog data js */

.text-blog-section {
  position: relative;
  min-height: 360px;
}

.read-more-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.navbar {
  min-height: 70px;
}

@media (max-width: 768px) {
  /* .slick-next.slick-arrow {
    display: none;
  }

  .slick-prev.slick-arrow {
    display: none;
  } */

  .btn-apply,
  .btn-parents {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* general */

/* [dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

#langToggle {
  padding: 6px 12px;
  border: none;
  background-color: var(--dark);
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
} */

/* Social Media Icons Styles */
.social-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  padding: 15px;
}

.social-icon-link:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-10px);
}

.social-icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon-wrapper i {
  font-size: 2.5rem;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Facebook Icon */
.facebook-icon .social-icon-wrapper {
  background: linear-gradient(135deg, #1877f2 0%, #0d47a1 100%);
  color: #fff;
}

.facebook-icon:hover .social-icon-wrapper {
  background: linear-gradient(135deg, #0d47a1 0%, #1877f2 100%);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.facebook-icon:hover .social-icon-wrapper i {
  transform: scale(1.1);
}

/* Instagram Icon */
.instagram-icon .social-icon-wrapper {
  background: linear-gradient(
    135deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: #fff;
}

.instagram-icon:hover .social-icon-wrapper {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
}

.instagram-icon:hover .social-icon-wrapper i {
  transform: scale(1.1);
}

/* YouTube Icon */
.youtube-icon .social-icon-wrapper {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
}

.youtube-icon:hover .social-icon-wrapper {
  background: linear-gradient(135deg, #cc0000 0%, #ff0000 100%);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.youtube-icon:hover .social-icon-wrapper i {
  transform: scale(1.1);
}

.social-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.social-icon-link:hover .social-label {
  color: #ad1d37;
  font-weight: 700;
}

/* Animation for icons on load */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.9) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.social-icon-wrapper {
  animation: bounceIn 0.8s ease-out;
}

.facebook-icon .social-icon-wrapper {
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.instagram-icon .social-icon-wrapper {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.youtube-icon .social-icon-wrapper {
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

/* Pulse animation on hover */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(173, 29, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(173, 29, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(173, 29, 55, 0);
  }
}

.social-icon-link:hover .social-icon-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .social-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .social-icon-wrapper i {
    font-size: 2rem;
  }

  .social-label {
    font-size: 0.9rem;
  }
}
