/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

/* Position and style the carousel caption */
.carousel-caption {
  bottom: 0.1rem;
  z-index: 10;
  display: inline-block; /* Auto-width based on text content */
  margin-bottom: 0;
  padding: 5px 15px; /* Reduced padding for tighter fit */
  padding-bottom: 2px; /* Minimal bottom padding */
  padding-top: 2px; /* Minimal top padding */
  margin-top: 0;
  background-color: rgba(1, 68, 123, 0.7); /* Semi-transparent background */
  border-radius: 14px; /* Slightly rounded corners */
  line-height: 1.1; /* Tighter line spacing */
  text-align: center; /* Center text */
}

/* Hide the carousel indicators (slide count / dots) */
.carousel-indicators {
  display: none !important;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  background-color: #777;
}

.carousel-item > img {
  width: 100%;
  height: auto;
  display: block; /* Remove extra spacing below image */
}

/* For desktop - set fixed height */
@media (min-width: 768px) {
  .carousel-item > img {
    width: 100%;
    height: 550px; /* Fixed height for desktop */
    object-fit: cover; /* Ensures image covers the area without stretching */
  }
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing h2 {
  font-weight: 400;
}
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 2rem 0;
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.05rem;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

/* Mobile Phones (portrait) - Small devices */
@media (max-width: 575.98px) {
  .carousel-caption {
    font-size: 14px !important;
    padding: 3px 10px; /* Reduced padding */
    padding-bottom: 2px;
    padding-top: 2px;
    line-height: 1.1; /* Tighter line spacing */
    display: block; /* Full width on mobile */
    width: 100%; /* Full width */
    max-width: 100%;
    border-radius: 0; /* Remove rounded corners for full width look */
    left: 0; /* Reset positioning */
    transform: none; /* Reset transform */
  }
  
  .carousel-item > img {
    width: 100%;
    height: auto; /* Auto height on mobile */
    min-height: 200px; /* Minimum height */
    object-fit: cover;
  }
}

/* Mobile Phones (landscape) - Small devices */
@media (min-width: 576px) and (max-width: 767.98px) {
  .carousel-caption {
    font-size: 16px !important; /* Slightly smaller */
    padding: 4px 12px;
    padding-bottom: 2px;
    padding-top: 2px;
    line-height: 1.1; /* Tighter line spacing */
    display: block; /* Full width on mobile */
    width: 100%; /* Full width */
    max-width: 100%;
    border-radius: 0; /* Remove rounded corners for full width look */
    left: 0; /* Reset positioning */
    transform: none; /* Reset transform */
  }
  
  .carousel-item > img {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
  }
}

/* Tablets - Medium devices */
@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel-caption {
    font-size: 20px !important; /* Slightly smaller */
    padding: 5px 15px;
    padding-bottom: 2px;
    padding-top: 2px;
    line-height: 1.1; /* Tighter line spacing */
    left: 50%; /* Center the caption */
    transform: translateX(-50%);
    right: auto;
  }
  
  .carousel-item > img {
    width: 100%;
    height: 450px; /* Slightly smaller for tablets */
    object-fit: cover;
  }
}

/* Laptops - Large devices */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .carousel-caption {
    font-size: 22px !important;
    padding: 6px 16px;
    padding-bottom: 3px;
    padding-top: 3px;
    line-height: 1.1; /* Tighter line spacing */
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  
  .carousel-item > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
  }
}

/* Desktop Computers - Extra large devices */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .carousel-caption {
    font-size: 24px !important;
    padding: 7px 18px;
    padding-bottom: 3px;
    padding-top: 3px;
    line-height: 1.1; /* Tighter line spacing */
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  
  .carousel-item > img {
    width: 100%;
    height: 550px;
    object-fit: cover;
  }
}

/* Large Desktop Computers - Extra extra large devices */
@media (min-width: 1400px) {
  .carousel-caption {
    font-size: 30px !important; /* Slightly smaller */
    padding: 8px 20px;
    padding-bottom: 4px;
    padding-top: 4px;
    line-height: 1.1; /* Tighter line spacing */
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  
  .carousel-item > img {
    width: 100%;
    height: 650px;
    object-fit: cover;
  }
}

/* Featurette responsive */
@media (min-width: 40em) {
  .featurette-heading {
    font-size: 10px;
  }
}

@media (min-width: 60em) {
  .featurette-heading {
    margin-top: 5rem;
  }
}
