/* PARENT */

html, body {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 80px; /* biar ga ketutup navbar */
}



/* NAV home */
.navbar {
    background-color: #ffffff !important; /* putih solid */
    box-shadow: 0 3px 10px rgba(69, 21, 145, 0.18);
}

.nav-wrapper {
    padding-left: 40px;
    padding-right: 40px;
}

    .navbar .nav-link {
        position: relative;
        color: #000 !important;
        transition: color 0.2s ease-in-out;
    }

    /* Garis bawah */
    .navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0%;
        height: 2px;
        background-color: #ff3b30; /* warna garis merah */
        transition: width 0.3s ease-in-out;
    }

    /* Hover muncul garis */
    .navbar .nav-link:hover::after {
        width: 100%;
    }
    .navbar .nav-link:hover {
        color: #451591 !important; /* merah logo style */
    }


    @media (max-width: 992px) { /* ukuran tablet ke bawah */
    .navbar .nav-link::after {
        display: none !important;
        }
    }

    /* Button Login */

   .btn-login {
        background-color: #451591 !important;
        border-color: #451591 !important;
        color: #fff !important;
        border-radius: 8px !important; /* biar lebih rounded */
        padding: 6px 18px; /* biar proporsional */
        font-weight: 500;
        transition: 0.2s ease;
    }

        /* Hover */
        .btn-login:hover {
            background-color:#ff3b30 !important; /* sedikit lebih gelap */
            border-color: #ff3b30 !important;
            color: #fff !important;
        }
    
     @media (max-width: 992px) { /* ukuran tablet ke bawah */
      .btn-login {
        width: 100%;              /* biar rata dan rapi */
        margin-top: 10px;         /* jarak dari menu di atasnya */
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;       /* teks tengah */
    }
    }

@media (min-width: 992px) {
    .nav-wrapper {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (min-width: 1400px) {
    .nav-wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Home User - Banner */
 
    .hero-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 80px 20px;
        
        min-height: 90vh;
        position: relative;   /* 🔑 INI KUNCI UTAMA */
        overflow: hidden;     /* optional tapi recommended */
    
    }

/* 
    .hero-right::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        background: #f2e7ff;
        border-radius: 50%;
        right: 0;
        top: 20px;
        z-index: -1;
    } */

.hero-wave-center {
    position: absolute;
    top: 50%;            /* tengah vertikal */
    left: 50%;           /* tengah horizontal */
    transform: translate(-50%, -50%);
    width: 120vw;         /* full viewport width, lebih fleksibel dari % section */
    max-width: 1920px;    /* optional, biar nggak kebesaran di layar super besar */
    pointer-events: none; 
    z-index: 0;
}

.hero-wave-center svg {
    width: 100%;
    height: auto;        /* menjaga aspect ratio */
    display: block;
}
/* Mobile */
@media (max-width: 768px) {
    .hero-wave-center {
        position: absolute; /* tetap absolute */
        top: 0;             /* di atas hero */
        left: 50%;
        transform: translateX(-50%);
        width: 120vw;
        height: auto;
        z-index: 0;
    }

    .hero-container {
        position: relative;
        z-index: 1;         /* konten di atas wave */
    }
}
    .hero-container {
        width: 100%;
        max-width: 1100px;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    .hero-left {
        flex: 1;
    }

    .hero-left h1 {
        font-size: 48px;
        font-weight: 800;
        color: #222;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    /* FORM SEARCH RESI */
    .hero-search-form {
        margin-top: 20px;
        display: flex;
        gap: 12px;
        max-width: 420px;
    }

    .hero-search-form input {
        flex: 1;
        padding: 12px 16px;
        border: 2px solid #ddd;
        border-radius: 10px;
        font-size: 16px;
    }

    .hero-search-form button {
        padding: 12px 24px;
        background: #7B3FE4;
        color: #fff;
        border-radius: 10px;
        border: none;
        font-size: 16px;
        cursor: pointer;
        font-weight: 600;
    }

    .hero-right {
        flex: 1;
        text-align: right;
    }

    .hero-right img {
        width: 100%;
        max-width: 700px;
        border-radius: 14px;
        opacity: 0.95;
    }

    /* 3 CARDS */
    .hero-cards {
        margin-top: 40px;
        display: flex;
        gap: 25px;
        max-width: 1100px;
        width: 100%;
        justify-content: center;
    }

    .hero-card {
        flex: 1;
        padding: 22px;
        border-radius: 14px;
        background: #fff;
        color: #000;
        box-shadow: 0 20px 20px rgba(0,0,0,0.05);
        text-align: center;
        transition: all 0.25s ease-in-out;
        cursor: pointer;
        transform: translateY(0); /* posisi normal */
    }

    /* HOVER: background ungu + teks putih + card naik */
    .hero-card:hover {
        background: #451591;
        color: #fff;
        transform: translateY(-10px); /* naik 10px */
        box-shadow: 0 8px 24px rgba(0,0,0,0.18); /* shadow lebih tinggi */
    }

    /* Teks ikut animasi */
    .hero-card h3,
    .hero-card p {
        transition: all 0.25s;
    }

    .hero-card:hover h3,
    .hero-card:hover p {
        color: #fff;
    }

    /* Icon (PNG) jadi putih */
    .hero-card .card-icon {
        transition: 0.25s;
    }

    .hero-card:hover .card-icon {
        filter: brightness(0) invert(1);
    }
    .hero-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .hero-card p {
        font-size: 15px;
        color: #555;
    }

    .hero-card .card-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
        opacity: 0.9;
    }


/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-right img {
        max-width: 340px;
        margin-top: 30px;
    }

    .hero-cards {
        flex-direction: column;
    }
}

/* ===============================
   HOME NEWS ADMIN – FINAL
================================ */

/* Card base */
.app-main .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.app-main .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0,0,0,.12);
}

