/* General Styling */
:root {
    --primary-color: #30318B;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --white-color: #fff;
    --soft-color: #E0E8FF;
    --timeline-color: #7367F0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

h3 {
    text-align: left;
    color: var(--text-color);
    padding: 0;
}

.primary-text {
    color: var(--primary-color);
}

/* Styling untuk judul section umum (seperti Contact, Gallery, FAQ, History) */
.section-title {
    font-weight: 700;
    font-size: 36px; /* Menyamakan ukuran font */
    letter-spacing: -0.02em;
    color: var(--text-color);
    text-align: left;
    margin-bottom: 24px;
    display: inline-block;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    line-height: 1.2;
}
.contact-title .primary-text {
    color: var(--primary-color); /* Warna primary untuk teks "Location" dan "Contact" */
}

/* Header */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    height: 48px; /* Menetapkan tinggi header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height 0.3s ease-in-out; /* Transisi untuk tinggi */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 40px; /* Sesuaikan tinggi logo sesuai kebutuhan */
    width: auto;
    transition: height 0.3s ease-in-out; /* Transisi untuk tinggi logo */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Style untuk menu yang aktif */
nav a.active {
    color: var(--primary-color);
    font-weight: 700; /* Bold */
}

/* Hamburger Menu Icon */
.hamburger-menu {
    display: none; /* Sembunyikan di desktop */
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    /* Menambahkan dimensi agar ikon terlihat */
    width: 24px;
    height: 24px;
    padding: 0;
    z-index: 1001;
}

/* Styling untuk header saat di-scroll */
header.scrolled nav {
    height: 48px; /* Kurangi tinggi header saat di-scroll */
}

header.scrolled .logo img {
    height: 40px; /* Perkecil tinggi logo saat di-scroll */
}

/* Dropdown styles */
.dropdown {
    position: relative; /* Untuk menempatkan dropdown menu relatif terhadap item parent */
}

.dropdown-menu {
    display: none; /* Sembunyikan dropdown secara default */
    position: absolute;
    background-color: var(--white-color);
    min-width: 180px; /* Lebar minimum untuk dropdown */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* Pastikan di atas konten lain */
    list-style: none; /* Hapus bullet points */
    padding: 8px 0; /* Padding atas/bawah untuk menu */
    margin: 0;
    border-radius: 4px;
    top: calc(100% + 5px); /* Posisikan di bawah parent link dengan sedikit jarak */
    top: 100%; /* Posisikan tepat di bawah parent link */
    left: 0;
}

.dropdown-menu li {
    width: 100%; /* Pastikan item dropdown mengambil lebar penuh menu */
    text-align: left; /* Teks rata kiri */
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 10px 16px; /* Padding untuk setiap item dropdown */
    text-decoration: none;
    display: block;
    font-weight: 400; /* Normal weight for dropdown items */
    white-space: nowrap; /* Mencegah teks pecah baris */
}

.dropdown-menu li a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Style untuk item dropdown yang aktif */
.dropdown-menu li a.active {
    color: var(--primary-color);
    font-weight: 700; /* Menyamakan dengan style nav a.active */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Tampilkan dropdown saat hover pada parent */
}

/* Adjust nav a for dropdown caret */
nav a i.fas.fa-caret-down {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i.fas.fa-caret-down { /* Hanya targetkan ikon di link utama dropdown */
    transform: rotate(180deg); /* Putar ikon saat hover */
}

.dropdown a i.fas.fa-caret-down.rotate {
    transform: rotate(180deg);
}

/* 1. Carousel Section */
.carousel {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3); /* Latar belakang lebih transparan */
    color: var(--white-color);
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%; /* Membuat bentuk menjadi lingkaran */
    width: 50px; /* Menetapkan lebar */
    height: 50px; /* Menetapkan tinggi */
    font-size: 1.2rem; /* Menyesuaikan ukuran ikon panah */
    display: flex; /* Menggunakan flexbox untuk centering */
    align-items: center; /* Center vertikal */
    justify-content: center; /* Center horizontal */
    transition: background-color 0.3s ease; /* Transisi halus untuk hover */
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Latar belakang lebih gelap saat disentuh mouse */
}

.prev { left: 20px; } /* Memberi sedikit jarak dari tepi */
.next { right: 20px; } /* Memberi sedikit jarak dari tepi */

/* Keyframe untuk animasi fade-in dari bawah ke atas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        /* Mulai dari posisi sedikit lebih bawah dari posisi akhir */
        transform: translate(-50%, calc(-50% + 20px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%); /* Kembali ke posisi semula */
    }
}

