* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.container {
    width: 90%;
    margin: auto;
}

html {
    scroll-behavior: smooth;
}

/* HEADER */
/*.header {*/
/*    background: #00b34a;*/
/*    padding: 15px 0;*/
/*    color: #fff;*/
/*}*/

/*.logo {*/
/*    font-size: 20px;*/
/*}*/

/* =========================
   HEADER TOP
========================= */
.header-top {
    background: block;
    margin-top:50px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-img {
    height: 50px;
}

/* =========================
   NAV MENU
========================= */
.header-nav {
    position: absolute;
    top: 120px;
    width: 100%;
    z-index: 999;
}

.nav-inner {
    display: flex;
    justify-content: right;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.nav-menu li a:hover {
    text-decoration: underline;
}

/* HERO */
.hero {
    position: relative;
    height: 550px;
    background: url('../img/banner.jpg') center/cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 60px;
}

.hero-content h2 {
    font-size: 40px;
    margin-top:200px;
    margin-bottom: 15px;
}

.hero-content p {
    max-width: 700px;
    font-size: 18px;
    margin-top:25px;
    line-height: 1.6;
}

/* TABS */
.tabs {
    display: flex;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #ddd;

    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tabs a {
    padding: 15px 25px;
    font-size: 18px;
    text-decoration: none;
    color: #333;
    border-bottom: 3px solid transparent;
}

.tabs a.active {
    border-bottom: 3px solid #0b2c5f;
    font-weight: bold;
}

/* CONTENT */
.content {
    width: 80%;
    margin: 120px auto 40px;
}

.content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

/* =========================
   PROFIL PERUSAHAAN
========================= */
.profil-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    align-items: flex-start;
}

/* TEKS KIRI */
.profil-text {
    flex: 2;
    font-size: 18px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 0px;
}

.profil-text p {
    text-align: justify;
}

.profil-text-full {
    width: 100%;
    line-height: 1.8;
    font-size: 18px;
    line-height: 1.8;
    color: #000;
}

.profil-text-full p {
    text-align: justify;
}

/* FOTO KANAN */
.profil-foto {
    flex: 1;
    text-align: center;
}

.profil-foto img {
    width: 100%;
    max-width: 230px;
    background: #ff0000;       /* merah seperti contoh */
    border: 5px solid #2ecc71; /* hijau */
    border-radius: 6px;
}

/* CAPTION FOTO */
.profil-foto .caption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #000;
}

.profil-foto .caption span {
    font-weight: bold;
}

/* =========================
   GALERI SEJARAH (SEJARAH SINGKAT)
========================= */
.sejarah-galeri {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ITEM */
.sejarah-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* FOTO */
.sejarah-item img {
    width: 170px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid #2ecc71;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* TEKS */
.sejarah-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.sejarah-text strong {
    display: block;
    margin-bottom: 5px;
}

/* =========================
   VISI & MISI
========================= */
.visi-misi-heading {
    text-align: left;
    font-size: 28px;          /* samakan dengan h2 content */
    font-weight: bold;
    margin-top: 100px; 
    margin-bottom: 80px;
    color: #000;
}

.visi-misi {
    margin-top: 50px;
    text-align: center;
}

/* VISI */
.visi-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
}

.visi-text {
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
}

/* MISI */
.misi-title {
    font-size: 30px;
    font-weight: bold;
    margin-top: 50px; 
    margin-bottom: 30px;
}

.misi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;h
}

/* ITEM MISI */
.misi-item {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* NOMOR */
.misi-number {
    font-size: 18px;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px auto;
    background: #2d9cdb;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   VISI TAGLINE - MODERN NOTICE
========================= */
/*.visi-tagline {*/
/*    border-left: 5px solid #2d9cdb;*/
/*    padding: 16px 20px;*/
/*    margin-top: 30px;*/

/*    font-size: 15px;*/
/*    letter-spacing: 0.5px;*/

/*    text-align: left;*/
    
/*    background: linear-gradient(90deg, #0b2c5f, #2d9cdb);*/
/*    color: #fff;*/
/*    font-weight: bold;*/
/*}*/
/* SEMBUNYI AWAL */

.visi-tagline {
    background: #f1f8ff;
    border-left: 5px solid #2d9cdb;
    padding: 16px 20px;
    margin-top: 30px;

    font-size: 18px;
    font-weight: 600;
    color: #1c3d5a;

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* MUNCUL SAAT HOVER DI SECTION VISI MISI */
.visi-misi:hover .visi-tagline {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(45,156,219,0.25);
}

/*@keyframes fadeSlideUp {*/
/*    from {*/
/*        opacity: 0;*/
/*        transform: translateY(12px);*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: translateY(0);*/
/*    }*/
/*}*/

/* =========================
   DIVISI & GROUP USAHA
========================= */
.divisi-group {
    margin-top: 60px;
}

.divisi-group-title {
    font-size: 28px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 30px;
}

/* WRAPPER */
.divisi-group-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* KONTEN KIRI */
.divisi-group-content {
    flex: 2;
}

/* BLOCK */
.block {
    margin-bottom: 35px;
}

.block-title {
    font-size: 18px;
    font-weight: bold;
    color: #0b2c5f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-title .icon {
    color: #f57c00;
    font-size: 18px;
}

.block-subtitle {
    font-size: 13px;
    color: #555;
    margin: 5px 0 15px;
}

/* LIST */
.block-list {
    padding-left: 20px;
}

.block-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 14px;
}

/* =========================
   MODAL GAMBAR - SCROLLABLE
========================= */
#modalCabang {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;

    /* PENTING UNTUK SCROLL */
    overflow-y: auto;
    padding: 40px 20px;
}

#modalCabang.show {
    display: block;
}

/* KONTEN MODAL */
#modalCabang .modal-content {
    position: relative;
    /*background: #fff;*/
    margin: auto;
    max-width: 1100px;
    border-radius: 12px;

    /* BIAR SCROLL HALUS */
    overflow: visible;
}

