
/* Heritage Section  start */

#heritage {
  overflow: hidden !important; /* Ensure no overflow from the entire section */
  
}

#heritage h2 {
  color: var(--Blue, #1e3c72);
  font-size: 50px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
}

#heritage p {
  color: var(--Blue, #1e3c72);
  font-size: 16px;
  line-height: 1.5;
  width: 34%;
  margin-bottom: 0px;
}

#heritage .slider-navigation {
  gap: 12px; /* Space between arrows */
  position: relative;
  right: 30px;
  margin-top: 0px;
}

#heritage .slider-navigation button {
  cursor: pointer;
  background-color: white;
  border: 1px solid var(--Blue);
  border-radius: 50%;
  height: 48px;
  width: 48px;
  transition: background-color 0.3s ease, opacity 0.5s ease;
}

#heritage .slider-navigation button:hover {
  opacity: 0.7;
  border: 1px solid var(--Red);
}

/* Slider Container */
#heritage .heritage-slider {
  overflow: hidden !important; /* Force hiding overflow */
  display: flex; /* Horizontal layout */
  padding: 0; /* Remove extra padding */
  position: relative; /* Contain children within */
  margin-top: 40px;
}

/* Slick List */
#heritage .slick-list {
  overflow: hidden !important; /* Absolutely hide overflow */
  padding: 0 !important; /* Remove Slick-added padding */
  margin: 0 !important; /* Reset margin */
}

/* Slick Track */
#heritage .slick-track {
  overflow: hidden !important; /* Ensure no overflow from the track */
  margin-left: 0 !important; /* Reset track offset */
  display: flex !important; /* Ensure slides align properly */
}

/* Individual Slide */
#heritage .heritage-slide {
  width: 430px !important; /* Fixed width for every slide */
  flex-shrink: 0; /* Prevent shrinking */
  margin-right: 14px; /* Maintain consistent gaps */
  overflow: hidden; /* Ensure no overflow from inside the slide */
}

#heritage .slider-navigation .slick-prev {
  position: relative;
  left: 18px;
}

/* Slick Slide Adjustments */
#heritage .slick-slide {
  width: 432px !important; /* Lock slide width */
  flex-shrink: 0; /* Prevent dynamic resizing */
  box-sizing: border-box; /* Ensure padding/margins don't affect size */
  overflow: hidden; /* Prevent slide content from overflowing */
}

/* Slide Content */
#heritage .heritage-content {
  background-color: #1e3c72;
  padding: 24px;
  width: 100%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  color: #fff;
}

#heritage .heritage-content h5 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

#heritage .heritage-content table {
  width: 100%;
  border-collapse: collapse;
}

#heritage .heritage-content table td:first-child {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

#heritage .heritage-content table td:nth-child(2) {
  text-align: right;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
}

#heritage .heritage-content table tr {
  border-bottom: 1px solid #fff;
}

#heritage .heritage-content table td {
  padding: 8px 0;
}

/* Slide Image */
#heritage .heritage-slide img {
  height: 378px; /* Fixed height */
  width: 100%; /* Consistent image width */
  object-fit: cover; /* Prevent distortion */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden; /* Prevent image overflow */
}

/* Ensure Arrows are Visible */
#heritage .slick-prev,
#heritage .slick-next {
  display: block !important; /* Ensure visibility */
  opacity: 1;
  pointer-events: auto;
}

/* Heritage Row Adjustments */
#heritage .row {
  overflow: hidden !important; /* Force hiding overflow */
  position: relative; /* Required for containing child elements */
}

#heritage .button-wrapper {
  display: flex;
  align-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 48px;
}

#heritage .button-wrapper a {
  color: #1e3c72;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 150% */
  letter-spacing: 3.2px;
  text-transform: uppercase;
}

/* Hexagon button with SVG background */
#heritage .hexagon-button {
  position: relative;
  display: grid;
  width: 283px;
  height: 54px;
  line-height: 54px !important;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #1e3c72;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  background: url("/images/hexagon-blue-medium.svg") no-repeat center;
  background-size: auto;
  background-size: contain;
  transition: all 0.3s ease;
  z-index: 1;
  box-sizing: border-box;
}

#heritage .hexagon-button:hover {
  color: var(--Red);
  background: url("/images/hexagon-red-medium.svg") no-repeat center;
  background-size: auto;
  background-size: contain;
  transition: all 0.3s ease;
  z-index: 1;
  box-sizing: border-box;
}

/* Adding silver lines */
#heritage .hexagon-button::before,
#heritage .hexagon-button::after {
  content: "";
  position: absolute;
  width: 40px; /* Adjust the size of the silver lines */
  height: 6px; /* Thickness of the silver lines */
  background-color: #f5f8ff; /* Silver color */
  z-index: 2; /* Ensure they appear above the SVG background */
  transition: all 0.3s ease;
}

#heritage .hexagon-button::before {
  top: -2px;
  left: 63%;
  transform: translateX(-50%);
  height: 6px;
  width: 75px;
}

#heritage .hexagon-button::after {
  bottom: -2px;
  left: 37%;
  transform: translateX(-50%);
  height: 6px;
  width: 120px;
}

#heritage .hexagon-button:hover::before {
  left: 28%;
}

#heritage .hexagon-button:hover::after {
  left: 65%;
}

/* Mobile Adjustments */
@media screen and (max-width: 767px) {
  #heritage h2 {
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px; /* 111.111% */
    text-transform: uppercase;
  }

  #heritage .heritage-content h5 {
    color: var(--White, #fff);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px; /* 140% */
  }

  #heritage .heritage-content table td:first-child {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
    letter-spacing: 4.2px;
    text-transform: uppercase;
  }

  #heritage .heritage-content table td:nth-child(2) {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    display: flex;
    flex-direction: column;
  }

  #heritage p {
    width: 100%; /* Full width for paragraph */
  }

  #heritage .heritage-slider {
    flex-wrap: nowrap;
    overflow-x: hidden !important; /* Force hiding overflow for mobile */
  }

  #heritage .heritage-slide {
    margin-right: 8px; /* Smaller gaps for mobile */
  }

  #heritage .heritage-slide img {
    height: 284px;
  }

  #heritage .heritage-content {
    padding: 16px;
  }

  #heritage .heritage-content,
  #heritage .heritage-slide img {
    width: 100%; /* Full width for content and image */
  }

  #heritage .slick-initialized .slick-slide:first-child {
    margin-left: 0px !important; /* Reset any offset for first slide */
  }

  #heritage .slick-initialized .slick-slide {
    margin: 0 8px; /* Smaller gaps for mobile */
  }

  #heritage .slider-navigation {
    top: 0px;
  }

  #heritage .slider-navigation .slick-prev {
    position: relative;
    left: 24px;
  }

  #heritage .button-wrapper {
    margin-top: 24px;
  }
}

@media screen and (max-width: 552px) {
  #heritage .slick-slide {
    width: calc(552px - 5%) !important; /* Dynamically adjust width */
    flex-shrink: 0;
    min-width: 340px;
  }
}
