/* ================= ROOT ================= */
:root {
    --primary: #379CB0;
    --primary-dark: #2a8e96;
    --accent: #f35b5b;
    --light-bg: #f5f7f8;
    --text-dark: #333;
}

/* ================= GLOBAL ================= */
body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    padding-top: 0px;
}
/* OFFSET UNTUK FIXED HEADER */
.pt-header {
    padding-top: 130px; /* sesuaikan tinggi header */
}
.inner-page {
    padding-top: 130px; /* sesuaikan tinggi header */
}


.container {
    max-width: 1350px;
}

.navbar {
    margin-bottom: 0 !important;
}



/* ===== TOP HEADER ===== */
.top-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 6px 0;
}
.header-left {
    gap: 18px;
    padding-left: 145px;
}

/* Logo */
.header-logo { height: 58px; }
.header-logo-small { height: 48px; }
.header-logo-akhlak { height: 52px; }

/* Right Info */
.header-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.info-item {
    font-size: 12px;
    line-height: 1.4;
    color: #444;
    position: relative;
    padding-right: 20px;
}

.info-item strong {
    font-weight: 600;
    color: #222;
}

/* Separator */
.info-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    height: 30px;
    width: 1px;
    background: #ddd;
}

/* Language */
.language-select {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}



/* ================= NAVBAR ================= */
.main-navbar {
    background: var(--primary);
    padding: 6px 0;
}

.main-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 10px 18px !important;
    transition: 0.3s;
}

.main-navbar .nav-link:hover {
    background: var(--primary-dark);
    border-radius: 4px;
}
/* ================= HEADER FIX PERMANEN ================= */

#header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999 !important;
    background: #fff;
}

.main-navbar {
    background: var(--primary) !important;
}

/* ================= DROPDOWN NAVBAR ================= */

.main-navbar .dropdown-menu {
    background: var(--primary);
    border: none;
    border-radius: 6px;
    margin-top: 0;
    padding: 6px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.main-navbar .dropdown-item {
    color: #fff;
    font-size: 14px;
    padding: 10px 18px;
    transition: 0.3s;
}

.main-navbar .dropdown-item:hover {
    background: var(--primary-dark);
    color: #fff;
}

.main-navbar .dropdown-toggle::after {
    border-top-color: #fff;
}
.main-navbar .dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    display: block;
    visibility: hidden;
    transition: 0.25s ease;
}

.main-navbar .dropdown.show .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Search */
.navbar .form-control {
    border-radius: 4px;
    font-size: 13px;
}
.main-navbar .navbar-collapse {
    position: relative;
    align-items: center;
    justify-content: center; /* ini bikin menu center */
}

/* Menu tetap center */
.main-navbar .navbar-nav {
    margin: 0 auto;
}

/* Search tetap di kanan */
.main-navbar form {
    position: absolute;
    right: 25px; /* geser ke kiri sedikit */
}
/* ================= DROPDOWN HOVER ================= */

@media (min-width: 992px) {

    .main-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: 0.25s ease;
        margin-top: 0;
    }

    .main-navbar .dropdown-toggle::after {
        transition: 0.3s;
    }

    .main-navbar .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* ================= HERO ================= */
.hero-section {
    margin: 0;
}

.hero-slide {
    height: 590px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 34px;
    font-weight: 700;
}

.hero-author {
    font-style: italic;
    margin-bottom: 15px;
}

/* ================= BUTTON ================= */
.btn-danger {
    background: var(--accent);
    border: none;
}

.btn-danger:hover {
    background: #d94a4a;
}

/* ================= WRAPPER ================= */
.cek-sertifikat-wrapper {
    position: relative;
}

/* Background biru */
.cek-sertifikat-banner {
    background: var(--primary);
    padding: 30px 0 40px 0; /* lebih pendek */
    color: #fff;
}

/* Input */
.cek-input {
    max-width: 450px;
    height: 45px;
    border-radius: 6px;
}

/* ================= FLOATING CARD ================= */
.kalibrasi-card {
    background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);

    margin-top: -120px; /* naikkan lebih ke tengah */
}

.kalibrasi-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.kalibrasi-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.kalibrasi-card .btn {
    background: var(--accent);
    border: none;
}

.kalibrasi-card .btn:hover {
    background: #d94a4a;
}

/* Responsive */
@media (max-width: 992px) {
    .kalibrasi-card {
        margin-top: 30px; /* mobile jangan floating */
    }

    .cek-sertifikat-banner {
        padding-bottom: 60px;
    }
}

/* ================= MODERN SERVICE CARD ================= */

