/* =========================================================
   PT KSM - HOME PAGE
   Industrial Corporate Design
   ========================================================= */

/* Variabel warna --ksm-* sekarang didefinisikan di styles.css
   (di-load lebih dulu di semua halaman) supaya satu sumber warna
   dipakai konsisten oleh halaman utama maupun admin. */

/* =========================================================
   GLOBAL HOME
   ========================================================= */

.home-page {
  background: var(--ksm-white);
  color: var(--ksm-text);
}

.home-page .container {
  max-width: 1240px;
}

.home-page section {
  padding: 90px 0;
}

.home-section-light {
  background: var(--ksm-bg);
}

.home-section-green {
  background: var(--ksm-green);
  color: var(--ksm-white);
}

.home-section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.home-section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ksm-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ksm-lime);
}

.home-section-green .home-eyebrow {
  color: var(--ksm-lime);
}

.home-section-title {
  margin: 0;
  color: var(--ksm-dark);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.home-section-green .home-section-title {
  color: var(--ksm-white);
}

.home-section-description {
  margin: 18px 0 0;
  color: var(--ksm-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
}

.home-section-green .home-section-description {
  color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   TOPBAR
   ========================================================= */

.home-page .topbar {
  background: var(--ksm-dark);
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-page .topbar-contact a {
  color: rgba(255, 255, 255, 0.88);
}

.home-page .topbar-contact a:hover {
  color: var(--ksm-lime);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.home-page .navbar {
  background: var(--ksm-white);
  box-shadow: 0 4px 20px rgba(23, 32, 26, 0.07);
  border-bottom: 1px solid var(--ksm-border);
}

.home-page .navbar-inner {
  min-height: 76px;
}

.home-page .navbar-logo {
  color: var(--ksm-dark);
}

.home-page .navbar-logo img {
  width: 48px;
  height: 48px;
}

.home-page .brand-title {
  color: var(--ksm-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-page .navbar-menu {
  gap: 2rem;
}

.home-page .navbar-menu a {
  color: var(--ksm-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.home-page .navbar-menu a::after {
  background: var(--ksm-green);
}

.home-page .navbar-menu a:hover,
.home-page .navbar-menu a.active {
  color: var(--ksm-green);
}

.home-page .navbar-menu .nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ksm-green);
  color: var(--ksm-white);
  font-weight: 600;
  transition: 0.2s ease;
}

.home-page .navbar-menu .nav-whatsapp::after {
  display: none;
}

.home-page .navbar-menu .nav-whatsapp:hover {
  background: var(--ksm-green-dark);
  color: var(--ksm-white);
  transform: translateY(-1px);
}

.home-page .navbar-toggle span {
  background: var(--ksm-dark);
}

/* =========================================================
   HERO
   ========================================================= */

.home-page .hero-slider-wrapper {
  padding: 0;
  background: var(--ksm-white);
}

.home-page .hero-slider {
  width: 100%;
  max-width: none;

  /* Rasio poster Spareparts Partner */
  aspect-ratio: 3 / 1;

  border-radius: 0;
  box-shadow: none;
  background: var(--ksm-dark);
}

.home-page .hero-slide {
  overflow: hidden;
}

.home-page .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 24, 12, 0.88) 0%,
      rgba(8, 24, 12, 0.62) 38%,
      rgba(8, 24, 12, 0.08) 78%,
      rgba(8, 24, 12, 0.02) 100%
    );
  pointer-events: none;
}

.home-page .hero-slide img {
  object-fit: cover;
  background: var(--ksm-dark);
}

.hero-content {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: max(1.5rem, calc((100% - 1180px) / 2));
  width: min(570px, 48%);
  transform: translateY(-50%);
  color: var(--ksm-white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ksm-lime);
}

.hero-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--ksm-lime);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-description {
  margin: 20px 0 28px;
  max-width: 530px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.hero-btn-primary {
  background: var(--ksm-green-light);
  color: var(--ksm-white);
}

.hero-btn-primary:hover {
  background: var(--ksm-green);
  color: var(--ksm-white);
  transform: translateY(-2px);
}

.hero-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--ksm-white);
  background: rgba(255, 255, 255, 0.05);
}

.hero-btn-outline:hover {
  background: var(--ksm-white);
  color: var(--ksm-dark);
  border-color: var(--ksm-white);
}

.home-page .hero-slide-nav {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 5;
}

.home-page .hero-slide-nav:hover {
  background: var(--ksm-green);
}

.home-page .hero-slide-nav.prev {
  left: 22px;
}

.home-page .hero-slide-nav.next {
  right: 22px;
}

.home-page .hero-slide-dots {
  bottom: 20px;
  z-index: 5;
}

.home-page .hero-slide-dots .dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.home-page .hero-slide-dots .dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--ksm-lime);
}

