/* Reset index start */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-image: url('../images/Banner/back.jpg');
    padding-top: 70px;
    /* tinggi navbar supaya slider tidak ketimpa */
}

html {
    scroll-behavior: smooth;
}

.wa-popup{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%) scale(0);
    opacity:0;
    transition:.3s ease;
    z-index:9999;
}

.wa-popup.show{
    transform:translate(-50%, -50%) scale(1);
    opacity:1;
}


/* Animasi dasar */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Saat muncul di layar */
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SLIDER BARU DENGAN ANIMASI GESER === */

/* Container utama slider */
.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 10px;
    background-image: url('../images/Banner/back.jpg');
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Wrapper semua slide */
.slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

/* Setiap slide */
.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    max-height: 1000px;
    object-fit: contain;
}

/* Tombol kanan kiri */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    font-size: 22px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.45);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* --- DOT INDIKATOR --- */
.dots {
    position: absolute;
    bottom: 15px;
    /* letak di atas bagian bawah gambar */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
    background: transparent;
    /* hilangkan background */
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    background-color: #939393;
    /* hitam solid */
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0.9;
    /* sedikit transparan untuk tampilan elegan */
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background-color: #fff;
    /* dot aktif jadi putih biar kontras */
    transform: scale(1.3);
}

/* === START WELCOME SECTION === */
.welcome-text-container {
    position: relative;
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    color: #f0b400;
    padding: 80px 40px 100px 40px;
    font-family: Arial, sans-serif;
    text-align: center;
    overflow: visible;
    /* biar gambar di luar area tetap terlihat */
}

.welcome-text p strong {
    display: block;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #f0b400;
    text-shadow: 0 0 8px rgba(240, 180, 0, 0.6);
}

.welcome-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 60px;
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    /* pastikan teks di atas background */
}

/* Gambar hiasan */
.welcome-text-container img.moon,
.welcome-text-container img.rocket {
    position: absolute;
    width: 100px;
    height: auto;
    z-index: 3;
    /* pastikan gambar di atas teks/background */
    transition: all 0.3s ease;
}

/* Desktop: dekat dengan teks */
.welcome-text-container img.moon {
    top: -20px;
    left: 50%;
    transform: translateX(-450%) translateY(40px);
    /* geser lebih dekat ke teks kiri */
}

.welcome-text-container img.rocket {
    bottom: 20px;
    left: 50%;
    transform: translateX(350%) translateY(-40px);
    /* geser ke kanan teks */
}

/* === FIX TAMBAHAN AGAR GAMBAR MUNCUL DI SEMUA RESOLUSI === */
.welcome-text-container {
    overflow: visible !important;
    position: relative;
}

