@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --blue: #007bff;
  --blue-dark: #004a99;
}

* { box-sizing: border-box; }

body {
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  margin: 0;
}

a { text-decoration: none; color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* --- Top Bar --- */
.top-bar {
  background: linear-gradient(to right, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}

/* --- Navbar --- */
.navbar { box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.navbar .nav-link {
  position: relative;
  padding: 20px 14px;
  color: #333 !important;
  transition: .25s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--blue) !important; }

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

.navbar-brand img { height: 65px; }

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(to right, var(--blue), var(--blue-dark));
  border: none;
  border-radius: 50px;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: #002b5b;
  color: #dbe4ff;
  padding: 50px 0;
}
.footer a { color: #dbe4ff; }
.footer a:hover { color: var(--blue); }

.copyright {
  background: #001f3d;
  color: #a0b8d9;
  text-align: center;
  padding: 16px 0;
}

/* --- Hero Carousel (header-carousel legacy) --- */
#header-carousel .carousel-item {
  height: 65vh;
  min-height: 460px;
}
#header-carousel .carousel-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(70%);
}
#header-carousel .carousel-caption {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  padding: 0 16px;
  text-align: center;
}
#header-carousel .btn {
  border-radius: 50px;
  font-weight: 600;
}
#header-carousel .btn + .btn { margin-left: .5rem; }

@media (max-width: 768px) {
  #header-carousel .carousel-item { height: 60vh; min-height: 420px; }
  #header-carousel h1 { font-size: 1.9rem; }
}

/* Defensive carousel visibility */
.carousel-inner .carousel-item { display: none; }
.carousel-inner .carousel-item.active { display: block; }

/* --- Social Icon Colors --- */
.footer .btn.btn-square i { color: #ffffff !important; }
.footer .btn.btn-square:hover i { color: #007bff !important; }

.footer .btn.btn-square i,
.footer .btn.btn-square svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}
.footer .btn.btn-square:hover i,
.footer .btn.btn-square:hover svg {
  color: #007bff !important;
  fill: #007bff !important;
}

/* --- Top Bar Icons --- */
.top-bar a i,
.top-bar a svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.bi-tiktok {
  font-size: 1.1em;
  vertical-align: middle;
  font-weight: 700;
}

/* Hover effects */
.top-bar a i {
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
.top-bar a { color: #ffffff; }
.top-bar a:hover i {
  color: #003366;
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(0, 51, 102, 0.7);
}

/* Clickable contact hover */
.top-bar a[href^="tel"],
.top-bar a[href^="mailto"] {
  transition: color 0.3s ease;
}
.top-bar a[href^="tel"]:hover,
.top-bar a[href^="mailto"]:hover {
  color: #0d6efd;
}

/* --- Partners strip --- */
section.bg-light img {
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s ease, transform 0.2s ease;
}
section.bg-light img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* ------------------------------------------------------ */
/* FINAL MOBILE FIX (v8): bottom-anchored captions        */
/* ------------------------------------------------------ */
#dwdHero .carousel-inner { overflow: visible !important; }

@media (max-width: 576px) {
  /* consistent slide height */
  #dwdHero .carousel-item { min-height: 84vh !important; }
  #dwdHero .carousel-item img {
    height: 84vh !important;
    object-fit: cover;
  }

  /* base caption: anchor from bottom for consistent visual alignment */
  #dwdHero .carousel-caption {
    top: auto !important;
    bottom: 12% !important; /* baseline for all slides */
    transform: none !important;
    z-index: 2;
    padding: 0 16px;
  }

  /* individual fine-tuning for each slide */
  #dwdHero .carousel-item:nth-child(1) .carousel-caption {
    bottom: 14% !important; /* Slide 1 slightly higher */
  }
  #dwdHero .carousel-item:nth-child(2) .carousel-caption {
    bottom: 10% !important; /* Slide 2 slightly lower */
  }

  /* reposition indicators so they don’t overlap */
  #dwdHero .carousel-indicators {
    bottom: 3% !important;
  }

  /* text spacing for readability */
  #dwdHero .carousel-caption h1,
  #dwdHero .carousel-caption h2,
  #dwdHero .carousel-caption p {
    line-height: 1.35;
  }
}
