/*** Spinner Start ***/
/*** Enhanced Spinner - Home Page Theme ***/
#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;
}

/* Animated Background Elements */
.spinner-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.spinner-bg-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.spinner-bg-element.element-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -100px;
  animation: spinnerFloat 15s infinite ease-in-out;
}

.spinner-bg-element.element-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -50px;
  animation: spinnerFloat 18s infinite ease-in-out reverse;
}

.spinner-bg-element.element-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 15%;
  animation: spinnerFloat 12s infinite ease-in-out;
}

/* Custom Spinner Animation */
.custom-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #e94e65;
  border-right: 3px solid #e94e65;
  border-radius: 50%;
  animation: spinnerRotate 1.5s linear infinite;
}

.spinner-ring-inner {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border: 2px solid transparent;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: spinnerRotate 2s linear infinite reverse;
}

.spinner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  animation: spinnerPulse 2s ease-in-out infinite;
}

/* Loading Text Animation */
.loading-dots::after {
  content: '';
  animation: spinnerDots 1.5s steps(4, end) infinite;
}

/* Progress Bar */
.loading-progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e94e65, #ffffff, #e94e65);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: spinnerProgress 3s ease-in-out infinite, spinnerProgressShine 1.5s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes spinnerFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes spinnerRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinnerPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes spinnerDots {
  0% {
    content: '';
  }
  25% {
    content: '.';
  }
  50% {
    content: '..';
  }
  75% {
    content: '...';
  }
  100% {
    content: '';
  }
}

@keyframes spinnerProgress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes spinnerProgressShine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-spinner {
    width: 60px;
    height: 60px;
  }
  
  .spinner-logo {
    font-size: 18px;
  }
  
  .loading-progress {
    width: 150px;
  }
  
  .spinner-bg-element.element-1 {
    width: 200px;
    height: 200px;
  }
  
  .spinner-bg-element.element-2 {
    width: 150px;
    height: 150px;
  }
  
  .spinner-bg-element.element-3 {
    width: 100px;
    height: 100px;
  }
}
/*** Spinner End ***/

/* Brand Logo */
.brand-logo {
  width: 5vw;
}

.brand-logo:hover {
  transform: scale(1.1);
  transition: all 0.5s ease;
}

.brand-name {
  font-size: 26px;
  text-align: center;
  color: var(--bs-secondary);
  font-family: cursive;
  font-weight: 500;
  text-shadow: 1px 1px 0px var(--bs-primary), 2px 2px 0px var(--bs-primary);
}

@media (max-width: 768px) {
  .brand-logo {
    width: 20vw !important;
  }
  .brand-name {
    display: none;
  }
}
/* Brand Logo End */

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 99;
}

/*** Button Start ***/
.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn-square {
  width: 32px;
  height: 32px;
}

.btn-sm-square {
  width: 34px;
  height: 34px;
}

.btn-md-square {
  width: 44px;
  height: 44px;
}

.btn-lg-square {
  width: 56px;
  height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50%;
}

.btn.btn-primary {
  background: var(--bs-secondary) !important;
  color: var(--bs-white) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  transition: 0.5s;
}

.btn.btn.btn-primary:hover {
  background: var(--bs-primary) !important;
  color: var(--bs-secondary);
  border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
  background: transparent;
  color: var(--bs-secondary);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  border: none;
  transition: 0.5s;
}

.btn.btn-secondary:hover {
  color: var(--bs-primary) !important;
}

