/* Dobe-like homepage styles (visual clone) */
.hero-clone {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 740px;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-item.placeholder {
  background: linear-gradient(180deg, #dcdcdc, #efefef);
}

.carousel-item .overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 1;
}

/* Ensure controls are above the overlay */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}

/* Use centered inline banner-text for flexible vertical/horizontal centering */
.banner-text {
  display: inline-block;
  text-align: center;
  max-width: 760px;
  color: #fff;
}

/* Hide default bootstrap caption since we use custom layout */
.carousel-caption {
  display: none;
}

.hero-clone .hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.05;
}

.hero-clone .hero-sub {
  font-size: 22px;
  margin-bottom: 20px;
}

.module-card {
  border-radius: 8px;
}



/* Controls tint and size */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(1.2);
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 6%;
}

/* Button sizing (carousel center button) */
.banner-text .btn {
  background: #fff;
  color: #111;
  padding: 12px 28px;
  font-size: 18px;
  border-radius: 28px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border: none;
}

/* Small screen adjustments for banner button */
@media (max-width:576px) {
  .banner-text .btn {
    padding: 10px 18px;
    font-size: 15px;
  }
}

/* Banner form and text */
.banner-with-form .banner-text .eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #fff;
  margin-bottom: 12px;
}

.banner-with-form .banner-text .hero-title {
  color: #fff;
  font-size: 48px;
  font-weight: 800;
}

.banner-with-form .banner-text .hero-sub {
  color: #fff;
  font-size: 20px;
  opacity: 0.95;
}

.banner-form {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
}

.banner-form .form-control {
  border-radius: 6px;
}

/* banner-search-strip */
.banner-search-strip {
  background: #f6f6f6;
}

.banner-search-strip .form-control {
  border-radius: 8px;
}

/* News grid tweaks */
.news-strip h2 {
  font-weight: 700;
}

/* Wide feature section */
.wide-feature .feature-box img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.wide-feature .side-block {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wide-feature .side-block .dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #bdbdbd;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .carousel-inner {
    height: 480px;
  }
  
  .carousel-item {
    height: 480px;
  }

  .banner-form {
    max-width: none;
  }

  .carousel-caption {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    padding-top: 18px;
    padding-left: 20px;
  }

  .hero-clone .hero-title {
    font-size: 32px;
  }

  .hero-clone .hero-sub {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .carousel-inner {
    height: 360px;
  }
  
  .carousel-item {
    height: 360px;
  }

  .banner-form {
    padding: 12px;
  }

  .hero-clone .hero-title {
    font-size: 20px;
  }

  .hero-clone .hero-sub {
    font-size: 13px;
  }
}

/* Placeholder styles */
.img-placeholder {
  background: linear-gradient(90deg, #eaeaea, #f3f3f3);
  border: 1px solid #e0e0e0;
  display: block;
}

.img-placeholder.center {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 14px;
}

/* Footer overrides for dark style */
.site-footer {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer h5 {
  color: #fff;
}

.site-footer p.small,
.site-footer .small {
  color: #cfcfcf;
}

.site-footer a {
  text-decoration: none;
  color: #dcdcdc;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

@media (max-width:576px) {
  .site-footer .d-flex.justify-content-between {
    flex-direction: column;
    gap: 6px;
  }
}