/* Fonts */
:root {
  --default-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --heading-font: "Outfit", system-ui, sans-serif;
  --nav-font: "Plus Jakarta Sans", sans-serif;
}

/* ===== Outfit ===== */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-v15-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-v15-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-v15-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-v15-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-v15-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-v15-latin-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===== Plus Jakarta Sans ===== */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-v12-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-v12-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-v12-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-v12-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-v12-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #212529; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2d465e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #008bf9; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #212529; /* The default color of the main navmenu links */
  --nav-hover-color: #008bf9; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #008bf9; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f3f9ff;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #008bf9;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #409dfd;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/

body {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 400;
  color: #333;
}

/* Heading font */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.section-title {
  font-family: "Outfit", system-ui, sans-serif;
}

/* Heading weights */
h1,
h2,
h3 {
  font-weight: 600;
}

h4,
h5,
h6 {
  font-weight: 500;
}

/* Display / Hero */
.display-1,
.display-2 {
  font-weight: 500;
}

/* ==== Hover Animation Effects ==== */

/* Tombol dengan efek skala halus */
.btn-hover-grow {
  transition: all 0.3s ease-in-out !important;
}
.btn-hover-grow:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

/* Gambar dengan efek zoom dan shadow */
.img-hover-zoom {
  transition: transform 0.4s ease;
}
.img-hover-zoom:hover {
  transform: scale(1.05);
}

/* Logo client grayscale → full color */
.logo-hover-color {
  filter: grayscale(100%);
  transition: all 0.4s ease;
  opacity: 0.8;
}
.logo-hover-color:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
}

/* ======== 404 ======== */
.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: #3b82f6; 
}

.error-text {
  font-size: 1.5rem;
  font-weight: 600;
}

.error-desc {
  color: #6c757d;
  max-width: 420px;
}

.btn-rounded {
  padding: 12px 28px;
  border-radius: 50px;
}

/* ===== NAVBAR ===== */
.nav-link.dropdown-toggle::after {
  display: none !important;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateDown {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

@media (max-width: 991.98px) {
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar-collapse {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 0.5rem;
    max-height: 85vh;
    overflow-y: auto;
  }

  .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 0.75rem 0.5rem !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-link.dropdown-toggle::after {
    display: none !important;
  }

  /* Animasi rotate ketika dropdown terbuka */
  .nav-link.dropdown-toggle.show svg,
  .nav-link.dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
    animation: rotateDown 0.3s ease;
  }

  .dropdown-menu {
    border: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.02);
    margin-left: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: block !important;
  }

  .dropdown-menu.show {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
  }

  .dropdown-item {
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
  }

  .dropdown-item:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav-link {
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
  }

  .nav-link:hover {
    color: var(--bs-primary) !important;
  }

  /* Target SVG untuk desktop */
  .nav-link.dropdown-toggle svg {
    width: 20px;
    height: 20px;
    margin-left: 0.25rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    flex-shrink: 0;
  }

  /* Animasi rotate untuk desktop */
  .nav-link.dropdown-toggle[aria-expanded="true"] svg,
  .nav-link.dropdown-toggle.show svg {
    transform: rotate(180deg);
    animation: rotateDown 0.3s ease;
  }

  .dropdown-menu {
    min-width: 220px;
    animation: fadeIn 0.2s ease;
  }

  .dropdown-item {
    transition: all 0.2s ease;
  }

  .dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    padding-left: 1.5rem !important;
  }
}

.nav-link.active svg {
  color: var(--bs-primary) !important;
  fill: var(--bs-primary) !important;
}

.dropdown-item.active {
  position: relative;
}

.nav-link.active {
  position: relative;
  border-bottom: 2px solid var(--bs-primary);
}

@media (max-width: 991.98px) {
  .nav-link.active {
    border-bottom: none;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 0.375rem;
    padding-left: 1rem !important;
  }
}

.navbar-toggler {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

/* State awal - selalu reset */
.navbar-toggler .navbar-toggler-icon {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform: rotate(0deg);
}

/* Ketika menu terbuka (aria-expanded="true") */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  transform: rotate(90deg);
}

.navbar-toggler:hover {
  background: rgba(0, 0, 0, 0.02);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    transition: max-height 0.35s ease, opacity 0.25s ease;
    overflow: hidden;
  }

  .navbar-collapse:not(.show) {
    max-height: 0;
    opacity: 0;
    padding: 0 1rem;
  }

  .navbar-collapse.show {
    max-height: 1000px;
    opacity: 1;
    padding: 1rem;
  }
}

/* Close button styling */
.btn-outline-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Optional: Smooth color transition for SVG */
.nav-link svg {
  transition: fill 0.2s ease, transform 0.3s ease;
}

.nav-link:hover svg {
  fill: var(--bs-primary) !important;
}

/* ====== Client ===== */
.client-appear {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CLIENT CARD STSTIS */
.client-card-statis {
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));

  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.client-card-statis img {
  max-height: 50px;
  max-width: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Hover effect */
.client-card-statis:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));

  border-color: var(--bs-primary);
}

.client-card-statis:hover img {
  transform: scale(1.05);
}

/* ==== Efek underline smooth di teks link ===== */
.link-hover-underline {
  position: relative;
  color: inherit;
  text-decoration: none;
}
.link-hover-underline::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.link-hover-underline:hover::after {
  width: 100%;
}