/*** Section Title Start ***/
.section-title {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.section-title .sub-style {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.section-title .sub-style::before {
  content: "";
  width: 100px;
  position: absolute;
  bottom: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-bottom: -6px;
  margin-left: -100px;
  border: 1px solid var(--bs-secondary) !important;
}

.section-title .sub-style::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-top: -8px;
  margin-left: -50px;
  border: 1px solid var(--bs-primary) !important;
}

.sub-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.sub-title::before {
  content: "";
  width: 100px;
  position: absolute;
  bottom: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-bottom: -8px;
  margin-right: -100px;
  border: 1px solid var(--bs-secondary) !important;
}

.sub-title::after {
  content: "";
  width: 50px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-top: -6px;
  margin-right: -50px;
  border: 1px solid var(--bs-primary) !important;
}

/*** Topbar Start ***/
.fixed-top .container {
  transition: 0.5s;
}

.topbar {
  padding: 2px 10px 2px 20px;
  background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
  transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
  color: var(--bs-secondary) !important;
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}
/*** Topbar End ***/

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
  font-family: "Poppins", sans-serif;
  position: relative;
  margin-right: 25px;
  padding: 35px 0;
  color: var(--bs-primary) !important;
  font-size: 17px;
  font-weight: 400;
  outline: none;
  transition: 0.5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
  padding: 20px 0;
  color: var(--bs-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--bs-primary) !important;
}

.navbar-light .navbar-brand img {
  max-height: 60px;
  transition: 0.5s;
}

.sticky-top .navbar-light .navbar-brand img {
  max-height: 45px;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  vertical-align: middle;
}

@media (min-width: 1200px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    border-radius: 10px;
    transition: 0.5s;
    opacity: 0;
  }
}

.dropdown .dropdown-menu a:hover {
  background: var(--bs-primary);
  color: var(--bs-secondary);
}

.navbar .nav-item:hover .dropdown-menu {
  transform: rotateX(0deg);
  visibility: visible;
  background: var(--bs-light) !important;
  transition: 0.5s;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .sticky-top {
    position: relative;
    background: var(--bs-white);
  }

  .navbar.navbar-expand-lg .navbar-toggler {
    padding: 10px 20px;
    border: 1px solid var(--bs-primary) !important;
    color: var(--bs-primary);
  }

  .navbar-light .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid #dddddd;
  }

  .navbar-light .navbar-nav .nav-link,
  .sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
    color: var(--bs-dark) !important;
  }

  .navbar-light .navbar-brand img {
    max-height: 45px;
  }
}

@media (min-width: 991.98px) {
  .sticky-top .navbar-light {
    background: var(--bs-light) !important;
  }

  .navbar-light .navbar-nav .nav-link:before {
    bottom: auto;
  }

  .navbar-light .navbar-nav .nav-link:after {
    top: auto;
  }

  .navbar-light .navbar-nav .nav-link:hover:before,
  .navbar-light .navbar-nav .nav-link.active:before {
    top: 20px;
    opacity: 1;
  }

  .navbar-light .navbar-nav .nav-link:hover::after,
  .navbar-light .navbar-nav .nav-link.active::after {
    bottom: 20px;
    opacity: 1;
  }
}

#searchModal .modal-content {
  background: rgba(240, 245, 251, 0.5);
}
/*** Navbar End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
  background: linear-gradient(rgba(224, 36, 84, 0.7), rgba(0, 58, 102, 0.8)),
    url("../img/breadcrumb.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: initial;
  background-size: cover;
  padding: 100px 0 60px 0;
}
/*** Single Page Hero Header End ***/

/*** Carousel Hero Header Start ***/
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
  width: 4rem;
  height: 4rem;
  margin-left: -60px;
  border-radius: 50%;
  background-size: 60% 60%;
  transition: 0.5s;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
  margin-left: 0;
  margin-right: -60px;
}

.carousel-header .carousel .carousel-indicators {
  padding-bottom: 0;
  transition: 0.5s;
}

.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
  width: 8px;
  height: 8px;
  border: 8px solid var(--bs-primary);
  border-radius: 50%;
  margin-right: 30px;
  transition: 0.5s;
}

.carousel-header .carousel .carousel-indicators li.active {
  width: 8px;
  height: 8px;
  border: 8px solid var(--bs-secondary);
}

.carousel-header .carousel-inner .carousel-item {
  position: relative;
  min-height: 100vh;
}

.carousel-header .carousel-inner .carousel-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  background-size: cover;
}

