/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #2d3748;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 4rem;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1 {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 32rem;
  background-color: #1a3a5f;
  position: relative;
  overflow: hidden;
}

.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 32rem;
  object-fit: cover;
  opacity: 0.9;
}

/* Add overlay for better text readability */
.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(26, 58, 95, 0.3), rgba(26, 58, 95, 0.6));
  z-index: 1;
}


/* 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: 600;
  color: #1a3a5f;
  margin-top: 1rem;
}

.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
  color: #4a5568;
}

.marketing .col-lg-4 img {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 140px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .marketing .col-lg-4 {
    margin-bottom: 2.5rem;
  }

  .marketing .col-lg-4 img {
    max-height: 120px;
  }
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02rem;
  color: #1a3a5f;
}

.featurette .lead {
  color: #4a5568;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Featurette images - ensure proper scaling */
.featurette-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(26, 58, 95, 0.1), 0 2px 4px rgba(26, 58, 95, 0.06);
}

/* Links containing featurette images */
.featurette .col-md-6 > a {
  display: block;
  width: 100%;
}

.featurette .col-md-6 > a img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Ensure text columns maintain normal flow - don't apply flexbox to all columns */
.featurette .col-md-6 {
  padding: 0 1rem;
}

/* Only center images, not text content */
.featurette .col-md-6 > img.featurette-image,
.featurette .col-md-6 > a {
  margin: 0 auto;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }

  /* Desktop: allow larger images but still maintain aspect ratio */
  .featurette-image {
    max-width: 500px;
    width: 100%;
  }
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
  .featurette .col-md-6 {
    margin-bottom: 2rem;
  }

  .featurette-image {
    width: 100%;
    max-width: 100%;
  }
}

.img-rounded {
  border-radius: 6px;
}