/********** Template CSS **********/
:root {
  /* --primary: #2878EB; */
  --primary: #20238a;
  --secondary: #f14d5d;
  --light: #ecf4ff;
  --dark: #120f2d;
}

[class^="flaticon-"]:before,
[class*=" flaticon-"]:before,
[class^="flaticon-"]:after,
[class*=" flaticon-"]:after {
  font-size: inherit;
  margin-left: 0;
}

h1,
h2,
.font-weight-bold {
  font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
  font-weight: 500 !important;
}

.btn {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  transition: 0.5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
  font-family: "Jost", sans-serif;
  position: relative;
  margin-left: 30px;
  padding: 30px 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 0;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (min-width: 992px) {
  .navbar-light .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: 0;
    left: 50%;
    background: var(--primary);
    transition: 0.5s;
  }

  .navbar-light .navbar-nav .nav-link:hover::before,
  .navbar-light .navbar-nav .nav-link.active::before {
    width: 100%;
    left: 0;
  }

  .navbar-light .navbar-nav .nav-link.nav-contact::before {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }
}

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 15, 45, 0.5);
  z-index: 1;
}

@media (max-width: 576px) {
  .carousel-caption h5 {
    font-size: 14px;
    font-weight: 500 !important;
  }

  .carousel-caption h1 {
    font-size: 30px;
    font-weight: 600 !important;
  }
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

.carousel-indicators {
  align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
  width: 5px;
  height: 25px;
}

.carousel-indicators .active {
  height: 45px;
}

.hero-header {
  background: linear-gradient(rgba(18, 15, 45, 0.5), rgba(18, 15, 45, 0.5)),
    url(../img/h-1.jpg) top right no-repeat;
  background-size: cover;
}

.service-item div {
  z-index: 1;
}

.service-item div::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 2px 2px 0 0;
  transition: 0.5s;
  z-index: -1;
}

.service-item div:hover::after {
  width: 100%;
  background: var(--primary);
}

.service-item * {
  transition: 0.5s;
}

.service-item:hover * {
  color: var(--light) !important;
}

.bg-offer {
  background: linear-gradient(rgba(18, 15, 45, 0.5), rgba(18, 15, 45, 0.5)),
    url(../img/carousel-2.jpg) top right no-repeat;
  background-size: cover;
}

.testimonial-carousel .owl-dots {
  height: 45px;
  margin-top: 5px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 5px;
  height: 25px;
  background: #dddddd;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  height: 45px;
  background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .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;
}

.blog-date {
  position: absolute;
  width: 90px;
  height: 65px;
  top: 75px;
  left: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--secondary);
}

.blog-date::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  top: -25px;
  left: 0;
  border: 13px solid;
  border-color: transparent #d34351 #d34351 transparent;
  z-index: -1;
}

/* services */

/* Card shell */
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  /* elevated, softer shadow for realism */
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  border-color: rgba(32, 35, 138, 0.15);
}

/* Media pane (left or right) */
.service-media {
  position: relative;
  min-height: 220px;
  flex: 0 0 380px;
  max-width: 100%;
  overflow: hidden;
  background: #eef2ff;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease, filter 0.5s ease;
  will-change: transform;
}
.service-card:hover .service-media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}

/* Gradient overlay on hover */
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  transition: opacity 0.35s ease;
}
.service-card:hover .service-media::after {
  opacity: 1;
}

/* Floating badge */
.service-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-block;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #3b3fd6);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.service-tag.alt {
  background: linear-gradient(135deg, var(--secondary), #ff6b7b);
}

/* Body content */
.service-body {
  padding: 1.25rem 1.25rem;
  flex: 1 1 auto;
}
.service-body h3 {
  position: relative;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}
.service-body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.8;
}
.service-body p {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .service-card {
    display: block;
  }
  .service-media {
    flex: none;
    min-height: 200px;
  }
}

/* Focus/keyboard accessibility */
.service-card:focus-within {
  outline: 2px solid var(--light);
  outline-offset: 2px;
}

/* ******* Why Choose Us ******* */
#why .feature-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

#why .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(32, 35, 138, 0.18);
}

#why .feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

#why .feature-icon i {
  font-size: 1.4rem;
}

/* Optional subtle divider between title and text */
#why .feature-card h5 {
  position: relative;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}
#why .feature-card h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.7;
  border-radius: 2px;
}

/* Utility tints if Bootstrap utilities not available */
.bg-primary-subtle {
  background: rgba(32, 35, 138, 0.08);
}
.bg-secondary-subtle {
  background: rgba(241, 77, 93, 0.09);
}
.text-primary {
  color: var(--primary) !important;
}
.text-secondary {
  color: var(--secondary) !important;
}

/* ****** Footer ********* */

/* Shell */
.footer-neo {
  background: linear-gradient(180deg, #0f1324, #0b0d18);
  position: relative;
}
.footer-neo .footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Titles */
.footer-neo .footer-title {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Links */
.footer-neo .footer-links li {
  margin: 0.25rem 0;
}
.footer-neo .footer-links a {
  color: #cfd6e5;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  border-radius: 0.35rem;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.footer-neo .footer-links a i {
  color: var(--secondary);
  font-size: 1.1rem;
}
.footer-neo .footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

/* Contact list */
.footer-neo .footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  color: #cfd6e5;
}
.footer-neo .footer-contact i {
  color: var(--secondary);
  font-size: 1.05rem;
  margin-top: 0.15rem;
}
.footer-neo .footer-contact a {
  color: #cfd6e5;
  text-decoration: none;
}
.footer-neo .footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Social buttons */
.footer-neo .btn-social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.footer-neo .btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  filter: saturate(1.05) contrast(1.03);
}

/* Bottom bar */
.footer-neo .footer-bar {
  background: color-mix(in oklab, var(--primary) 15%, black 85%);
  position: relative;
}
.footer-neo .footer-bar .link-light {
  color: #e8eeff;
}
.footer-neo .footer-bar .link-light:hover {
  color: #fff;
}

/* Back to top */
.footer-neo .btn-to-top {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.footer-neo .btn-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