/* WRAPPER ICON */
.badge-icon {
  width: 22px;
  height: 22px;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(100, 161, 253, 0.3);
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-footer {
  width: 22px;
  height: 22px;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgb(255, 255, 255);
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon,
.badge-icon img,
.badge-icon svg {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}
/* ========end wrapper========== */

/* ======== Hero ======== */
.hero-home {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  background-image: url("/assets/images/patren-hero.svg");
  background-size: contain;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.hero-home .badge {
  font-weight: 500;
  font-size: 0.9rem;
}

.hero-home img {
  animation: floatCloud 6s ease-in-out infinite;
}

.hero-badge {
  border: 1px solid rgba(13, 110, 253, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
  gap: 8px;
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-badge:hover {
  background: rgba(13, 110, 253, 0.12);
}



.hero-home-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 0;
}

.hero-home .container,
.hero-home .row {
  position: relative;
  z-index: 2;
}

@keyframes floatCloud {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* SOLUTION SECTION HOME  */

.solution-section {
  background: #f8fbff;
}

/* LEFT LIST */
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.solution-item.grid-layout {
  display: grid;
  grid-template-areas:
    "header header"
    "content content";
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.solution-header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.solution-item:hover {
  background: #f0f7ff;
  border-color: #e6f2ff;
  border-radius: 0.5rem;
}

.solution-item.active {
  background: #f0f7ff;
  border-left: 4px solid #4da3ff;
  border-color: #4da3ff;
  padding: 1.5rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(77, 163, 255, 0.15);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(13, 110, 253, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.solution-item.active .icon-box {
  background: white;
  transform: scale(1.1);
  border: none;
}

.solution-content {
  grid-area: content;
  grid-column: 1 / -1;
}

/* Content visibility */
.solution-full,
.solution-collapsed {
  transition: all 0.4s ease;
  overflow: hidden;
}

.solution-full {
  max-height: 0;
  opacity: 0;
}

.solution-full.show {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

.solution-collapsed {
  max-height: 50px;
  opacity: 1;
}

.solution-collapsed.show {
  display: block;
}

.solution-item.active .solution-collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.solution-image.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.solution-image.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* ====== Solutions Detail Page ===== */

.solution-title small {
  color: #008bf9;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.solution-title h2 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.solution-title p {
  color: #6c757d;
  margin: 0 auto;
}

.solution-menu {
  font-size: 1.1rem;
  color: #6c757d;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.solution-menu.active {
  color: #212529;
}

.solution-left {
  border-left: 4px solid #008bf9;
  background: linear-gradient(90deg, #eaf5ff 0%, #f9fbfd 100%);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 2px 4px 15px rgb(0 0 0 / 0.1);
}

.icon-wrapper {
  width: 38px;
  height: 38px;
  background-color: #d9eaff;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.image-frame {
  border-radius: 1rem;
  background: linear-gradient(135deg, #008bf9 0%, #b8dcff 100%);
  padding: 20px;
  max-width: 100%;
  position: relative;
  box-shadow: 4px 8px 24px rgb(0 154 255 / 0.4);
}

.image-frame img {
  width: 100%;
  border-radius: 0.75rem;
}

.image-badge {
  position: absolute;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 0 8px rgb(0 0 0 / 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.image-badge.top-left {
  top: 20px;
  left: 20px;
}

.image-badge.bottom-right {
  bottom: 20px;
  right: 20px;
}

/* DETAIL SOLUTIONS */
.solution-image-wrapper {
  width: 70%;
  aspect-ratio: 4 / 3; /* konsisten */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.5s ease;
  margin-inline: auto; /* center horizontal */
}

/* gambar di dalam wrapper */
.solution-image-wrapper img.solution-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* gambar selalu penuh & rapi */
  transition: transform 0.5s ease;
}

/* IMAGE */
.solution-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

/* FALLBACK GRADIENT */
.solution-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3aa6ff, #d6efff);
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OPTIONAL HOVER EFFECT */
.solution-image-wrapper:hover .solution-image {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Gradient block */
.solution-bg {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 20px;
  background-size: 200% 200%;
  background: linear-gradient(135deg, #3aa6ff, #d6efff);
  animation: gradientMove 8s ease infinite;
}

/* Gradient variations */
.gradient-1 {
  background: linear-gradient(135deg, #3aa6ff, #d6efff);
}

.gradient-2 {
  background: linear-gradient(135deg, #9fd6ff, #3aa6ff);
}

.gradient-3 {
  background: linear-gradient(135deg, #4bb1ff, #cfeaff);
}

/* Animation */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 991.98px) {
  .solution-image-wrapper {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .solution-image-wrapper {
    margin-left: 0;   /* kiri */
    margin-right: auto;
  }

  .order-md-2 .solution-image-wrapper {
    margin-left: auto;
    margin-right: 0; /* kanan */
  }
}

/* Mobile spacing */
@media (max-width: 768px) {
  #detail-solutions {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ============= */
/* Footer */
/* ============= */

footer {
  font-size: 0.95rem;
}

footer .footer-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-link:hover {
  color: #008bf9;
}

footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #008bf9;
  border-radius: 8px;
  background-color: #f1f7fc;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

footer .social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgb(0 0 0 / 0.15);
}

footer hr {
  border-top: 1px solid #e5e9ef;
}

.contact-list .icon {
  width: 24px; /* area ikon fix */
  flex-shrink: 0;
  margin-right: 8px;
  line-height: 1.4;
}

.contact-list .text {
  display: block;
  line-height: 1.6;
}

/* === Services Section Custom === */
#services-section {
  background-color: #008bf9;
  position: relative; /* supaya child absolute bisa berada di dalam */
  overflow: hidden;
}

/* background pattern overlay */
#services-section .pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url("/assets/images/services-background.png"), url("/assets/images/services-background.png");
  background-repeat: no-repeat;
  background-position:
    top left,
    bottom right;
  z-index: 1; /* Background di belakang */
}

#services-section .container {
  position: relative;
  z-index: 2; /* Konten di depan */
}

/* Wrapper Service Card */
.service-card {
  border-radius: 16px;
  overflow: hidden; /* radius gambar mengikuti card */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Image Wrapper (agar tidak merusak radius) */
.service-card .card-img-top {
  overflow: hidden; /* wajib supaya gambar ikut radius */
  padding: 20px;
  size: cover;
}

/* Image style */
.service-image {
  width: 100%;
  height: 100%; 
  object-fit: cover; /* biar gambar rapi */
  transition: transform 0.4s ease;
}

/* Hover zoom image */
.service-card:hover .service-image {
  transform: scale(1.05);
}

/* Body text agar makin rapi */
.service-card .card-body {
  padding: 20px 22px;
}

/* card text */
#services-section .card-body {
  text-align: left;
}

#services-section .card-body h5 {
  font-weight: 600;
  color: #212529;
}

#services-section .card-body p {
  color: #6c757d;
}

/* icon */
#services-section .card-body i {
  display: inline-block;
  font-size: 1.5rem;
  color: #008bf9;
  margin-bottom: 6px;
}

/* Background Pattern untuk Small Hero */
/* PATTERN OVERLAY STYLES */
.small-hero {
  position: relative;
  overflow: hidden;
}

/* Rasio 624x486 */
.ratio-box {
  aspect-ratio: 624 / 486;
}

/* Pastikan gambar full & crop rapi */
.object-fit-cover {
  object-fit: cover;
}

/* Pattern Overlay Element */
.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/services-background.png"), url("../images/services-background.png");
  background-repeat: no-repeat;
  background-position:
    top left,
    bottom right;
  background-size: 300px auto;
  z-index: 0;
  pointer-events: none;
}

/* Pastikan konten di atas pattern */
.small-hero .container {
  position: relative;
  z-index: 1;
}

/* Pattern variations */
.pattern-bg.pattern-dots .pattern-overlay {
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1 !important;
  color: #0d6efd; /* Warna dots */
}

.pattern-bg.pattern-lines .pattern-overlay {
  background-image: linear-gradient(90deg, currentColor 1px, transparent 1px), linear-gradient(currentColor 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.1 !important;
  color: #0d6efd;
}

.pattern-bg.pattern-grid .pattern-overlay {
  background-image: linear-gradient(90deg, currentColor 1px, transparent 1px), linear-gradient(currentColor 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05 !important;
  color: #0d6efd;
}

/* Floating animation */
.pattern-floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* Untuk background terang */
.bg-white .pattern-overlay,
.bg-light .pattern-overlay {
  opacity: 0.1;
}

/* Untuk background gelap */
.bg-dark .pattern-overlay,
.bg-primary .pattern-overlay {
  opacity: 0.05;
  filter: invert(1) brightness(1.5);
}

/* Responsive */
@media (max-width: 768px) {
  .pattern-overlay {
    background-size: 200px auto;
    opacity: 0.08 !important;
  }

  .pattern-floating {
    display: none;
  }
}

/* WHY CHOOSE US */
.why-choose-us .wcu-card {
  background: #ffffff;
  border-radius: 20px;
  transition: 0.3s ease;
  padding-bottom: 0;
}

.why-choose-us .wcu-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.why-choose-us .floating-badges .badge {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 12px;
}

/* Optional: Soft gradient background like the design */
.why-choose-us {
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

/* ===== Vision Mission ===== */
/* Animasi Hero blue */
.animate-fade-blue,
.word-fade {
  color: #c6c6c6;
  animation: wordToBlue 0.8s ease forwards;
  animation-delay: var(--delay);
}

@keyframes wordToBlue {
  0% {
    color: #c6c6c6;
  }

  100% {
    color: #0d6efd;
  }
}

/* Reset animasi saat switcher diklik */
.word-fade,
.animate-fade-blue {
  display: inline-block; 
  color: #c6c6c6;
}

.vm-box.active .word-fade.animate,
.vm-box.active .animate-fade-blue.animate {
  animation: wordToBlue 0.8s ease forwards;
}

.vm-switcher {
  position: relative;
  display: inline-flex;
  padding: 6px;
  background: #f6f8fa;
  border-radius: 40px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

#vm-content,
.vm-switcher,
section.py-5 {
  overflow-x: hidden;
  position: relative;
  overflow-x: hidden;
}


@media (max-width: 576px) {
  /* .vm-switcher {
    width: 100%;
  } */

  .vm-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

  .vm-btn {
    min-width: unset;       
    padding: 10px 16px;    
    font-size: 14px;
  }

  .vm-slider {
    width: calc(50% - 6px);
  }
}


/* Switcher */
.vm-btn {
  position: relative;
  z-index: 2;
  padding: 12px 40px; /* Equal padding untuk kedua tombol */
  background: transparent;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  color: #363a40;
  cursor: pointer;
  /* flex: 1; */
  /* min-width: 200px; */
  text-align: center;
}

.vm-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(50% - 6px);
}

/* Presisi berdasarkan button yang aktif */
.vm-btn.active ~ .vm-slider {
  transform: translateX(0);
}

.vm-btn[data-target="mission"].active ~ .vm-slider {
  transform: translateX(100%);
}

/* --- VM Content Animation --- */
.vm-box {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
  /* width: 100%; */
}

.vm-box.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.vm-box.hide-left {
  opacity: 0;
  transform: translateX(-20px);
}

.vm-box.hide-right {
  opacity: 0;
  transform: translateX(20px);
}

/* Wrapper agar posisi absolut bekerja */
#vm-content {
  position: relative;
  min-height: 160px; 
}

@media (max-width: 576px) {
  .vm-box,
  .vm-box.hide-right,
  .vm-box.hide-left {
    transform: translateX(0);
  }
}


/* Logo Carousel Styling - FIXED */
.logo-carousel-container {
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  width: 100%;
}

.logo-carousel-track {
  display: flex;
  animation: scrollLogos 40s linear infinite;
  gap: 60px;
  align-items: center;
  width: max-content;
}

.logo-carousel-track:hover {
  animation-play-state: paused;
}

.logo-carousel-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.logo-carousel-item img {
  max-height: 60px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-carousel-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Gradient Overlay */
.carousel-gradient {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.carousel-gradient.left {
  left: 0;
  background: linear-gradient(to right, #f8f9ff 0%, transparent 100%);
}

.carousel-gradient.right {
  right: 0;
  background: linear-gradient(to left, #f8f9ff 0%, transparent 100%);
}

/* Carousel Animation - FIXED */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}
/* ===========================
   PRINCIPAL / PARTNERSHIP
   =========================== */

.partnership-section{
  padding: 80px 0;
  background-color: #f9fafb;
}

#partnershipCarousel .row{
  padding: 10px;
}

.section-label{
  color: var(--bs-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title{
  color: #1f2937;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-description{
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 60px;
}

/* card */
.principal-card{
  background: #fff;
  border: 1px solid #bababa;
  border-radius: 16px;
  padding: 20px 16px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-bottom: 24px;
}

.principal-card:hover{
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: translateY(-5px);
}

.principal-logo{
  height: 50px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.principal-logo img{
  max-height: 50px;
  max-width: 180px;
  object-fit: contain;
}

.card-description{
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* carousel */
.carousel{ overflow: hidden; }

.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.carousel-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .2s ease;
}

.carousel-dot.active{
  width: 32px;
  border-radius: 4px;
  background-color: var(--bs-primary);
}

.carousel-inner{ overflow: hidden; }

@media (max-width: 768px){
  .partnership-section{
    padding: 44px 0;              
  }

  .section-title{
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .section-description{
    font-size: 14px;
    line-height: 1.45;
    margin: 0 auto 22px;         
    padding: 0 10px;
  }

  /* card jadi compact */
  .principal-card{
    border-radius: 14px;
    padding: 12px 12px;           
    margin-bottom: 12px;          
  }

  .principal-logo{
    height: 34px;                
    margin-bottom: 10px;
  }

  .principal-logo img{
    max-height: 34px;
    max-width: 140px;
  }

  .card-description{
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;         
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;        
    overflow: hidden;
  }

  /* dots lebih dekat */
  .carousel-dots{
    margin-top: 18px;
  }
}

/* extra kecil (HP 360-390px) */
@media (max-width: 575.98px){
  #partnershipCarousel .row{
    padding: 6px;                
  }

  .section-label{
    font-size: 12px;
    margin-bottom: 10px;
  }

  .section-title{
    font-size: 26px;
  }

  .principal-card{
    padding: 10px 10px;
    margin-bottom: 10px;
  }

  .principal-logo{
    height: 32px;
  }

  .principal-logo img{
    max-height: 32px;
    max-width: 130px;
  }

  .carousel-dot{
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active{
    width: 26px;
  }
}

/* ========================= */
/* PRINCIPAL STATIS */
/* ========================= */

.principal-statis-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  /* abu-abu soft */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
}

.principal-statis-card:hover {
  transform: translateY(-6px);
  border-color: var(--bs-primary);
}

/* Logo */
.principal-statis-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* LOGO RATA KIRI */
}

.principal-statis-logo {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* rata kiri */
}

/* Gambar logo */
.principal-statis-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Deskripsi */
.principal-statis-description {
  margin-top: 8px;
  text-align: left;
}

/* Jika jumlah card ganjil, card terakhir otomatis center */
.principal-statis-item:last-child:nth-child(odd) {
  margin-left: auto;
  margin-right: auto;
}

/* ISO Styles */

/* ISO Image Container */
.iso-img-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px; */
  position: relative;
  overflow: hidden;
}

.iso-img-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.iso-img-container img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(20%);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .iso-img-container {
    height: 100px;
    margin-bottom: 1.25rem;
  }

  .iso-img-container img {
    max-height: 70px;
  }
}

/* Animation for card entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ */
/* Testiomial Home */
/* ============ */

.testimonial-slider-wrapper {
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

/* Card */
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: #f1f4f7;
  border-radius: 28px;
  padding: 28px;
  position: relative;
}

/* Logo */
.testimonial-logo {
  height: 36px;
  margin-bottom: 20px;
  object-fit: contain;
}

/* Text */
.testimonial-text {
  font-size: 16px;
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Footer */
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* background: #80ddff;  */
  overflow: hidden;              
  flex: 0 0 44px;                
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;             
  object-position: center;
  display: block;               
}

.testimonial-footer small {
  display: block;
  color: #6b7280;
}

/* progress bar */
.testimonial-progress {
  width: 100%;
  height: 2px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.testimonial-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #0d6efd; /* primary */
  transition: width 0.3s ease;
}

/* Play Button */
.play-btn {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #0d6efd;
  color: #fff;
}

/* Navigation */
.testimonial-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #007bff);
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    margin: 0;
}

.testimonial-nav svg {
    width: 16px;
    height: 16px;
    transition: fill 0.2s ease;
    fill: var(--primary-color, #007bff);
}

.testimonial-nav:hover:not(.disabled) svg {
    fill: white;
}

.testimonial-nav.disabled svg {
    fill: white;
}

.testimonial-nav:hover:not(.disabled) {
    background: var(--primary-color, #007bff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.testimonial-nav:active:not(.disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.testimonial-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    background: #c7c7c8;
}

/* Focus styles untuk accessibility */
.testimonial-nav:focus {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

/* Responsive sizing */
@media (max-width: 768px) {
    .testimonial-nav {
        width: 36px;
        height: 36px;
    }
    
    .testimonial-nav svg {
        width: 14px;
        height: 14px;
    }
}

/* Responsive */
@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 576px) {
  .testimonial-card {
    flex: 0 0 100%;
  }
}

/* CTA Section Styles */
.cta-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.cta-card {
  background:
    radial-gradient(circle at 20% 30%, #6ec1ff 0%, transparent 45%), radial-gradient(circle at 50% 50%, #9fd6ff 0%, transparent 50%), radial-gradient(circle at 80% 40%, #4aa8ff 0%, transparent 45%), linear-gradient(135deg, #0d8df2, #1fa2ff);
  box-shadow: 0 20px 60px rgba(30, 144, 255, 0.3);
  border: none;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button Hover Effects */
.btn-hover {
  transition: all 0.3s ease;
  background: white;
  color: #1e90ff;
  border: none;
}

.btn-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
  color: #0066cc;
}

.btn-hover-up {
  transition: all 0.3s ease;
}

.btn-hover-up:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hover svg {
  transition: transform 0.3s ease;
}

.btn-hover:hover svg {
  transform: translate(3px, -3px);
}

.btn-hover-outline {
  transition: all 0.3s ease;
  border: 2px solid white;
  background: transparent;
}

.btn-hover-outline:hover {
  transform: translateY(-3px);
  background: white;
  color: #1e90ff;
  border-color: white;
}

/* ===== Reusable Outline Pill Button light ===== */
.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px 28px;
  border-radius: 999px;
  border: 2px solid #e2e2e2;
  background: transparent;
  color: #132f63;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-pill .btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-outline-pill:hover {
  border-color: #1e90ff;
  background: rgba(19, 47, 99, 0.04);
}

.btn-outline-pill:hover .btn-icon {
  transform: translate(4px, -4px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-card {
    padding: 3rem 2rem !important;
    min-height: 350px;
  }

  .cta-section h2 {
    font-size: 1.75rem !important;
  }

  .cta-section .lead {
    font-size: 1rem !important;
  }

  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
}

/* Z-index fix */
.z-1 {
  z-index: 1;
}

/* CONTACT PAGE STYLES */
#contact-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Maps */
.map-wrapper {
    max-width: 100%;
}

.map-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* CARD CENTER */
.location-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 420px;
    background: #fff;
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Mobile: card turun ke bawah agar tidak nutup gambar */
@media (max-width: 768px) {
    .location-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 16px;
        max-width: 100%;
    }
}

/* Hover Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Form Styles */
.form-floating .form-control {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-floating .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ============================= */
/* TABLET (≤ 992px) */
/* ============================= */
@media (max-width: 992px) {
  .display-4 {
    font-size: 2.75rem;
  }

  .display-5 {
    font-size: 2.25rem;
  }

  #contact-hero {
    text-align: center;
  }

  .hover-lift:hover {
    transform: none; /* disable lift on touch */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
  }
}

/* ============================= */
/* MOBILE (≤ 768px) */
/* ============================= */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.25rem;
  }

  .display-5 {
    font-size: 1.9rem;
  }

  .card-body.p-4 {
    padding: 1.5rem !important;
  }

  .form-floating label {
    font-size: 0.85rem;
  }

  .form-floating .form-control {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  

  .hover-lift {
    transition: none; /* better UX on mobile */
  }
}

/* ============================= */
/* SMALL MOBILE (≤ 576px) */
/* ============================= */
@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.6rem;
  }

  .card-body {
    padding: 1.25rem !important;
  }
}


/* JOURNEY  */
/* Timeline wrapper */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #dbeafe;
  transform: translateX(-50%);
}

/* Item */
.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 80px;
}

/* Left & Right alignment */
.timeline-item.left {
  justify-content: flex-start;
}

.timeline-item.right {
  justify-content: flex-end;
}

/* Card */
.timeline-card {
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
  border-radius: 20px;
  padding: 24px;
  width: 380px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
}

/* Icon */
.timeline-icon {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  z-index: 2;
}

.timeline-icon img,
.timeline-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    justify-content: flex-start !important;
    padding-left: 40px;
  }

  .timeline-icon {
    left: 8px;
    transform: none;
  }

  .timeline-card {
    width: 100%;
  }
}

/* ===========================
   ARTICLES SECTION
   =========================== */

#articles-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #008bf9 0%, #ffffff 100%);
}

#articles-section .container {
  position: relative;
  z-index: 2; /* konten selalu di atas */
}

/* background pattern */
.pattern-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  z-index: 0; /* jangan negatif, biar aman */
  pointer-events: none;
}

/* Desktop: putih lebih dominan */
@media (min-width: 768px) {
  #articles-section {
    background: linear-gradient(
      180deg,
      #008bf9 0%,
      #2d9cff 15%,
      #89beff 35%,
      #cce5ff 60%,
      #e6f2ff 80%,
      #ffffff 100%
    );
  }
}

/* thumbnail */
.thumbnail-container {
  height: 160px;
  overflow: hidden;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* card hover (dibatasi agar tidak ganggu semua card di web)
   kalau kamu memang mau berlaku global, hapus prefix #articles-section */
#articles-section .card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#articles-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

#articles-section .card:hover .thumbnail-image {
  transform: scale(1.05);
}

#articles-section .card:hover .card-title a {
  color: #0d6efd !important;
}

/* utility */
.object-fit-cover {
  object-fit: cover;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   RESPONSIVE TWEAKS
   (mengganti selector rawan: .col-lg-8 .card > div:first-child)
   =========================== */

/* Jika yang kamu maksud adalah area thumbnail pertama pada card,
   lebih aman target .thumbnail-container */
@media (max-width: 992px) {
  .thumbnail-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .thumbnail-container {
    height: 200px;
  }

  /* aturan ini tetap seperti punyamu, tapi lebih aman kalau elemen memang ada */
  .col-lg-4 .card .col-5 {
    width: 40% !important;
  }

  .col-lg-4 .card .col-7 {
    width: 60% !important;
  }
}

/* hero/pattern section height */
.pattern-articles.min-height-section {
  min-height: 30vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .pattern-articles.min-height-section {
    min-height: 30vh;
    padding: 6rem 0;
  }
}

/* ===========================
   ALL ARTICLES SECTION
   =========================== */

#all-articles-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

#all-articles-section .container {
  position: relative;
  z-index: 2;
}

/* blog card */
.blog-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* blog thumbnail */
.blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail {
  transform: scale(1.05);
}


/* Custom blur classes */
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* SEARCH PAGE */
.icon-search {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask: url("/assets/icon-outline/search.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/icon-outline/search.svg") no-repeat center / contain;
}
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}


/* Hover Effects */
.hover-scale {
        transition: all 0.3s ease;
    }

.hover-scale:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }

/* Icon Styles */
.icon-circle {
        transition: all 0.3s ease;
    }

.hover-scale:hover .icon-circle {
        transform: scale(1.1);
    }

.hover-scale:hover .icon-box {
        transform: scale(1.05);
    }

/* Badge Subtle Colors */
.bg-primary-subtle {
        background-color: rgba(13, 110, 253, 0.1) !important;
    }

.bg-success-subtle {
        background-color: rgba(25, 135, 84, 0.1) !important;
    }

.bg-info-subtle {
        background-color: rgba(13, 202, 240, 0.1) !important;
    }

.bg-warning-subtle {
        background-color: rgba(255, 193, 7, 0.1) !important;
    }

/* Search Input Focus */
.search-form .form-control {
        font-size: 1.1rem;
    }

    .search-form .form-control:focus {
        box-shadow: none;
        outline: none;
    }

    .search-form .input-group:focus-within {
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    }

/* Button Hover */
    .search-form .btn-primary {
        transition: all 0.3s ease;
    }

    .search-form .btn-primary:hover {
        transform: scale(1.02);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .hover-scale:hover {
            transform: translateY(-3px);
        }

        .search-hero h1 {
            font-size: 2rem;
        }

        .icon-circle {
            width: 60px !important;
            height: 60px !important;
        }

        .icon-circle i {
            font-size: 1.5rem !important;
        }
    }

    /* Focus State */
    #searchInput:focus {
        border-color: transparent !important;
    }

    /* Smooth transitions */
    * {
        transition: all 0.2s ease-in-out;
    }

    a {
        text-decoration: none !important;
    }
