/* GENERAL STYLING */
:root {
    --primary-color: #11ACDA; 
    --secondary-color: #33a2e5; 
    --dark-color: #2c3e50; 
    --light-color: #f8f9fa; 
}
body {
    font-family: 'Poppins', sans-serif;
    color: #3a3939;
    margin: 0; 
    padding-top: 105px; 
}



/* =================================
   Sub Header 
   ================================= */
.subheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Dibuat lebih ramping */
    z-index: 1031; /* Paling atas */
    background: #11ACDA; /* Warna dasar lebih gelap untuk kontras */
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.subheader a {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    transition: all 0.3s ease;
}
.subheader a:hover {
    color: #fff;
}
.subheader .social-icons a {
    margin: 0 0.6rem;
}
.subheader .social-icons a:hover {
    transform: scale(1.1); /* Efek hover ikon sosial */
}
/* 1. Sembunyikan TOTAL semua elemen Google yang tidak diinginkan */
    .goog-te-banner-frame, .goog-te-gadget-simple img, img.goog-te-gadget-icon, #goog-gt-tt {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
    /* 2. Reset total posisi halaman untuk menghilangkan spasi putih */
    body {
        top: 0px !important;
        position: static !important;
    }
    html.translated-ltr, html.translated-rtl,
    html.translated-ltr body, html.translated-rtl body {
        margin-top: 0px !important;
        top: 0px !important;
    }
    /* 4. Desain Tombol Ganti Bahasa yang Baru, Unik & Modern */
    #google_translate_element {
        margin-left: 15px;
        position: relative;
        display: flex;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 25px;
        padding: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    #google_translate_element:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    /* Wrapper untuk Select Box Google */
    .skiptranslate.goog-te-gadget {
        display: flex !important;
        align-items: center !important;
        height: 100%;
    }
    /* Ikon Globe menggunakan SVG agar pasti muncul */
    #google_translate_element .translate-icon-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 6px;
        padding-left: 8px;
    }
     #google_translate_element .translate-icon-wrapper svg {
        width: 16px;
        height: 16px;
        fill: white;
    }  
    /* Styling select box */
    .goog-te-gadget .goog-te-combo {
        background-color: transparent !important;
        color: white !important;
        border: none !important;
        padding: 5px 10px 5px 0px !important; /* Disesuaikan */
        cursor: pointer;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        font-weight: 500;
        font-size: 14px;
        -webkit-appearance: none; /* Menghilangkan style default */
        -moz-appearance: none;
        appearance: none;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    /* Opsi di dalam dropdown */
    .goog-te-gadget .goog-te-combo option {
        color: #333;
        background-color: white;
    }
    /* 5. Mengatur menu dropdown agar tidak menutupi konten lain */
    .goog-te-menu-frame {
        z-index: 9999 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        background-color: white !important;
        /* Penting: Mencegah dropdown menutupi footer */
        position: absolute !important;
        top: calc(100% + 5px) !important; /* Muncul di bawah tombol dengan sedikit jarak */
        right: 0 !important; /* Rata kanan dengan tombol */
        left: auto !important;
    }
    /* Styling item di dalam dropdown */
    .goog-te-menu2-item div, .goog-te-menu2-item:link div, .goog-te-menu2-item:visited div, .goog-te-menu2-item:active div {
        padding: 10px 15px !important;
        font-family: inherit !important;
        color: #333 !important;
        transition: all 0.2s ease-in-out;
    }
    .goog-te-menu2-item-selected div, .goog-te-menu2-item:hover div {
        background-color: #f1f1f1 !important;
        color: #0056b3 !important;
    }





/* =================================
   Main Header , (Home Page)
   ================================= */
#mainNavbar {
    margin-top: 40px;
    z-index: 1020;
    padding: 0.5rem 1rem;
    background-image: url('../../img/banner-header.png'); 
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;  
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNavbar .navbar-brand img {
    height: 50px;
}

#mainNavbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

#mainNavbar .nav-link:hover {
    color: var(--primary-color);
}

#mainNavbar .nav-link.active {
    color: #11ACDA; /* Warna biru untuk link aktif */
    font-weight: 700; /* Membuat teks lebih tebal agar menonjol */
    position: relative;
}

/* Menambahkan garis bawah dekoratif pada link aktif */
#mainNavbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: #11ACDA;
}



