/* Wrapper to ensure full-width scrolling */
section[data-module="logo-our-partner"] .marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Main scrolling container */
section[data-module="logo-our-partner"] .marquee {
    display: flex;
    gap: 0;
    animation: marquee 40s linear infinite;
    width: max-content;
}

/* Pause on hover */
section[data-module="logo-our-partner"] .marquee-wrapper:hover .marquee {
    animation-play-state: paused !important;
}

/* General logo styles */
section[data-module="logo-our-partner"] .marqueelogo {
    height: auto;
    width: 100%;
    object-fit: contain;
}


/* Fix header/menu display on project detail */
.single-project .pkog-header {
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 9999;
}

.single-project .pkog-menu > li > a,
.single-project .pkog-phone {
  color: #ffffff !important;
}

.single-project .pkog-header.is-scrolled {
  position: fixed;
  top: 0;
  background: rgba(3,16,34,0.96);
}

/* Project inner hero */
.pkog-inner-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}

.pkog-inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3,16,34,0.88) 0%,
    rgba(0,72,115,0.70) 48%,
    rgba(3,16,34,0.55) 100%
  );
}

.pkog-inner-hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  padding-top: 110px;
}

.pkog-inner-hero h1 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.pkog-breadcrumb {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

.pkog-breadcrumb a {
  color: #ffffff;
}

.pkog-breadcrumb span {
  margin: 0 5px;
}

/* Project overview */
.pkog-project-container {
  width: min(1320px, 92%);
  margin: 0 auto;
}

.pkog-project-overview {
  padding: 88px 0;
  background: #ffffff;
}

.pkog-project-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.pkog-project-overview-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(6,26,53,0.12);
}

.pkog-section-label {
  display: inline-block;
  color: #14c6d7;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pkog-project-overview-content h2 {
  color: #0b1f3a;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.15;
  margin-bottom: 24px;
}

.pkog-project-entry-content {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}

/* Related projects */
.pkog-related-projects {
  padding: 88px 0 96px;
  background: #f6f9fc;
}

.pkog-related-heading {
  text-align: center;
  margin-bottom: 50px;
}

.pkog-related-heading h2 {
  color: #0b1f3a;
  font-size: clamp(32px, 3.5vw, 46px);
}

.pkog-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.pkog-related-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  height: 300px;
  background: #031022;
  box-shadow: 0 12px 35px rgba(6,26,53,0.1);
}

.pkog-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.pkog-related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3,16,34,0.05) 0%,
    rgba(3,16,34,0.92) 100%
  );
}

.pkog-related-card:hover img {
  transform: scale(1.08);
}

.pkog-related-card-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
}

.pkog-related-card-content h3 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.pkog-related-card-content span {
  color: #14c6d7;
  font-size: 14px;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1199px) {
  .pkog-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .pkog-inner-hero {
    min-height: 460px;
  }

  .pkog-project-overview-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .pkog-project-overview-image img {
    height: 420px;
  }

}

@media (max-width: 767px) {
  .single-project .pkog-header {
    top: 0;
  }

  .pkog-inner-hero {
    min-height: 430px;
  }

  .pkog-inner-hero-content {
    padding-top: 95px;
  }

  .pkog-inner-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .pkog-breadcrumb {
    font-size: 15px;
  }

  .pkog-project-overview,
  .pkog-related-projects {
    padding: 70px 0;
  }

  .pkog-project-overview-image img {
    height: 300px;
  }

  .pkog-related-grid {
    grid-template-columns: 1fr;
  }

  .pkog-related-card {
    height: 280px;
  }
}


/* Show 5 logos on desktop */
@media (min-width: 1200px) {
    section[data-module="logo-our-partner"] .marqueelogo {
        max-width: calc((100vw - 8rem) / 9); /* 5 logos with 2rem gap between */
        height: 100px;
    }
}

/* Show 3 logos on tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    section[data-module="logo-our-partner"] .marqueelogo {
        max-width: calc((100vw - 4rem) / 3); /* 3 logos */
        height: 90px;
    }
}

/* Show 2 logos on mobile */
@media (max-width: 767px) {
    section[data-module="logo-our-partner"] .marqueelogo {
        max-width: calc((100vw - 2rem) / 2); /* 2 logos */
        height: 80px;
    }
}

/* Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
