/* ============================================
   Safer Homes Limited — Brand Override Styles
   ============================================ */

/* --- Brand Color Variables --- */
:root {
  /* Palette from Logo: #282357, #757686, #056C39, #FEFDFD, #148D49 */
  --shl-primary: #148D49;
  /* Bright Green - Buttons, Highlights */
  --shl-primary-dark: #056C39;
  /* Dark Green - Hover states */
  --shl-secondary: #282357;
  /* Deep Purple/Navy - Footer, Headings, Bg */
  --shl-text: #757686;
  /* Grey - Body text */
  --shl-bg: #FEFDFD;
  /* Off White - Backgrounds */
  --shl-white: #ffffff;
  --shl-radius: 8px;
  /* Rounded corners radius */
}

/* --- Rounded Corners for Buttons & Cards --- */
.btn,
.card,
.features_card,
.services_list-item .wrapper,
.team_quote,
.spots_info,
.contact_form,
.contact_info,
.gallery_item,
.faq_accordion-item,
input.field,
textarea.field {
  border-radius: var(--shl-radius) !important;
}

/* Apply overflow:hidden only where needed (to clip images/bg) */
.btn,
.card,
.gallery_item,
input.field,
textarea.field {
  overflow: hidden !important;
}

/* Ensure text containers do NOT clip content */
.contact_info,
.spots_info,
.team_quote,
.services_list-item .wrapper,
.faq_accordion-item {
  overflow: visible !important;
}

/* Fix long email/links expanding containers or getting cut */
.contact-info .content .link,
a[href^="mailto:"] {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

/* Ensure images inside cards also get radius */
.card picture img,
.projects_list-item .media,
.gallery_item picture img {
  border-radius: var(--shl-radius) !important;
}

/* --- Sticky Header (Fixed) --- */
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: var(--shl-secondary) !important;
  /* Deep Purple background */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  animation: slideDown 0.3s ease-in-out;
}

/* Add padding to main to prevent content hiding behind fixed header */
main {
  padding-top: 80px;
}

/* Header Text Colors */
.header .nav-item .nav-item_text,
.header .brand_name {
  color: var(--shl-white) !important;
}

/* Header Toggle Button (Mobile) */
.header_trigger .line {
  background-color: var(--shl-white) !important;
}

/* Header Link Hover */
.header_nav-list_item .nav-item:hover .nav-item_text,
.header_nav-list_item .nav-item.active .nav-item_text {
  color: var(--shl-primary) !important;
  /* Green on hover */
}

/* --- Nav Button (CTA) --- */
.btn--nav {
  padding: 10px 20px;
  margin-left: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--shl-primary) !important;
  color: var(--shl-white) !important;
  border-radius: var(--shl-radius) !important;
  white-space: nowrap;
}

@media screen and (max-width: 991px) {
  .btn--nav {
    display: none !important;
  }
}

/* --- Primary Background Override --- */
.primary-bg {
  background-color: var(--shl-secondary) !important;
}

/* --- Highlight / Accent Text --- */
.highlight {
  color: var(--shl-primary) !important;
}

/* --- Buttons --- */
.btn {
  background-color: var(--shl-primary) !important;
  border-color: var(--shl-primary) !important;
  color: var(--shl-white) !important;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--shl-primary-dark) !important;
  border-color: var(--shl-primary-dark) !important;
  transform: translateY(-2px);
}

/* --- Text / Body Color Override --- */
p,
.text,
.description {
  color: var(--shl-text);
}

/* --- Links --- */
.link-arrow,
.link-arrow--alt {
  color: var(--shl-primary) !important;
}

.link-arrow:hover,
.link-arrow--alt:hover {
  color: var(--shl-primary-dark) !important;
}

/* --- Accent Links (footer, nav) --- */
a.link:hover,
.footer_main-block_nav .link:hover {
  color: var(--shl-primary) !important;
}

/* --- Subtitle accent bar --- */
.subtitle {
  color: var(--shl-primary) !important;
}

.subtitle::before {
  background-color: var(--shl-primary) !important;
}

/* --- Checklist icons --- */
.checklist_item .icon-check {
  color: var(--shl-primary) !important;
}

/* --- Numbers / Stats --- */
.number {
  color: var(--shl-primary) !important;
}

/* --- Social Icons --- */
.socials_item-link:hover {
  color: var(--shl-primary) !important;
  border-color: var(--shl-primary) !important;
}

/* --- Quote Icon Color --- */
.team_quote .quote-icon path {
  fill: var(--shl-primary) !important;
}

/* --- Feature cards accent --- */
.features_card-icon {
  color: var(--shl-primary) !important;
}

/* --- Header Logo Styling --- */
.brand_logo {
  height: 120px !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 4px;
}

