/* ==============================================
   HOME — LATEST NEWS SECTION
   ============================================== */

.ib-home-news-section {
  background: #ffffff;
  padding: 80px 0;
}

.ib-home-news-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ib-home-news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ib-home-news-title {
  font-size: var(--wp--preset--font-size--2-xl);
  margin: 0;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
}

.ib-home-news-view-all {
  font-size: var(--wp--preset--font-size--sm);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.ib-home-news-view-all:hover {
  opacity: 0.75;
  text-decoration: none;
}

.ib-home-news-grid .ib-news-card {
  overflow: hidden;
}

.ib-home-news-grid .ib-news-card__image > img {
  aspect-ratio: 340 / 220;
}

@media (max-width: 1024px) {
  .ib-home-news-section {
    padding: 60px 0;
  }
  .ib-home-news-header {
    margin-bottom: 36px;
  }
}

@media (max-width: 767px) {
  .ib-home-news-section {
    padding: 40px 0;
  }
  .ib-home-news-header {
    margin-bottom: 28px;
  }
  .ib-home-news-grid .ib-news-card__image {
    display: none;
  }
}

/* ==============================================
   HOME — INTRO SECTION
   ============================================== */

.ib-home-intro-section {
  background-color: #ffffff;
  padding-top: 80px;
}

.ib-home-intro-inner {
  display: flex;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ib-home-intro-text-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ib-home-intro-text-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ib-home-intro-tagline {
  margin: 0;
}

.ib-home-intro-body {
  line-height: normal;
  margin: 0;
}

@media (max-width: 1024px) {
  .ib-home-intro-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .ib-home-intro-body {
    font-size: 24px;
  }
  .ib-home-intro-text-col {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .ib-home-intro-section {
    padding: 40px 0 20px;
  }
  .ib-home-intro-body {
    font-size: 18px;
    line-height: 1.7;
  }

  .ib-home-intro-tagline {
    font-size: 26px;
  }
}

/* ==============================================
   HOME — ABOUT SECTION
   ============================================== */

.ib-home-about-section {
  background-color: var(--wp--preset--color--primary);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  padding: 96px 0 120px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ib-home-about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 23%;
  max-width: 325px;
  aspect-ratio: 122 / 117;
  background: url(../images/bg-home-about-1.webp) no-repeat;
  background-size: cover;
  background-position: bottom right;
}
.ib-home-about-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  max-width: 274px;
  aspect-ratio: 137 / 212;
  background: url(../images/bg-home-about-2.webp) no-repeat;
  background-size: cover;
  background-position: bottom right;
}

.ib-home-about-inner {
  text-align: center;
  max-width: 908px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ib-home-about-label {
  font-size: var(--wp--preset--font-size--2-xl);
  font-weight: 700;
  line-height: 2.5;
  margin: 0;
}

.ib-home-about-title {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 400;
  line-height: normal;
  margin: 0 0 44px;
}
.ib-home-about-title > br:not(.always-break) {
  display: none;
}

.ib-home-about-body {
  text-align: center;
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 500;
  line-height: normal;
  margin: 0 auto;
  max-width: 1099px;
}
.ib-home-about-body > p {
  margin: 0 0 20px;
}
.ib-home-about-body > p:last-child {
  margin-bottom: 0;
}
.ib-home-about-body > p > br:not(.always-break) {
  display: none;
}

@media (max-width: 1024px) {
  .ib-home-about-section {
    padding: 80px 0 96px;
    min-height: auto;
    display: block;
  }
  .ib-home-about-section::before {
    display: none;
  }
  .ib-home-about-section::after {
    display: none;
  }
  .ib-home-about-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .ib-home-about-section {
    padding: 56px 0 64px;
  }
  .ib-home-about-label {
    font-size: 26px;
  }
  .ib-home-about-title {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .ib-home-about-title > br {
    display: block;
  }
  .ib-home-about-body {
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.85;
  }
  .ib-home-about-body > p > br:not(.always-break) {
    display: block;
  }
}

/* ============================================================
   HOME PAGE  —  HERO
   ============================================================ */

.ib-home-hero {
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
}

.ib-home-hero .wp-block-cover__inner-container {
  padding: 60px 0;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.ib-home-hero .wp-block-cover__background {
  display: none;
}

@media (max-width: 767px) {
  .ib-home-hero.wp-block-cover {
    min-height: 296px !important;
  }
  .ib-home-hero .wp-block-cover__inner-container {
    padding: 60px 20px;
  }
}

/* ============================================================
   HOME — STRENGTHS SECTION
   ============================================================ */

.ib-home-strengths-section {
  overflow: hidden;
}

.ib-home-strengths-inner {
  padding-top: 80px;
}

.ib-home-strengths-row {
  display: flex;
  align-items: center;
}

.ib-home-strengths-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 680px;
  margin: auto;
}

.ib-home-strengths-card {
  border-radius: 16px;
  border: 1px solid var(--wp--preset--color--foreground);
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  transition: box-shadow 0.25s ease;
  aspect-ratio: 1 / 1;
}

.ib-home-strengths-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ib-home-strengths-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ib-home-strengths-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ib-home-strengths-card__title {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 600;
  margin: 0;
  line-height: normal;
  text-transform: capitalize;
}
.ib-home-strengths-card__desc {
  font-weight: 500;
  margin: 0;
  line-height: normal;
}

@media (max-width: 1200px) {
  .ib-home-strengths-inner {
    padding-top: 40px;
  }
}

@media (max-width: 1024px) {
  .ib-home-strengths-row {
    flex: none;
  }
}

@media (max-width: 767px) {
  .ib-home-strengths-inner {
    padding-top: 20px;
  }
  .ib-home-strengths-cards {
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .ib-home-strengths-card {
    aspect-ratio: auto;
    padding: 20px 14px;
    gap: 10px;
  }
  .ib-home-strengths-card__icon {
    width: 60px;
    height: 60px;
  }
}

/* ============================================================
   HOME — SAFETY SOLUTIONS SECTION
   ============================================================ */

.ib-home-safety-section {
  background: #ffffff;
  padding: 80px 0;
  overflow: hidden;
}

.ib-home-safety-inner {
  margin: 0 auto;
  padding: 0 80px;
}

.ib-home-safety-header {
  padding: 0 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e4e4e4;
  flex-wrap: wrap;
}
.ib-home-safety-header .ib-home-safety-desc {
  line-height: normal;
  flex: 0 0 100%;
  margin: 0;
}

.ib-home-safety-heading {
  margin: 0;
  line-height: 1.3;
}

.ib-home-safety-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  margin-top: 40px;
  justify-content: center;
}

.ib-home-safety-swiper {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

.ib-home-safety-swiper .swiper-wrapper {
  align-items: stretch;
}

.ib-home-safety-slide {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  flex: 0 0 auto;
  height: auto;
}

@media (max-width: 1200px) {
  .ib-home-safety-inner {
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  .ib-home-safety-section {
    padding: 56px 0;
  }
  .ib-home-safety-inner {
    padding: 0 20px;
  }
  .ib-home-safety-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 24px;
  }
  .ib-home-safety-nav {
    width: 100%;
    margin-top: 20px;
  }
}

/* =============================================
   HOME — GROUP COMPANIES
   ============================================= */
.ib-home-group-section {
  position: relative;
  background-color: #0f1923;
  display: flex;
  height: 100vh;
  overflow: hidden;
  justify-content: center;
  margin-bottom: 80px;
}

.ib-home-group-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
  pointer-events: none;
  border: 0;
  display: block;
}

.ib-home-group-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.ib-home-group-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 0 80px;
  max-width: var(--wp--style--global--wide-size);
}

.ib-home-group-left {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.ib-home-group-title {
  font-size: var(--wp--preset--font-size--2-xl);
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: normal;
  text-transform: capitalize;
}

.ib-home-group-desc {
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4375;
  margin: 16px 0 0;
  max-width: 478px;
  padding-right: 20px;
}

.ib-home-group-desc > p {
  margin: 0;
}

.ib-home-group-right {
  display: flex;
  gap: 40px;
  height: 100%;
  overflow: hidden;
}

.ib-home-group-col {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.ib-home-group-swiper {
  height: 100%;
  overflow: hidden;
}

.ib-home-group-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.ib-home-group-swiper .swiper-slide {
  height: auto !important;
  cursor: grab;
}

.ib-home-group-swiper .swiper-slide:active {
  cursor: grabbing;
}

.ib-home-group-card {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 40px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
  flex-shrink: 0;
  background: #fff;
}

.ib-home-group-card--link {
  text-decoration: none;
  cursor: pointer;
}

.ib-home-group-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.ib-home-group-card__logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ib-home-group-card__logo img {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ib-home-group-card__logo--white {
  background-color: #ffffff;
}

.ib-home-group-card__name {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  color: var(--wp--preset--color--foreground);
}

@media (max-width: 1199px) {
  .ib-home-group-inner {
    padding-right: 40px;
    padding-left: 0;
  }
  .ib-home-group-left {
    padding-left: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 1024px) {
  .ib-home-group-section {
    height: auto;
    background: none;
  }
  .ib-home-group-section::before {
    aspect-ratio: 7 / 5;
  }
  .ib-home-group-video {
    height: auto;
    aspect-ratio: 7 / 5;
  }
  .ib-home-group-inner {
    flex-direction: column;
    height: auto;
    padding-right: 0;
    padding-left: 0;
  }
  .ib-home-group-left {
    min-width: unset;
    width: 100%;
    aspect-ratio: 7 / 5;
    gap: 8px;
  }
  .ib-home-group-right {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 32px;
    padding: 24px 0 60px 0;
    overflow: visible;
  }
  .ib-home-group-col {
    width: 100%;
    height: auto;
    overflow: hidden;
  }
  .ib-home-group-swiper {
    height: auto;
    width: 100%;
    overflow: hidden;
  }
  .ib-home-group-swiper .swiper-slide {
    width: auto !important;
    height: auto !important;
  }
  .ib-home-group-card {
    width: 180px;
    height: 180px;
    padding: 14px;
    margin-bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.25);
  }
  .ib-home-group-card__inner {
    gap: 18px;
  }
  .ib-home-group-card__logo {
    width: 88px;
    height: 88px;
  }
  .ib-home-group-card__logo img {
    max-width: 88px;
    max-height: 88px;
  }
  .ib-home-group-card__name {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .ib-home-group-left {
    padding-left: 20px;
    padding-top: 40px;
  }
  .ib-home-group-right {
    gap: 24px;
    padding: 20px 0 40px 0;
  }
  .ib-home-group-desc {
    margin-top: 16px;
    max-width: 100%;
    padding-right: 0;
  }
  .ib-home-group-section {
    margin-bottom: 0;
  }
  .ib-home-group-card {
    width: 160px;
    height: 160px;
    padding: 12px;
  }
  .ib-home-group-card__inner {
    gap: 16px;
  }
  .ib-home-group-card__logo {
    width: 80px;
    height: 80px;
  }
  .ib-home-group-card__logo img {
    max-width: 80px;
    max-height: 80px;
  }
  .ib-home-group-card__name {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .ib-home-group-left {
    padding: 32px 16px;
  }
  .ib-home-group-desc {
    font-size: 13px;
    margin-top: 0;
  }
  .ib-home-group-right {
    gap: 16px;
    padding: 16px 0 32px 0;
  }
  .ib-home-group-card {
    width: 128px;
    height: 128px;
    padding: 10px;
  }
  .ib-home-group-card__inner {
    gap: 12px;
  }
  .ib-home-group-card__logo {
    width: 64px;
    height: 64px;
  }
  .ib-home-group-card__logo img {
    max-width: 64px;
    max-height: 64px;
  }
  .ib-home-group-card__name {
    font-size: 7px;
  }
}