/* GAMBAR */
#modalCabang img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* TOMBOL CLOSE */
#modalCabang .modal-close {
    position: sticky;
    top: 10px;
    margin-left: auto;
    display: block;

    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

/* =========================
   PENGELOLAAN TAD OUTSOURCING
========================= */
.outsourcing {
    margin-top: 100px;
    padding-bottom: 40px;
}

/* JUDUL */
.outsourcing-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 30px;
}

.outsourcing-title span {
    display: block;
    font-size: 26px;
}

/* TEKS */
.outsourcing-text {
    /*max-width: 900px;*/
    /*margin: 0 auto 50px auto;*/
    font-size: 18px;
    line-height: 1.8;
    color: #000;
}

.outsourcing-text p {
    margin-bottom: 20px;
}

.outsourcing-text ul {
    padding-left: 25px;
}

.outsourcing-text li {
    margin-bottom: 15px;
}

/* GALERI */
.outsourcing-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.outsourcing-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* =========================
   BIDANG HOVER PREVIEW
========================= */
.bidang-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* LIST */
.bidang-list {
    list-style: none;
    padding: 0;
}

.bidang-list li {
    padding: 12px 16px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.bidang-list li:hover {
    background: #f1f8ff;
    border-left: 4px solid #2e7d32;
    color: #2e7d32;
}

/* PREVIEW */
.bidang-preview {
    min-height: 320px;
    /*background: #f5f5f5;*/
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bidang-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* SAAT AKTIF */
.bidang-preview img.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   FLOATING GET BUTTON
========================= */
.get-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 10px;

    background: #00b34a;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    padding: 12px 16px;
    border-radius: 30px;

    box-shadow: 0 8px 20px rgba(0, 179, 74, 0.35);
    transition: all 0.3s ease;
}

/* ICON */
.get-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* HOVER */
.get-button:hover {
    background: #009a3f;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 179, 74, 0.45);
}

/* =========================
   OUTSOURCING HOVER OVERLAY
========================= */
.outsourcing-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* Gambar */
.outsourcing-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Overlay gradient */
.outsourcing-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;

    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.0) 60%
    );

    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover effect */
.outsourcing-item:hover .outsourcing-overlay {
    opacity: 1;
}

/* =========================
   MITRA KERJA
========================= */
.mitra-kerja {
    margin-top: 80px;
}

.mitra-title {
    font-size: 28px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 30px;
}

/* ITEM */
.mitra-item {
    border-top: 1px solid #ddd;
    padding: 15px 0;
}