/* =========================================================
   WHAT WE DO
   ========================================================= */

.what-we-do {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.what-we-do-card {
  position: relative;
  min-height: 190px;
  padding: 28px;
  background: var(--ksm-white);
  border: 1px solid var(--ksm-border);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(23, 32, 26, 0.04);
  overflow: hidden;
  transition: 0.25s ease;
}

.what-we-do-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ksm-light-green);
}

.what-we-do-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ksm-shadow);
  border-color: rgba(46, 158, 69, 0.3);
}

.what-we-do-number {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 28px;
  color: var(--ksm-green-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.what-we-do-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: var(--ksm-dark);
  font-size: 1.08rem;
}

.what-we-do-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ksm-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* =========================================================
   FEATURED PRODUCTS
   ========================================================= */

.featured-products {
  background: var(--ksm-bg);
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.featured-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--ksm-white);
  border: 1px solid var(--ksm-border);
  border-radius: 12px;
  transition: 0.25s ease;
}

.featured-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ksm-shadow-hover);
}

.featured-product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 20px;
  background: #f1f5f2;
}

.featured-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.featured-product-label {
  margin-bottom: 7px;
  color: var(--ksm-green-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-product-title {
  margin: 0;
  color: var(--ksm-dark);
  font-size: 0.98rem;
  font-weight: 600;
}

.featured-product-action {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ksm-green);
  font-size: 0.82rem;
  font-weight: 600;
}

.featured-product-action:hover {
  color: var(--ksm-green-dark);
}

.home-centered-action {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.home-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ksm-green);
  border-radius: 7px;
  color: var(--ksm-green);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.home-outline-button:hover {
  color: var(--ksm-white);
  background: var(--ksm-green);
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.why-choose-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: center;
}

.why-choose-intro {
  max-width: 500px;
}

.why-choose-intro p {
  margin: 20px 0 0;
  color: var(--ksm-muted);
  line-height: 1.8;
}

.why-choose-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.why-choose-item {
  padding: 25px;
  background: var(--ksm-white);
  border: 1px solid var(--ksm-border);
  border-radius: 12px;
  transition: 0.2s ease;
}

.why-choose-item:hover {
  border-color: rgba(46, 158, 69, 0.35);
  box-shadow: var(--ksm-shadow);
}

.why-choose-item-number {
  display: block;
  margin-bottom: 20px;
  color: var(--ksm-lime);
  font-size: 0.75rem;
  font-weight: 700;
}

.why-choose-item h3 {
  margin: 0 0 8px;
  color: var(--ksm-dark);
  font-size: 1rem;
}

.why-choose-item p {
  margin: 0;
  color: var(--ksm-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* =========================================================
   BUSINESS SOLUTIONS
   WHITE VERSION
   ========================================================= */

.business-solutions {
    background: #ffffff;
    color: var(--ksm-text);
}

.business-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   BUSINESS SOLUTION CARD
   ========================================================= */

.business-solution-card {
    position: relative;

    min-height: 240px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid var(--ksm-border);

    border-radius: 12px;

    box-shadow:
        0 5px 20px rgba(
            23,
            32,
            26,
            0.04
        );

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================================
   LIME TOP ACCENT
   ========================================================= */

.business-solution-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 45px;
    height: 3px;

    background:
        var(--ksm-lime);
}


/* =========================================================
   NUMBER
   ========================================================= */

.business-solution-number {
    position: relative;

    z-index: 1;

    color:
        var(--ksm-green-light);

    font-size:
        0.75rem;

    font-weight:
        700;
}


/* =========================================================
   TITLE
   ========================================================= */

.business-solution-card h3 {
    position: relative;

    z-index: 1;

    margin:
        45px 0 12px;

    color:
        var(--ksm-dark);

    font-size:
        1.2rem;

    line-height:
        1.25;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.business-solution-card p {
    position: relative;

    z-index: 1;

    margin:
        0;

    color:
        var(--ksm-muted);

    font-size:
        0.88rem;

    line-height:
        1.7;
}


/* =========================================================
   HOVER
   ========================================================= */

.business-solution-card:hover {
    transform:
        translateY(-5px);

    background:
        #ffffff;

    border-color:
        rgba(
            46,
            158,
            69,
            0.35
        );

    box-shadow:
        var(--ksm-shadow);
}

/* =========================================================
   PROJECTS / VIDEO
   ========================================================= */

.home-projects {
  background: var(--ksm-white);
}

.home-page .video-layout {
  margin-top: 0;
  gap: 22px;
}

.home-page .video-item {
  border-radius: 12px;
  box-shadow: var(--ksm-shadow);
}

.home-page .video-playlist {
  border: 1px solid var(--ksm-border);
  border-radius: 12px;
  box-shadow: none;
}

.home-page .playlist-title {
  color: var(--ksm-dark);
}

.home-page .playlist-item.active {
  background: var(--ksm-light-green);
}

.home-page .playlist-item.active .playlist-item-title {
  color: var(--ksm-green);
}

/* =========================================================
   CERTIFICATION
   ========================================================= */

.home-certification {
    background: var(--ksm-bg);
}

.home-certification-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 28px;

    background: var(--ksm-white);

    border: 1px solid var(--ksm-border);
    border-radius: 14px;

    box-shadow: var(--ksm-shadow);
}


/* =========================================================
   CERTIFICATE PREVIEW
   ========================================================= */

.home-certification-preview {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: #f5f7f5;

    border-radius: 10px;
    overflow: hidden;
}


.home-certification-image {
    display: block;

    width: 100%;
    max-width: 560px;
    height: auto;

    object-fit: contain;

    border-radius: 6px;

    transition: transform 0.3s ease;
}


/* sedikit efek saat mouse diarahkan */

.home-certification-preview:hover
.home-certification-image {
    transform: scale(1.015);
}


/* =========================================================
   CERTIFICATE INFO
   ========================================================= */

.home-certification-info {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-top: 24px;
    padding-top: 22px;

    border-top: 1px solid var(--ksm-border);
}


.home-certification-details h3 {
    margin: 0 0 5px;

    color: var(--ksm-dark);

    font-size: 1.15rem;
    font-weight: 700;
}


.home-certification-details p {
    margin: 0 0 5px;

    color: var(--ksm-text);

    font-size: 0.9rem;
}


.home-certification-details span {
    display: block;

    color: var(--ksm-green);

    font-size: 0.82rem;
    font-weight: 700;
}


/* =========================================================
   DOWNLOAD BUTTON
   ========================================================= */

.home-certification-download {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 7px;

    background: var(--ksm-green);
    color: var(--ksm-white);

    font-size: 0.85rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.home-certification-download:hover {
    background: #075c20;

    color: var(--ksm-white);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 80, 30, 0.18);
}


.download-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    font-size: 1rem;
    line-height: 1;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .home-certification-card {
        padding: 18px;
    }

    .home-certification-preview {
        padding: 12px;
    }

    .home-certification-info {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }

    .home-certification-download {
        width: 100%;
    }

}


@media (max-width: 520px) {

    .home-certification-card {
        padding: 12px;
    }

    .home-certification-image {
        max-width: 100%;
    }

}
/* =========================================================
   WHATSAPP CTA
   ========================================================= */

.home-cta {
  position: relative;
  overflow: hidden;
  padding: 70px 0 !important;
  background: var(--ksm-green);
}

.home-cta::after {
  content: "";
  position: absolute;
  right: -150px;
  top: -170px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(168, 217, 87, 0.12);
}

.home-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-cta-copy {
  max-width: 680px;
}

.home-cta-copy .home-eyebrow {
  color: var(--ksm-lime);
}

.home-cta-title {
  margin: 0;
  color: var(--ksm-white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.home-cta-description {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.home-cta-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--ksm-white);
  color: var(--ksm-green);
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.home-cta-button:hover {
  background: var(--ksm-lime);
  color: var(--ksm-dark);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */

.home-page .footer {
  background: #101713;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.home-page .footer-inner {
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .home-page .navbar-menu {
    gap: 1.2rem;
  }

  .hero-content {
    left: 5%;
    width: 55%;
  }

  .what-we-do-grid,
  .featured-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-choose-layout {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .home-page section {
    padding: 70px 0;
  }

  .home-page .navbar-menu {
    gap: 1rem;
  }

  .home-page .navbar-menu .nav-whatsapp {
    padding: 8px 12px;
  }

.hero-slider {
  aspect-ratio: 2 / 1;
}

  .hero-content {
    width: 65%;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .why-choose-layout {
    grid-template-columns: 1fr;
  }

  .business-solutions-grid {
    grid-template-columns: 1fr;
  }

  .home-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .home-page .navbar-inner {
    min-height: 68px;
  }

  .home-page .navbar-logo img {
    width: 42px;
    height: 42px;
  }

  .home-page .brand-title {
    font-size: 0.78rem;
  }

  .home-page .navbar-menu {
    background: var(--ksm-white);
    border-top: 1px solid var(--ksm-border);
    box-shadow: 0 12px 24px rgba(23, 32, 26, 0.08);
  }

  .home-page .navbar-menu a {
    color: var(--ksm-dark);
  }

  .home-page .navbar-menu a:hover,
  .home-page .navbar-menu a.active {
    color: var(--ksm-green);
  }

  .home-page .navbar-menu .nav-whatsapp {
    color: var(--ksm-white);
  }

  .hero-slider {
    aspect-ratio: 16 / 10;
  }

  .home-page .hero-slide img {
    object-position: center;
  }

  .home-page .hero-slide::after {
    background:
      linear-gradient(
        90deg,
        rgba(8, 24, 12, 0.92) 0%,
        rgba(8, 24, 12, 0.68) 65%,
        rgba(8, 24, 12, 0.18) 100%
      );
  }

  .hero-content {
    left: 7%;
    width: 76%;
  }

  .hero-description {
    margin-top: 14px;
    margin-bottom: 20px;
    font-size: 0.86rem;
  }

  .hero-btn {
    min-height: 42px;
    padding: 0 15px;
    font-size: 0.8rem;
  }

  .hero-kicker {
    margin-bottom: 10px;
    font-size: 0.65rem;
  }

  .home-page .hero-slide-nav {
    display: none;
  }

  .what-we-do-grid,
  .featured-products-grid {
    grid-template-columns: 1fr;
  }

  .what-we-do-card {
    min-height: 160px;
  }

  .why-choose-list {
    grid-template-columns: 1fr;
  }

  .home-page .video-layout {
    grid-template-columns: 1fr;
  }

  .home-certification-card {
    padding: 15px;
  }

  .home-cta {
    padding: 55px 0 !important;
  }
}

@media (max-width: 520px) {
  .home-page .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
  }

  .home-page .topbar-contact {
    flex-wrap: wrap;
  }

.hero-slider {
  aspect-ratio: 4 / 3;
}
  .hero-content {
    left: 7%;
    width: 82%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 220px;
  }

  .hero-btn {
    width: 100%;
  }

  .home-section-heading {
    margin-bottom: 32px;
  }

  .home-section-title {
    font-size: 1.9rem;
  }

  .home-section-description {
    font-size: 0.9rem;
  }

  .featured-product-image {
    height: 200px;
  }

  .home-page .playlist-thumb {
    width: 85px;
    min-width: 85px;
    height: 48px;
  }
}/* =========================================================
/* =========================================================
   BUSINESS SOLUTIONS - LIGHT VERSION
   ========================================================= */

.home-page .business-solutions .home-section-title {
    color: var(--ksm-dark);
}

.home-page .business-solutions .home-section-description {
    color: var(--ksm-muted);
}

.home-page .business-solutions .home-section-heading {
    margin-bottom: 42px;
}

/* =========================================================  
   CERTIFICATION PREVIEW
   ========================================================= */

.home-certification-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}


/* Preview */

.home-certification-preview {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f6f5;
    cursor: pointer;
}


/* Certificate image */

.home-certification-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    transition: transform 0.4s ease;
}


/* Hover effect */

.home-certification-preview:hover .home-certification-image {
    transform: scale(1.025);
}


/* Overlay */

.home-certification-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0);

    transition: background 0.3s ease;
}


/* Overlay hover */

.home-certification-preview:hover .home-certification-overlay {
    background: rgba(0, 0, 0, 0.32);
}


/* View Certificate button */

.home-certification-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    background: #0b6b2f;
    color: #ffffff;

    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 600;

    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.home-certification-preview:hover .home-certification-view {
    opacity: 1;
    transform: translateY(0);
}


/* Information */

.home-certification-info {
    padding: 22px 8px 4px;
    text-align: center;
}


.home-certification-info h3 {
    margin: 0 0 5px;

    font-size: 1.15rem;
    font-weight: 700;

    color: var(--ksm-text);
}


.home-certification-info p {
    margin: 0 0 6px;

    font-size: 0.95rem;

    color: #64706a;
}


.home-certification-info span {
    font-size: 0.82rem;
    font-weight: 600;

    color: var(--ksm-green);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .home-certification-card {
        padding: 14px;
        border-radius: 14px;
    }

    .home-certification-image {
        max-height: 600px;
    }

    .home-certification-view {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

}


@media (max-width: 520px) {

    .home-certification-card {
        padding: 10px;
    }

    .home-certification-info {
        padding-top: 16px;
    }

    .home-certification-info h3 {
        font-size: 1rem;
    }

    .home-certification-info p {
        font-size: 0.85rem;
    }

}


/* =========================================================
   OUR CLIENTS & PARTNERS
   ========================================================= */

.home-partners {
  position: relative;
  overflow: hidden;
  padding: 75px 0 80px;
  background: #ffffff;
}


/* =========================================================
   PARTNERS HEADING
   ========================================================= */

.home-partners .home-section-heading {
  margin-bottom: 45px;
}

.home-partners .home-section-title {
  color: #071b3d;
}

.home-partners .home-section-description {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   PARTNER MARQUEE
   ========================================================= */

.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}


/*
 * Gradient fade di kiri dan kanan.
 * Membuat logo terlihat masuk/keluar
 * secara lebih halus.
 */

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(
    to left,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 100%
  );
}


/* =========================================================
   PARTNER TRACK
   ========================================================= */

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;

  animation: partners-scroll 45s linear infinite;

  will-change: transform;
}


/*
 * Pause ketika mouse diarahkan ke logo.
 */

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}