/* Keyframe for zoom out effect */
@keyframes zoomOutEffect {
    0% {
        transform: scale(1.1); /* Start slightly zoomed in */
    }
    100% {
        transform: scale(1); /* Zoom out to original size */
    }
}

/* 2. Contact Cards Section */
.carousel-caption {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Pastikan caption tidak ikut ter-zoom */
    /* Jika caption perlu tetap di tengah saat gambar zoom,
       maka transform ini harus dipertahankan. */
    /* Jika caption perlu tetap di posisi relatif terhadap gambar,
       maka perlu penyesuaian lebih lanjut. */
    color: var(--white-color);
    text-align: center;
    z-index: 11; /* Di atas gambar, di bawah kontrol jika perlu */
    width: 90%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Agar teks mudah dibaca */
    /* Terapkan animasi */
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Mulai dengan transparan */
}

.carousel-caption h1 {
    font-weight: 600;
    font-size: 72px;
    line-height: 96px;
    letter-spacing: -0.02em; /* -2% */
    margin: 0;
    color: var(--white-color);
}

.carousel-caption p {
    font-weight: 400;
    font-size: 32px;
    line-height: 34px;
    letter-spacing: 0;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Apply animation when the zoom-active class is present on the image */
.carousel-item img {
    /* Ensure smooth transition for initial state or if animation is not active */
    transition: transform 0.1s ease-out; /* Small transition for class removal/addition */
}
.carousel-item img.zoom-active {
    animation: zoomOutEffect 7s ease-out forwards; /* 7 seconds duration, matches interval */
}

/* Styling untuk kartu lokasi baru */
.location-card {
    display: flex; /* Menggunakan flexbox untuk membuat layout 2 kolom */
    gap: 20px; /* Memberi jarak antara peta dan konten lokasi */
    min-height: 380px; /* Menyesuaikan tinggi minimum */
    align-items: stretch; /* Membuat kedua kolom memiliki tinggi yang sama */
}

.map-container {
    flex: 3; /* Mengambil porsi 80% (4 dari 5 bagian) */
    display: flex;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none; /* Menghilangkan border default dari iframe */
}

.location-content {
    flex: 1; /* Mengambil porsi 20% (1 dari 5 bagian) */
    background-image: url('../assets/backgrounds/bg_location.svg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
    color: var(--white-color);
    padding: 24px; /* Menambahkan padding di dalam konten lokasi */
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Jarak antara judul dan alamat */
}

.address-info h4 {
    font-size: 20px; /* Ukuran font yang sesuai untuk judul */
    margin-bottom: 20px;
}

.address-info p {
    font-size: 1.1rem; /* Ukuran font yang sesuai untuk alamat */
    margin: 0;
    max-width: auto; /* Membatasi lebar teks agar mudah dibaca */
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 16px; /* Jarak antara ikon dan nomor telepon */
}

.phone-info img {
    width: 24px;
    height: 24px;
}

.phone-info p {
    margin: 0;
    font-size: 1.1rem;
}

.gallery-title .primary-text {
    color: var(--primary-color);
}

/* New Gallery Page Grid */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px; /* Margin between images */
}

.gallery-page-grid img {
    width: 100%;
    height: 180px; /* Fixed height for uniform rows */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-page-grid img:hover {
    transform: scale(1.05);
}

/* 3. Gallery, FAQ, Footer */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px); /* Tinggi setiap baris */
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer; /* Menambahkan cursor pointer pada gambar galeri */
    transition: transform 0.3s;
}