.service-card-modern-link {
    text-decoration: none !important;
    color: inherit;
}

.service-card-modern-link:hover {
    text-decoration: none !important;
}

.service-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.35s ease;
    border: 1px solid #eee;
    height: 100%;
}

/* Hover Zoom + Lift */
.service-card-modern:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Icon Circle */
.service-icon {
    min-width: 80px;
    height: 80px;
    background: #f5f7f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-height: 45px;
    max-width: 45px;
    object-fit: contain;
}

/* Text */
.service-content h5 {
    color: #1e73e8;
    font-weight: 600;
    margin-bottom: 8px;
    transition: 0.3s;
}

.service-card-modern:hover .service-content h5 {
    color: var(--primary);
}

.service-content p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .service-card-modern {
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        margin-bottom: 10px;
    }
}
/* Item tambahan awalnya hidden */
.extra-item {
    display: none;
}

/* Animasi muncul */
.layanan-item {
    transition: all 0.4s ease;
}
.show-item {
    display: block !important;
    animation: fadeUp 0.4s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= PROFIL ================= */

.profil-section {
    background: #f5f7f8;
}

.profil-tabs .nav-tabs {
    border-bottom: 2px solid #ddd;
}

.profil-tabs .nav-link {
    color: #555;
    padding: 12px 25px;
    font-weight: 500;
    border: none;
}

.profil-tabs .nav-link.active {
    background: var(--primary);
    color: #fff !important;
    border-radius: 4px 4px 0 0;
}

.profil-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.profil-text {
    line-height: 1.8;
    font-size: 15px;
    color: #444;
}

.profil-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ================= COVERAGE ================= */
.coverage-section {
    background: #eef6f7;
    padding: 80px 0;
}

.coverage-title {
    color: #3bb3b3;
    font-weight: 700;
    font-size: 30px;
}

.coverage-list-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
}

.coverage-item {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    transition: 0.3s;
}

.coverage-item i {
    color: #333;
}

.coverage-item:hover {
    transform: translateX(5px);
    color: var(--primary);
}
/* Hilangkan background putih Highcharts */
#indonesiaMap,
.highcharts-container,
.highcharts-root {
    background: transparent !important;
}

.highcharts-background {
    fill: transparent !important;
}

/* ================= CLIENT ================= */

.clients-section {
    padding: 80px 0;
    background: #fff;
}

.client-logos-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.client-item img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* LEFT */
.news-main {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.1)
    );
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.news-main-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.news-meta {
    font-size: 13px;
    color: #ddd;
}
/* ================= STANDARD IMAGE BERITA ================= */

.news-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Rekomendasi instansi */
    overflow: hidden;
    border-radius: 12px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover effect */
.news-card:hover .news-image {
    transform: scale(1.08);
}

/* tombol kecil fix */
.news-overlay .btn {
    display: inline-flex !important;
    width: auto !important;
    padding: 6px 14px !important;
}
/* Fix tombol selengkapnya berita kiri */
.news-overlay .news-btn-small {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
    padding: 6px 14px !important;
}

/* kalau masih kena global bootstrap */
.news-overlay .btn {
    width: auto !important;
}

/* RIGHT */
.news-side-card {
    background: #2f2f2f;
    border-radius: 16px;
    padding: 25px;
    height: 100%;
}

.news-side-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.news-side-row img {
    width: 85px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
}

.news-side-content h6 {
    font-size: 14px;
    margin-bottom: 5px;
}

.news-side-content h6 a {
    color: #fff;
    text-decoration: none;
}

.news-meta-small {
    font-size: 12px;
    color: #bbb;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ================= PUBLIKASI TERKINI ================= */

.publikasi-section {
    background-color: #eef6f7 !important;
    padding: 80px 0;
}

/* Card */
.publikasi-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.publikasi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Date */
.publikasi-date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 6px;
}

/* Kategori jadi badge */
.publikasi-kategori {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Title */
.publikasi-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
    min-height: 55px;
    color: #333;
}

/* Footer */
.publikasi-footer {
    font-size: 14px;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}

/* Download */
.download-link {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: 0.3s;
}

.download-link i {
    margin-left: 5px;
}

.download-link:hover {
    color: #dc3545;
}

/* Views */
.publikasi-views {
    color: #6c757d;
    font-size: 13px;
}

