/* Add to the END of css/style.css */
.hero-section-2 .hero-2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-section-2 .ibb-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0119ae;
}
.hero-section-2 .ibb-hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-section-2 .ibb-hero-video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(3, 22, 46, .54) 0%,
      rgba(3, 22, 46, .27) 52%,
      rgba(3, 22, 46, .10) 100%);
}
.hero-section-2 .hero-2 > .hero-box-items {
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .hero-section-2 .ibb-hero-video video {
    object-position: 50% center;
  }
  .hero-section-2 .ibb-hero-video-shade {
    background: rgba(3, 22, 46, .38);
  }
}
/* For the entire boat without cropping, replace object-fit:cover with contain.
   A contain fit may leave side/top gaps on narrow or wide hero sections. */




/* =====================================
   IBB - OUR VISION & MISSION
===================================== */

.ibb-purpose-section {
  background: #f5f7fb;
  position: relative;
}

/* Section Heading */

.ibb-purpose-section .sec-title {
  max-width: 820px;
  margin: 0 auto 50px;
}

.ibb-purpose-section .sec-title .title {
  color: #0119ae;
  margin-top: 15px;
}

.ibb-purpose-intro {
  max-width: 760px;
  margin: 22px auto 0;
  color: #526078;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}

/* Cards Layout */

.ibb-purpose-cards {
  align-items: stretch;
}

.ibb-purpose-cards > div {
  display: flex;
}

/* Common Card */

.ibb-purpose-card {
  width: 100%;
  height: 100%;
  min-height: 360px;
  padding: 45px 38px;
  border-radius: 16px;
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ibb-purpose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(8, 39, 101, 0.12);
}

/* Mission Card */

.ibb-mission-card {
  background: #ffffff;
  border: 1px solid #e4eaf3;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.ibb-mission-card .ibb-purpose-title {
  color: #0119ae;
}

.ibb-mission-card .ibb-purpose-description {
  color: #526078;
}

/* Vision Card */

.ibb-vision-card {
  background: #0119ae;
  border: 1px solid #0119ae;
}

.ibb-vision-card .ibb-purpose-title {
  color: #ffffff;
}

.ibb-vision-card .ibb-purpose-description {
  color: #e4eaf5;
}

/* Icons */

.ibb-purpose-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 30px;
  margin-bottom: 25px;
}

.ibb-mission-card .ibb-purpose-icon {
  background: #eaf0f8;
  color: #0119ae;
}

.ibb-vision-card .ibb-purpose-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #c99a4b;
}

/* Text */

.ibb-purpose-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.ibb-purpose-description {
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
}

/* Responsive */

@media (max-width: 991px) {
  .ibb-purpose-card {
    padding: 32px 26px;
    min-height: auto;
  }
}

@media (max-width: 767px) {

  .ibb-purpose-section .sec-title {
    margin-bottom: 30px;
  }

  .ibb-purpose-intro {
    font-size: 15px;
    line-height: 1.8;
  }

  .ibb-purpose-card {
    padding: 30px 24px;
    border-radius: 12px;
  }

  .ibb-purpose-title {
    font-size: 24px;
  }

  .ibb-purpose-description {
    font-size: 15px;
    line-height: 1.8;
  }

  .ibb-purpose-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}



/* IBB Fleet - Equal Card Heights */

.service-slider-one .swiper-wrapper {
  align-items: stretch;
}

.service-slider-one .swiper-slide {
  height: auto;
}

.service-slider-one .service-block-one,
.service-slider-one .inner-block {
  height: 100%;
}

.service-slider-one .content-block {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-slider-one .content-block .content {
  flex: 1;
}

.service-slider-one .image-block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}



/* =====================================
   IBB - PAST PROJECTS SECTION
===================================== */

.ibb-projects-section {
  background: #f5f8fc;
}

.ibb-projects-section .sec-title {
  max-width: 850px;
  margin: 0 auto 30px;
}

.ibb-projects-intro {
  max-width: 750px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.8;
  color: #58677b;
}

/* Navigation */

.ibb-projects-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 25px;
}

.ibb-projects-navigation button {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #dce4ee;
  border-radius: 50%;
  color: #082765;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ibb-projects-navigation button:hover {
  background: #082765;
  border-color: #082765;
  color: #ffffff;
}

/* Projects Slider */

.ibb-projects-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 5px 0 20px;
}

.ibb-projects-slider::-webkit-scrollbar {
  display: none;
}

/* Project Card */

.ibb-project-card {
  min-width: 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 8px 25px rgba(8, 39, 101, 0.08);
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
}

.ibb-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(8, 39, 101, 0.14);
}

/* Image */

.ibb-project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5edf5;
}

.ibb-project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ibb-project-card:hover .ibb-project-image img {
  transform: scale(1.04);
}

/* Card Content */

.ibb-project-content {
  padding: 22px 24px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ibb-project-content h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #082765;
  margin: 0;
}

.ibb-project-length {
  flex-shrink: 0;
  background: #eaf0f8;
  border: 1px solid #dce5f0;
  color: #082765;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Tablet */

@media (max-width: 991px) {
  .ibb-projects-slider {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

/* Mobile */

@media (max-width: 767px) {
  .ibb-projects-slider {
    grid-auto-columns: 100%;
    gap: 16px;
  }

  .ibb-projects-navigation {
    justify-content: center;
  }

  .ibb-project-content {
    padding: 18px;
  }

  .ibb-project-content h3 {
    font-size: 18px;
  }

  .ibb-projects-intro {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ibb-projects-slider {
    scroll-behavior: auto;
  }

  .ibb-project-card,
  .ibb-project-image img {
    transition: none;
  }
}



/* IBB Why Choose Us - Text Improvements */

.choose-us-section-area-2 .content-block .title {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 15px;
}

.choose-us-section-area-2 .content-block .text {
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .choose-us-section-area-2 .content-block .title {
    font-size: 19px;
  }

  .choose-us-section-area-2 .content-block .text {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* =====================================
   IBB - Section Navigation Fix
===================================== */

html {
  scroll-behavior: smooth;
}

/* Offset for fixed/sticky header */
#about,
#gallery,
#portfolio,
#blog,
#contact {
  scroll-margin-top: 100px;
}

/* Preserve existing About design */
#about {
  position: relative;
}