/*----------------------------
    preloader area
----------------------------*/
/* Animasi ketika halaman dimuat */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.text-animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.loader_bg {
    position: fixed;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}

.loader {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader img {
    width: 150px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* height: 100%; */
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.text-description {
    color: #164741;
    text-align: center;
    font-size: 16px;
    /* Ukuran teks untuk tampilan desktop */
}

.text-primy {
    color: #164741;
}

.text-secnd {
    color: #cdd3a7;
}

.btn-primy {
    background-color: #164741;
    color: #cdd3a7;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    border: none;
}

.btn-primy:hover {
    background-color: #cdd3a7;
    /* Darker shade on hover */
    color: #164741;
}

.bg-primy {
    background-color: #164741;
    /* Darker shade on hover */
}

.bg-secnd {
    background-color: #cdd3a7;
    /* Darker shade on hover */
}

.btn-top {
    background-color: #164741;
    color: #cdd3a7;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    border: none;
}

.btn-top:hover {
    background-color: #164741;
    color: #cdd3a7;
    transition: transform 0.3s ease;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    /* Shadow effect */
}

.btn-secnd {
    background-color: #cdd3a7;
    color: #164741;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    border: none;
}

.btn-secnd:hover {
    background-color: #164741;
    /* Darker shade on hover */
    color: #cdd3a7;
}

.sub-title {
    font-size: 50px;
    font-weight: bold;
}

@font-face {
    font-family: 'Bahagia';
    src: url('../fonts/Bahagia.ttf') format('truetype');
}

.bahagia-font {
    font-family: 'Bahagia', cursive;
    font-size: 80px;
}

.bg-papper {
    background-image: url("../images/union.jpeg");
}

@media (max-width: 1200px) {

    /* Ukuran teks untuk tampilan tablet */
    .text-description {
        font-size: 16px;
    }

    .sub-title {
        font-size: 40px;
    }

    .bahagia-font {
        font-size: 50px;
    }
}

@media (max-width: 768px) {

    /* Ukuran teks untuk tampilan mobile */
    .text-description {
        font-size: 14px;
    }

    .sub-title {
        font-size: 30px;
    }

    .bahagia-font {
        font-size: 50px;
    }
}

#navbar {
    border-bottom: 4px solid #cdd3a7;
    background-color: #164741 !important;
}

.item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Tombol Floating */
.wa-button {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    z-index: 1200;
    /* Pastikan di atas Crisp */
}

.wa-button:hover {
    transform: scale(1.1);
}

.wa-list {
    position: fixed;
    bottom: 170px;
    right: 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 320px;
    max-height: 420px;
    z-index: 99999 !important;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.wa-list.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.wa-header {
    background: #25D366;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wa-desc {
    text-align: center;
    font-size: 14px;
    padding: 5px 10px;
    color: #666;
}

.wa-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

/* Styling scrollbar untuk browser berbasis WebKit (Chrome, Edge, Safari) */
.wa-list ul::-webkit-scrollbar {
    width: 6px;
}

.wa-list ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wa-list ul::-webkit-scrollbar-thumb {
    background: #25D366;
    /* Warna scrollbar */
    border-radius: 10px;
}

.wa-list ul::-webkit-scrollbar-thumb:hover {
    background: #1ebe5d;
    /* Warna scrollbar saat hover */
}

.wa-list li {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s;
}

.wa-list li:last-child {
    border-bottom: none;
}

.wa-list li:hover {
    background: #f1f1f1;
}

.wa-info {
    flex-grow: 1;
}

.online {
    background: #28a745;
    color: white;
}

.offline {
    background: #ffc107;
    color: black;
}

.wa-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.wa-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #25D366;
}

.wa-list img {
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    .wa-button {
        width: 55px;
        height: 54px;
        font-size: 22px;
        bottom: 75px;
        right: 15px;
    }

    .wa-list {
        width: 90%;
        right: 5%;
        bottom: 140px;
        padding: 10px;
        max-height: 420px;
    }

    .wa-header {
        background: #25D366;
        color: white;
        padding: 15px;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        border-radius: 10px 10px 0 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .wa-list li {
        padding: 10px;
        font-size: 14px;
    }

    .wa-list img {
        width: 50px;
        height: 50px;
    }

    .wa-button img {
        width: 35px;
        height: 35px;
    }
}