/* ========END======= */

/* SEARCH RESULT */
 /* Card Hover Effect */
    .hover-card {
        transition: all 0.3s ease;
        position: relative;
    }

    .hover-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    }

    /* Stretched Link Fix */
    .card-body {
        position: relative;
    }

    .stretched-link::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        content: "";
    }

    /* Badge Styles */
    .badge {
        font-weight: 500;
        padding: 0.35rem 0.65rem;
    }

    .bg-primary-subtle {
        background-color: rgba(13, 110, 253, 0.1) !important;
    }

    .bg-success-subtle {
        background-color: rgba(25, 135, 84, 0.1) !important;
    }

    .bg-info-subtle {
        background-color: rgba(13, 202, 240, 0.1) !important;
    }

    .bg-secondary-subtle {
        background-color: rgba(108, 117, 125, 0.1) !important;
    }

    /* Text Highlight */
    mark {
        background-color: #fff3cd;
        padding: 2px 4px;
        border-radius: 3px;
        font-weight: 500;
    }

    /* Image Styles */
    .object-fit-cover {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* Search Input */
    .search-form .form-control:focus {
        box-shadow: none;
    }

    .search-form .input-group:focus-within {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .hover-card:hover {
            transform: none;
        }

        .ratio-md-1x1 {
            --bs-aspect-ratio: 75%;
        }
    }

    /* Line Clamp for Description */
    .lh-sm {
        line-height: 1.4;
    }

    /* Smooth Transitions */
    * {
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    }

/* ====END==== */

/* CLIENT CARD */
.client-slider-wrapper {
    width: 100%;
    padding: 20px 0;
  }

  .client-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .slider {
    display: flex;
    animation: slidein 60s linear infinite;
    width: max-content;
  }

  .logos {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 25px;
  }

  .img-hover-zoom {
    /* filter: grayscale(100%); */
    transition: all 0.3s ease;
    object-fit: contain;
  }

  .img-hover-zoom:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
  }

  /* Gradient Overlay */
  .gradient-overlay {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
  }

  .gradient-overlay.left {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
  }

  .gradient-overlay.right {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
  }

  @keyframes slidein {
    0% {
      transform: translate3d(0, 0, 0);
    }

    100% {
      transform: translate3d(-50%, 0, 0);
    }
  }

  /* Pause animation on hover */
  .client-slider-container:hover .slider {
    animation-play-state: paused;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .logos {
      gap: 30px;
    }

    .img-hover-zoom {
      height: 35px !important;
    }

    .gradient-overlay {
      width: 50px;
    }
  }

  /* =============== */


  /* CERTIFICATION */
 .certifications-grid {
            gap: 10px;
        }

        /* Kolom */
        .certification-col {
            height: 380px;
            overflow: hidden;
            position: relative;
        }

        /* Track icon */
        .cert-track {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            padding: 40px 0;
        }

        /* Icon */
        .cert-track img {
            transition: transform .25s ease, filter .25s ease;
        }

        .cert-track img:hover {
            transform: scale(1.15);
            filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .15));
        }

        /* Animation */
        .certification-col.down .cert-track {
            animation: scrollDown 18s linear infinite;
        }

        .certification-col.up .cert-track {
            animation: scrollUp 18s linear infinite;
        }

        .certification-col::before,
        .certification-col::after {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: 70px;
            z-index: 2;
            pointer-events: none;
        }

        /* Fade atas */
        .certification-col::before {
            top: 0;
            background: linear-gradient(to bottom,
                    #ffffff 0%,
                    rgba(255, 255, 255, 0) 100%);
        }

        /* Fade bawah */
        .certification-col::after {
            bottom: 0;
            background: linear-gradient(to top,
                    #ffffff 0%,
                    rgba(255, 255, 255, 0) 100%);
        }

        /* Keyframes */
        @keyframes scrollDown {
            from {
                transform: translateY(0);
            }

            to {
                transform: translateY(-50%);
            }
        }

        @keyframes scrollUp {
            from {
                transform: translateY(-50%);
            }

            to {
                transform: translateY(0);
            }
        }

        /* Pause on hover */
        .certification-col:hover .cert-track {
            animation-play-state: paused;
        }


        /* Responsive */
        @media (max-width: 992px) {
            .certification-col {
                height: 220px;
            }
        }

        @media (max-width: 768px) {
            .certifications-grid {
                gap: 15px;
            }

            .cert-track img {
                height: 35px;
            }
        }

        @media (max-width: 768px) {
            .certification-col {
                height: 260px;
            }

            .certification-col::before,
            .certification-col::after {
                height: 50px;
            }

            .cert-track img {
                height: 35px;
            }
        }