/* Image */
.card-img-top-news-admin {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Card body */
.app-main .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 56px !important; /* ruang tombol */
}

/* Title – max 2 baris */
.app-main .card .card-body .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
    margin-bottom: .5rem;
}

/* Preview link */
.app-main .card .preview-link {
    display: block;
}

/* Status indicator */
.news-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.bg-success { background: #28a745 !important; }
.bg-danger  { background: #dc3545 !important; }

/* Actions (pojok kanan bawah) */
.app-main .card .card-actions {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.app-main .card .card-actions a {
    font-size: 18px;
    color: #333;
    padding: 6px;
    border-radius: 6px;
}

.app-main .card .card-actions a:hover {
    background: rgba(0,0,0,.05);
    color: #af1c1c;
}

/* Wrapper spacing */
.card-wrapper {
    padding: 10px;
}

.app-main .card .badge {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
}

/* DATA TABle */


.table {
    table-layout: fixed !important; /* wajib biar ellipsis jalan */
    width: 100% !important;
}

.table td, 
.table th {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (min-width: 577px) {
    .table td, .table th {
        max-width: 150px !important;
    }
}

/* HP */
@media (max-width: 576px) {
    .table td, .table th {
        max-width: 80px !important; /* bisa lu ubah */
    }
}


/* HIGHLIGHT LAYANAN */

/* HIGHLIGHT LAYANAN */
#highlight-services {
    background-color: #f9f7ff;
    padding: 40px 0;
}

/* WRAPPER RESPONSIVE FULL WIDTH */
.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;      /* default tetap rapi */
    gap: 20px;
    width: 100%;
    padding: 0 40px;              /* geser kiri–kanan */
    box-sizing: border-box;
}

/* CARD */
.service-card {
    background: #fff;
    padding: 26px;
    border-radius: 12px;
    width: clamp(240px, 32%, 320px); /* gede */
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

/* HEADER */
.service-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* BARIS DPX + BUTTON */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* JUDUL DPX */
.dpx-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #451591;
}

/* BUTTON LEARN MORE */
.learn-more-btn {
    background-color: #ff3b30;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}

.learn-more-btn:hover {
    background-color: #9e241d;
}

/* LINE + TITLE */
.line-express {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.purple-line {
    width: 35px;
    height: 3px;
    border-radius: 5px;
    background-color: #451591;
}

.express-text {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

/* DESCRIPTION */
.service-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}



/* TABLET */
@media (max-width: 992px) {
    .services-wrapper {
        justify-content: center;
        padding: 0 20px;
    }

    .service-card {
        width: calc(50% - 20px);  /* 2 kolom */
    }
}

/* HP BESAR / HP KECIL */
@media (max-width: 600px) {
    .service-card {
        width: 100%;              /* 1 kolom */
    }

    .services-wrapper {
        padding: 0 15px;
    }

    /* agar tombol lebih pas di mobile */
    .learn-more-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}




/* CUSTOM MODAL DPX */
.modal-content {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    animation: slideDown 0.25s ease-out;
}

/* HEADER GRADIENT */
/* HEADER */
.modal-header {
background: linear-gradient(135deg, #4a16c7 0%, #5616d6 100%);
color: #fff;
padding: 20px 24px;
}


.modal-header .modal-title {
font-weight: 700;
font-size: 20px;
}


.modal-header .btn-close {
filter: invert(1);
opacity: 0.9;
}


.modal-header .btn-close:hover {
opacity: 1;
}


/* BODY */
.modal-body {
padding: 22px 28px;
font-size: 15px;
color: #444;
line-height: 1.7;
text-align: justify;
text-justify: inter-word;
}


/* RESPONSIVE IMAGE */
.modal-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.modal-image {
    width: 100%;
    max-width: 500px;  /* lebar maksimum */
    height: 300px;     /* semua gambar jadi tinggi sama */
    object-fit: contain; /* gambar tidak terpotong */
    border-radius: 10px;
   
}

/* ANIMATION */
@keyframes slideDown {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}


/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 576px) {
    .modal-body {
        padding: 18px 20px;
        font-size: 14px;
    }


    .modal-header {
        padding: 16px 20px;
    }
}

/* HOVER */
#benefit .benefit-icon {
    font-size: 42px;
    color: #451591;
}

#benefit .benefit-card {
    border-radius: 12px;
    transition: 0.3s;
    background: #ffffff;
}

#benefit .benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}



/* Clients & Testimoni */
#client-testimoni{
    background-color: #f9f7ff;
}
.client-logo.ke-1{
    width: 300px;
    height: 250px;
}
.client-logo.ke-2{
    width: 140px;
    height: 140px;
}
.client-logo.ke-3{
    width: 110px;
    height: 150px;
}
.client-logo.ke-4{
    width: 300px;
    height: 250px;
}
.client-logo.ke-5{
    width: 250px;
    height: 250px;
}
.client-logo.ke-6{
     width: 190px;
    height: 190px;
}
.client-logo.ke-7{
    width: 190px;
    height: 190px;
}
.client-logo {
    width: 180px;         /* kotak lebar */
    height: 180px;        /* kotak tinggi */
    object-fit: contain;  /* biar gambar ga ke-crop */
    object-position: center;
    padding: 10px;        /* biar ada napas */
}



/* CARD UTAMA */
 .testi-card {
        padding: 25px;
        border-radius: 15px;
        height: 100%;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: .2s;
    }

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

    .testi-text {
        text-align: center;
        color: #444;
    }

    .hidden-testi {
        display: none;
    }

    .testi-footer {
        margin-top: 20px;
    }

    .separator {
        width: 100%;
        height: 1px;
        background: #e5e5e5;
        margin: 6px 0 8px 0;
    }

    .client-img {
        width: 55px;
        height: 55px;
        object-fit: contain;
        border-radius: 50%;
        background: #fff;
        padding: 5px;
        border: 1px solid #ddd;
    }
#toggleTesti {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
}