.publikasi-views i {
    margin-left: 4px;
}
.kategori-pengumuman {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.kategori-pelayanan {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.kategori-peraturan {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}
/* ================= INSTAGRAM FINAL FIX ================= */

.instagram-section {
    background: #f3f3f3;
    padding: 80px 0;
}

.instagram-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* === IMAGE FIX RATIO === */
.instagram-image {
    width: 100%;
    height: 260px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.instagram-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* TIDAK TERPOTONG */
}

/* === LOGO PERFECT CENTER === */
.instagram-logo {
    width: 85px;
    height: 85px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -42px auto 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 5;
}

.instagram-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* === BODY FLEX AUTO HEIGHT === */
.instagram-body {
    padding: 25px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.instagram-body h6 {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    min-height: 40px;
}

.instagram-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.instagram-body p {
    font-size: 13px;
    color: #555;
    margin-top: auto; /* BIKIN SEMUA CARD SAMA TINGGI */
}
/* ================= FULL FOOTER ================= */

.main-footer {
    background: #3d98a5;
    color: #ffffff;
}

/* Partner bar */
.footer-partner {
    background: #c9dbe0;
    padding: 20px 0;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logos img {
    max-height: 45px;
    object-fit: contain;
}

/* Main content */
.footer-content {
    padding: 50px 0;
}

/* Icon bar */
.footer-icon-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-icon-bar img {
    max-height: 40px;
    object-fit: contain;
}

/* Divider */
.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.4);
}

/* Left content */
.footer-left h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-left p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Right content */
.footer-social a {
    color: #ffffff;
    margin-left: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-copy {
    font-size: 13px;
}

.footer-stats {
    font-size: 13px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-right {
        text-align: left !important;
        margin-top: 20px;
    }
}

/* ================= FLOATING ROW ================= */

.floating-help-row {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
}

.help-text {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-size: 13px;
    line-height: 1.3;
}

.help-wa-btn {
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.help-wa-btn:hover {
    transform: scale(1.1);
}

.back-to-top {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

/* ================= WHATSAPP POPUP ================= */

.wa-popup {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s ease;
    z-index: 9999;
}

.wa-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-popup-header {
    background: #25D366;
    color: #fff;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.wa-popup-header i {
    font-size: 26px;
}

.wa-popup-body {
    padding: 18px;
    font-size: 13px;
    color: #555;
}

.wa-contact {
    margin-top: 15px;
    background: #f3f3f3;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.wa-contact:hover {
    background: #e9e9e9;
}

.wa-contact-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-contact-left img {
    width: 35px;
}

.wa-close {
    position: absolute;
    right: 15px;
    bottom: -30px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    body {
        padding-top: 160px;
    }

    .header-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 8px;
    }

    .info-item {
        padding-right: 0;
    }

    .info-item::after {
        display: none;
    }

    .header-logo,
    .header-logo-small,
    .header-logo-akhlak {
        height: 42px;
    }

    .hero-slide {
        height: 420px;
    }
}

@media (max-width: 768px) {

    .hero-slide {
        height: 350px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .services-section,
    .coverage-section,
    .news-section {
        padding: 50px 0;
    }
}

@media (max-width: 991.98px) {

    body {
        padding-top: 120px !important;
    }

    .pt-header,
    .inner-page {
        padding-top: 120px !important;
    }

}

/* ================= FIX GAP NAVBAR & HERO ================= */

/* Pastikan tidak ada jarak */
.hero-section,
.hero-section .container-fluid,
.hero-section .swiper,
.hero-section .swiper-wrapper,
.hero-section .swiper-slide {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hilangkan background putih dari swiper */
.swiper {
    background: transparent !important;
}

/* Pastikan hero langsung menempel navbar */
.main-navbar + .hero-section {
    margin-top: 0 !important;
}

/* Pastikan tidak ada border/shadow */
.main-navbar {
    border: none !important;
    box-shadow: none !important;
}

/* Jika masih ada 1px line */
.hero-section {
    border-top: none !important;
}


/* ================= SPACING SERVICES SECTION ================= */

/* Turunkan sedikit seluruh section */
.services-section {
    margin-top: 40px;   /* bisa ubah ke 50px kalau mau lebih lega */
}

/* Kalau yang terasa dempet adalah heading-nya */
.services-section .text-center {
    margin-top: 20px;
}

/* ===== UPGRADE WARNA FOOTER EXISTING ===== */
#footer.footer {
    background: var(--primary);
    color: #ffffff;
}

#footer .footer-top {
    background: transparent;
}

#footer h3,
#footer h4,
#footer p,
#footer a {
    color: #ffffff !important;
}

#footer ul {
    list-style: none;
    padding-left: 0;
}

#footer ul li {
    margin-bottom: 8px;
}

#footer ul li a:hover {
    opacity: 0.8;
}