@media (max-width: 768px) {
  .carousel-header {
    height: 700px !important;
  }

  .carousel-header .carousel-control-prev .carousel-control-prev-icon,
  .carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-top: 500px;
  }

  .carousel-header .carousel-control-prev .carousel-control-prev-icon {
    margin-left: 0px;
  }

  .carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-right: 0px;
  }

  .carousel-header .carousel .carousel-indicators {
    padding: 0;
  }
}
/*** Carousel Hero Header End ***/

/*** Counter Facts Start ***/
.counter-facts {
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.8)
    ),
    url(../img/breadcrumb.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
}

.counter-facts .counter {
  position: relative;
  text-align: center;
  width: 200px;
  min-height: 215px;
  padding: 10px 15px;
  margin: 0 auto;
  border-radius: 100px;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
  background: var(--bs-white);
}

.counter-facts .counter:before {
  content: "";
  position: absolute;
  height: 105px;
  width: 100%;
  left: 0;
  top: 0;
  border-radius: 10px 10px 0 0;
  background-color: var(--bs-primary);
}
.counter-facts .counter .counter-icon {
  position: relative;
  width: 120px;
  height: 100px;
  margin: 0 auto 10px;
  border-radius: 10px 10px 0 0;
  transform: translateY(-20px);
  font-size: 50px;
  line-height: 90px;
  color: var(--bs-secondary);
  background: rgba(1, 143, 252, 0.5);
  clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter .counter-icon:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 90px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px 10px 0 0;
  background: rgba(0, 58, 102, 0.5);
  z-index: -1;
  clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter:hover .counter-icon i {
  transform: rotate(360deg);
  transition: all 0.3s ease;
}
.counter-facts .counter h3 {
  color: var(--bs-primary);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 5px 0;
}
.counter-facts .counter .counter-value {
  font-size: 30px;
  font-weight: 700;
  display: block;
  color: var(--bs-secondary);
}

@media screen and (max-width: 1200px) {
  .counter-facts .counter {
    margin-bottom: 40px;
  }
}
/*** Counter Facts End ***/

/*** service Start ***/
.service .service-item {
  position: relative;
  overflow: hidden;
}

.service .service-item .service-inner .service-title {
  position: relative;
  margin-top: -30px;
  text-align: center;
  transition: 0.5s;
}

.service .service-item .service-inner .service-title .service-content {
  position: absolute;
  bottom: -100%;
  left: 0;
  margin-left: 30px;
  margin-right: 30px;
  text-align: center;
  border-radius: 10px;
  background: var(--bs-primary);
  opacity: 0;
  transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-content {
  bottom: 0;
  opacity: 1;
}

.service .service-item .service-inner .service-title .service-content a h4 {
  border-bottom: 1px solid rgba(256, 256, 256, 0.1);
}

.service .service-item .service-inner .service-title .service-title-name {
  transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
  opacity: 0;
}

.service .service-item .service-inner .service-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.service .service-item .service-inner .service-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  transition: 0.5s;
  opacity: 0;
}

.service .service-item:hover .service-inner .service-img::after {
  height: 100%;
  opacity: 1;
}

.service .service-item .service-inner .service-img img {
  transition: 0.5s;
}

.service .service-item:hover .service-inner .service-img img {
  transform: scale(1.3);
}
/*** Service End ***/

/*** Features Start ***/
.features .feature-item {
  position: relative;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.features .feature-item::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  border-radius: 10px;
  background: rgba(0, 58, 102, 0.1);
  z-index: -1;
  transition: 0.5s;
}

.features .feature-item:hover::after {
  height: 100%;
}

.features .feature-item .feature-icon {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bs-light);
  transition: 0.5s;
}

.features .feature-item:hover .feature-icon {
  border-radius: 50%;
  background: var(--bs-white) !important;
}

.features .feature-item .feature-icon i {
  transition: 0.5s;
}

.features .feature-item:hover .feature-icon i {
  color: var(--bs-secondary) !important;
  transform: rotate(360deg);
  transition: all 0.5s ease;
}
/*** Features End ***/

/*** Country Start ***/
.country .country-item {
  position: relative;
}

.country .country-item::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 58, 102, 0.7);
  border-radius: 10px;
  transition: 0.5s;
  z-index: 1;
}

