/********** Template CSS **********/

:root {
  --primary: rgb(82, 108, 107);
  --light: #f0fbfc;
  --light: #f0e4de;
  --dark: #181d38;
}

.btn {
  background-color: #6d80eb;
  border: none;
}

.btn a {
  text-decoration: none;
  color: #fff;
}

.btn:hover {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

.btn:hover a {
  color: var(--primary) !important;
}

.btn-light {
  background-color: var(--light);
}

.btn-light:hover {
  background: transparent;
  color: var(--light) !important;
  border: 1px solid var(--light);
}

.fw-medium {
  font-weight: 600 !important;
}

.fw-semi-bold {
  font-weight: 700 !important;
}

.back-to-top {
  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-family: "Nunito", sans-serif;
  font-weight: 600;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  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: 0px;
}

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

.navbar-light .navbar-nav .nav-link {
  margin-right: 40px;
  padding: 25px 0;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.home-navbar .navbar-nav .nav-link {
  margin-right: 20px;
} /* Custom for Home */

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #4b8adc;
}

@media (max-width: 1400px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 15px 0; /* Increased vertical padding for mobile spacing between items */
  }

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

.navbar-light .navbar-brand,
.navbar-light a.btn {
  height: 75px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
}

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

.navbar-toggler-icon {
  color: #fb873f;
}

.navbar-toggler {
  border: 2px solid #fb873f;
}

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

  .navbar .dropdown-menu.fade-down {
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}
/*** Header Carousel ***/
.header-carousel .owl-carousel-item {
  position: relative;
  height: 100vh; /* Default for computers */
  overflow: hidden; /* Prevent overflow */
  background: #ccc; /* Fallback background for debugging */
}

.header-carousel .owl-carousel-item picture,
.header-carousel .owl-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop to fill, maintaining aspect ratio */
  position: absolute;
  top: 0;
  left: 0;
  display: block; /* Ensure image is visible */
}

/* Text styling */
.header-carousel .text-center h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Improve readability */
}

.header-carousel .text-center p {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
  color: #ffffff;
}

/* Navigation Styling */
.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.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;
  font-size: 22px;
  transition: 0.5s;
  cursor: pointer;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: #044794; /* Fallback to blue if --primary undefined */
  border-color: #fefefe;
}

.page-header {
  background: linear-gradient(rgba(121, 141, 253, 0.7), rgba(24, 29, 56, 0.7)),
    url(../img/carousel-1.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Tablets (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-carousel .owl-carousel-item {
    height: 75vh; /* Shorter for tablets */
  }

  .header-carousel .text-center h1 {
    font-size: 2.5rem;
  }

  .header-carousel .text-center p {
    font-size: 1.05rem;
  }

  .header-carousel .owl-nav {
    right: 4%;
  }

  .header-carousel .owl-nav .owl-prev,
  .header-carousel .owl-nav .owl-next {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
}

/* Phones (≤768px) */
@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    height: 70vh; /* Adjusted for phones */
  }

  .header-carousel .text-center h1 {
    font-size: 2rem;
  }

  .header-carousel .text-center p {
    font-size: 1rem;
  }

  .header-carousel .owl-nav {
    right: 3%;
  }

  .header-carousel .owl-nav .owl-prev,
  .header-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Small Phones (≤430px) */
@media (max-width: 430px) {
  .header-carousel .owl-carousel-item {
    height: 60vh; /* Shorter for small phones */
  }

  .header-carousel .text-center h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .header-carousel .text-center p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .header-carousel .owl-nav {
    right: 2%;
    top: auto;
    bottom: 20px; /* Move to bottom for small screens */
    flex-direction: row; /* Horizontal nav */
    transform: none;
  }

  .header-carousel .owl-nav .owl-prev,
  .header-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/*** Section Title ***/
.section-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.section-title::before {
  position: absolute;
  content: "";
  width: calc(100% + 80px);
  height: 2px;
  top: 4px;
  left: -40px;
  background: var(--primary);
  z-index: -1;
}

.section-title::after {
  position: absolute;
  content: "";
  width: calc(100% + 120px);
  height: 2px;
  bottom: 5px;
  left: -60px;
  background: var(--primary);
  z-index: -1;
}

.section-title.text-start::before {
  width: calc(100% + 40px);
  left: 0;
}

.section-title.text-start::after {
  width: calc(100% + 60px);
  left: 0;
}

/*** Service ***/
.service-item {
  transition: 0.5s;
}

.service-item i {
  color: var(--primary);
}

.service-item:hover {
  margin-top: -10px;
  background: var(--primary);
}

.service-item * {
  transition: all 0.3s ease-in-out;
}

.service-item:hover * {
  color: #fff !important;
}

.course-item img {
  width: 100%;
  height: 200px;
  border-radius: 5px;
}

/*** Team ***/
.team-item img {
  transition: 0.5s;
}

.team-item:hover img {
  transform: scale(1.1);
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: #ffffff !important;
}

.testimonial-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  border: 1px solid #cccccc;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

.footer {
  width: 100%;
  background-color: #f8f9fa;
  padding: 20px 0;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 0;
}

.icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.footer-container a {
  width: 40px;
  height: 40px;
  margin: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-container a i {
  font-size: 28px;
  color: rgb(77, 113, 119);
  transition: all 0.3s ease;
}

.footer-container a:hover {
  border: 2px solid rgba(194, 171, 194, 0.3);
  transform: translateY(-3px);
}

.footer-container a:hover i {
  transform: scale(1.1);
}

.footer-container a:hover .fa-facebook {
  color: rgb(24, 119, 242);
}

.footer-container a:hover .fa-telegram {
  color: rgb(30, 117, 193);
}

.footer-container a:hover .fa-linkedin {
  color: rgb(10, 102, 194);
}

.footer-container a:hover .fa-youtube {
  color: rgb(205, 32, 31);
}

.footer-container a:hover .fa-discord {
  color: rgb(42, 53, 204);
}

.footer-container a:hover .fa-instagram {
  color: rgb(228, 64, 95);
}

.footer-container a:hover .bi-twitter-x {
  color: rgb(0, 0, 0);
}

.footer-container a:hover .fa-medium {
  color: rgb(0, 0, 0);
}

.footer-container a:hover .fa-github {
  color: rgb(36, 41, 46);
}

.footer-container a:hover .fa-tiktok {
  color: rgb(0, 0, 0);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  background: #84a2ed;
  color: #fff;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    padding: 10px;
  }

  .icon-row {
    flex-wrap: wrap;
    margin: 5px 0;
  }

  .footer-container a {
    margin: 5px 10px;
  }
}