/* ===== PARTNER BAR (ABU MUDA LUAR FOOTER) ===== */
.footer-partner-bar {
    background: #c9dbe0;
    padding: 20px 0;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logos img {
    max-height: 50px;
    object-fit: contain;
}

/* ===== FOOTER TOSCA ===== */
#footer {
    background: var(--primary);
    color: #ffffff;
}

.footer-main {
    background: transparent;
}

.footer-icon-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-icon-bar img {
    max-height: 40px;
    object-fit: contain;
}

.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.4);
}

#footer h5,
#footer p,
#footer a,
#footer div {
    color: #ffffff;
}

.footer-social a {
    margin-left: 10px;
    font-size: 16px;
}

/* ===== PARTNER LOGO HOVER EFFECT ===== */

.footer-partner-bar .partner-logos img {
    height: 50px !important;
    transition: all 0.3s ease;
}

.footer-partner-bar .partner-logos img:hover {
    transform: translateY(-4px) scale(1.06);
}

/* BERITA ==*/

.news-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-card img {
    border-radius: 10px;
    transition: 0.4s ease;
}
.news-card img:hover {
    transform: scale(1.05);
}
/* Smooth image container */
.news-card .col-md-5 {
    overflow: hidden;
    border-radius: 10px;
}

.news-title {
    font-weight: 600;
}

.news-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    color: #555;
}