.country .country-item:hover::after {
  height: 100%;
}

.country .country-item .country-flag {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.5s;
  z-index: 2;
}

.country .country-item .country-flag img {
  border: 5px solid var(--bs-white);
  transition: 0.5s;
}

.country .country-item:hover .country-flag img {
  border: 5px solid var(--bs-white);
  transform: rotate(360deg);
  transition: all 0.5s ease;
}

.country .country-item .country-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.5s;
  opacity: 0;
  z-index: 3;
}

.country .country-item:hover .country-name {
  opacity: 1;
}

.country .country-item img {
  transition: 0.5s;
}

.country .country-item:hover img {
  transform: scale(1.2);
}

.country .country-item .country-name a.fs-4 {
  transition: 0.5s;
}

.country .country-item .country-name a.fs-4:hover {
  color: var(--bs-secondary) !important;
}
/*** Country End ***/

/*** testimonial Start ***/
.testimonial .owl-carousel.testimonial-carousel {
  position: relative;
}

.testimonial
  .owl-carousel.testimonial-carousel
  .testimonial-item
  .testimonial-content {
  position: relative;
  border-radius: 10px;
  background: var(--bs-light);
}

.testimonial
  .owl-carousel.testimonial-carousel
  .testimonial-item
  .testimonial-content::after {
  position: absolute;
  content: "";
  width: 45px;
  height: 45px;
  bottom: -20px;
  left: 30px;
  transform: rotate(45deg);
  background: var(--bs-light);
  z-index: -1;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav {
  position: absolute;
  top: -60px;
  right: 0;
  display: flex;
  font-size: 40px;
  color: var(--bs-primary);
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
  margin-right: 40px;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
  transition: 0.5s;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--bs-secondary);
}
/*** testimonial end ***/

/*** training Start ***/
.training .training-item .training-inner {
  position: relative;
}

.training .training-item .training-inner .training-title-name {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  padding: 20px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: end;
  text-align: center;
  transition: 0.5s;
}

.training .training-item {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.training .training-item:hover .training-inner .training-title-name {
  background: rgba(0, 58, 102, 0.5);
}

.training .training-item:hover .training-inner .training-title-name a {
  opacity: 0;
}

.training .training-item .training-inner img {
  transition: 0.5s;
}

.training .training-item:hover .training-inner img {
  transform: scale(1.3);
}

.training .training-item .training-content {
  position: absolute;
  width: 100%;
  bottom: -100%;
  left: 0;
  transition: 0.5s;
}

.training .training-item:hover .training-content {
  bottom: 0;
}
/*** training End ***/

/*** Contact Start ***/
.contact .office .office-item {
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
  background: var(--bs-light);
  transition: 0.5s;
}

.contact .office .office-item:hover {
  box-shadow: 20px 20px 20px rgba(0, 58, 102, 0.3);
}

.contact .office .office-item .office-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.contact .office .office-item .office-img img {
  transition: 0.5s;
}

.contact .office .office-item:hover .office-img img {
  transform: scale(1.3);
}

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
  transition: 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
  color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
  color: var(--bs-primary) !important;
}
/*** Contact End ***/

/*** Footer Start ***/
.footer {
  background: var(--bs-primary);
}
.footer .footer-item a {
  line-height: 30px;
  color: var(--bs-white);
  transition: 0.5s;
}

.footer .footer-item p {
  line-height: 30px;
}

.footer .footer-item a:hover {
  letter-spacing: 2px;
  color: var(--bs-secondary);
}

/*** Footer End ***/

/*** copyright Start ***/
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bs-secondary) !important;
}
/*** copyright end ***/

/* University Card Styling */
.university-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
  background: var(--bs-light);
  transition: 0.5s;
}

.university-item:hover {
  box-shadow: 0 8px 25px rgba(0, 58, 102, 0.3);
}

.university-item .position-relative {
  border-radius: 10px;
  overflow: hidden;
}

.university-item img {
  transition: 0.5s;
}

.university-item:hover img {
  transform: scale(1.1);
}

.university-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(224, 36, 84, 0.8));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.university-item:hover .university-overlay {
  opacity: 1;
}