/* --- Image Protection: Never Stretch --- */
img,
picture img {
  object-fit: cover;
}

/* Hero building image - preserve aspect ratio */
.hero_media img,
.hero_media picture img {
  object-fit: contain;
}

/* --- Section Backgrounds --- */
.faq,
.contact,
.services,
.spots,
.blog {
  background-color: var(--shl-bg) !important;
}

/* --- FAQ accordion accent --- */
.faq_accordion-item .trigger:not(.collapsed) .question,
.faq_accordion-item .trigger[aria-expanded="true"] .question {
  color: var(--shl-primary) !important;
}

/* --- Contact form button --- */
.contact-form_btn {
  background-color: var(--shl-primary) !important;
}

/* --- Footer newsletter submit --- */
.btn--submit {
  background-color: var(--shl-primary) !important;
  border-color: var(--shl-primary) !important;
}

/* --- Divider lines --- */
.divider--line::after {
  background-color: var(--shl-primary) !important;
}

/* --- Gallery Layout (Grid) --- */
.gallery.presentation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  padding: 16px;
}

.gallery_item {
  position: relative;
  height: 350px;
  /* Fixed height for consistency */
  border-radius: var(--shl-radius);
  overflow: hidden;
  margin: 0 !important;
  /* Reset any template margins */
  width: 100% !important;
}

.gallery_item .media {
  display: block;
  height: 100%;
}

.gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.5s ease;
}

.gallery_item:hover img {
  transform: scale(1.05);
}

/* --- Gallery Overlay (Always Visible) --- */
.gallery_item .overlay {
  opacity: 1 !important;
  transform: translateY(0) !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(40, 35, 87, 0.9) 100%) !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px !important;
  bottom: 0 !important;
  top: auto !important;
  height: auto !important;
  min-height: 50%;
  width: 100%;
}

.gallery_item .overlay_caption,
.gallery_item .overlay_label,
.gallery_item .overlay_header {
  color: var(--shl-white) !important;
  text-align: left;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery_item .overlay_caption {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

/* --- Scroll to top button --- */
#scrollTrigger {
  background-color: var(--shl-primary) !important;
}

#scrollTrigger:hover {
  background-color: var(--shl-primary-dark) !important;
}

/* --- Hero card underlay --- */
.hero .card .card_underlay {
  background-color: var(--shl-primary) !important;
}

/* --- Services list number --- */
.services_list-item .number {
  color: var(--shl-primary) !important;
}

/* --- Project section accents --- */
.projects_list-item .main_title .text {
  color: var(--shl-white);
}

/* --- Nav active state --- */
.header_nav-list_item .nav-item.active .nav-item_text,
.header_nav-list_item .nav-item:hover .nav-item_text {
  color: var(--shl-primary) !important;
}

/* --- Gallery / project images --- */
.gallery_item img,
.projects_list-item .media img,
.blog_feed-item .media img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* --- Team video cover --- */
.video_cover img {
  object-fit: cover !important;
}

/* --- Footer brand area --- */
.footer .brand_name {
  font-size: 1.1rem;
}

/* --- Mobile Menu Fixes --- */
@media screen and (max-width: 991px) {

  /* Default Mobile State: Hidden but allow JS to toggle */
  .header_nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    /* Space from trigger */
  }

  /* Bootstrap 'show' or 'collapsing' states should be visible */
  .header_nav.show,
  .header_nav.collapsing {
    display: block !important;
  }

  /* Styling the Mobile Dropdown */
  .header_nav.collapse.show {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--shl-secondary);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 85vh;
    /* Prevent overflow */
    overflow-y: auto;
  }

  /* Ensure Trigger is Visible */
  .header_trigger {
    display: flex !important;
    margin-left: auto;
  }

  /* Mobile Nav Links */
  .header_nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .header_nav-list_item {
    margin: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
  }

  /* Reset nav button for mobile */
  .btn--nav {
    display: block !important;
    width: 100%;
    margin: 20px 0 0 0;
    text-align: center;
  }
}

@media screen and (min-width: 992px) {

  /* Force Show Nav on Desktop */
  .header_nav {
    display: flex !important;
    align-items: center;
  }

  /* Hide Trigger on Desktop */
  .header_trigger {
    display: none !important;
  }
}


/* --- Mobile Menu Positioning Override (Fix) --- */
@media screen and (max-width: 991px) {
  .header_nav.collapse.show {
    position: fixed !important;
    top: 80px !important;
    bottom: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
  }
}
/* --- Team Member Images (Square) --- */
.team_list-item .media img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
}

/* --- Contact Page Enhancements --- */
.contact.section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.contact .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

