/* Konten Floating */
.floating-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: var(--gradient-transparent);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-ad::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.floating-ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-ad:hover::before {
    transform: rotate(45deg) translate(10px, 10px);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.ad-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-logo {
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.drop-shadow {
    filter: drop-shadow(0 0 1px white) drop-shadow(0 0 0 white) drop-shadow(0 0 3px white);
}

.ad-link {
    display: block;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.ad-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Video Section */
.video-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: var(--section-color1);
    color: white;
}

/* Pejabat Section */
.pejabat-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: white;
    color: white;
}

/* Pejabat Card */
.pejabat-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.pejabat-card:hover {
    transform: translateY(-10px);
}

.pejabat-img1 {
    height: 350px;
    object-fit: cover;
    object-position: top;
}

.pejabat-img2 {
    height: 250px;
    object-fit: cover;
    object-position: top;
}

.pejabat-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Konten Utama Section */
.konten-utama-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: var(--light-color);
    color: black;
}

/* Carousel Modern */
.carousel-item {
    height: 100%;
}

.carousel-img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    bottom: 100px;
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    animation: fadeInUp 0.8s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(5px);
}

/* Agenda */
.agenda-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.agenda-item:hover {
    background: rgba(67, 97, 238, 0.05);
    transform: translateX(5px);
}

/* Artikel & Berita */
.news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    height: 100%;
}

.news-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-img {
    height: 300px;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 25px;
}

/* Department Card */
.department-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    height: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.department-card img {
    height: 70px;
    /* Tinggi tetap */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
}

.department-card h5 {
    margin: 10px 0;
    flex-grow: 1;
}

.department-card a.btn {
    margin-top: auto;
    width: fit-content;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: var(--gradient);
    color: white;
}

.department-card:hover h5,
.department-card:hover a {
    color: white !important;
}

/* Gallery */
.gallery-img {
    object-fit: cover;
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Pejabat */
.officers-section {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
}

.officer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.officer-card {
    width: 250px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.officer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: all 0.5s ease;
}

.officer-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(67, 97, 238, 0.9);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
}

.officer-card:hover .officer-info {
    bottom: 0;
}

.officer-card:hover .officer-image {
    filter: brightness(0.7);
    animation: none;
}

.officer-name {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.officer-position {
    font-weight: 500;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 576px) {
    .floating-ad {
        width: 90%;
        right: 5%;
        left: 5%;
        bottom: 10px;
    }
}

@media(max-width: 768px) {
    .carousel-item {
        height: 350px;
    }

    .carousel-caption {
        bottom: 20px;
        padding: 15px;
    }
}