/* Default state for desktop */
@media (min-width: 768px) {
  .university-overlay {
    opacity: 0;
  }

  .university-item:hover .university-overlay {
    opacity: 1;
  }
}

/* Mobile view - always show overlay with semi-transparent background */
@media (max-width: 767px) {
  .university-overlay {
    position: relative;
    opacity: 1;
    background: var(--bs-light);
    padding: 15px;
  }

  .university-overlay h5 {
    color: var(--bs-primary) !important;
    font-size: 1.1rem;
  }

  .university-overlay p {
    color: var(--bs-secondary) !important;
    font-size: 0.85rem;
  }

  .university-item .position-relative {
    border-radius: 10px 10px 0 0;
  }
}

.university-overlay h5 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.university-overlay p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.university-overlay i {
  color: var(--bs-primary);
  margin-right: 5px;
}

/* Button styling */
.university-overlay .btn {
  font-weight: 500;
  padding: 8px 25px;
  border-radius: 50px;
  transition: 0.5s;
}

.university-overlay .btn-light {
  background: var(--bs-white);
  color: var(--bs-primary);
  border: 1px solid var(--bs-white);
}

.university-overlay .btn-light:hover {
  background: var(--bs-primary);
  color: var(--bs-white);
  border-color: var(--bs-white);
}

/* Card content animation */
.university-overlay .d-flex {
  transform: translateY(20px);
  transition: 0.5s;
}

.university-item:hover .university-overlay .d-flex {
  transform: translateY(0);
}

/* Responsive image height */
.university-item img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Add smooth transitions */
.university-item *,
.university-overlay * {
  transition: all 0.3s ease-in-out;
}

.modal-content {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal .form-control:focus,
.modal .form-select:focus {
  border-color: var(--primary);
}

.modal .form-label {
  color: #555;
}

.modal-header {
  border-bottom: 1px solid #eee;
}

.modal-footer {
  border-top: 1px solid #eee;
}

.input-group-text {
  background-color: #f8f9fa;
  border-right: none;
  font-size: 0.875rem;
}

.input-group .form-control {
  border-left: none;
}

.input-group .form-control:focus + .input-group-text {
  border-color: var(--primary);
}

.modal .form-control-sm,
.modal .form-select-sm,
.modal .btn-sm {
  font-size: 0.875rem;
}

.icon-circle-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-md {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon-large {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-selector {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 30px;
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s;
}

.country-selector:hover {
  background-color: #e9ecef;
  color: #212529;
}

.country-selector.active {
  background-color: #0d6efd;
  color: #fff;
}

.flag-icon {
  width: 1.5em;
  height: 1.1em;
  display: inline-block;
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  position: relative;
}

/* Toast container positioning */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(0, 0, 0, 0.55);
    padding: 0.5rem 1rem;
  }

  .navbar-nav .dropdown-menu .dropdown-item:hover,
  .navbar-nav .dropdown-menu .dropdown-item:focus {
    color: rgba(0, 0, 0, 0.7);
    background-color: transparent;
  }

  .navbar-nav .dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }
}

/* Student dropdown menu specific fixes */
.student-dropdown {
  position: relative !important;
}

.student-dropdown-menu {
  position: absolute !important;
  left: auto !important;
  right: 0 !important;
  float: left !important;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

/* Override Bootstrap's transform on the student dropdown menu */
.student-dropdown .dropdown-menu.show {
  display: block !important;
  transform: none !important;
  top: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 991.98px) {
  .student-dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
    margin-left: 1rem !important;
  }
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Training Item Styles */
.training-item {
  position: relative;
  margin-bottom: 30px;
}

.training-inner {
  position: relative;
  overflow: hidden;
}

.training-title-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 58, 102, 0.9), transparent);
  padding: 20px;
  text-align: center;
}

.training-content {
  background-color: #003a66 !important;
}

.university-item {
  position: relative;
  margin-bottom: 30px;
}

.university-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(224, 36, 84, 0.8));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.university-item:hover .university-overlay {
  opacity: 1;
}