@media screen and (max-width: 991px) {
  .contact .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact_form {
  padding: 40px !important;
  background: var(--shl-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact_info {
  padding: 40px !important;
  background: var(--shl-secondary) !important;
  color: var(--shl-white) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact_info-header {
  color: var(--shl-white) !important;
  font-size: 1.75rem;
  margin-bottom: 30px !important;
  position: relative;
  padding-bottom: 15px;
}

.contact_info-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--shl-primary);
}

.contact-info_group {
  margin-bottom: 25px !important;
  display: flex !important;
  align-items: flex-start;
  gap: 15px;
}

.contact-info_group .icon-wrapper {
  color: var(--shl-primary);
  font-size: 1.25rem;
  margin-top: 4px;
}

.contact-info_group .name {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--shl-primary) !important;
  margin-bottom: 5px;
}

.contact-info_group .content,
.contact-info_group .content a {
  color: var(--shl-white) !important;
  font-size: 1rem;
  text-decoration: none;
}

.contact_info .socials {
  margin-top: 40px !important;
  display: flex;
  gap: 15px;
}

.contact_info .socials_item-link {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  color: var(--shl-white) !important;
  transition: all 0.3s ease;
}

.contact_info .socials_item-link:hover {
  background: var(--shl-primary);
  border-color: var(--shl-primary);
  transform: translateY(-3px);
}

/* Form refinement */
.contact-form_field {
  padding: 15px 20px !important;
  background: #f8f9fa !important;
  border: 1px solid #eee !important;
  margin-bottom: 20px !important;
  width: 100%;
  border-radius: 4px;
  transition: all 0.3s ease;
}

textarea.contact-form_field {
  min-height: 180px !important;
  resize: vertical;
}

.contact-form_field:focus {
  border-color: var(--shl-primary) !important;
  background: var(--shl-white) !important;
}

.contact-form_btn {
  width: auto !important;
  padding: 15px 40px !important;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Custom Feedback Modal --- */
.shl-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 35, 87, 0.9); /* shl-primary with opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.shl-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.shl-modal {
  background: var(--shl-white);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.shl-modal-overlay.active .shl-modal {
  transform: translateY(0);
}

.shl-modal_icon {
  width: 70px;
  height: 70px;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 25px;
}

.shl-modal_icon.error {
  background: #fef2f2;
  color: #dc2626;
}

.shl-modal_title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--shl-secondary);
  margin-bottom: 10px;
}

.shl-modal_text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.shl-modal_btn {
  background: var(--shl-primary);
  color: var(--shl-white);
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shl-modal_btn:hover {
  background: var(--shl-secondary);
  transform: translateY(-2px);
}

/* ============================================
   Mobile Responsiveness (Below 991px)
   ============================================ */

@media screen and (max-width: 991px) {
  /* Header Adjustments */
  .brand_logo {
    height: 70px !important;
  }
  
  .brand_name {
    font-size: 0.9rem !important;
  }

  /* Hero Section Stacking */
  .hero {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    overflow: hidden;
  }

  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  /* Fix Invisible Content: The original template likely hides this or positions it weirdly on mobile */
  .hero_header {
    order: 1 !important;
    width: 100% !important;
    margin-bottom: 30px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero_header .title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero_header .text {
    font-size: 1rem !important;
    margin: 15px 0 !important;
  }

  .hero_main {
    order: 2 !important;
    width: 100% !important;
    margin-top: 20px !important;
  }

  /* Numbers / Stats */
  .hero .numbers {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
  }

  .hero .numbers .number {
    font-size: 2rem !important;
  }

  /* Card Adjustment */
  .hero .card {
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* Hero Media (Images) */
  .hero_media {
    order: 3 !important;
    width: 100% !important;
    margin-top: 40px !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
  }

  .hero_media picture, 
  .hero_media img {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--shl-radius) !important;
  }

  /* Deco elements hide on mobile for cleanliness */
  .hero_deco {
    display: none !important;
  }
}

/* Small Mobile (Below 480px) */
@media screen and (max-width: 480px) {
  .hero_header .title {
    font-size: 1.75rem !important;
  }
  
  .hero .numbers {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .brand_name {
    display: none; /* Hide brand name text on very small screens to save space */
  }
}

/* --- Hero Carousel Custom Styling --- */
.hero-carousel {
  padding-top: 0 !important;
  margin-top: -80px; /* Offset the header padding to make it full screen */
}

.hero-carousel .carousel-item {
  height: 85vh;
  min-height: 500px;
  position: relative;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.hero-carousel .carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(40, 35, 87, 0.7) 0%, rgba(40, 35, 87, 0.3) 100%);
}

.hero-carousel .carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  text-align: center;
  z-index: 10;
  max-width: 800px;
  left: 50%;
  right: auto;
  margin-left: -400px; /* Center horizontally */
}

@media screen and (max-width: 991px) {
  .hero-carousel .carousel-caption {
    left: 10%;
    right: 10%;
    margin-left: 0;
    max-width: 100%;
  }
}

.hero-carousel .carousel-caption .title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--shl-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-caption .text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  .hero-carousel .carousel-item {
    height: 70vh;
  }
  .hero-carousel .carousel-caption .title {
    font-size: 2.25rem;
  }
  .hero-carousel .carousel-caption .text {
    font-size: 1rem;
  }
}