.popular-title {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.popular-title:hover {
    color: #dc3545;
}

@media (min-width: 992px){
    .col-lg-4 {
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}

/* ================= DETAIL BERITA IMAGE FIX ================= */

.detail-berita .news-card {
    overflow: hidden; /* cegah gambar keluar card */
}

/* Wrapper khusus detail */
.detail-berita .news-image-wrapper {
    width: 100%;
    max-height: 420px;       /* batas tinggi */
    overflow: hidden;
    border-radius: 12px;
}

/* Gambar tetap proporsional */
.detail-berita .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Supaya tidak terlalu tinggi di layar besar */
@media (min-width: 1200px) {
    .detail-berita .news-image-wrapper {
        max-height: 380px;
    }
}

/* Mobile lebih pendek */
@media (max-width: 768px) {
    .detail-berita .news-image-wrapper {
        max-height: 250px;
    }
}

/* ================= CONTACT ================= */

.contact-form-box,
.contact-info-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom i {
    position: absolute;
    top: 12px;
    left: 0;
    color: #2ea3ad;
}

.input-group-custom input,
.input-group-custom textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 10px 10px 30px;
    background: transparent;
    outline: none;
    transition: 0.3s;
}

.input-group-custom input:focus,
.input-group-custom textarea:focus {
    border-bottom: 1px solid #2ea3ad;
}

.textarea i {
    top: 14px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-box img {
    height: 50px;
}

.btn-kirim {
    background: #f35b5b;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
}

.btn-kirim:hover {
    background: #d94a4a;
}

/* ===== CONTACT INFO RIGHT (STYLE WEB LAMA) ===== */

.contact-info-box {
    background: #f2f2f2; /* abu soft */
    padding: 35px 30px 30px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: relative;
}

/* Label kecil kiri atas */
.contact-info-box h5 {
    position: absolute;
    top: -14px;
    left: 25px;
    background: #2ea3ad;
    color: #fff;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
}

/* Deskripsi */
.contact-info-box p {
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #555;
}

/* List styling */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Icon lebih rapi */
.contact-list li i {
    min-width: 18px;
    margin-top: 4px;
}

.map-box {
    border-radius: 4px; /* lebih kecil */
    overflow: hidden;
    box-shadow: none; /* hilangkan shadow */
    border: 1px solid #e5e5e5; /* kasih garis tipis */
}

.map-box iframe {
    width: 100%;
    height: 400px; /* lebih tinggi seperti web lama */
    display: block;
}
.contact-section .map-box {
    margin-top: 50px;
}

/* ================= PAGE BANNER FIX ================= */

.page-banner {
    position: relative; /* PENTING: jangan absolute */
    height: 220px;
    background: url('../img/header.png') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.banner-title {
    position: relative;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    z-index: 2;
}

/* Tambahkan jarak setelah banner */
.page-banner + section {
    margin-top: 40px;
}

/* ================= PAGINATION STYLE ================= */

.pagination .page-link {
    color: #dc3545;
    border: 1px solid #dc3545;
}

.pagination .page-link:hover {
    background-color: #dc3545;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
    border-color: #eee;
}


/* ================= FAQ MODERN ================= */

.faq-main-title {
    font-weight: 700;
    color: #dc3545;
}

.faq-main-title span {
    color: #333;
    font-weight: 500;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-left {
    display: flex;
    align-items: center;
}

.faq-icon {
    width: 34px;
    height: 34px;
    background: #2f9db0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}

.faq-title {
    font-size: 15px;
    font-weight: 500;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #f8f9fa;
    transition: all 0.4s ease;
    font-size: 14px;
}

.faq-answer.active {
    padding: 15px 20px;
    max-height: 500px;
}

.faq-arrow {
    transition: 0.3s;
}

.faq-arrow.rotate {
    transform: rotate(180deg);
}

/* ================= SIDEBAR ================= */

.sidebar-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sidebar-card img {
    transition: 0.3s;
}

.sidebar-card img:hover {
    transform: scale(1.03);
}

.sidebar-title {
    font-weight: 600;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
    padding-left: 10px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.3s;
    background: #f8f9fa;
}

.sidebar-links a:hover {
    background: #dc3545;
    color: #fff;
}
.sidebar-links i {
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .faq-title {
        font-size: 14px;
    }

    .faq-question {
        padding: 15px;
    }

}

/* ================= MOBILE HEADER FIX ================= */

@media (max-width: 991.98px) {

    /* Reset layout row */
    .top-header .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Header kiri jadi center */
    .header-left {
        padding-left: 0 !important;
        justify-content: center !important;
        width: 100%;
        margin-bottom: 5px;
    }

    /* Sembunyikan logo tambahan */
    .header-logo-small,
    .header-logo-akhlak {
        display: none !important;
    }

    /* Logo utama */
    .header-logo {
        height: 40px !important;
    }

    /* Tampilkan header-info tapi hanya language */
    .header-info {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        gap: 0 !important;
    }

    /* Sembunyikan semua info kecuali language */
    .header-info .info-item {
        display: none !important;
    }

    .header-info .info-item:first-child {
        display: block !important;
    }

    /* Top header spacing */
    .top-header {
        padding: 8px 0;
    }

    /* Kurangi offset body supaya tidak ada gap */
    body {
        padding-top: 45px !important;
    }

    .pt-header,
    .inner-page {
        padding-top: 95px !important;
    }

}
/* ================= MOBILE NAVBAR FIX ================= */

@media (max-width: 991.98px) {

    .main-navbar {
        padding: 6px 15px;
    }

    /* Jangan paksa flex center */
    .main-navbar .navbar-collapse {
        justify-content: flex-start !important;
    }

    .main-navbar .navbar-nav {
        margin: 0 !important;
        text-align: left;
    }

    /* Hamburger kanan */
    .navbar-toggler {
        margin-left: auto;
        border: none;
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

    /* === FIX DROPDOWN MOBILE === */

    /* Default tertutup */
    .main-navbar .dropdown-menu {
        display: none !important;
        position: static !important;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Tampil saat klik (class show dari bootstrap) */
    .main-navbar .dropdown.show > .dropdown-menu {
        display: block !important;
    }

}

/* ================= TABLET HEADER FIX ================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    body {
        padding-top: 110px !important;
    }

    .pt-header,
    .inner-page {
        padding-top: 110px !important;
    }

    /* Logo sedikit lebih kecil */
    .header-logo {
        height: 48px !important;
    }

    .header-logo-small,
    .header-logo-akhlak {
        display: none !important;
    }

    .header-info {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 10px !important;
    }

}
/* ================= TABLET NAVBAR FIX ================= */

/* ================= FIX GAP TABLET ================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    /* Samakan tinggi header */
    body {
        padding-top: 65px !important;
    }

    .pt-header,
    .inner-page {
        padding-top: 65px !important;
    }

    /* Pastikan hero benar-benar nempel navbar */
    .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Hilangkan kemungkinan margin collapse */
    .hero-section:first-child {
        margin-top: 0 !important;
    }

    /* Pastikan navbar tidak punya margin bawah */
    .main-navbar {
        margin-bottom: 0 !important;
    }

}
/* ================= TABLET HERO ================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .hero-slide {
        height: 420px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }

}
/* ================= TABLET SERVICES ================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .service-card-modern {
        padding: 20px;
    }

    .col-lg-4.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

}
/* ================= TABLET COVERAGE ================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .coverage-list-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logos-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

}
/* ================= TABLET NEWS ================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .news-main {
        height: 300px;
    }

    .news-main-title {
        font-size: 18px;
    }

    .news-side-card {
        padding: 20px;
    }

}