.gallery-item-large {
    grid-column: 2 / 3; /* Mulai dari kolom 2, berakhir sebelum kolom 3 */
    grid-row: 1 / 3;    /* Mulai dari baris 1, berakhir sebelum baris 3 (span 2 baris) */
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.faq-title .primary-text {
    color: var(--primary-color);
}

/* Layout untuk FAQ section (80:20 split) */
.faq-content-wrapper {
    display: flex;
    gap: 20px; /* Jarak antara daftar FAQ dan kartu kontak */
    align-items: flex-start; /* Menjaga item sejajar di bagian atas */
}

.faq-items-list {
    flex: 4; /* Mengambil 80% dari lebar yang tersedia */
}

.faq-item {
    background-color: var(--white-color); /* Ganti warna background menjadi putih */
    border: 1px solid #DBDADE; /* Tambahkan border */
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 5px;
}

.faq-item h4 { margin: 0 0 10px 0; }

/* Styling untuk kartu kontak FAQ baru (20% bagian) */
.faq-contact-card {
    flex: 1; /* Mengambil 20% dari lebar yang tersedia */
    background-color: var(--white-color); /* Warna latar belakang primary */
    color: var(--text-color);
    padding: 20px;
    border: 1px solid #DBDADE; /* Menambahkan border 2px */
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Mulai dari atas */
    min-height: 250px; /* Tinggi minimum untuk kartu */
}

.faq-contact-card img {
    width: 60px; /* Ukuran ikon */
    height: 60px;
    margin-bottom: 14px;
    margin-top: 15px;
}

.faq-contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.faq-contact-card p {
    font-size: 0.85rem;
    line-height: 1.2;
    opacity: 0.8;
    margin-bottom: 20px; /* Jarak ke kotak telepon */
}

/* Styling untuk kotak telepon di dalam kartu FAQ */
.faq-phone-box {
    border: 1px solid #DBDADE;
    background-color: var(--soft-color);
    border-radius: 6px;
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Jarak antar item di dalam kotak */
}

.faq-phone-box img {
    width: 32px;
    height: 32px;
    margin-bottom: 0; /* Reset margin dari style .faq-contact-card img */
}

.faq-phone-box .phone-number {
    font-weight: 600;
    color: var(--primary-color);
}

.faq-phone-box .help-text {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer Styling */
footer {
    background-image: url('../assets/backgrounds/bg_footer.svg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    display: flex; /* Use flex to center content vertically */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 40px 0 0 0; /* Add vertical padding, horizontal handled by container */
}

.footer-container {
    display: flex;
    height: auto;
    justify-content: space-between; /* Distribute space between columns */
    align-items: flex-start; /* Align items to the top of the container */
    gap: 40px; /* Space between columns */
    width: 100%; /* Take full width of the .container */
}

.footer-left {
    flex: 8; /* Takes 80% of the available space */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between elements in the left column */
}

.footer-right {
    flex: 2; /* Takes 20% of the available space */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-right img {
    margin-top: 50px;
    height: 60px; /* Adjust logo size as needed */
}

.footer-logo img {
    height: 34px; /* Adjust logo size as needed */
    width: auto;
}

.footer-address-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0; /* Reset default margin */
}

.footer-address-text {
    font-size: 1rem;
    line-height: 1.5;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 40px; /* Add some space above copyright */
}

/* New styles for footer details layout */
.footer-details-wrapper {
    display: flex;
    gap: 60px; /* Jarak antara kolom alamat dan kontak */
    align-items: flex-start;
    margin-top: 20px;
}

.footer-address-column {
    flex: 1; /* Memberi porsi yang sama untuk setiap kolom */
}

.footer-contact-column {
    flex: 1; /* Memberi porsi lebih kecil untuk kontak */
}

.footer-contact-column h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0; /* Cocokkan dengan title lain */
}

/* Contact Us Page Styling */
.contact-us-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

.contact-us-info {
    flex: 2; /* Takes 40% of the space */
}

.contact-us-info h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 16px;
}

.contact-us-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.contact-us-details {
    flex: 3; /* Takes 60% of the space */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-detail-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px; /* Increased margin for better spacing */
    position: relative;
    padding-bottom: 10px; /* Space between text and the line */
}

.contact-detail-item h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 27px;
    height: 3px;
    background-color: var(--text-color);
}