/* HEADER */
.mitra-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.mitra-header .arrow {
    transition: transform 0.3s ease;
}

/* CONTENT (HIDE DEFAULT) */
.mitra-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    /*visibility: hidden;*/
    transition: all 0.4s ease;
}

/* AKTIF */
.mitra-item.active .mitra-content {
    max-height: 1000px; /* cukup besar */
    opacity: 1;
    /*visibility: visible;*/
}

.mitra-item.active .arrow {
    transform: rotate(90deg); /* ▶ jadi ▼ */
}

/* LOGO GRID */
.mitra-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
}

/*.mitra-logos img {*/
/*    max-width: 100%;*/
/*    max-height: 60px;*/
/*    object-fit: contain;*/

/*    filter: grayscale(100%);*/
/*    opacity: 0;*/
/*    transform: translateY(12px);*/

/*    transition: */
/*        opacity 0.45s ease,*/
/*        transform 0.45s ease,*/
/*        filter 0.3s ease;*/
/*}*/

.mitra-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* SAAT ACCORDION AKTIF */
/*.mitra-item.active .mitra-logos img {*/
/*    opacity: 1;*/
/*    transform: translateY(0);*/
/*}*/

/* WRAPPER LOGO (ANIMASI MASUK) */
.logo-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* SAAT ACCORDION AKTIF */
.mitra-item.active .logo-item {
    opacity: 1;
    transform: translateY(0);
}

/* GAMBAR LOGO */
.logo-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;

    filter: grayscale(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* ZOOM SAAT HOVER */
.logo-item:hover img {
    transform: scale(1.12);
    filter: grayscale(0%);
}


/* STAGGER (DELAY BERURUTAN) */
.mitra-item.active .logo-item:nth-child(1) { transition-delay: 0.05s; }
.mitra-item.active .logo-item:nth-child(2) { transition-delay: 0.10s; }
.mitra-item.active .logo-item:nth-child(3) { transition-delay: 0.15s; }
.mitra-item.active .logo-item:nth-child(4) { transition-delay: 0.20s; }
.mitra-item.active .logo-item:nth-child(5) { transition-delay: 0.25s; }
.mitra-item.active .logo-item:nth-child(6) { transition-delay: 0.30s; }
.mitra-item.active .logo-item:nth-child(7) { transition-delay: 0.35s; }
.mitra-item.active .logo-item:nth-child(8) { transition-delay: 0.40s; }
.mitra-item.active .logo-item:nth-child(9) { transition-delay: 0.45s; }
.mitra-item.active .logo-item:nth-child(10) { transition-delay: 0.50s; }
.mitra-item.active .logo-item:nth-child(11) { transition-delay: 0.55s; }
.mitra-item.active .logo-item:nth-child(12) { transition-delay: 1.00s; }
.mitra-item.active .logo-item:nth-child(13) { transition-delay: 1.05s; }
.mitra-item.active .logo-item:nth-child(14) { transition-delay: 1.10s; }
.mitra-item.active .logo-item:nth-child(15) { transition-delay: 1.15s; }
.mitra-item.active .logo-item:nth-child(16) { transition-delay: 1.20s; }
.mitra-item.active .logo-item:nth-child(17) { transition-delay: 1.25s; }
.mitra-item.active .logo-item:nth-child(18) { transition-delay: 1.30s; }
.mitra-item.active .logo-item:nth-child(19) { transition-delay: 1.35s; }
.mitra-item.active .logo-item:nth-child(20) { transition-delay: 1.40s; }
.mitra-item.active .logo-item:nth-child(21) { transition-delay: 1.45s; }

/* FOOTER */
.footer {
    background: #00b34a;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {
    .profil-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .profil-text {
        order: 2;
    }

    .profil-foto {
        order: 1;
        margin-bottom: 20px;
    }
    
    .sejarah-galeri {
        grid-template-columns: 1fr;
    }
    
    .outsourcing-gallery {
        grid-template-columns: 1fr;
    }

    .outsourcing-gallery img {
        height: 200px;
    }
    
    .get-text {
        display: none; /* hanya icon */
    }

    .get-button {
        padding: 14px;
        border-radius: 50%;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .misi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .divisi-group-wrapper {
        flex-direction: column;
    }

    .divisi-group-bg {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .misi-grid {
        grid-template-columns: 1fr;
    }
}
