/* ========== CUSTOM STYLES FOR BBWS WEBSITE ========== */

/* ========== INFOGRAFIS FULL IMAGE STYLES ========== */
.infografis-full-image {
    overflow: visible;
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.infografis-full-image .infografis-slide {
    position: relative;
    overflow: visible;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0;
}

.infografis-full-image .infografis-slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Text wrapping for infografis content */
.infografis-full-image .infografis-slide {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
}

.infografis-full-image .infografis-slide * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    text-overflow: ellipsis;
}

/* Overlay text for infografis */
.infografis-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.3;
}

.infografis-overlay h6 {
    margin: 0 0 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.2;
}

.infografis-overlay p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    font-size: 0.8rem;
    line-height: 1.2;
}

.infografis-full-image .infografis-slide img:hover {
    transform: scale(1.02);
}

.infografis-full-image .infografis-slide a {
    display: block;
    height: auto;
    text-decoration: none;
}

/* Responsive untuk infografis full image */
@media (max-width: 768px) {
    .infografis-full-image .infografis-slide {
        max-height: none;
    }
    
    .infografis-full-image .infografis-slide img {
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 576px) {
    .infografis-full-image .infografis-slide {
        max-height: none;
    }
    
    .infografis-full-image .infografis-slide img {
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
}

/* ========== PENGUMUMAN FULL IMAGE STYLES ========== */
.pengumuman-full-image {
    overflow: visible;
    border-radius: 0 0 8px 8px;
}

.pengumuman-full-image .pengumuman-slide {
    position: relative;
    overflow: visible;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0;
}

.pengumuman-full-image .pengumuman-slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Text wrapping for pengumuman content */
.pengumuman-full-image .pengumuman-slide {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
}

.pengumuman-full-image .pengumuman-slide * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    text-overflow: ellipsis;
}

/* Overlay text for pengumuman */
.pengumuman-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.3;
}

.pengumuman-overlay h6 {
    margin: 0 0 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.2;
}

.pengumuman-overlay p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    font-size: 0.8rem;
    line-height: 1.2;
}

.pengumuman-full-image .pengumuman-slide img:hover {
    transform: scale(1.02);
}

.pengumuman-full-image .pengumuman-slide a {
    display: block;
    height: auto;
    text-decoration: none;
}