.contact-detail-item p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Tampilkan di mobile */
    }

    nav ul {
        /* Styling untuk menu mobile */
        position: absolute;
        top: 100%; /* Posisi di bawah header */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        gap: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        
        /* Sembunyikan menu secara default dengan transisi */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav ul.mobile-menu-open {
        max-height: 500px; /* Tinggi yang cukup untuk menampilkan semua item, termasuk dropdown */
    }

    /* Menambahkan padding pada link utama di menu mobile */
    nav ul > li > a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    .contact-cards {
        flex-direction: column;
    }

    /* Responsive adjustments for dropdown in mobile */
    nav ul.mobile-menu-open {
        width: 100%; /* Ensure dropdown parent takes full width in mobile menu */
        text-align: center; /* Center the "Company" link */
    }

    .dropdown-menu {
        position: static; /* Change to static for mobile to flow naturally */
        background-color: transparent; /* No background for dropdown in mobile */
        box-shadow: none;
        width: 100%;
        padding: 0; /* Remove padding from dropdown menu itself */
        margin: 0;
        border-radius: 0;
        display: none; /* Sembunyikan secara default di mobile juga */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .dropdown.open .dropdown-menu { display: block; max-height: 300px; }

    .dropdown-menu li a {
        padding: 10px 35px; /* Adjust padding for mobile dropdown items, indent more */
        color: var(--text-color); /* Ensure text color is correct */
        font-weight: 400;
        text-align: center; /* Center dropdown items in mobile */
    }

    /* Adjust nav a for dropdown caret */
    nav a i.fas.fa-caret-down {
        margin-left: 5px;
        font-size: 0.8em;
        transition: transform 0.3s ease;
    }

    .dropdown.open > a i.fas.fa-caret-down { /* Hanya targetkan ikon di link utama dropdown */
        transform: rotate(180deg); /* Putar ikon saat hover */
    }

    .carousel-item img, .carousel {
        max-height: 50vh;
    }
    
    /* Nonaktifkan animasi zoom pada mobile untuk performa dan tampilan yang lebih baik */
    .carousel-item img.zoom-active {
        animation: none; /* Hapus animasi */
        transform: scale(1); /* Pastikan gambar kembali ke ukuran normal */
    }

    .carousel-caption h1 {
        font-size: 32px; /* Ukuran font judul untuk mobile */
        line-height: 1.2;
    }

    .carousel-caption p {
        font-size: 14px; /* Ukuran font subjudul untuk mobile */
        line-height: 1.4;
    }

    .location-card {
        flex-direction: column; /* Tumpuk peta dan info secara vertikal */
        min-height: auto; /* Biarkan tinggi menyesuaikan konten */
        gap: 0; /* Hapus jarak atas-bawah antar elemen yang ditumpuk */
    }

    .location-card .map-container,
    .location-card .location-content {
        flex: none; /* Hapus properti flex yang sebelumnya */
        width: 100%; /* Ambil lebar penuh */
    }

    .location-card .map-container {
        height: 300px; /* Beri tinggi yang pasti untuk peta di mobile */
    }

    .info-banner .client-logos img {
        height: 50px; /* Sesuaikan tinggi logo klien di mobile */
    }

    .info-banner .info-banner-content h2 {
        font-size: 24px;
    }

    /* Penyesuaian Galeri untuk Tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
        grid-template-rows: auto; /* Tinggi baris otomatis */
    }
    .gallery-item-large {
        grid-row: auto; /* Reset row span agar tidak memanjang */
    }
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        grid-template-rows: auto;
    }

    /* Responsive untuk FAQ section di Tablet */
    .faq-content-wrapper {
        flex-direction: column; /* Tumpuk secara vertikal */
    }

    .faq-items-list,
    .faq-contact-card {
        flex: none; /* Hapus properti flex */
        width: 100%; /* Ambil lebar penuh */
    }
    
    .faq-contact-card {
        margin-top: 20px; /* Tambahkan jarak antar elemen yang ditumpuk */
        min-height: auto; /* Biarkan tinggi menyesuaikan konten */
    }

    .hero-section.about-us-page .hero-content h1 { font-size: 32px; }
    .hero-section.about-us-page .hero-content p { font-size: 28px; }
}
@media (max-width: 992px) {
    .contact-us-wrapper {
        flex-direction: column;
    }
    .contact-us-details {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
@media (max-width: 576px) {
    .info-banner .client-logos {
        gap: 50px; /* Kurangi jarak antar logo di mobile */
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Semua gambar dalam satu kolom */
        grid-template-rows: auto; /* Tinggi baris otomatis */
    }
    .gallery-item-large {
        grid-row: auto; /* Reset row span di mobile */
    }
    .gallery-page-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        grid-template-rows: auto;
    }

    /* Penyesuaian spesifik untuk FAQ di Mobile */
    .faq-contact-card {
        min-height: auto; /* Biarkan tinggi menyesuaikan konten */
    }
    .faq-contact-card p {
        font-size: 0.95rem; /* Ukuran font sedikit lebih besar untuk keterbacaan */
    }

    /* Responsive adjustments for footer on mobile */
    footer {
        min-height: auto; /* Allow height to adjust to content */
        padding: 30px 0;
    }
    .footer-container {
        flex-direction: column; /* Stack columns vertically */
        align-items: stretch; /* Allow items to take full width */
        text-align: left; /* Set text alignment to left for mobile */
        gap: 30px;
        height: auto;
    }

    .footer-address-title {
        margin-top: 10px;
    }

    .footer-left,
    .footer-right {
        flex: none; /* Remove flex property */
        width: 100%; /* Take full width */
    }

    .footer-logo {
        margin: auto; /* Center the logo specifically */
        text-align: left; /* Ensure content inside logo div is centered if any */
    }

    .footer-right {
        display: none; /* Hide the right footer column on mobile */
    }

    .footer-details-wrapper {
        flex-direction: column; /* Stack address and contact vertically on mobile */
        gap: 20px; /* Add gap between stacked items */
    }

    .footer-address-column, .footer-contact-column {
        flex: none; /* Reset flex property */
        width: 100%; /* Ensure they take full width of the parent */
    }
}

/* Tombol Scroll to Top */
#scrollToTopBtn {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    transition: opacity 0.3s, visibility 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #555; /* Warna sedikit lebih gelap saat hover */
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* White background */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between logo and spinner */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color); /* Use the primary color from the theme */
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* CSS untuk Card di bawah Carousel */
body.body-scroll-lock {
    overflow: hidden; /* Mencegah scrolling pada body */
}