/* =========================================================
   PARTNER ITEM
   ========================================================= */

.partner-item {
  width: 210px;
  height: 105px;

  margin: 0 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: #ffffff;

  border: 1px solid #edf1ee;
  border-radius: 10px;

  padding: 18px 22px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


/*
 * Logo.
 */

.partner-item img {
  display: block;

  width: auto;
  height: auto;

  max-width: 170px;
  max-height: 68px;

  object-fit: contain;

  filter: none;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


/*
 * Hover logo.
 */

.partner-item:hover {
  transform: translateY(-4px);

  border-color: #d8e6dc;

  box-shadow:
    0 10px 25px rgba(23, 32, 26, 0.08);
}

.partner-item:hover img {
  transform: scale(1.04);
}


/* =========================================================
   CONTINUOUS MARQUEE ANIMATION
   ========================================================= */

@keyframes partners-scroll {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

  .home-partners {
    padding: 65px 0 70px;
  }

  .partners-track {
    animation-duration: 40s;
  }

  .partner-item {
    width: 190px;
    height: 100px;

    margin: 0 18px;

    padding: 16px 20px;
  }

  .partner-item img {
    max-width: 150px;
    max-height: 62px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .home-partners {
    padding: 55px 0 60px;
  }

  .home-partners .home-section-heading {
    margin-bottom: 32px;
  }

  .home-partners .home-section-description {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .partners-marquee::before,
  .partners-marquee::after {
    width: 60px;
  }

  .partners-track {
    animation-duration: 32s;
  }

  .partner-item {
    width: 165px;
    height: 90px;

    margin: 0 12px;

    padding: 14px 16px;
  }

  .partner-item img {
    max-width: 135px;
    max-height: 55px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .home-partners {
    padding: 48px 0 55px;
  }

  .partner-item {
    width: 145px;
    height: 82px;

    margin: 0 10px;

    padding: 12px;
  }

  .partner-item img {
    max-width: 120px;
    max-height: 48px;
  }

}


/* =========================================================
   FINAL MOBILE HERO FIX
   PT KROMO SAKTI MANDRAGUNA
   ========================================================= */


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-page .hero-slider {
        width: 100%;

        /*
         * Desktop:
         * 16 / 6.3
         *
         * Tablet dibuat lebih tinggi agar
         * headline tetap nyaman dibaca.
         */
        aspect-ratio: 16 / 9;

        min-height: 360px;
    }


    .home-page .hero-slide img {
        object-fit: cover;

        /*
         * Fokus poster tetap di tengah.
         */
        object-position: center center;
    }


    .home-page .hero-slide::after {
        background:
            linear-gradient(
                90deg,
                rgba(8, 24, 12, 0.93) 0%,
                rgba(8, 24, 12, 0.75) 48%,
                rgba(8, 24, 12, 0.28) 78%,
                rgba(8, 24, 12, 0.12) 100%
            );
    }


    .home-page .hero-content {
        top: 50%;

        left: 7%;

        width: 76%;

        max-width: 580px;

        transform:
            translateY(-50%);
    }


    .home-page .hero-kicker {
        margin-bottom: 12px;

        font-size:
            0.68rem;
    }


    .home-page .hero-title {
        font-size:
            clamp(
                2rem,
                5.5vw,
                3.1rem
            );

        line-height:
            1.05;
    }


    .home-page .hero-description {
        max-width:
            500px;

        margin:
            15px 0 22px;

        font-size:
            0.88rem;

        line-height:
            1.65;
    }


    .home-page .hero-btn {
        min-height:
            42px;

        padding:
            0 16px;

        font-size:
            0.82rem;
    }


    .home-page .hero-slide-nav {
        width:
            38px;

        height:
            38px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .home-page .hero-slider {
        width: 100%;

        /*
         * Mobile dibuat lebih tinggi.
         * Ini adalah bagian paling penting
         * untuk memperbaiki screenshot kamu.
         */
        aspect-ratio:
            4 / 5;

        min-height:
            430px;

        max-height:
            500px;
    }


    .home-page .hero-slide {
        min-height:
            430px;
    }


    .home-page .hero-slide img {
        width:
            100%;

        height:
            100%;

        object-fit:
            cover;

        /*
         * Sedikit condong ke tengah.
         * Jangan pakai top/bottom karena
         * poster kamu adalah landscape.
         */
        object-position:
            center center;
    }


    .home-page .hero-slide::after {
        background:
            linear-gradient(
                90deg,
                rgba(5, 20, 10, 0.94) 0%,
                rgba(5, 20, 10, 0.82) 48%,
                rgba(5, 20, 10, 0.48) 75%,
                rgba(5, 20, 10, 0.20) 100%
            );
    }


    .home-page .hero-content {
        position:
            absolute;

        top:
            50%;

        left:
            7%;

        width:
            82%;

        max-width:
            none;

        padding:
            0;

        transform:
            translateY(-50%);
    }


    .home-page .hero-kicker {
        display:
            inline-flex;

        gap:
            7px;

        margin-bottom:
            11px;

        font-size:
            0.62rem;

        line-height:
            1.3;
    }


    .home-page .hero-kicker::before {
        width:
            25px;

        height:
            2px;
    }


    .home-page .hero-title {
        max-width:
            330px;

        margin:
            0;

        font-size:
            clamp(
                2.05rem,
                9vw,
                2.8rem
            );

        line-height:
            1.03;

        letter-spacing:
            -0.035em;
    }


    .home-page .hero-description {
        max-width:
            330px;

        margin:
            15px 0 20px;

        font-size:
            0.82rem;

        line-height:
            1.6;
    }


    .home-page .hero-actions {
        display:
            flex;

        flex-direction:
            row;

        align-items:
            center;

        flex-wrap:
            wrap;

        gap:
            9px;

        max-width:
            330px;
    }


    .home-page .hero-btn {
        width:
            auto;

        min-height:
            40px;

        padding:
            0 14px;

        border-radius:
            7px;

        font-size:
            0.76rem;
    }


    .home-page .hero-slide-nav {
        width:
            34px;

        height:
            34px;

        font-size:
            1.1rem;

        opacity:
            0.75;
    }


    .home-page .hero-slide-nav.prev {
        left:
            9px;
    }


    .home-page .hero-slide-nav.next {
        right:
            9px;
    }


    .home-page .hero-slide-dots {
        bottom:
            15px;

        z-index:
            6;
    }


    .home-page .hero-slide-dots .dot {
        width:
            7px;

        height:
            7px;
    }


    .home-page .hero-slide-dots .dot.active {
        width:
            21px;
    }

}


/* =========================================================
   SMALL PHONE
   390px / iPhone 12 Pro
   ========================================================= */

@media (max-width: 430px) {

    .home-page .hero-slider {
        aspect-ratio:
            4 / 5;

        min-height:
            440px;

        max-height:
            470px;
    }


    .home-page .hero-slide {
        min-height:
            440px;
    }


    .home-page .hero-content {
        left:
            7%;

        width:
            84%;
    }


    .home-page .hero-kicker {
        font-size:
            0.58rem;

        letter-spacing:
            0.11em;

        margin-bottom:
            9px;
    }


    .home-page .hero-kicker::before {
        width:
            23px;
    }


    .home-page .hero-title {
        max-width:
            315px;

        font-size:
            2.15rem;

        line-height:
            1.02;
    }


    .home-page .hero-description {
        max-width:
            310px;

        margin:
            13px 0 18px;

        font-size:
            0.78rem;

        line-height:
            1.55;
    }


    .home-page .hero-actions {
        max-width:
            290px;

        gap:
            8px;
    }


    .home-page .hero-btn {
        min-height:
            39px;

        padding:
            0 13px;

        font-size:
            0.72rem;
    }


    .home-page .hero-slide-nav {
        display:
            none;
    }


    .home-page .hero-slide-dots {
        bottom:
            13px;
    }

}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 360px) {

    .home-page .hero-slider {
        min-height:
            430px;
    }


    .home-page .hero-slide {
        min-height:
            430px;
    }


    .home-page .hero-content {
        left:
            6%;

        width:
            88%;
    }


    .home-page .hero-title {
        font-size:
            1.95rem;
    }


    .home-page .hero-description {
        font-size:
            0.74rem;
    }


    .home-page .hero-btn {
        min-height:
            37px;

        padding:
            0 11px;

        font-size:
            0.69rem;
    }

/* =========================================================
   FORCE - FEATURED BRANDS
   ========================================================= */

section.featured-brands {
    display: block !important;
    width: 100% !important;
    padding: 100px 0 !important;
}

section.featured-brands .featured-brands-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin-top: 48px !important;
}

section.featured-brands .featured-brand-card {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

section.featured-brands .featured-brand-logo {
    display: flex !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    padding: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

section.featured-brands .featured-brand-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 190px !important;
    max-height: 95px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

section.featured-brands .featured-brand-content {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 28px !important;
}

section.featured-brands .featured-brand-content h3 {
    margin: 0 0 12px !important;
}

section.featured-brands .featured-brand-content p {
    margin: 0 !important;
}


/* =========================================================
   FORCE TABLET
   ========================================================= */

@media (max-width: 1000px) {

    section.featured-brands .featured-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

}


/* =========================================================
   FORCE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    section.featured-brands {
        padding: 64px 0 !important;
    }

    section.featured-brands .featured-brands-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-top: 32px !important;
    }

    section.featured-brands .featured-brand-logo {
        height: 160px !important;
        min-height: 160px !important;
    }

}

}

