:root {
  --green: #0f411a;
}

/* =========================================================
   CARD TEXT UTILITIES
========================================================= */
@media (min-width: 992px) {

  /* Equal title height */
  .card-title-fixed {
    line-height: 1.4;
    height: calc(1.4em * 2);
    /* force space for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-content-fixed {
    line-height: 1.6;
    height: calc(1.6em * 3);
    /* 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* =========================================================
   HERO / BANNER SECTION
========================================================= */

/* Base hero styles */
.hero-banner {
  min-height: 250px;
  /* Shorter for mobile */
}

.pagebreaker {
  min-height: 150px;
  /* Shorter for mobile */
}

/* Tablet/Desktop hero height */
@media (min-width: 768px) {
  .hero-banner {
    min-height: 350px;
    /* Standard height for tablets/desktops */
  }
  
  .pagebreaker {
  min-height: 180px;
  /* Shorter for mobile */
}
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.2));
}

/* Breadcrumb styling inside hero banner */
.hero-banner .breadcrumb {
  --bs-breadcrumb-divider-color: #ffffff;
  /* Makes the '/' white */
  --bs-breadcrumb-item-active-color: #ffffff;
  /* Makes the active text white */
}

/* Hover effect for breadcrumb links */
.hero-banner .breadcrumb-item a:hover {
  text-decoration: underline !important;
  opacity: 0.8;
}

/* =========================================================
   OBJECT FIT FALLBACK
========================================================= */

/* Fallback for Bootstrap versions that don't support object-fit-top utility */
.object-fit-top {
  object-position: top center !important;
}

/* =========================================================
   BORDER UTILITIES
========================================================= */

.border-green {
  border-color: var(--green) !important;
}

/* =========================================================
   CAROUSEL CONTROL UTILITIES
========================================================= */

/* Custom utility extensions for carousel controls */
.cc-wrapper {
  width: 45px;
  height: 45px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Smooth zoom effect on hover */
.cc-wrapper:hover {
  transform: scale(1.1);
}

/* Custom sizing for the inner icon */
.cc-icon {
  width: 20px;
  height: 20px;
}

/* =========================================================
   CARD HOVER EFFECTS
========================================================= */

/* Custom class for the card hover effect */
.card-hover-pink {
  transition: background-color 0.3s ease;
}

/* Target the card-body background when the parent card is hovered */
.card-hover-pink:hover .card-body {
  background-color: #ffdeeb !important;
  /* A clean, soft pastel pink */
}

/* =========================================================
   OVERLAY UTILITIES
========================================================= */

/* Custom dark overlay utility */
.bg-overlay-80 {
  background-color: rgba(0, 0, 0, 0.853) !important;
}



  /* =========================
   HERO BASE STYLES
========================= */

  #carouselExampleAutoplaying .carousel-item {
    position: relative;
  }

  /* Full screen hero image */
  #carouselExampleAutoplaying .carousel-item img {
    height: 1vh;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Dark overlay (premium feel) */
  #carouselExampleAutoplaying .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
  }

  /* =========================
   CAPTION CENTERING
========================= */

  #carouselExampleAutoplaying .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    max-width: 1100px;
    text-align: center;
  }

  /* =========================
   TYPOGRAPHY
========================= */

  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
  }

  .hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
  }

  /* =========================
   CTA BUTTONS
========================= */

  .hero-cta {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .hero-btn-primary {
    background: #fff;
    color: #000;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
  }

  .hero-btn-primary:hover {
    opacity: 0.9;
  }

  .hero-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
  }

  .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* =========================
   MOBILE RESPONSIVE
========================= */

  /* Default = mobile */
  #carouselExampleAutoplaying .carousel-item img {
    height: 250px;
    object-fit: cover;
  }

  /* Tablet */
  @media (min-width: 768px) {
    #carouselExampleAutoplaying .carousel-item img {
      height: 400px;
    }
  }

  /* Desktop */
  @media (min-width: 1200px) {
    #carouselExampleAutoplaying .carousel-item img {
      height: 85vh;
    }
  }