.info-banner {
    background-color: #30318B;
    height: 200px;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.info-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Jarak antara judul dan logo */
}
.info-banner h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1; /* Setara dengan 100% */
    letter-spacing: -0.02em; /* Setara dengan -2% */
    margin: 0;
    color: var(--white-color); /* Pastikan warna tetap putih */
}
.client-logos {
    display: flex;
    gap: 500px; /* Jarak antar logo */
    align-items: center;
}
.client-logos img {
    height: 72px; /* Sesuaikan tinggi logo klien */
    filter: grayscale(1) brightness(3); /* Membuat logo jadi putih */
}

/* Styling untuk grid klien di halaman Our Clients */
.client-grid {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 100px; /* Jarak antar logo */
    margin-top: 50px; /* Jarak dari judul */
    flex-wrap: wrap; /* Agar responsif di layar kecil */
}

.client-grid img {
    height: 100px; /* Tinggi logo */
}

/* Styling Global untuk Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 700px; /* Tinggi hero section diatur menjadi 700px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    position: relative; /* Diperlukan untuk penempatan konten */
}

.hero-section .hero-content {
    z-index: 1; /* Pastikan konten di atas latar belakang */
    padding: 20px;
}

/* Styling spesifik untuk judul di halaman About Us */
.hero-section.about-us-page .hero-content h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 1; /* Setara dengan 100% */
    letter-spacing: -0.01em; /* Setara dengan -1% */
    text-align: center;
    margin-bottom: 16px; /* Jarak antara judul dan subjudul */
    color: var(--white-color); /* Pastikan warna teks putih */
}

