

.official-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#officialTabs .nav-link{
    color: rgb(87, 87, 87);
}

#officialTabs .nav-link.active{
    color: rgb(146, 118, 57);
}

.official-card:hover {
    transform: translateY(-5px);
}

.card-pejabat{
    flex-direction: row;
}

.btn-pejabat{
    background-color: #192939;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.btn-pejabat:hover{
    transition: background-color 0.3s ease;
    background-color: #14212e;
    color: #FFFFFF;
}

.card-img-top, .card-img-pejabat {

    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.swiper-container {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev, .swiper-button-next {
    color: #cca22e;
}

.swiper-pagination-bullet {
    background: #a58c1b;
}

/* Modal/Popup Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #2C3E50;
}

.profile-card {
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-name {
    font-size: 1.5rem;
    color: #2C3E50;
}

.profile-position {
    font-size: 1.1rem;
    color: #7F8C8D;
    margin-bottom: 15px;
}

.profile-details {
    text-align: left;
    color: #2C3E50;
}

.hidden-profile {
    display: none;
}

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}


@media (max-width: 768px) {
    
    .official-card{
        text-align: center;
    }
    .card-img-top {
        height: 150px;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .nav-link {
        margin-bottom: 10px;
    }

    .card-body {
        padding: 10px;
    }

    .modal-content {
        width: 90%;
        max-width: 90%;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }
}