/* ====================== */

/* PERTNERS LOOPS */
 .partners-loops-grid {
            gap: 10px;
        }

        /* Kolom */
        .partners-loops-col {
            height: 380px;
            overflow: hidden;
        }


        /* Track icon */
        .cert-track-partners {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            padding: 0;
        }

        /* Animation */
        .partners-loops-col.down .cert-track-partners {
            animation: scrollDown 12s linear infinite;
        }

        .partners-loops-col.up .cert-track-partners {
            animation: scrollUp 12s linear infinite;
        }

        /* Icon */
        .cert-track-partners img {
            max-height: 60px;
            width: auto;
            max-width: 60%;
            object-fit: contain;
            transition: transform .3s ease;
        }



        .partners-loops-col::before,
        .partners-loops-col::after {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: 70px;
            z-index: 2;
            pointer-events: none;
        }

        /* Fade atas */
        .partners-loops-col::before {
            top: 0;
            background: linear-gradient(to bottom,
                    #ffffff 0%,
                    rgba(255, 255, 255, 0) 100%);
        }

        /* Fade bawah */
        .partners-loops-col::after {
            bottom: 0;
            background: linear-gradient(to top,
                    #ffffff 0%,
                    rgba(255, 255, 255, 0) 100%);
        }


        /* Keyframes */
        @keyframes scrollDown {
            from {
                transform: translateY(0);
            }

            to {
                transform: translateY(-50%);
            }
        }

        @keyframes scrollUp {
            from {
                transform: translateY(-50%);
            }

            to {
                transform: translateY(0);
            }
        }


        /* Pause on hover */
        .partners-loops-col:hover .cert-track-partners {
            animation-play-state: paused;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .partners-loops-col {
                height: 220px;
            }
        }

        @media (max-width: 768px) {
            .partners-loops-grid {
                gap: 15px;
            }

            .cert-track-partners img {
                height: 35px;
            }
        }

        @media (max-width: 768px) {
            .partners-loops-col {
                height: 260px;
            }

            .cert-track-partners {
                padding: 25px 0;
                gap: 18px;
            }

            .cert-track-partners img {
                max-height: 42px;
            }

            .partners-loops-col::before,
            .partners-loops-col::after {
                height: 45px;
            }
        }