.welcome-text-container img.moon,
.welcome-text-container img.rocket {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

/* Pastikan section luar juga tidak memotong gambar */
section {
    overflow: visible !important;
    position: relative;
}

/* === SUPER DEKAT + GESER KE PINGGIR UNTUK MOBILE ≤ 430px === */
@media (max-width: 430px) {
    .welcome-text-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    /* 🌙 Moon — di atas teks, agak ke kanan, nempel banget */
    .welcome-text-container img.moon {
        position: relative !important;
        display: block !important;
        order: 0 !important;
        margin: -18px auto -8px !important;
        /* super dekat ke teks */
        width: 55px !important;
        left: -150px !important;
        /* geser agak ke kanan */
        transform: none !important;
    }

    /* ✨ Teks utama */
    .welcome-text {
        order: 1 !important;
        padding: 5px 10px 6px !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        z-index: 2 !important;
    }

    /* 🚀 Rocket — di bawah teks, agak ke kiri */
    .welcome-text-container img.rocket {
        position: relative !important;
        display: block !important;
        order: 2 !important;
        margin: -6px auto -15px !important;
        width: 55px !important;
        transform: translateX(-30px) !important;
        /* geser kiri */
    }
}

/* === RESPONSIF DIBENERIN === */
@media (max-width: 1024px) {
    .welcome-text {
        padding: 30px 30px;
        font-size: 17px;
    }

    .welcome-text-container img.moon {
        width: 85px;
        transform: translateX(-350%) translateY(30px);
    }

    .welcome-text-container img.rocket {
        width: 85px;
        transform: translateX(270%) translateY(-30px);
    }
}

@media (max-width: 768px) {
    .welcome-text {
        padding: 25px 20px;
        font-size: 16px;
        line-height: 1.7;
    }

    /* Gambar pindah ke samping teks tapi lebih dekat */
    .welcome-text-container img.moon {
        top: 10px;
        left: 15%;
        transform: translateY(0);
        width: 70px;
    }

    .welcome-text-container img.rocket {
        bottom: 10px;
        right: 15%;
        transform: translateY(0);
        width: 70px;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        padding: 20px 15px;
        font-size: 15px;
        line-height: 1.6;
    }

    /* Gambar pindah ke atas & bawah teks agar gak nutup */
    .welcome-text-container img.moon {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    .welcome-text-container img.rocket {
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
}

/* ----------- RESPONSIVE ADJUSTMENTS ----------- */

/* Untuk layar tablet (max 992px) */
@media (max-width: 992px) {
    .welcome-text {
        max-width: 90%;
        padding: 40px 80px;
        font-size: 17px;
    }

    .welcome-text p strong {
        font-size: 19px;
    }

    .welcome-text-container img.moon {
        left: 100px;
        width: 110px;
    }

    .welcome-text-container img.rocket {
        right: 100px;
        width: 110px;
    }
}

/* Untuk layar HP (max 600px) */
@media (max-width: 600px) {
    .welcome-text {
        max-width: 95%;
        padding: 30px 25px;
        font-size: 16px;
        line-height: 1.7;
        border-radius: 10px;
    }

    .welcome-text p strong {
        font-size: 17px;
    }

    .welcome-text-container {
        padding: 30px 20px;
    }

    .welcome-text-container img.moon,
    .welcome-text-container img.rocket {
        display: none;
        /* sembunyikan ikon di HP agar tidak menumpuk teks */
    }
}

/* end */

/* Gaya untuk bagian Milestones dan Services */
.milestone-section {
    background-image: url('../images/Banner/back.jpg');
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 60px 20px;
    text-align: center;
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    margin-bottom: 80px;
    margin-left: 20px;
}

/* Container untuk bagian Milestones (2016, 50+, dst.) */
.milestone-container {
    display: flex;
    justify-content: center;
    gap: 80px;
}

/* Gaya untuk setiap item milestone */
.milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gaya untuk angka milestone (2016, 50+, dll.) */
.milestone-number {
    font-size: 4em;
    font-weight: bold;
    color: #ffc00f;
    margin: 0;
    line-height: 1;
}

/* Gaya untuk teks di bawah angka (FOUNDED IN, dll.) */
.milestone-text {
    font-size: 1em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    color: #fff;
}

/* Container untuk bagian Services */
.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 30px;
    /* Nilai diubah menjadi 40px dari 100px */
    padding-bottom: 10px;
}

/* Gaya untuk gambar astronot */
.astronaut-image {
    width: 350px;
    height: auto;
    position: relative;
    /* Diubah menjadi relative */
    left: auto;
    /* Dihapus properti left */
    bottom: auto;
    /* Dihapus properti bottom */
    transform: translateY(20%);
    margin-right: 20px;
    /* Menambahkan jarak kanan untuk memisahkan dari teks */
}

/* Gaya untuk konten teks Services */
.services-content {
    text-align: left;
    margin-left: 0;
    /* Menghapus margin-left agar ikut rata tengah */
}

/* Gaya untuk judul SERVICES */
.services-title {
    font-size: 3.5em;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    letter-spacing: 5px;
}

/* Gaya untuk subtitle normal */
.services-subtitle {
    font-size: 1.2em;
    font-weight: normal;
    color: #fff;
    margin: 10px 0 0;
}

/* Gaya untuk subtitle yang dicetak tebal */
.services-subtitle-bold {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffc00f;
    margin: 5px 0 0;
}

/* --- Gaya untuk Jarak Bawah Section Lainnya --- */
.welcome-text-container {
    padding-top: 50px;
    padding-bottom: 80px;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Media Queries untuk tampilan responsif */
@media (max-width: 768px) {
    .milestone-container {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .milestone-number {
        font-size: 3em;
    }

    .milestone-text {
        font-size: 0.9em;
    }

    .services-container {
        flex-direction: column;
        text-align: center;
        margin-top: 30px;
    }

    .astronaut-image {
        position: static;
        width: 250px;
        transform: none;
        margin-bottom: 20px;
        margin-right: 0;
        /* Hapus margin kanan di mobile */
    }

    .services-content {
        margin-left: 0;
    }

    .services-title {
        font-size: 2.5em;
    }

    .services-subtitle,
    .services-subtitle-bold {
        font-size: 1em;
    }

    .welcome-text-container {
        padding-bottom: 50px;
    }
}

/* --- Services Grid Section --- */
.services-grid-section {
    background: none !important;
    background-image: url('../images/Banner/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 40px 20px;
    text-align: center;
}

/* Container Grid */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
}

/* --- Setiap Card Service --- */
.service-item {
    position: relative;
    background: none !important;
    background-image: url('../images/Banner/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Biar section #awble berhenti di tengah waktu diklik dari navbar */
#awble {
    scroll-margin-top: 100px;
    /* ubah nilainya sesuai tinggi navbar atau selera */
}

#welcome {
    scroll-margin-top: 100px;
    /* ubah nilainya sesuai tinggi navbar atau selera */
}

/* Overlay transparan biar teks lebih jelas */
.service-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* atur transparansi 0.1 - 0.4 */
    border-radius: 10px;
    z-index: 0;
}

.service-item * {
    position: relative;
    z-index: 1;
}

/* Hover efek */
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.4);
}

/* 🔽 KECILIN GAMBAR ICON */
.service-icon {
    width: 180px;
    /* semula 160px */
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

/* 🔤 UBAH WARNA FONT + RAPIKAN */
.service-item h3 {
    font-size: 0.9em;
    /* semula 1em */
    font-weight: bold;
    text-transform: uppercase;
    color: #ffcc00;
    /* ubah warna teks utama di sini */
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.service-item p {
    font-size: 0.75em;
    color: #f0f0f0;
    /* warna teks isi (abu terang) */
    margin: 0;
}

/* ======================================================= */
/* MODIFIKASI UNTUK LAYOUT PORTFOLIO 4-KOLOM STATIS */
/* ======================================================= */

/* Container Utama Flexbox (4 kolom) */
.services-grid-section .carousel-container {
    /* Menghilangkan properti carousel (jika ada di JS) dan menerapkan Flexbox untuk grid */
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
}

/* Memastikan item terbagi 4 secara rata */
.services-grid-section .carousel-container .service-item {
    /* Overwrite untuk tampilan statis 4 kolom */
    flex: 1 1 250px;
    max-width: 25%;

    /* Reset Card Style */
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    text-align: left;
    transition: none;
    /* Hapus transisi hover */
}

/* Hapus efek hover yang tidak diperlukan untuk tampilan statis */
.services-grid-section .carousel-container .service-item:hover {
    transform: none;
    box-shadow: none;
}

/* Style Gambar Kampanye: GAMBAR LEBIH BESAR KE BAWAH */
.services-grid-section .carousel-container .service-item img {
    width: 100%;
    /* Ini memastikan gambar menggunakan tingginya sendiri, yang pada gambar portofolio terlihat tinggi */
    height: auto;
    /* Anda bisa tambahkan max-height jika diperlukan, tapi 'height: auto' cukup jika gambar sumber memang tinggi */

    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Style Teks Deskripsi: TEKS DIPERKECIL */
.services-grid-section .carousel-container .service-item p {
    font-size: 0.8em;
    /* DIKECILKAN menjadi 0.8em */
    color: #ccc;
    line-height: 1.4;
    /* Sedikit dirapatkan */
    margin-top: 0;
}

/* Hapus elemen yang tidak terlihat di gambar */
.services-grid-section .carousel-container .service-item h3 {
    display: none;
}

/* Media Queries */
@media (max-width: 900px) {
    .services-grid-section .carousel-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .services-grid-section .carousel-container .service-item {
        max-width: 45%;
    }
}

@media (max-width: 600px) {
    .services-grid-section .carousel-container .service-item {
        max-width: 90%;
    }
}

/* === SECTION UTAMA === */
.insights-section {
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 30px 20px;
    /* padding bawah akan otomatis diatur via JS */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === RESPONSIVE === */

/* Tablet / laptop kecil */
@media (max-width: 1024px) {
    .insights-header {
        margin: -60px 10px 20px;
    }

    .section-title {
        font-size: 2.6em;
    }
}

/* Tablet vertikal (768px) */
@media (max-width: 768px) {
    .insights-header {
        margin: -55px 8px 20px;
    }

    .section-title {
        font-size: 2.3em;
    }

    .section-description {
        padding: 0 15px;
        font-size: 0.9rem;
    }
}

/* 📱 Mobile besar (412x915, 430x932, dst) */
@media (max-width: 480px) {
    .insights-header {
        margin: -85px 5px 10px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-description {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

/* 📱 Mobile kecil (≤360px) */
@media (max-width: 360px) {
    .insights-header {
        margin: -95px 5px 5px;
    }

    .section-title {
        font-size: 1.6em;
    }
}

/* --- FOOTER ULTRA SOFT TRANSPARENT --- */
.main-footer {
    background: rgba(255, 255, 255, 0.015);
    /* Hampir bening total */
    color: #fff;
    padding: 15px 10px;
    font-family: Arial, sans-serif;
    width: 100%;
    margin-top: auto;
    backdrop-filter: blur(4px) saturate(110%) brightness(98%);
    -webkit-backdrop-filter: blur(4px) saturate(110%) brightness(98%);
    border-top: none;
    position: sticky;
    bottom: 0;
    z-index: 50;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Saat discroll — sedikit lebih jelas tapi tetap lembut */
.main-footer.scrolled {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px) saturate(130%) brightness(95%);
}

/* Layout isi */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

/* Kiri */
.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 1;
}

.copyright {
    font-size: 0.85em;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.social-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.follow-text {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.social-links {
    display: flex;
    gap: 6px;
}

.social-icon {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.social-icon:hover {
    transform: scale(1.08);
    opacity: 1;
}

/* Kanan */
.footer-right {
    display: flex;
    justify-content: flex-end;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    font-size: 0.8em;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    border: none;
    backdrop-filter: blur(3px);
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.contact-icons {
    display: flex;
    gap: 5px;
}

.contact-icon-img {
    width: 15px;
    height: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .footer-content {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 10px;
    }

    .footer-left,
    .footer-right {
        flex: 1 1 45%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .contact-button {
        font-size: 0.75em;
        padding: 6px 10px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 5px;
    }

    .copyright {
        font-size: 0.75em;
    }

    .follow-text {
        font-size: 0.65em;
    }

    .contact-button {
        font-size: 0.7em;
        padding: 5px 8px;
    }
}


/* ===========================
   ARTICLE CAROUSEL SECTION
=========================== */
/* ===========================
   GLOBAL: BODY & FOOTER
=========================== */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    flex-shrink: 0;
}

/* ===========================
   ARTICLES CAROUSEL SECTION
=========================== */
.articless-carousel-section {
    padding: 3rem 2rem;
    /* Tambah sedikit padding biar lega */
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    text-align: center;
    margin-top: 6rem;
    /* ↓ Jarak dari navbar */
}

/* ===========================
   CAROUSEL CONTAINER
=========================== */
body, html {
    overflow-x: hidden; /* sembunyikan scroll horizontal di seluruh halaman */
}

.articless-carousel-section,
.carousel-containers {
    overflow-x: hidden; /* pastikan container carousel juga tidak scroll */
}

.carousel-containers {
    overflow-x: hidden;
    padding-bottom: 1rem;
    position: relative;
}

.carousel-tracks {
    display: flex;
    flex-wrap: wrap;
    /* biar turun ke bawah kalau gak muat */
    justify-content: center;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

/* ===========================
   ARTICLE ITEM (CARD)
=========================== */
.article-item {
    flex: 1 1 calc(25% - 24px);
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    background: #000;
    position: relative;
    min-height: 450px;
    /* Tinggi tetap semua card agar sejajar */
}

/* ===========================
   IMAGE CONTAINER
=========================== */
.article-img-container {
    width: 100%;
    height: 610px;
    /* lebih panjang dari sebelumnya */
    overflow: hidden;
    background: #000;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* gambar menutupi wadah */
    display: block;
}

.article-item {
    min-height: 650px;
    /* sesuaikan agar card tetap sejajar */
}

/* Overlay gelap */
.article-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
    border-radius: 12px;
    z-index: 1;
}

/* ===========================
   CONTENT
=========================== */
.article-content {
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 2;
    flex-grow: 1;
}

.article-content h3 {
    text-align: center;
    margin: 0.3rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFC00F;
}

.article-content p {
    margin: 0.3rem 0;
    flex-grow: 1;
    text-align: justify;
}

.article-content small {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #FFC00F;
}

/* Hover ringan */
.article-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1200px) {
    .article-item {
        flex: 1 1 calc(33.33% - 24px);
        max-width: 280px;
    }
}

@media (max-width: 900px) {
    .article-item {
        flex: 1 1 calc(50% - 24px);
        max-width: 350px;
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .article-item {
        flex: 1 1 calc(50% - 16px);
        max-width: 250px;
        min-height: 350px;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .article-content p {
        font-size: 0.9rem;
    }

    .article-content small {
        font-size: 0.75rem;
    }

    .articless-carousel-section {
        margin-top: 4rem;
    }
}

/* ===========================
   NO ARTICLES
=========================== */
.no-articles {
    text-align: center;
    font-style: italic;
    color: #555;
    padding: 3rem 0;
}

/* Carousel track */
.carousel-tracks {
    min-height: 200px;
    align-items: stretch;
    /* card semua tinggi sama */
    justify-content: center;
}

/* Navigasi Tombol */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    z-index: 10;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Wrapper per logo */
.logo-wrapper {
    flex-shrink: 0;
    width: 12%;
    /* Lebih besar agar logo menonjol */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Hapus padding sepenuhnya */
    height: 120px;
    /* Tinggi diperbesar */
}

/* Gambar Logo */
.brand-logo {
    width: 100%;
    /* Memenuhi wrapper */
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
    transition: none;
}

/* Scroller */
.logo-scroller {
    display: flex;
    gap: 0;
    /* Hilangkan jarak antar logo */
    animation: scroll-left 40s linear infinite;
    animation-play-state: running;
}

/* Pause saat hover */
.logo-carousel-container:hover .logo-scroller {
    animation-play-state: paused;
}

/* Keyframes Animasi Scrolling */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* === RESPONSIVE: TAMPILKAN 3 LOGO KECIL === */
@media (max-width: 1024px) {
    .logo-wrapper {
        width: 33.33%;
        /* 3 logo per tampilan */
        height: 100px;
        /* sedikit lebih kecil */
    }

    .brand-logo {
        width: 70%;
        height: auto;
        object-fit: contain;
    }

    .logo-carousel-container {
        padding: 30px 0;
    }
}

/* Tablet kecil & HP besar */
@media (max-width: 768px) {
    .logo-wrapper {
        width: 33.33%;
        /* tetap 3 logo */
        height: 80px;
    }

    .brand-logo {
        width: 60%;
    }

    .nav-button {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}

/* HP kecil banget */
@media (max-width: 480px) {
    .logo-wrapper {
        width: 33.33%;
        height: 70px;
    }

    .brand-logo {
        width: 55%;
    }

    .nav-button {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* === INSIGHTS & TRENDS SECTION === */
.insights-section {
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Tengah horizontal */
    justify-content: center;
    /* Tengah vertikal jika tinggi cukup */
    text-align: center;
}

/* === WRAPPER === */
.insights-wrapper {
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    color: #fff;
    font-family: "Poppins", Arial, sans-serif;
    text-align: center;
    padding: 50px 20px 80px;
}

/* === HEADER UTAMA === */
.insights-header {
    text-align: center;
    margin: -70px 15px 25px;
    /* ⬆️ naik lebih tinggi default */
    position: relative;
    z-index: 2;
}

/* === JUDUL UTAMA === */
.section-title {
    font-size: 3em;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffd700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
    margin-bottom: 10px;
}

/* === SUBTITLE === */
.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #f0b400;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* === DESKRIPSI === */
.section-description {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* === SECTION UTAMA === */
.insights-section {
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 30px 20px 100px;
    /* ⬆️ lebih rapat ke atas */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === RESPONSIVE === */

/* Tablet / laptop kecil */
@media (max-width: 1024px) {
    .insights-header {
        margin: -60px 10px 20px;
    }

    .section-title {
        font-size: 2.6em;
    }
}

/* Tablet vertikal (768px) */
@media (max-width: 768px) {
    .insights-header {
        margin: -55px 8px 20px;
    }

    .section-title {
        font-size: 2.3em;
    }

    .section-description {
        padding: 0 15px;
        font-size: 0.9rem;
    }
}

/* 📱 Mobile besar (412x915, 430x932, dst) */
@media (max-width: 480px) {
    .insights-header {
        margin: -75px 5px 15px;
        /* ⬆️ naik drastis */
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-description {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .insights-section {
        padding: 25px 10px 90px;
        /* bawah tetap aman */
    }
}

/* 📱 Mobile kecil (≤360px) */
@media (max-width: 360px) {
    .insights-header {
        margin: -85px 5px 10px;
        /* ⬆️ super naik */
    }

    .section-title {
        font-size: 1.6em;
    }
}


/* === ARTIKEL GRID === */
.related-link a {
  color: #00ccff; /* biru */
}

.related-link a:hover {
  color: #0056b3;
}

.articles-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    flex-wrap: wrap;
}


/* === KARTU ARTIKEL === */
.insight-card {
    flex: 1;
    max-width: 500px;
    background-color: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* === GAMBAR === */
.image-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === KONTEN === */
.card-content {
    padding: 20px;
    text-align: left;
}

.card-content p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* === LINK === */
.card-content a {
    color: #d4a017;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.card-content a:hover {
    color: #ffb84d;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .articles-grid {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }

    .insight-card {
        max-width: 100%;
    }

    .section-title {
        font-size: 2.4em;
    }

    .section-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

@media (max-width: 500px) {
    .insights-wrapper {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .section-description {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .image-wrapper {
        height: 200px;
    }
}

/* === TRENDS SECTION === */
.trends-section {
    position: relative;
    /* tetap supaya anak-anak bisa absolute jika dibutuhkan */
    background-image: url('../images/Banner/back.jpg');
    background-position: center;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 100px 20px 60px;
    /* naikin padding top supaya header turun */
    text-align: center;
}

/* HEADER */
.trends-header {
    margin-bottom: 50px;
    /* jarak ke carousel */
    position: relative;
    z-index: 2;
}


.trends-title {
    font-size: 3em;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
    margin-bottom: 15px;
}

.trends-desc {
    font-size: 1rem;
    color: #ddd;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CAROUSEL */
.trends-carousel {
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
}

.trends-wrapper {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.trends-slide {
    min-width: 100%;
}

/* GRID 2x2 LAYOUT */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 20px;
    justify-items: center;
    align-items: stretch;
    padding: 0 10px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    /* bottom space sebelum dots */
}

/* CARD */
.trends-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    color: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trends-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(255, 215, 0, 0.4);
}

/* IMAGE */
.card-img-wrapper {
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TEXT */
.card-text {
    padding: 16px;
    text-align: left;
}

.card-text p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.card-text a {
    color: #d4a017;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.card-text a:hover {
    color: #ffb84d;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .trends-grid {
        max-width: 900px;
        gap: 10px;
    }

    .trends-card {
        max-width: 420px;
    }

    .card-img-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .trends-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 16px;
    }

    .trends-card {
        max-width: 100%;
    }
}



/* DOTS - POSISI DI PALING BAWAH, DEKAT FOOTER */
.trends-dots {
    position: absolute;
    bottom: 10px;
    /* makin kecil makin nempel footer */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.trends-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.trends-dot.active {
    background: #ffd700;
}

/* RESPONSIVE */
@media(max-width: 1024px) {
    .trends-title {
        font-size: 2.5em;
    }

    .trends-grid {
        gap: 25px;
    }

    .card-img-wrapper {
        height: 220px;
    }
}

@media(max-width: 768px) {
    .trends-title {
        font-size: 2em;
    }

    .trends-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trends-card {
        max-width: 90%;
    }
}

@media(max-width: 480px) {
    .trends-title {
        font-size: 1.7em;
    }

    .card-img-wrapper {
        height: 180px;
    }
}



/* ========================================================= */
/* HERO SECTION (GAMBAR ASTRONOT) */
/* ========================================================= */

.hero-section {
    width: 100%;
    margin-bottom: 30px;
}

.hero-image-container {
    width: 100%;
    overflow: hidden;
    text-align: center;
    line-height: 0;
}

.hero-img {
    width: 80%;
    max-width: 1130px;
    height: auto;
    max-height: 400px;
    /* 🔹 Tinggi maksimal */
    object-fit: cover;
    display: block;
    margin: 80px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}


/* ========================================================= */
/* CONTENT & GRID LAYOUT */
/* ========================================================= */

.content-section {
    padding: 40px 40px 490px;
    color: #ffc010;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
    /* kurangi jarak bawah (default biasanya 100px atau lebih besar) */
    padding-bottom: 20px;
    /* kalau pakai padding, jangan terlalu besar */
}

.main-heading {
    color: #ffc010;
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-align: left;
    word-wrap: break-word;
}

.content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

/* Kolom Kiri (Deskripsi) */
.main-text-column {
    flex: 2;
    min-width: 300px;
    line-height: 1.7;
    font-size: 1.1em;
    text-align: justify;
    color: #ffffff;
}

.main-text-column p {
    margin-bottom: 22px;
}

/* Kolom Kanan (Layanan) */
.services-list-column {
    flex: 1;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #cba58f;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-list-artikel {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list-artikel li {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    /* garis pembatas di bawah setiap artikel */
}

.service-list-artikel li a {
    text-decoration: none;
    color: #ffffff;
}

.service-list-artikel li a:hover {
    text-decoration: underline;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.5;
    color: #fff;
}

.service-list .highlighted {
    color: #ffc010;
    font-weight: bold;
}



/* ========================================================= */
/* RESPONSIVE BREAKPOINTS */
/* ========================================================= */

/* Laptop kecil / Tablet horizontal */
@media (max-width: 1024px) {
    .hero-img {
        margin-top: 60px;
        border-radius: 10px;
    }

    .main-heading {
        font-size: 2.4em;
    }

    .content-layout {
        gap: 25px;
    }
}

/* Tablet vertikal / HP besar */
@media (max-width: 768px) {
    .hero-img {
        margin-top: 50px;
        border-radius: 8px;
    }

    .content-section {
        padding: 20px 25px 80px;
    }

    .main-heading {
        font-size: 2em;
        text-align: center;
    }

    .content-layout {
        flex-direction: column;
        gap: 30px;
    }

    .main-text-column {
        font-size: 1em;
        text-align: justify;
    }

    .services-list-column {
        border-left: none;
        border-top: 3px solid #ffc010;
        padding-top: 15px;
    }
}

/* HP kecil (≤480px) */
@media (max-width: 480px) {
    .hero-img {
        margin-top: 30px;
        width: 100%;
        border-radius: 6px;
    }

    .content-section {
        padding: 15px 15px 60px;
    }

    .main-heading {
        font-size: 1.6em;
        text-align: center;
        margin-bottom: 20px;
    }

    .main-text-column {
        font-size: 0.95em;
        line-height: 1.6;
    }

    .service-list li {
        font-size: 0.95em;
    }
}

/* ========================================================= */
/* SERVICES LIST (KOTAK KANAN) */
/* ========================================================= */

.services-list-column {
    flex: 1;
    /* Kolom layanan */
    min-width: 250px;
    max-width: 300px;
    /* Gaya kotak latar belakang abu-abu gelap */
    background-color: #333333;
    padding: 20px 15px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: white;
}

.service-list li {
    padding: 8px 0;
    font-size: 0.95em;
    border-bottom: 1px solid #444444;
    /* Garis pemisah abu-abu */
}

.service-list li.highlighted {
    /* Sorotan untuk item pertama */
    color: #ffc010;
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.service-list li:last-child {
    border-bottom: none;
}

/* ========================================================= */
/* RESPONSIVE DESIGN */
/* ========================================================= */

@media (max-width: 900px) {
    .content-layout {
        /* Pindah ke tata letak tumpuk di layar yang lebih kecil */
        flex-direction: column;
    }

    .main-text-column {
        padding-right: 0;
        margin-bottom: 30px;
        /* Tambahkan ruang di bawah teks saat bertumpuk */
    }

    .services-list-column {
        /* Lebarkan kotak layanan agar terlihat bagus saat bertumpuk */
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .main-heading {
        font-size: 2.2em;
    }
}

/* ===== MODAL OVERLAY ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal.show {
    opacity: 1;
    display: flex;
}


/* ===== MODAL CONTENT CARD ===== */
.modal-content {
    background-color: #000;
    /* hitam pekat */
    margin: 5% auto;
    padding: 30px 20px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
    position: relative;
    color: #fff;
    /* teks tetap putih */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    /* agar teks terbaca */
}


/* Hero image */
.modal-content img.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
    /* jarak ke judul ditambah */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.modal-content img.hero-img:hover {
    transform: scale(1.15);
}

/* Judul service */
.modal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 15px 0;
    /* jarak ke deskripsi */
    color: #FFC010;
    /* ganti warna font */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Highlight kata kuning */
.modal-content h1 span.highlight {
    color: #FFD700;
    /* tetap kuning emas */
}

/* Deskripsi artikel */
.modal-content .main-text-column {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    text-align: justify;
    width: 100%;
    margin-top: 20px;
    /* jarak dari judul agar tidak terlalu dekat */
}

/* Close button */
.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.modal .close:hover {
    color: #FFD700;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px 15px;
    }

    .modal-content h1 {
        font-size: 1.5rem;
    }

    .modal-content .main-text-column {
        font-size: 0.95rem;
    }
}

/* ===== POPUP OVERLAY MODAL ===== */
#articleModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    /* gelap solid */
    justify-content: center;
    align-items: center;
}

#articleModal .modal-content {
    display: flex;
    flex-direction: row;
    max-width: 900px;
    width: 90%;
    background-color: #111;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    position: relative;
}

#articleModal .modal-left {
    flex: 1;
    padding-right: 20px;
}

#articleModal .modal-left img {
    width: 100%;
    border-radius: 12px;
}

#articleModal .modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#articleModal .modal-right h2 {
    color: #FFC010;
    margin-bottom: 15px;
}

#articleModal .modal-right p {
    text-align: justify;
    margin-bottom: 20px;
}

#articleModal .modal-right small {
    text-align: right;
    color: #FFC010;
}

/* Close button */
#articleModal .close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #FFC010;
    cursor: pointer;
}

#articleModal .close-modal:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    #articleModal .modal-content {
        flex-direction: column;
    }

    #articleModal .modal-left {
        padding-right: 0;
        margin-bottom: 15px;
    }
}

/* ===== HOVER ARTICLE ITEM ===== */
.article-item {
    cursor: pointer;
    /* supaya terlihat bisa di-klik */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Hover pada gambar modal */
.modal-content img {
    transition: transform 0.3s ease;
}

.modal-content img:hover {
    transform: scale(1.05);
}

/* Hover pada close button modal */
.close-modal {
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #FFD700;
    /* kuning emas saat hover */
}