/* Using Tailwind utilities for topbar layout and colors. */

/* Font settings: Bebas Neue for headings, Roboto for body/text */
html {
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial !important;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", "Roboto", sans-serif !important;
}

.hero h3,
.about-section h3,
.why-excellence h3,
.services-serction h3,
#about h3,
#consultationForm h3,
.card h3 {
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial !important;
}

/* Hero background moved from inline to CSS */
.hero {
  background-image: url("../images/hero-banner.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.why-excellence {
  background-image: url("../images/why-choose.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.title-span {
  position: relative;
  padding-right: 20px;
}
.title-span::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: #006fac;
}

/* Logo Carousel Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scroll 20s linear infinite;
}

/* Vertical text for floating button */
.writing-mode-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.why-choose-slide-wrapper {
  background-image: url(../images/why-choose-bg.webp);
  padding-bottom: 20px;
}

.why-choose-slide-wrapper img {
  transform: translateX(53px);
}

#slider {
  position: relative;
  width: 700px;
  height: 595px;
  overflow: hidden;
}

#slider > * {
  position: absolute;
  top: 0;
  left: -10px;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

#slider > *.active {
  opacity: 1;
}

/* service slider begin here */
.service-box-bg {
  position: absolute;
  top: 0;
  left: 0;
}

.card {
  /* min-width: 28%; */
  min-width: 28%;
  height: 280px;
  background: #fff;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  font-size: 18px;
  padding: 30px;
}

.card:nth-child(1),
.card:nth-child(2),
.card:nth-child(3),
.card:nth-child(4),
.card:nth-child(5),
.card:nth-child(6),
.card:nth-child(7),
.card:nth-child(8) {
  color: #fff;
}

.card:nth-child(1) {
  background: #fff;
}

.card:nth-child(2) {
  background: #08306b;
}

.card:nth-child(3) {
  background: #08519c;
}

.card:nth-child(4) {
  background: #2171b5;
}

.card:nth-child(5) {
  background: #4292c6;
}

.card:nth-child(6) {
  background: #65a7ce;
}

.card:nth-child(7) {
  background: #7eaac2;
}

.card:nth-child(8) {
  background: #89a6c2;
}

.card.large {
  /* min-width: 38%; */
  min-width: 36%;
  height: 360px;
  background: #fff;
  font-size: 22px;
  color: #000;
  /* outline: 4px solid rgba(215,215,215,0.3); */
}

.card:nth-child(1) span,
.card:nth-child(2) span,
.card:nth-child(3) span,
.card:nth-child(4) span,
.card:nth-child(5) span,
.card:nth-child(6) span,
.card:nth-child(7) span,
.card:nth-child(8) span {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card:nth-child(2) span {
  background: #1b498e;
}

.card:nth-child(3) span {
  background: #0c5db1;
}

.card:nth-child(4) span {
  background: #2985d3;
}

.card:nth-child(5) span {
  background: #347aa8;
}

.card:nth-child(6) span {
  background: #5189aa;
}

.card:nth-child(7) span {
  background: #658b9f;
}

.card:nth-child(8) span {
  background: #71889d;
}

.card span img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.card > div {
  gap: 1.5rem;
}

.card.large span {
  background: #f3f3f3;
  width: 60px;
  height: 60px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card.large span img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(0);
}

.card.large > div {
  gap: 2rem;
  padding: 15px 0px;
}

.card.large h3 {
  font-size: 1.5rem;
}

.card.large p {
  font-size: 1.1rem;
}

.card.large a {
  font-size: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.indicator.active {
  background: white;
  transform: scale(1.4);
}

.about-box {
  transition: all 0.45s;
}

.about-box span {
  background: rgba(0, 0, 0, 0.03);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: all 0.45s;
}

.about-box:hover {
  border-color: transparent;
}

.about-box:hover span {
  border-radius: 50%;
  background: #fff;
}

.about-box img {
  /* filter: invert(0%) brightness(0%) saturate(100%); */
  filter: grayscale(100%) invert(200%) contrast(101%) saturate(100%);
  transition: filter 0.3s ease;
}

.about-box:hover img {
  filter: none;
  transition: filter 0.3s ease;
}

/* service slider ends here */

.desktop-clearfix {
  clear: both;
  display: block;
}

.testimonials-serction img {
  width: auto !important;
}

.testimonials-serction .owl-carousel .owl-stage-outer {
  padding: 30px 0px;
}

/* Base dots container */
#testimonialSlider .owl-dots {
  margin-top: 20px;
  text-align: center;
}

/* Dot */
#testimonialSlider .owl-dots .owl-dot span {
  width: 28px;
  height: 6px;
  background: #d1d5db;
  display: block;
  border-radius: 4px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

/* Active dot */
#testimonialSlider .owl-dots .owl-dot.active span {
  background: #1a98d5;
  width: 40px;
}

@media only screen and (min-width: 360px) and (max-width: 767px) {
  .card,
  .card.large {
    min-width: 100%;
    height: 360px;
  }

  #slider {
    width: 380px;
    height: 315px;
  }

  .why-choose-slide-wrapper {
    background: none;
    padding: 0px;
    padding-top: 25px;
  }

  .service-box-bg {
    height: 50%;
  }

  .testimonials-serction .owl-carousel .owl-stage-outer {
    padding: 0px;
  }
}