#toggleTesti:hover {
    background: #ff3b30 !important; /* sedikit lebih gelap biar ada efek hover */
    border-color: #ff3b30 !important;
}



/* ============================
   GRID SERTIFIKASI (REWRITTEN)
============================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* === FIX 2 KOLOM === */
    gap: 26px;
    justify-items: center; /* Biar item selalu center */
    width: 100%;
}
.cert-grid > .cert-card:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;   /* full row */
    justify-self: center;  /* center */
}

/* ============================
   CARD SERTIFIKASI
* GRID */
/* GRID: 2 kolom */
.compro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 28px;
  align-items: stretch;     /* semua card stretch sama tinggi */
}

/* last odd centered (untuk 5 item misalnya) */
.compro-grid > .compro-card:nth-child(odd):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 760px;         /* ubah sesuai keinginan */
  width: 100%;
}

/* CARD */
.compro-card {
  background: #fff;
  padding: 28px 26px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(9, 8, 25, 0.04);
  display: flex;
  flex-direction: column;
    transition: all 0.25s ease;
}
.compro-card:hover {
  box-shadow: 0 12px 28px rgba(9, 8, 25, 0.12);
  transform: translateY(-6px);
}
/* FIXED LOGO AREA -> kunci supaya P sejajar */
.logo-box {
  height: 150px;            /* <-- ubah height di sini kalau perlu */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  /* optional: beri padding kecil supaya logo nggak nempel tepi */
  padding: 6px;
}