/* -- Announcement Bar -- */
    .announcement-bar {
        display: flex;
        align-items: center;
        justify-content: center; /* teks di tengah */
        background-color: #2D3748;
        border-radius: 50px;
        padding: 5px;
        overflow: hidden;
        width: 1300px;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
        margin: 0px auto; /* auto left-right membuat kotak di tengah */
    }

    .announcement-icon {
        flex-shrink: 0; /* Mencegah icon mengecil */
        background-color: #11ACDA; /* Warna utama sesuai permintaan */
        color: white;
        padding: 10px 14px;
        border-radius: 50%; /* Membuat icon bulat sempurna */
        font-size: 16px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 2; /* Memastikan icon di atas teks */
    }

    .announcement-text-wrapper {
        flex-grow: 1; /* Mengisi sisa ruang */
        overflow: hidden; /* Menyembunyikan teks yang keluar dari area ini */
        position: relative;
        height: 30px; /* Sesuaikan dengan tinggi bar */
        line-height: 30px; /* Vertically center the text */
    }

    /* Gaya untuk setiap item pengumuman */
    .announcement-item {
        position: absolute;
        white-space: nowrap; /* Mencegah teks turun ke baris baru */
        font-size: 14px;
        margin: 0;
        will-change: transform;
        transform: translateX(110%); /* Posisi awal di luar layar kanan */
        visibility: hidden; /* Sembunyikan item yang tidak aktif */
        /* Transisi akan ditambahkan oleh JavaScript */
    }
    /* -- Penambahan CSS untuk Responsivitas -- */

        /* Untuk Tablet dan iPad (di bawah 1024px) */
        @media screen and (max-width: 1024px) {
            .announcement-bar {
                width: 90%; /* Sedikit lebih lebar di tablet */
            }
        }
        /* Untuk HP (di bawah 768px) */
        @media screen and (max-width: 768px) {
            .announcement-bar {
                padding: 4px;
                border-radius: 30px; /* Radius lebih kecil agar proporsional */
            }
            .announcement-icon {
                padding: 8px 12px;
                font-size: 14px;
            }
            .announcement-item {
                font-size: 12px; /* Ukuran font lebih kecil di HP */
            }
            .announcement-text-wrapper {
                height: 28px;
                line-height: 28px;
            }
        }
        /* Untuk HP yang sangat kecil (di bawah 480px) */
        @media screen and (max-width: 480px) {
            .announcement-bar {
                flex-direction: column; /* Mengubah tata letak menjadi vertikal */
                height: auto;
                padding: 10px;
                border-radius: 20px;
            }
            .announcement-icon {
                margin-bottom: 8px; /* Memberi jarak antara ikon dan teks */
            }
            .announcement-text-wrapper {
                text-align: center; /* Pusatkan teks saat tata letak vertikal */
                width: 100%;
            }
            /* Menyesuaikan ulang posisi teks untuk tata letak baru */
            .announcement-item:first-child {
                position: relative;
                transform: none;
            }
        }



/* =================================
   Footer , (Home Page)
   ================================= */
.site-footer {
    font-size: 0.9rem;
    color: #333; /* Warna teks utama di footer */
}
.footer-top {
    background-color: #ffffffff; /* Warna abu-abu muda seperti di gambar */
    padding: 2rem 0;
}
.footer-logo {
    max-height: 65px;
}
.footer-about {
    line-height: 1.6;
}
.footer-heading {
    font-family: 'Times New Roman', Times, serif; 
    font-weight: 700;
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 1.5rem;
}
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}
.footer-contact .contact-item i {
    color: var(--secondary-color); 
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
    width: 25px; 
}
.footer-contact .contact-item h5 {
    margin-bottom: 0.3rem;
}
.footer-contact .contact-item p {
    margin: 0; 
    line-height: 1.5;
}
.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.7rem;
}
.footer-links a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px; 
}

/* =================================
   SubFooter CR , (Home Page)
   ================================= */
.footer-bottom {
    background-color: #11acda; /* Warna biru muda seperti di gambar */
    padding: 0.5rem 0;
    text-align: center;
    font-weight: 500;
    color: white;
}









 .background-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            background-image: 
                radial-gradient(circle at 1px 1px, #dddddd 1px, transparent 0);
            background-size: 25px 25px;
            animation: movePattern 90s linear infinite;
            opacity: 0.5;
        }

        @keyframes movePattern {
            from { background-position: 0 0; }
            to { background-position: 500px 500px; }
        }
        
        .text-primary {
            color: #11ACDA !important;
        }
        
        .partner-logo-wrapper { 
            transition: all 0.3s ease-in-out;
            filter: grayscale(100%);
            background-color: #ffffff; /* Ubah ke putih solid */
            border: 1px solid #e9ecef;
        }

        .partner-logo-wrapper:hover {
            transform: scale(1.05);
            filter: none;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
        }

        .partnership-svg {
            max-width: 350px;
            width: 100%;
            margin: 0 auto 1.5rem auto;
        }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes slideInLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes slideInRight { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
        @keyframes handshake { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 2px) rotate(-2deg); } 75% { transform: translate(2px, -2px) rotate(2deg); } }

        .partnership-svg .person-left { animation: slideInLeft 1s ease-out forwards; }
        .partnership-svg .person-right { animation: slideInRight 1s ease-out forwards; }
        .partnership-svg .handshake-group { opacity: 0; animation: fadeIn 0.5s 1s ease-out forwards, handshake 0.8s 1.5s ease-in-out infinite; transform-origin: center; }
        .partnership-svg .background-elements { opacity: 0; animation: popIn 1.2s 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }




/* =================================
   Warning Pop Up Mobile Device
================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.popup-overlay.show {
    display: flex;
    opacity: 1;
}
.popup-content {
    position: relative;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}
.popup-content h3 {
    color: #333;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}
.popup-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px; /* Added some space before the image */
}
.popup-overlay.show .popup-content {
    transform: scale(1);
}
.popup-example-image {
    max-width: 80%; /* Make image slightly smaller than the popup width */
    height: auto;
    margin-top: 15px; /* Space between text and image */
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 4px;
}
.popup-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: #11ACDA;
    color: #ffffff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.popup-close-btn:hover {
    transform: scale(1.1);
    background-color: #0e8aab;
}