/* ARTICLES PAGE */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.tag-item {
    transition: background-color .2s ease, color .2s ease;
}

.tag-item:hover:not(.bg-primary) {
    transform: translateY(-1px);
}

/* SIDEBAR DESKTOP ONLY */
@media (min-width: 992px) {
    .article-sidebar {
        position: sticky;
        top: 100px;
        z-index: 10;
    }
}

/* Reset & Base Utilities */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Flex Layout Logic */
.article-thumb-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hover-card:hover .article-img {
    transform: scale(1.05);
}

.article-title {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-link {
    color: #4b5563;
    transition: all 0.2s ease;
}

.category-link:hover {
    background-color: #f3f4f6;
    color: var(--bs-primary);
}

.category-link.active {
    background-color: var(--bs-primary);
    color: white !important;
}

.category-link.active .badge {
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .article-thumb-container {
        width: 260px; /* Lebar tetap di desktop */
        min-width: 260px;
        min-height: 100%;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
}

/* Sidebar Sticky */
@media (min-width: 992px) {
    .sidebar-sticky {
        position: sticky;
        top: 2rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .article-thumb-container {
        height: 180px; /* Tinggi tetap di mobile */
    }
    
    .article-content {
        padding: 1.25rem !important;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .border-top-mobile {
        border-top: 1px solid #eee;
        padding-top: 1rem;
    }
    
    .stretched-link::after {
        z-index: 2;
    }
}

/* ===== Force tidy Bootstrap input-group in sidebar search card ===== */
.card .card-body form .input-group{
  flex-wrap: nowrap;              /* cegah tombol turun ke bawah */
  width: 100%;
}

.card .card-body form .input-group > .form-control{
  flex: 1 1 auto;
  min-width: 0;                   /* cegah overflow */
  height: 44px;                   /* tinggi konsisten */
  line-height: 44px;
  padding: 0 .9rem;
  border-top-left-radius: .75rem;
  border-bottom-left-radius: .75rem;
}

/* kamu pakai border-end-0, pastikan benar-benar hilang */
.card .card-body form .input-group > .form-control.border-end-0{
  border-right: 0 !important;
}

/* tombol search (icon) */
.card .card-body form .input-group > .btn{
  height: 44px;
  width: 48px;                    /* tombol tetap, tidak penyok */
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: .75rem;
  border-bottom-right-radius: .75rem;
  flex: 0 0 48px;
}

/* rapihin icon supaya center */
.card .card-body form .input-group > .btn i{
  line-height: 1;
  font-size: 1rem;
}

/* fokus tidak bikin border sambungan aneh */
.card .card-body form .input-group > .form-control:focus{
  position: relative;
  z-index: 3;
  box-shadow: none;               /* opsional: biar clean */
}
.card .card-body form .input-group > .btn:focus{
  position: relative;
  z-index: 4;
  box-shadow: none;               /* opsional */
}

/* Mobile: sedikit lebih besar dan enak disentuh */
@media (max-width: 575.98px){
  .card .card-body form .input-group > .form-control{ height: 46px; line-height: 46px; }
  .card .card-body form .input-group > .btn{ height: 46px; width: 50px; flex-basis: 50px; }
}


/* ===== WhatsApp Floating Widget ===== */
.wa-widget{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1055;
  display: none; /* akan di-show lewat JS */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wa-fab{
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bs-primary);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .28s ease, transform .28s ease, box-shadow .15s ease;
  will-change: transform, opacity;
}

.wa-widget.is-ready .wa-fab {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-fab:hover{ transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
.wa-fab:active{ transform: translateY(0px); }

.wa-box{
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 320px;
  max-width: calc(100vw - 36px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  overflow: hidden;
  transform: translateY(10px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  will-change: transform, opacity;
}

.wa-box.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-box {
    transition: none !important;
  }
}

.wa-box-header{
  padding: 12px 14px;
  background: #f7fafc;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.wa-brand{
  display: flex;
  gap: 10px;
  align-items: center;
}

.wa-badge{
  width: 34px;
  height: 34px;
  
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.wa-title{ font-weight: 700; font-size: 14px; line-height: 1.2; color: #111827; }
.wa-subtitle{ font-size: 12px; color: #6b7280; margin-top: 2px; }

.wa-close{
  border: 0;
  background: transparent;
  color: #6b7280;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
}
.wa-close:hover{ background: rgba(0,0,0,.05); color: #374151; }

.wa-box-body{
  padding: 12px 14px 10px;
}

.wa-bubble{
  background: #f3f4f6;
  color: #111827;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.wa-quick{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wa-chip{
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12.5px;
  cursor: pointer;
  color: #111827;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.wa-chip:hover{
  background: #f9fafb;
  border-color: rgba(0,0,0,.16);
  transform: translateY(-1px);
}

.wa-box-footer{
  padding: 10px 14px 14px;
}

.wa-send{
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wa-send:hover{ background: #0b1220; }

@media (max-width: 575.98px){
  .wa-widget{ right: 14px; bottom: 14px; }
  .wa-fab{ width: 54px; height: 54px; }
  .wa-box{ width: 310px; bottom: 68px; }
}
/* ===== /WhatsApp Floating Widget ===== */