.hero-section.about-us-page .hero-content p {
    font-weight: 500;
    font-size: 36px;
    line-height: 1.2; /* Line height yang sesuai */
    letter-spacing: -0.01em; /* Setara dengan -1% */
    text-align: center;
    margin-top: 0;
    color: var(--white-color); /* Pastikan warna teks putih */
}

/* Timeline Section Styling */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 40px auto;
    padding: 20px 0;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 4px;
    height: 0; /* Awalnya tinggi 0, akan dianimasikan oleh JS */
    background-color: var(--soft-color);
    transition: height 2s ease-out; /* Animasi garis tumbuh */
}

/* Animate the line when .animate class is added */
.timeline.animate::before {
    height: 100%;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px; /* Jarak dari garis timeline */
    opacity: 0; /* Sembunyikan item awalnya */
    transform: translateY(30px); /* Geser sedikit ke bawah */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s; /* Beri sedikit jeda sebelum item muncul */
}

/* Animate item when .visible class is added */
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* The filled dot */
.timeline-dot {
    content: '';
    position: absolute;
    left: 8px; /* (20px - (24px/2)) + 4px/2 = 8px */
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--timeline-color);
    border: 4px solid var(--soft-color);
}

/* Certificate Page Tabs */
.certificate-tabs-container {
    display: flex;
    gap: 30px; /* Jarak antara daftar tab dan konten */
}

/* Mobile view adjustment for tab container */
@media (max-width: 768px) {
    .certificate-tabs-container {
        flex-direction: column; /* Stack tab list and content vertically */
    }

    .tab-list {
        order: -1; /* Move tab list to the top */
        overflow-x: auto; /* Enable horizontal scrolling */
        margin-bottom: 20px; /* Add some space between tabs and content */
    }
}



/* Mobile view adjustment for tab list */
@media (max-width: 768px) {
    .tab-list {
        overflow-x: auto; /* Enable horizontal scrolling */
    }
}

.tab-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-list {
    flex-wrap: nowrap; /* Prevent wrapping */
}

.tab-link {
    padding: 15px 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border-radius: 5px;
    font-size: 1rem;
    white-space: nowrap; /* Keep tabs in a single line */
    word-wrap: break-word; /* Added word wrap */
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.tab-link:hover {
    background-color: #e9e9e9;
}

.tab-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.tab-content {
    flex: 7; /* Mengambil 70% dari lebar */
}

.tab-panel {
    display: none; /* Sembunyikan semua panel secara default */
    animation: fadeIn 0.5s;
}

.tab-panel.active {
    display: block; /* Tampilkan hanya panel yang aktif */
}

.certificate-viewer {
    width: 100%; /* Lebar relatif agar responsif */
    max-width: 1200px; /* Lebar maksimum sesuai permintaan */
    height: auto; /* Tinggi tetap sesuai permintaan */
    background-color: #f9f9f9; /* Warna latar belakang yang lebih lembut */
    border: 1px solid #ddd; /* Border yang lebih halus */
    border-radius: 5px;
    overflow: auto; /* Jika konten lebih besar dari viewer */
    padding: 10px; /* Beri sedikit padding di dalam viewer */
}

.certificate-viewer img {
    width: 100%;
    height: auto;
    display: block;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Popup Navigation Buttons */
.popup-prev,
.popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    z-index: 100000; /* Pastikan di atas gambar */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.popup-prev:hover,
.popup-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.popup-prev { left: 20px; }
.popup-next { right: 20px; }