/* --- Mission, Vision & Core Values Styling --- */
.mission-vision {
  background-color: var(--shl-bg);
  padding-bottom: 80px !important;
}

.mission-card {
  height: 100%;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 30px;
  background: var(--shl-white) !important;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mission-card .icon-box {
  width: 60px;
  height: 60px;
  background-color: rgba(20, 141, 73, 0.1); /* light primary */
  color: var(--shl-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
}

.mission-card .card-title {
  color: var(--shl-secondary);
  font-weight: 700;
  margin-bottom: 15px;
}

.mission-card .card-text {
  color: var(--shl-text);
  line-height: 1.6;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: var(--shl-text);
  line-height: 1.4;
}

.values-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--shl-primary);
  font-size: 14px;
}

/* --- Base Carousel Styles (Missing from libs) --- */
.carousel {
  position: relative;
}

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

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  margin-bottom: 2rem;
  margin-left: 15%;
  list-style: none;
}

.carousel-indicators [data-coreui-target],
.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: var(--shl-white);
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.carousel-indicators .active {
  opacity: 1;
}

/* ==========================================================================
   Hero Carousel - Redone Afresh
   ========================================================================== */

.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 85vh; /* Near full screen height */
  min-height: 500px;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .carousel-item {
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.2s ease-in-out;
}

/* Slide Overlay for Readability */
.hero-carousel .carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(20, 20, 50, 0.45) 0%, rgba(20, 20, 50, 0.7) 100%);
  z-index: 1;
}

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

/* THE CENTERING ENGINE */
.hero-carousel .carousel-caption {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90% !important;
  max-width: 1200px !important;
  padding: 0 !important;
  margin: 0 !important;
  bottom: auto !important;
  right: auto !important;
  
  display: block !important; /* Switch to block, nested text center is enough */
  text-align: center !important;
  
  z-index: 100 !important;
  background: none !important;
  color: var(--shl-white) !important;
}

/* Typography & Content */
.hero-carousel .carousel-caption .title {
  font-size: clamp(2.2rem, 8vw, 5.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 20px 0 !important;
  color: var(--shl-primary) !important;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.8) !important;
  animation: fadeInUp 0.8s backwards 0.3s;
}

.hero-carousel .carousel-caption .text {
  font-size: clamp(1rem, 2.8vw, 1.85rem) !important;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 auto 40px auto !important;
  max-width: 900px !important;
  color: var(--shl-white) !important;
  text-shadow: 1px 2px 12px rgba(0, 0, 0, 0.9) !important;
  animation: fadeInUp 0.8s backwards 0.5s;
}

.hero-carousel .carousel-caption .btn {
  display: inline-block !important;
  padding: 18px 45px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  animation: fadeInUp 0.8s backwards 0.7s;
}

.hero-carousel .carousel-caption .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background-color: var(--shl-white) !important;
  color: var(--shl-primary) !important;
}

/* Navigation Controls (Arrows) */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 70px !important;
  height: 70px !important;
  background: rgba(40, 35, 87, 0.5) !important; /* More visible background */
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  z-index: 200 !important; /* Ensure they are on top of EVERYTHING */
  transition: all 0.3s ease !important;
  margin: 0 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-carousel .carousel-control-prev {
  left: 0 !important;
}

.hero-carousel .carousel-control-next {
  right: 0 !important;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: var(--shl-primary) !important;
  border-color: var(--shl-primary) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 30px !important;
  height: 30px !important;
  filter: brightness(0) invert(1) !important;
}

/* Indicators (Dashes) */
.hero-carousel .carousel-indicators {
  bottom: 30px !important;
  z-index: 200 !important;
}

.hero-carousel .carousel-indicators button {
  width: 50px !important;
  height: 6px !important;
  margin: 0 8px !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
  border: none !important;
  border-radius: 3px !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--shl-primary) !important;
  width: 75px !important;
}


/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-carousel {
    height: 70vh;
  }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    margin: 0 10px !important;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 60vh;
  }
  .hero-carousel .carousel-caption {
    padding: 0 5% !important;
  }
  .hero-carousel .carousel-indicators {
    bottom: 20px !important;
  }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none !important; /* Hide arrows on small mobile for cleaner look */
  }
}