/* Logo: scale proporsional */
.compro-card img {
  max-width: 220px;         /* batasi lebar logo horizontal */
  max-height: 120px;        /* batasi tinggi logo vertikal */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* TEXT area dipaksa untuk "push to bottom" agar paragraf sejajar */
.text-box {
  margin-top: auto;
  min-height: 110px;        /* pastikan blok teks punya tinggi minimal (tweak jika perlu) */
  display: flex;
  align-items: center;      /* pusatkan teks vertikal dalam blok -> terlihat rapi */
}

.text-box p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  color: #222;
  text-align: center;
}

/* RESPONSIVE: 1 kolom di mobile */
@media (max-width: 768px) {
  .compro-grid {
    grid-template-columns: 1fr;
  }
  .compro-grid > .compro-card:nth-child(odd):last-child {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }
  .logo-box { height: 120px; }     /* adapt if needed on small screens */
  .text-box { min-height: 80px; }
}
/* MAPS */

#map {
  padding: 80px 0;
  background: #ffffff;
}

/* WRAPPER BARU TANPA CONTAINER */
.mapps-wrapper {
  max-width: 1400px;        /* biar konten tetap ga terlalu melebar */
  margin: 0 auto;
  padding: 0 5px;          /* lebih mepet dari container */
  display: flex;
  align-items: center;
  gap: 40px;
}

/* TEXT */
.map-text {
  flex: 1;
  z-index: 3;
}

#map h3 {
  font-size: 30px;
  color: #451591;
  font-weight: 700;
  margin-bottom: 18px;
}

#map p {
  font-size: 16px;
  color: #6b6b6b;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* BUTTON */
.btn-locate {
  background: #ff3b30;
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: .15s ease;
}

.btn-locate:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    color: #fff !important;
}

/* MAP IMAGE */
.map-image {
  flex: 1;
  height: 320px;
  min-height: 240px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center right;
}

/* ===== RESPONSIVE ===== */

/* Desktop di bawah 1300px */
@media (max-width: 1300px) {
  .map-image {
    height: 360px;
    background-position: center;
  }
}

/* Tablet & Mobile (920px ke bawah) */
@media (max-width: 920px) {
  .mapps-wrapper {
    flex-direction: column;    /* tumpuk ke bawah */
    text-align: center;
    gap: 30px;
  }

  .map-image {
    display: block !important;   /* pastikan ga ke-hide */
    width: 100%;
    height: 280px !important;    /* height lebih gede biar keliatan */
    background-position: center !important;
    background-size: contain !important;
  }
}

/* Mobile kecil */
@media (max-width: 640px) {
  #map h2 { font-size: 26px; }

  .map-image {
    height: 200px;
  }
}



/* GALLERY */


.gallery-img {
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 8px;
}

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

.image-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
}

.carousel-track-gallery {
  display: flex;
  gap: 16px;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
}

.image-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 200px; 
}

.image-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* 🔥 ini yang bikin 1–3 item ke tengah */
  gap: 16px;
  padding: 1rem;
}

.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.image-gallery-grid .gallery-img {
  flex: 0 0 calc(25% - 16px);  /* 4 slot per baris */
  max-width: calc(25% - 16px);
}

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


@media (max-width: 992px) {
    .image-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));  
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-height: 100px;
    }

    #view-more-btn {
        display: none;
    }

    .testimonial-scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem 0;
        flex-wrap: nowrap;
    }

    .testimonial-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
        display: flex !important;
    
    }
}
