/* --- DIFERENSIASI WARNA SECTION --- */
.bg-custom-light { 
    background-color: #f8faf9; 
}
.section-divider { 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

/* --- SLIDER HERO --- */
.hero-wrapper { 
    position: relative; 
    width: 100%; 
    background-color: #000; 
    overflow: hidden; 
}
.hero-wrapper .carousel-item img { 
    width: 100%; 
    height: auto; 
    display: block; 
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem; 
    border-radius: 15px; 
    bottom: 15%;
    max-width: 80%; 
    left: 10%; 
    backdrop-filter: blur(8px);
    z-index: 10;
}
.carousel-caption h1 { 
    font-size: 3.5vw; 
    font-weight: 800; 
}
.carousel-control-prev, .carousel-control-next { 
    z-index: 15; 
    width: 5%; 
}

/* --- PEJABAT CARD (PORTRAIT 3:4) --- */
.pejabat-card { 
    transition: 0.3s; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #fff; 
    border: 1px solid #eee; 
}
.img-portrait-wrapper { 
    width: 100%; 
    padding-top: 133.33%; 
    position: relative; 
    overflow: hidden; 
    background: #f8f9fa; 
}
.img-portrait-wrapper img { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
    object-position: top; 
}
.pejabat-info { 
    padding: 12px 8px; 
}
.pejabat-info h6 { 
    font-size: 0.85rem; 
    font-weight: 700; 
    margin-bottom: 2px; 
}
.pejabat-info p { 
    font-size: 0.7rem; 
    color: #198754; 
    font-weight: 600; 
    text-transform: uppercase; 
}

/* --- GALLERY --- */
.gallery-card { 
    transition: 0.4s; 
    position: relative; 
    overflow: hidden; 
    border-radius: 10px; 
    cursor: pointer; 
}
.gallery-card img { 
    transition: 0.6s; 
    width: 100%; 
    object-fit: cover; 
    height: 160px; 
}
.gallery-card:hover img { 
    transform: scale(1.1); 
}
.gallery-overlay { 
    position: absolute; 
    bottom: 0; left: 0; right: 0; 
    background: rgba(0,0,0,0.7); 
    padding: 8px; 
    opacity: 0; 
    transition: 0.3s; 
}
.gallery-card:hover .gallery-overlay { 
    opacity: 1; 
}

/* --- MODAL CUSTOM --- */
.modal-content { 
    background: transparent; 
    border: none; 
}
.btn-close-custom { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 10000; 
    background: #fff; 
    border: none; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    font-weight: bold; 
}

/* --- UTILITIES --- */
.hover-lift:hover { 
    transform: translateY(-7px); 
    transition: 0.3s; 
}

@media (max-width: 768px) {
    .carousel-caption h1 { font-size: 6vw; }
}

.app-card {
    background-color: #f0f4f8; /* Warna soft default */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 24px;
    border: 2px solid transparent;
}
.app-card:hover {
    background-color: #ffffff;
    border-color: #007bff;
    transform: translateY(-10px);
    shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.app-title {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    color: #333;
    font-weight: 700;
}
.app-card:hover .app-title {
    opacity: 1;
    transform: translateY(0);
}
.app-icon-wrapper {
    transition: transform 0.3s ease;
}
.app-card:hover .app-icon-wrapper {
    transform: scale(1.1);
}

.doc-latest-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.doc-latest-card:hover {
    background: #f8fbff;
    border-color: #007bff;
    transform: translateX(10px); /* Efek geser ke kanan sedikit */
}
.doc-icon-circle {
    width: 50px;
    height: 50px;
    background: #eef5ff;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.swiper-button-prev-custom, .swiper-button-next-custom {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    z-index: 10;
    transition: all 0.3s ease;
}
.swiper-button-prev-custom:hover, .swiper-button-next-custom:hover {
    background: #007bff;
    color: white;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}