/* Responsive untuk pengumuman full image */
@media (max-width: 768px) {
    .pengumuman-full-image .pengumuman-slide {
        max-height: none;
    }
    
    .pengumuman-full-image .pengumuman-slide img {
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 576px) {
    .pengumuman-full-image .pengumuman-slide {
        max-height: none;
    }
    
    .pengumuman-full-image .pengumuman-slide img {
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
}

/* ========== CARD TEXT WRAPPING STYLES ========== */
.card {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    line-height: 1.3;
}

.card p, .card span, .card div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    line-height: 1.4;
}

/* Specific styles for sidebar cards */
.col-lg-3 .card {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.col-lg-3 .card * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

/* Force text wrapping for all text elements */
.card-header h6,
.card-header p,
.card-header span,
.card-header div {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

/* Additional text wrapping for image content */
.infografis-full-image img,
.pengumuman-full-image img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Force card height to accommodate content */
.card.infografis-card,
.card.pengumuman-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Ensure no overflow on cards */
.col-lg-3 .card {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Specific styles for Pengaduan Penyuapan card */
.card .card-body[style*="height: auto"] {
    height: auto !important;
    min-height: 300px !important;
    max-height: none !important;
    overflow: visible !important;
}

.card .card-body img[src*="pengaduan.jpg"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Responsive styles for Pengaduan card */
@media (max-width: 768px) {
    .card .card-body[style*="height: auto"] {
        min-height: 250px !important;
    }
    
    .card .card-body img[src*="pengaduan.jpg"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 576px) {
    .card .card-body[style*="height: auto"] {
        min-height: 200px !important;
    }
    
    .card .card-body img[src*="pengaduan.jpg"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Ensure all text in cards wraps properly */
.card-body *,
.card-header *,
.infografis-slide *,
.pengumuman-slide * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* Responsive text wrapping */
@media (max-width: 768px) {
    .card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .card p, .card span, .card div {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .infografis-overlay,
    .pengumuman-overlay {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .infografis-overlay h6,
    .pengumuman-overlay h6 {
        font-size: 0.8rem;
    }
    
    .infografis-overlay p,
    .pengumuman-overlay p {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .card p, .card span, .card div {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .infografis-overlay,
    .pengumuman-overlay {
        font-size: 0.75rem;
        padding: 6px;
    }
    
    .infografis-overlay h6,
    .pengumuman-overlay h6 {
        font-size: 0.75rem;
    }
    
    .infografis-overlay p,
    .pengumuman-overlay p {
        font-size: 0.65rem;
    }
}

/* ========== BERITA SLIDER STYLES ========== */
.berita-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

 .card-body {
    padding: 20px;
}

.berita-slider-wrapper {
    position: relative;
    width: 100%;
}

.berita-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.berita-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.berita-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


.berita-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    position: relative;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}



.berita-placeholder i {
    opacity: 0.5;
}

.berita-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.berita-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.berita-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.berita-title a:hover {
    color: #007bff;
}

.berita-date {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.berita-excerpt {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: justify;
}

/* Navigation Buttons */
.berita-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.berita-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.berita-prev {
    left: 10px;
}

.berita-next {
    right: 10px;
}

/* Bootstrap Pagination Customization */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #000000;
    border-color: #b9b9b9;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    color: #000000;
    background-color: #a8a8a8;
    border-color: #8d8d8d;
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

.pagination .page-link:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25) !important;
    border-color: #b9b9b9;
}

.pagination .page-link:active {
    transform: translateY(0);
    background-color: #8d8d8d;
}

.pagination .page-item.active .page-link {
    background-color: #000000;
    border-color: #000000;
    color: white;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 600;
}

.pagination .page-item.active .page-link:hover {
    background-color: #333333;
    border-color: #333333;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #686868;
    background-color: #fff;
    border-color: #838383;
    outline: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    background-color: #fff;
    border-color: #838383;
    color: #686868;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Ensure pagination is clickable */
.pagination .page-link {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.pagination .page-item.disabled .page-link {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* Responsive Design for Berita */
@media (max-width: 768px) {
    .berita-card {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }
    
    .berita-image {
        flex: none;
        width: 50%;
        height: 180px;
    }
    
    .berita-content {
        padding: 12px;
    }
    
    .berita-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .berita-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .berita-date {
        font-size: 0.75rem;
    }
    
    .berita-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .berita-prev {
        left: 5px;
    }
    
    .berita-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .berita-card {
        padding: 10px;
        gap: 12px;
    }
    
    .berita-image {
        height: 150px;
    }
    
    .berita-content {
        padding: 10px;
    }
    
    .berita-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .berita-excerpt {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .berita-date {
        font-size: 0.7rem;
    }
    
    .berita-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    .berita-prev {
        left: 3px;
    }
    
    .berita-next {
        right: 3px;
    }
}

/* Additional Berita Improvements */
.berita-slider-track {
    gap: 0;
}

.berita-slide {
    padding: 0 10px;
}




/* Utility Classes */
.no-transition { 
    transition: none !important; 
}

/* ========== HEADER STYLES ========== */
.header {
    background: transparent !important;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    min-height: 100px;
}

/* Restore specific backgrounds that should not be transparent */
.card {
    background: rgb(255, 255, 255) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.search-box {
    background-color: #ffffff !important;
}

.search-box-mobile {
    background-color: white !important;
}

.dropdown-menu {
    background-color: white !important;
}

/* Removed header background pattern */

.header-logo {
    position: relative;
    z-index: 2;
}

.header-logo img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    max-height: 80px;
    width: auto;
    display: block;
}

/* Ensure header is visible */
header.header {
    display: block !important;
    visibility: visible !important;
}

/* ========== BODY BACKGROUND ========== */
body {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.493) 100%), url('../img/body.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
    z-index: -1;
    pointer-events: none;
}

/* ========== NAVBAR STYLES ========== */
.navbar-container {
    background: transparent;
    padding: 8px 0;
    margin-top: -70px;
    position: relative;
    z-index: 9998;
    width: 100%;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 0 7.5vw; /* Konsisten dengan container-fluid */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* Pastikan padding termasuk dalam width */
    overflow: visible !important;
}

.main-navbar {
    background-color: #1f3368;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    min-width: 0; /* Memungkinkan flexbox untuk shrink */
    overflow: visible !important; /* Dropdown bisa keluar dari navbar */
    overflow-x: visible !important;
    overflow-y: visible !important;
    display: flex;
    align-items: stretch;
    z-index: 9998;
    position: relative;
}

/* Custom Banner Slider Styles */
.custom-banner-slider {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 5px;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

/* Remove white background from banner card wrapper only */
.custom-banner-slider .card.border-0.shadow-sm.mb-4,
.card.border-0.shadow-sm.mb-4:has(.custom-banner-slider) {
    background-color: transparent !important;
    box-shadow: none !important;
    z-index: 1 !important;
}

.slider-container {
    position: relative;
    width: 100%;
    height: auto;
    background-color: transparent;
}

.slider-track {
    position: relative;
    width: 100%;
    height: auto;
    background-color: transparent;
}

.slider-slide {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: block;
    background-color: transparent;
}

.slider-slide.active {
    opacity: 1;
}

.slider-image {
    width: 100%;
    height: auto;
    display: block;
    background-color: transparent;
}


/* Slider Navigation Buttons - HIDDEN */
.slider-btn {
    display: none !important;
}

.slider-dots {
    display: none !important;
}

/* Responsive adjustments - container follows image size */
@media (max-width: 768px) {
    .slider-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .slider-image {
        height: 300px;
    }
}

.navbar-nav {
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: visible !important; /* Changed from auto to allow dropdown */
    overflow-y: visible !important;
    align-items: stretch;
}

.nav-item {
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
}

.nav-item.dropdown {
    position: relative;
}


.nav-link {
    color: white !important;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 12px 16px !important;
    transition: background-color 0.3s ease;
    border: none;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: fit-content;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.15);
    color: white !important;
}

.nav-link.home-link {
    padding: 12px 15px !important;
    border-radius: 8px 0 0 8px;
}

/* ========== DATETIME DISPLAY STYLES ========== */
.navbar-datetime {
    margin-left: auto;
    padding: 0 6px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 180px;
    min-width: 0;
}

.datetime-display {
    text-align: right;
    color: white;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    min-width: 0;
}

.datetime-date {
    font-size: 0.4rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

.datetime-separator {
    font-size: 0.4rem;
    opacity: 0.7;
    font-weight: 300;
}

.datetime-time {
    font-size: 0.45rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2px;
}

/* ========== SEARCH STYLES ========== */
.search-box {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: calc(25% - 5px) !important; /* Sama dengan lebar col-lg-3 minus gap untuk scale 100% */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
    box-sizing: border-box;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    padding: 0 15px;
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
}

.search-input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Mobile Search */
.mobile-search-inside {
    padding: 10px 15px 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.search-box-mobile {
    background-color: white;
    border: none;
    border-radius: 5px;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input-mobile {
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    padding: 0 15px;
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.search-input-mobile::placeholder {
    color: #999;
    font-style: normal;
}

.mobile-search {
    background: transparent;
    padding: 15px 0;
}

.mobile-search .search-box {
    margin: 0 auto;
    max-width: 400px;
}

/* ========== SIMPLE DROPDOWN STYLES ========== */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    border: 1px solid #ccc !important;
    min-width: 180px !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    z-index: 2147483647 !important; /* Maximum z-index */
    display: none !important;
    list-style: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.dropdown-menu.show {
    display: block !important;
}

/* Force dropdown to escape navbar */
.main-navbar .dropdown-menu,
.navbar-nav .dropdown-menu,
.nav-item .dropdown-menu {
    overflow: visible !important;
}

/* Ensure all navbar containers allow dropdown */
.navbar-container,
.navbar-wrapper,
.main-navbar,
.navbar-nav {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.dropdown-item {
    display: block !important;
    padding: 8px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    cursor: pointer !important;
}

.dropdown-item:hover {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

.dropdown-header {
    display: block !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #999 !important;
    text-transform: uppercase !important;
}

/* Dropdown toggle styling and fixes */
.dropdown-toggle::after {
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Ensure dropdown toggles work properly */
.navbar-nav .dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.navbar-nav .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== PROFIL PAGE STYLES ========== */
.profil-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.profil-header {
    background: linear-gradient(135deg, #3b4d66 0%, #2c3e50 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.profil-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profil-content {
    padding: 30px;
    line-height: 1.8;
}

.profil-content h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.profil-content h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.profil-content h5 {
    color: #3498db;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

.profil-content ul {
    padding-left: 20px;
}

.profil-content li {
    margin-bottom: 10px;
    position: relative;
}

.profil-content li::before {
    content: '▶';
    color: #3498db;
    font-size: 12px;
    position: absolute;
    left: -20px;
    top: 2px;
}

/* ========== HERO BANNER STYLES ========== */
.hero-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    position: relative;
    overflow: hidden;
}

/* Allow background image to override gradient when specified */
.hero-banner[style*="background-image"] {
    background: none !important;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="20" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="60" r="15" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat;
    background-size: cover;
    pointer-events: none;
}

.hero-banner .card-body {
    position: relative;
    z-index: 2;
}

.hero-banner .website-url {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-banner .hero-illustration {
    opacity: 0.8;
    transform: scale(1.1);
}

.hero-banner .hero-illustration i {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-banner h4, 
.hero-banner h5, 
.hero-banner span {
    color: white !important;
}

.hero-banner .fas.fa-bullhorn {
    color: #ffc107;
}

/* ========== GALERI & SLIDER STYLES ========== */
.galeri-section {
    position: relative;
}

.galeri-section.infrastructure-bg {
    background-image: url('../img/bg-gallery.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.slider-title {
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 1.5rem;
}

.slider-track.no-transition {
    transition: none;
}

.slide-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.slide-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.slide-content {
    padding: 1.5rem;
    text-align: center;
}

.slide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Navigation Arrows */
.nav-arrow {
    border: none;
    width: 74px;
    height: 74px;
    font-size: 50px;
    color: #fff;
    z-index: 10;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.3s ease;
    background: none;
}

.nav-arrow i {
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.prev-arrow {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.next-arrow {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.arrow-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.arrow-left {
    left: 0;
}

.arrow-right {
    right: 0;
}

/* Infografis Slider */
.infografis-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: auto;
}

.infografis-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.infografis-slide {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Pengumuman Slider */
.pengumuman-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: auto;
}

.pengumuman-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.pengumuman-slide {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.infografis-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-infografis {
    left: 10px;
    transform: translateY(-50%);
}

.next-infografis {
    right: 10px;
    transform: translateY(-50%);
}

/* ========== FOOTER STYLES ========== */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(31, 51, 104, 0.8), rgba(31, 50, 104, 0.425)), url('../img/footer.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.footer-with-bg {
    background: linear-gradient(rgba(31, 51, 104, 0.8), rgba(31, 50, 104, 0.815)), url('../img/footer.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
}

.footer-with-bg > * {
    position: relative;
    z-index: 1;
}

.footer-with-bg .text-white-50 {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-with-bg h5 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.footer-with-bg p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer h5 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

footer p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Force remove all gaps for pengumuman */
.pengumuman-full-image,
.pengumuman-full-image *,
.pengumuman-slider-wrapper,
.pengumuman-slider-wrapper *,
.pengumuman-slide,
.pengumuman-slide * {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 0 !important;
    vertical-align: top !important;
    font-size: 0 !important;
}

/* Specific fix for pengumuman card gap */
.card .pengumuman-slider-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.card .pengumuman-full-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any Bootstrap card body padding for pengumuman */
.card:has(.pengumuman-slider-wrapper) {
    padding-bottom: 0 !important;
}

.card:has(.pengumuman-slider-wrapper) .card-body {
    padding: 0 !important;
    margin: 0 !important;
}

/* Additional override for infografis full image */
.infografis-full-image .infografis-slide img {
    object-fit: cover !important;
    object-position: center !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Additional override for pengumuman full image */
.pengumuman-full-image .pengumuman-slide img {
    object-fit: cover !important;
    object-position: center !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.infografis-slider-wrapper .infografis-slide {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 0 !important;
}

.pengumuman-slider-wrapper .pengumuman-slide {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 0 !important;
}

.infografis-slider-track {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pengumuman-slider-track {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.infografis-slider-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
}

.pengumuman-slider-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
}

/* ========== INFRASTRUCTURE BACKGROUND ========== */
.infrastructure-bg {
    background-image: url('../img/bg-gallery.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.infrastructure-bg .slider-title {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7) !important;
}

.infrastructure-bg .slide-caption {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* ========== GALERI CAROUSEL ========== */
.galeri-carousel .row {
    flex-wrap: nowrap !important;
    margin: 0;
    transition: transform 0.5s ease-in-out;
}

.galeri-carousel .row .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

/* ========== PAGINATION STYLES ========== */
.custom-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.pagination-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* ========== UTILITY CLASSES ========== */
.navbar {
    padding: 0;
}

.navbar-toggler {
    margin: 8px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.container-fluid {
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    margin-top: 15px;
}

.card {
    background: rgb(255, 255, 255);
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}

/* ========== SCALE CONSISTENT DESIGN ========== */
/* Semua laptop menggunakan layout yang sama - hanya mobile yang berbeda */

/* LAPTOP LAYOUT - Semua scale laptop (481px ke atas) */
@media (min-width: 481px) {
    .navbar-wrapper {
        padding: 0 7.5vw !important; /* 120px pada 1600px = 7.5vw */
        gap: 1vw !important; /* Mengurangi gap untuk memberikan lebih banyak ruang navbar */
    }
    
    .main-navbar {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 22vw); /* Memberikan lebih banyak ruang untuk navbar */
    }
    
    .search-box {
        width: calc(25% - 5px) !important; /* Sama dengan lebar col-lg-3 minus gap */
    }
    
    .container-fluid {
        padding: 0.9375vw 7.5vw 6.25vw !important; /* 15px 120px 100px pada 1600px */
    }
    
    .card {
        margin-bottom: 1.5rem !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-header {
        padding: 1rem 1.5rem !important;
    }
    
    h5 {
        font-size: 1.25rem !important;
    }
    
    h6 {
        font-size: 1.1rem !important;
    }
    
    .btn {
        padding: 12px 30px !important;
        font-size: 1rem !important;
    }
    
    .navbar-toggler {
        background-color: transparent !important;
        color: white !important;
    }
    
    .row .order-1 {
        order: 0 !important;
    }
    
}

/* MOBILE LAYOUT - Hanya untuk layar sangat kecil (480px ke bawah) */
@media (max-width: 480px) {
    .navbar-wrapper {
        padding: 0 !important;
    }
    
    .container-fluid {
        padding: 0.625vw 0.9375vw 2.5vw !important; /* 10px 15px 40px pada 1600px */
    }
    
    .card {
        margin-bottom: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem !important;
    }
    
    h5 {
        font-size: 1.1rem !important;
    }
    
    h6 {
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .navbar-toggler {
        background-color: #1f3368 !important;
        color: white !important;
    }
    
    .row .order-1 {
        order: 1 !important;
    }
}

/* TABLET LAYOUT - Ukuran menengah (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Fix dropdown interaction on tablet */
    .main-navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: rgba(0,0,0,0.1) !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        pointer-events: auto !important;
        z-index: 1001 !important;
    }
    
    .main-navbar .dropdown-item {
        pointer-events: auto !important;
        cursor: pointer !important;
        display: block !important;
        width: 100% !important;
    }
    
    .main-navbar .dropdown-item:hover {
        pointer-events: auto !important;
    }
    
    /* Memastikan navbar container tidak menghalangi dropdown */
    .navbar-container {
        overflow: visible !important;
    }
    
    .main-navbar {
        z-index: 1001 !important;
        position: relative;
        overflow: visible !important;
    }
    .navbar-wrapper {
        padding: 0 5vw !important; /* Padding lebih kecil untuk tablet */
        gap: 0.8vw !important; /* Gap lebih kecil untuk navbar lebih panjang */
    }
    
    .main-navbar {
        max-width: calc(100% - 28vw); /* Memberikan lebih banyak ruang untuk navbar */
    }
    
    .search-box {
        width: calc(25% - 3px) !important; /* Sama dengan lebar col-lg-3 minus gap untuk tablet */
    }
    
    .container-fluid {
        padding: 0.9375vw 5vw 6.25vw !important;
    }
    
    .nav-link {
        font-size: 0.6rem !important;
        padding: 10px 12px !important;
    }
    
    .navbar-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* DESKTOP LAYOUT - Ukuran besar (769px ke atas) */
@media (min-width: 769px) {
    .navbar-wrapper {
        padding: 0 7.5vw !important;
        gap: 1vw !important; /* Gap lebih kecil untuk navbar lebih panjang */
    }
    
    .main-navbar {
        max-width: calc(100% - 22vw); /* Memberikan lebih banyak ruang untuk navbar */
    }
    
    .search-box {
        width: calc(25% - 5px) !important; /* Sama dengan lebar col-lg-3 minus gap */
    }
    
    .container-fluid {
        padding: 0.9375vw 7.5vw 6.25vw !important;
    }
    
    .nav-link {
        font-size: 0.6rem !important;
        padding: 10px 14px !important;
    }
    
    .navbar-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* LARGE DESKTOP LAYOUT - Ukuran sangat besar (1200px ke atas) */
@media (min-width: 1200px) {
    .navbar-wrapper {
        padding: 0 120px !important; /* Fixed padding untuk layar sangat besar */
        gap: 15px !important; /* Gap lebih kecil untuk navbar lebih panjang */
    }
    
    .main-navbar {
        max-width: calc(100% - 320px); /* Memberikan lebih banyak ruang untuk navbar */
    }
    
    .search-box {
        width: calc(25% - 5px) !important; /* Sama dengan lebar col-lg-3 minus gap */
    }
    
    .container-fluid {
        padding: 15px 120px 100px !important; /* Fixed padding untuk konsistensi */
    }
    
    .nav-link {
        font-size: 0.6rem !important;
        padding: 10px 16px !important;
    }
    
    .navbar-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* SLIDER CONSISTENCY - Semua laptop sama */
@media (min-width: 481px) {
    .slider-wrapper {
        padding: 0 8.75vw !important; /* 140px pada 1600px = 8.75vw */
    }
    
    .slider-title {
        font-size: 3.2rem !important;
        margin-bottom: 3rem !important;
    }

    .slide-item {
        flex: 0 0 26.25vw !important; /* 420px pada 1600px = 26.25vw */
        border-radius: 22px !important;
    }

    .slide-image {
        height: 13.75vw !important; /* 220px pada 1600px = 13.75vw */
    }

    .nav-arrow {
        width: 4.625vw !important; /* 74px pada 1600px = 4.625vw */
        height: 4.625vw !important;
        font-size: 3.125vw !important; /* 50px pada 1600px = 3.125vw */
    }
    
    .prev-arrow {
        left: 1.25vw !important; /* 20px pada 1600px = 1.25vw */
    }

    .next-arrow {
        right: 1.25vw !important;
    }
    
    .infografis-nav {
        width: 2.1875vw !important; /* 35px pada 1600px = 2.1875vw */
        height: 2.1875vw !important;
        font-size: 0.75vw !important; /* 12px pada 1600px = 0.75vw */
    }
    
    .prev-infografis {
        left: 0.625vw !important; /* 10px pada 1600px = 0.625vw */
    }

    .next-infografis {
        right: 0.625vw !important;
    }
    
    .pagination-row {
        gap: 0.5vw !important; /* 8px pada 1600px = 0.5vw */
    }
    
    .pagination-btn {
        min-width: 2.5vw !important; /* 40px pada 1600px = 2.5vw */
        height: 2.5vw !important;
        font-size: 0.875vw !important; /* 14px pada 1600px = 0.875vw */
        padding: 0.5vw 0.75vw !important; /* 8px 12px pada 1600px */
    }
    
    .profil-content {
        padding: 1.875vw !important; /* 30px pada 1600px = 1.875vw */
    }
    
    .profil-header {
        padding: 1.25vw !important; /* 20px pada 1600px = 1.25vw */
    }
}

/* MOBILE SLIDER */
@media (max-width: 480px) {
    .slider-wrapper {
        padding: 0 1.25vw !important; /* 20px pada 1600px = 1.25vw */
    }
    
    .slider-title {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .slide-item {
        flex: 0 0 18.75vw !important; /* 300px pada 1600px = 18.75vw */
        border-radius: 15px !important;
    }

    .slide-image {
        height: 11.25vw !important; /* 180px pada 1600px = 11.25vw */
    }

    .nav-arrow {
        width: 3.125vw !important; /* 50px pada 1600px = 3.125vw */
        height: 3.125vw !important;
        font-size: 1.875vw !important; /* 30px pada 1600px = 1.875vw */
    }
    
    .prev-arrow {
        left: 0.625vw !important; /* 10px pada 1600px = 0.625vw */
    }

    .next-arrow {
        right: 0.625vw !important;
    }
    
    .infografis-nav {
        width: 1.875vw !important; /* 30px pada 1600px = 1.875vw */
        height: 1.875vw !important;
        font-size: 0.75vw !important; /* 12px pada 1600px = 0.75vw */
    }
    
    .prev-infografis {
        left: 0.625vw !important; /* 10px pada 1600px = 0.625vw */
    }

    .next-infografis {
        right: 0.625vw !important;
    }
    
    .pagination-row {
        gap: 0.25vw !important; /* 4px pada 1600px = 0.25vw */
    }
    
    .pagination-btn {
        min-width: 2.25vw !important; /* 36px pada 1600px = 2.25vw */
        height: 2.25vw !important;
        font-size: 0.8125vw !important; /* 13px pada 1600px = 0.8125vw */
        padding: 0.375vw 0.625vw !important; /* 6px 10px pada 1600px */
    }
    
    .profil-content {
        padding: 1.25vw !important; /* 20px pada 1600px = 1.25vw */
    }
    
    .profil-header {
        padding: 0.9375vw !important; /* 15px pada 1600px = 0.9375vw */
    }
}

/* ========== SCALE RESPONSIVE STYLES ========== */
/* Untuk scale 125% ke atas - searchbox mengikuti lebar card pelayanan publik */
@media (min-width: 1200px) and (min-resolution: 1.25dppx),
       (min-width: 1400px) and (min-resolution: 1dppx),
       (min-width: 1600px) and (min-resolution: 1dppx) {
    .search-box {
        width: calc(25% - 20px) !important; /* Mengikuti lebar col-lg-3 minus gap */
    }
    
    .main-navbar {
        max-width: calc(100% - 25%) !important; /* Memberikan ruang untuk searchbox yang lebih kecil */
    }
}

/* Untuk scale 150% ke atas */
@media (min-width: 1600px) and (min-resolution: 1.5dppx),
       (min-width: 1800px) and (min-resolution: 1dppx) {
    .search-box {
        width: calc(25% - 8px) !important; /* Lebih kecil untuk scale yang lebih besar */
    }
    
    .main-navbar {
        max-width: calc(100% - 25%) !important;
    }
    
    .nav-link {
        font-size: 0.6rem !important;
    }
}

/* Untuk scale 175% ke atas */
@media (min-width: 2000px) and (min-resolution: 1dppx) {
    .search-box {
        width: calc(25% - 18px) !important; /* Lebih kecil lagi untuk zoom 175% */
    }
    
    .main-navbar {
        max-width: calc(100% - 25%) !important;
    }
}

/* CSS khusus untuk zoom 175% - menggunakan transform scale detection */
@media (min-width: 1600px) {
    .search-box {
        width: calc(25% - 15px) !important; /* Ukuran yang lebih presisi untuk zoom 175% */
    }
    
    .main-navbar {
        max-width: calc(100% - 25%) !important;
    }
}

/* CSS untuk zoom 175% dengan pendekatan yang lebih agresif */
@media screen and (min-width: 1400px) and (min-height: 900px) {
    .search-box {
        width: calc(25% - 25px) !important; /* Lebih kecil untuk memastikan tidak melawati card */
    }
    
    .main-navbar {
        max-width: calc(100% - 25%) !important;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: transparent !important;
        padding: 0;
        margin-top: 0;
        overflow: visible !important;
    }
    
    /* Memastikan dropdown mobile turun di bawah navbar container */
    .main-navbar {
        z-index: 1001 !important;
        position: relative;
        overflow: visible !important;
    }
    
    .navbar-wrapper {
        padding: 0;
        max-width: 100%;
    }
    
    .main-navbar {
        border-radius: 0;
        max-width: 100% !important; /* Pastikan navbar tidak melawati banner */
    }
    
    .search-box {
        display: none !important; /* Hide desktop searchbox di mobile */
    }
    
    .navbar-toggler {
        color: white;
        padding: 12px 15px;
        margin: 0;
        text-align: left;
        width: 100%;
        background-color: #1f3368;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        font-size: 0.8rem;
    }
    
    .navbar-toggler i {
        margin-right: 8px;
        font-size: 0.9rem;
    }
    
    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler:hover {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .main-navbar .navbar-collapse {
        background-color: transparent;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        width: 100%;
    }
    
    .main-navbar .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .main-navbar .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .main-navbar .nav-link {
        color: white !important;
        padding: 12px 15px !important;
        border-radius: 0;
        text-align: left;
        width: 100%;
        display: block !important;
        text-transform: uppercase;
        font-size: 0.55rem !important;
        letter-spacing: 0.1px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-search {
        display: none !important;
    }
    
    body {
        padding-top: 50px;
    }
    
    /* Mobile dropdown specific styles */
    .main-navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: rgba(0,0,0,0.15) !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        pointer-events: auto !important;
        z-index: 1001 !important;
        display: none !important;
    }
    
    .main-navbar .dropdown-menu.show {
        display: block !important;
        pointer-events: auto !important;
    }
    
    .main-navbar .dropdown-item {
        color: rgba(255,255,255,0.8) !important;
        padding: 8px 25px !important;
        font-size: 0.5rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        pointer-events: auto !important;
        cursor: pointer !important;
        display: block !important;
        width: 100% !important;
    }
    
    .main-navbar .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1) !important;
        color: white !important;
        pointer-events: auto !important;
    }
    
    .main-navbar .dropdown-header {
        color: rgba(255,255,255,0.6) !important;
        font-size: 0.45rem !important;
        padding: 8px 25px !important;
    }
}

/* ========== GALERI CAROUSEL CONSISTENCY ========== */
/* Semua laptop menggunakan layout yang sama */
@media (min-width: 481px) {
    .galeri-carousel .row {
        width: 100% !important;
    }
    
    .galeri-carousel .row .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    
    .galeri-section {
        background-attachment: fixed !important;
        min-height: 31.25vw !important; /* 500px pada 1600px = 31.25vw */
    }
    
    .galeri-nav {
        padding-left: 1.25vw !important; /* 20px pada 1600px = 1.25vw */
        padding-right: 1.25vw !important;
    }
    
    .nav-btn {
        width: 3.125vw !important; /* 50px pada 1600px = 3.125vw */
        height: 3.125vw !important;
    }
    
    .nav-btn i {
        font-size: 0.75vw !important; /* 12px pada 1600px = 0.75vw */
    }
}

/* Mobile galeri */
@media (max-width: 480px) {
    .galeri-carousel .row .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .galeri-section {
        background-attachment: scroll;
        min-height: 25vw !important; /* 400px pada 1600px = 25vw */
    }
    
    .galeri-nav {
        padding-left: 0.625vw !important; /* 10px pada 1600px = 0.625vw */
        padding-right: 0.625vw !important;
    }
    
    .nav-btn {
        width: 2.5vw !important; /* 40px pada 1600px = 2.5vw */
        height: 2.5vw !important;
    }
    
    .nav-btn i {
        font-size: 0.625vw !important; /* 10px pada 1600px = 0.625vw */
    }
}


/* ========== VIDEO ERROR HANDLING STYLES ========== */
.video-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.video-error-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.video-error-title {
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-error-message {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.video-retry-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* ========== YOUTUBE URL VALIDATION STYLES ========== */
.url-success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.url-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ========== BERITA HORIZONTAL SLIDER STYLES ========== */
/* Horizontal Container */
.berita-horizontal-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* Horizontal Row */
.berita-horizontal-row {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px;
    padding: 0 20px;
}

/* Horizontal Item */
.berita-horizontal-item {
    flex: 0 0 280px; /* Fixed width untuk setiap card */
    max-width: 280px;
}

/* Navigation Buttons */
.berita-nav-left,
.berita-nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.berita-nav-left:hover,
.berita-nav-right:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.berita-nav-left {
    left: 10px;
}

.berita-nav-right {
    right: 10px;
}

.berita-nav-left i,
.berita-nav-right i {
    font-size: 1rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .berita-horizontal-item {
        flex: 0 0 250px;
        max-width: 250px;
    }
    
    .berita-nav-left,
    .berita-nav-right {
        width: 35px;
        height: 35px;
    }
    
    .berita-nav-left i,
    .berita-nav-right i {
        font-size: 0.9rem;
    }
    
    .berita-nav-left {
        left: 5px;
    }
    
    .berita-nav-right {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .berita-horizontal-item {
        flex: 0 0 220px;
        max-width: 220px;
    }
}

/* ========== HIDROLOGI RESPONSIVE CONTAINER STYLES ========== */
/* Hidrologi Container - Responsive dengan background yang mengikuti container */
.hidrologi-container {
    background: transparent !important;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
}

.hidrologi-container .card-body {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.hidrologi-container iframe {
    width: 100% !important;
    height: 500px !important;
    border: none !important;
    border-radius: 0 0 8px 8px !important;
    background: transparent !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive adjustments untuk hidrologi */
@media (max-width: 768px) {
    .hidrologi-container {
        min-height: 400px;
    }
    
    .hidrologi-container iframe {
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    .hidrologi-container {
        min-height: 350px;
    }
    
    .hidrologi-container iframe {
        height: 350px !important;
    }
}

/* Large screens - lebih tinggi untuk desktop */
@media (min-width: 1200px) {
    .hidrologi-container {
        min-height: 600px;
    }
    
    .hidrologi-container iframe {
        height: 600px !important;
    }
}

/* Sistem Informasi page specific - hidrologi sidebar */
#hidrologi-data {
    background: transparent !important;
    border: none !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#hidrologi-data .card-header {
    background-color: #1f3368 !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
}

#hidrologi-data .card-body {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 0 8px 8px !important;
    overflow: hidden !important;
}

#hidrologi-data iframe {
    width: 100% !important;
    height: 500px !important;
    border: none !important;
    border-radius: 0 0 8px 8px !important;
    background: transparent !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive untuk sistem informasi hidrologi */
@media (max-width: 768px) {
    #hidrologi-data iframe {
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    #hidrologi-data iframe {
        height: 350px !important;
    }
}

@media (min-width: 1200px) {
    #hidrologi-data iframe {
        height: 600px !important;
    }
}

/* Sidebar hidrologi - untuk halaman lain */
.col-lg-3 #hidrologi-data {
    background: transparent !important;
    border: none !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.col-lg-3 #hidrologi-data .card-body {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 0 8px 8px !important;
    overflow: hidden !important;
}

.col-lg-3 #hidrologi-data iframe {
    width: 100% !important;
    height: 550px !important;
    border: none !important;
    border-radius: 0 0 8px 8px !important;
    background: transparent !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive untuk sidebar hidrologi */
@media (max-width: 768px) {
    .col-lg-3 #hidrologi-data iframe {
        height: 450px !important;
    }
}

@media (max-width: 576px) {
    .col-lg-3 #hidrologi-data iframe {
        height: 400px !important;
    }
}

@media (min-width: 1200px) {
    .col-lg-3 #hidrologi-data iframe {
        height: 600px !important;
    }
}

/* Mobile-specific hidrologi adjustments */
@media (max-width: 480px) {
    .hidrologi-container {
        min-height: 300px;
        margin-bottom: 1rem;
    }
    
    .hidrologi-container iframe {
        height: 300px !important;
    }
    
    #hidrologi-data iframe {
        height: 300px !important;
    }
    
    .col-lg-3 #hidrologi-data iframe {
        height: 300px !important;
    }
    
    /* Ensure hidrologi cards don't overflow on mobile */
    .hidrologi-container .card-header {
        padding: 0.75rem !important;
    }
    
    .hidrologi-container .card-header h6 {
        font-size: 0.9rem !important;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .hidrologi-container {
        min-height: 450px;
    }
    
    .hidrologi-container iframe {
        height: 450px !important;
    }
    
    #hidrologi-data iframe {
        height: 450px !important;
    }
    
    .col-lg-3 #hidrologi-data iframe {
        height: 450px !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hidrologi-container {
        min-height: 250px;
    }
    
    .hidrologi-container iframe {
        height: 250px !important;
    }
    
    #hidrologi-data iframe {
        height: 250px !important;
    }
    
    .col-lg-3 #hidrologi-data iframe {
        height: 250px !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hidrologi-container {
        min-height: 200px;
    }
    
    .hidrologi-container iframe {
        height: 200px !important;
    }
    
    #hidrologi-data iframe {
        height: 200px !important;
    }
    
    .col-lg-3 #hidrologi-data iframe {
        height: 200px !important;
    }
}



/* ========== BERITA SLIDER STYLES ========== */
/* Berita Section */
.berita-section {
    margin: 0;
    padding: 5px;
    width: 100%;
    overflow: hidden;
}

/* Berita Header */
.berita-header {
    background: #ffc30c; /* Yellow background */
    color: #000; /* Black text for better contrast */
    padding: 12px 25px;
    border-radius: 3px 3px 0 0;
    margin-bottom: 0;
}

.berita-title-header {
    color: #000; /* Black text for yellow background */
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.berita-title-header i {
    color: #000; /* Black icon for yellow background */
    margin-right: 8px;
}

/* Berita Slider Container */
.berita-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.berita-slider-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Compact height to match photo proportions */
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

/* Slider Track */
.berita-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

/* Individual Slide */
.berita-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Berita Card */
.berita-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: #fff; /* White background */
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Add subtle shadow */
    display: block;
    min-height: 280px; /* Reduced height for better proportions */
}

/* Image Wrapper */
.berita-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
    min-height: 180px; /* Reduced height for better proportions */
}

.berita-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover to eliminate white space */
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* Overlay Content */
.berita-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 15px;
    border-radius: 0 0 3px 3px; /* Reduced border radius for bottom */
}

/* Title Styling */
.berita-title {
    font-size: 18px;
    margin: 0;
}

.berita-title a {
    color: #fff;
    text-decoration: none;
}

/* Meta Information */
.berita-meta {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* Description */
.berita-desc {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation Buttons */
.berita-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.berita-prev {
    left: 15px;
}

.berita-next {
    right: 15px;
}

.berita-nav-btn i {
    font-size: 1.2rem;
    color: #333;
}


/* Responsive Design */
@media (max-width: 768px) {
    .berita-slider-wrapper {
        height: 300px;
    }
    
    .berita-overlay {
        padding: 20px 15px 15px;
    }
    
    .berita-title {
        font-size: 1.1rem;
    }
    
    .berita-meta {
        font-size: 0.75rem;
    }
    
    .berita-desc {
        font-size: 0.8rem;
    }
    
    .berita-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .berita-nav-btn i {
        font-size: 1rem;
    }
    
    .berita-prev {
        left: 10px;
    }
    
    .berita-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .berita-slider-wrapper {
        height: 250px;
    }
    
    .berita-overlay {
        padding: 15px 12px 12px;
    }
    
    .berita-title {
        font-size: 1rem;
    }
    
    .berita-meta {
        font-size: 0.7rem;
    }
    
    .berita-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}
