/* =========================================
   DRUPAL 11 RESPONSIVE BANNER / CAROUSEL CSS
   Clean + Fixed + Mobile Friendly
========================================= */


/* ===============================
   CAROUSEL IMAGE RESPONSIVE HEIGHT
================================= */

.carousel-item img {
  width: 100%;
  height: 600px; /* Default for large desktop */
  object-fit: cover;
  display: block;
}


/* Large Laptop Screens (1440px and below) */
@media (max-width: 1440px) {
  .carousel-item img {
    height: 475px;
  }
}


/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .carousel-item img {
    height: 335px;
  }
}


/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .carousel-item img {
    height: 245px;
  }
}


/* Mobile Large (425px and below) */
@media (max-width: 425px) {
  .carousel-item img {
    height: 135px;
  }
}


/* Mobile Small (375px and below) */
@media (max-width: 375px) {
  .carousel-item img {
    height: 105px;
  }
}


/* ===============================
   CAROUSEL CAPTION BOX STYLE
================================= */

.carousel-caption {
  background: rgba(0, 0, 0, 0.55);
  padding: 20px;
  border-radius: 12px;
}


/* ===============================
   RESPONSIVE BANNER MODULE WRAPPER
================================= */

.banner-module {
  width: 100%;
  position: relative;
  overflow: hidden;
}


/* Banner Image */
.banner-module img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/* ===============================
   DARK OVERLAY FOR READABILITY
================================= */

.banner-module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}


/* ===============================
   BANNER CONTENT POSITION
================================= */

.banner-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: #ffffff;
  max-width: 600px;
  z-index: 2;
}


/* ===============================
   BANNER HEADING STYLE
================================= */

.banner-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}


/* ===============================
   BANNER TEXT STYLE
================================= */

.banner-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}


/* ===============================
   BANNER BUTTON STYLE
================================= */

.banner-content a.btn-banner {
  display: inline-block;
  padding: 12px 25px;
  background: #0d6efd;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s ease-in-out;
}

.banner-content a.btn-banner:hover {
  background: #084298;
}


/* =====================================
   RESPONSIVE TEXT BREAKPOINTS
===================================== */


/* Tablet Screens */
@media (max-width: 991px) {
  .banner-content {
    left: 5%;
    max-width: 450px;
  }

  .banner-content h1 {
    font-size: 36px;
  }

  .banner-content p {
    font-size: 16px;
  }
}


/* Mobile Screens */
@media (max-width: 767px) {
  .banner-content {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
  }

  .banner-content h1 {
    font-size: 26px;
  }

  .banner-content p {
    font-size: 14px;
  }

  .banner-content a.btn-banner {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/* Small Mobile Screens */
@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 22px;
  }

  .banner-content p {
    font-size: 13px;
  }
}
