


   .navbar-nav .nav-link {
   
    font-size: 12px !important; /* Ubah ukuran font menjadi 15px (Anda bisa coba 14px atau 16px) */
    font-weight: 500 !important; /* Membuat teks tidak terlalu tebal (opsional) */
    padding-left: 12px !important;  /* Mengurangi jarak horizontal kiri */
    padding-right: 12px !important; /* Mengurangi jarak horizontal kanan */
}

/* 2. Target Dropdown Menu (Sub-menu) */
.navbar .dropdown-menu .dropdown-item {
    font-size: 12px !important; /* Ukuran font sedikit lebih kecil dari menu utama */
}
.navbar-brand {
    font-size: 12px !important; /* Atur ukuran font untuk BWS Maluku */
}

.navbar-brand span {
    font-size: 0.8em !important; /* Membuat "Kota Ambon" sedikit lebih kecil dari BWS Maluku */
}

/* ROOT VARIABLES */
:root {
    /* Header */
    --header-bg: #ffffff;
    --topbar-bg: #003d7a;

    /* Brand Colors */
    --primary-blue: #0066cc;
    --primary-dark: #003d7a;
    --accent-gold: #ffc107;
    --accent-green: #28a745;

    /* Text */
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
    --text-light: #f8f9fa;
    --text-white: #ffffff;

    /* Background */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #e9ecef;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.2);

    /* UI */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* GENERAL RESET */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}
/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    margin: 0 auto;
    border-radius: 2px;

}



/* ===================================
   NEWS SECTION
   =================================== */

.news-section {
    padding: 10px 0;
    background: white;
}

.news-card {
    height: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.news-card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.3) 80%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.news-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
    line-height: 1.4;
}

.news-card-excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover .news-card-excerpt {
    max-height: 100px;
    opacity: 1;
}

.news-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-cta i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-cta i {
    transform: translateX(5px);
}

/* Navigation Buttons */
.news-nav-next,
.news-nav-prev {
    width: 48px;
    height: 48px;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 50%;
    transition: var(--transition);
}

.news-nav-next:hover,
.news-nav-prev:hover {
    background: var(--primary-blue);
    color: white;
}

.news-nav-next::after,
.news-nav-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* ===================================
   ANNOUNCEMENTS SECTION
   =================================== */

.announcements-section {
    padding: 30px 0 30px;
    background: var(--bg-light);
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.announcement-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.announcement-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.announcement-card:hover .announcement-image img {
    transform: scale(1.1);
}

.announcement-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.announcement-badge i {
    color: white;
    font-size: 20px;
}

.announcement-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-publisher {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 12px;
    width: fit-content;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    flex: 1;
}

.announcement-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.announcement-title a:hover {
    color: var(--primary-blue);
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.announcement-link:hover {
    gap: 12px;
}

.announcement-link i {
    font-size: 12px;
}

/* ===================================
   VIDEO SECTION
   =================================== */

.video-section {
    padding: 20px 0 50px;
    background: white;
}
/* KHUSUS MULTIMEDIA */
.video-section .custom-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-card-featured {
    grid-column: span 2;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.video-play-overlay i {
    font-size: 64px;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.video-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.video-title a:hover {
    color: var(--primary-blue);
}

/* ===================================
   INFRASTRUCTURE SECTION
   =================================== */

.infrastructure-section {
    padding: 10px 0 30px;
    background: var(--bg-light);
}

.infrastructure-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.infrastructure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.infrastructure-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.infrastructure-card:hover .infrastructure-image img {
    transform: scale(1.1);
}

.infrastructure-year {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: var(--accent-gold);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.infrastructure-content {
    padding: 24px;
}

.infrastructure-meta {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.infrastructure-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.infrastructure-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.infrastructure-title a:hover {
    color: var(--primary-blue);
}

.infrastructure-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.infrastructure-link:hover {
    gap: 12px;
}

/* ===================================
   PORTAL SECTION
   =================================== */

.portal-section-wrapper {
    padding: 32px 0 48px;
    background: white;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
}

.portal-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.portal-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.portal-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-gold);
}

.portal-card-header i {
    font-size: 24px;
}

.portal-card-body {
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.portal-card-body::-webkit-scrollbar {
    width: 6px;
}

.portal-card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.portal-card-body::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.portal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-list-item {
    border-bottom: 1px solid #f0f0f0;
}

.portal-list-item:last-child {
    border-bottom: none;
}

.portal-list-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 12.5px;
    transition: var(--transition);
}

.portal-list-item a i {
    color: var(--primary-blue);
    font-size: 12px;
    transition: var(--transition);
}

.portal-list-item a:hover {
    background: rgba(0, 102, 204, 0.05);
    color: var(--primary-blue);
    padding-left: 30px;
}

.portal-list-item a:hover i {
    transform: translateX(3px);
}

/* Agenda Styling */
.agenda-featured {
    padding: 0;
}

.agenda-link {
    text-decoration: none;
    display: block;
}

.agenda-image {
    position: relative;
    height: 130px;
    overflow: hidden;
}

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

.agenda-link:hover .agenda-image img {
    transform: scale(1.1);
}

.agenda-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.agenda-link:hover .agenda-overlay {
    opacity: 1;
}

.agenda-overlay i {
    font-size: 48px;
    color: white;
}

.agenda-content {
    padding: 12px 14px;
}

.agenda-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.agenda-cta {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
}

/* Apps Swiper */
.apps-swiper-container {
    position: relative;
}

.app-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 100px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.app-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.app-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.apps-nav-next,
.apps-nav-prev {
    width: 44px;
    height: 44px;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}

.apps-nav-next:hover,
.apps-nav-prev:hover {
    background: var(--primary-blue);
}

/* ===================================
   LINKS SECTION
   =================================== */

.links-section {
    padding: 30px 0 80px;
    background: white;
}

.link-card {
    position: relative;
    display: block;
    height: 120px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.link-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.link-card:hover .link-overlay {
    opacity: 1;
}

.link-overlay i {
    font-size: 36px;
    color: white;
}

.links-pagination {
    margin-top: 30px;
}

.links-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    opacity: 1;
}

.links-pagination .swiper-pagination-bullet-active {
    background: var(--primary-blue);
    width: 32px;
    border-radius: 6px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    
    .section-title {
        font-size: 2rem;
    }
    
    .video-card-featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .news-section,
    .announcements-section,
    .video-section,
    .infrastructure-section,
    .portal-section-wrapper,
    .resource-section,
    .links-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .announcements-grid,
    .video-grid,
    .portal-grid,
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {

    
    .section-title {
        font-size: 1.5rem;
    }

    
    .news-card-image,
    .announcement-image,
    .infrastructure-image {
        height: 200px;
    }
    
    .hero-nav {
        width: 44px;
        height: 44px;
    }
    
    .hero-nav i {
        font-size: 16px;
    }
    
    .news-card-title,
    .announcement-title,
    .infrastructure-title {
        font-size: 1rem;
    }
    
    .portal-card-header {
        font-size: 1rem;
        padding: 16px 20px;
    }
    
    .portal-list-item a {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .resource-header h3 {
        font-size: 1.2rem;
    }
    
    .resource-item {
        flex: 0 0 200px;
        height: 150px;
    }
    
    .app-item {
        width: 120px;
        height: 90px;
        padding: 12px;
    }
}

/* ===================================
   UTILITIES & ANIMATIONS
   =================================== */

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .hero-nav,
    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev,
    .news-nav-next,
    .news-nav-prev {
        display: none !important;
    }
    
    .news-card,
    .announcement-card,
    .infrastructure-card {
        break-inside: avoid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modern control buttons */
.modern-control {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border: none;
  transition: all .3s ease;
}

.modern-control:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

/* Icon style */
.control-icon {
  color: #333;
  font-size: 34px;
  line-height: 60px;
}

/* Indicators (dots) modern */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  transition: .3s;
}

.carousel-indicators .active {
  background-color: #fff;
  width: 28px;
  border-radius: 10px;
}
/* ===================================
   TOP BAR
   =================================== */

.header-topbar {
    background: var(--topbar-bg);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 13px;
    
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.topbar-item i {
    font-size: 14px;
    color: var(--accent-gold);
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Search Toggle */
.search-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 12px;
}

.search-toggle:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.logo-brand {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    color: #003679;
    font-family: 'Poppins', sans-serif;
}


.logo-brand span {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #ffb703;  /* aksen kuning */
    text-transform: uppercase;
}

/* Container Gelombang */
.wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 4;
    pointer-events: none;
}

/* =========================
   OCEAN WAVE ANIMATION
========================= */

/* === WAVE SYNC WITH HERO SLIDER === */
.parallax-layer use {
    animation: wave-slide 18s linear infinite;
    opacity: 0.85;
}

/* layer terdalam (paling tenang) */
.parallax-layer use:nth-child(1) {
    animation-duration: 26s;
    opacity: 0.6;
}

/* layer tengah */
.parallax-layer use:nth-child(2) {
    animation-duration: 20s;
    opacity: 0.75;
}

/* buih atas */
.parallax-layer use:nth-child(3),
.parallax-layer use:nth-child(4) {
    animation-duration: 14s;
    opacity: 0.9;
}

/* keyframes baru */
@keyframes wave-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-120px);
    }
}
/* === WAVE PULSE SAAT SLIDE BERPINDAH === */
.hero-with-wave.wave-pulse .parallax-layer use {
    animation-play-state: paused;
}

.hero-with-wave.wave-pulse .parallax-layer {
    animation: wave-pulse 0.9s ease-out;
}

@keyframes wave-pulse {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}


/* ==================================== */
/* TRUCK ANIMATION STYLING */
/* ==================================== */

/* Container Utama */
.scene {
    width: 100%;
    height: 120px; /* Tinggi total area animasi */
    overflow: hidden; /* Penting agar truk hanya terlihat di area jalan */
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, #B0E0E6 100%); /* Langit Biru Muda */
}

/* Area Jalan */
.road {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px; /* Tinggi jalan */
    background: #333; /* Warna Aspal */
    border-top: 5px solid #666; /* Garis tepi jalan */
}

/* Garis tengah jalan (Lane) */
.lane {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(to right, #fff, #fff 10px, transparent 10px, transparent 20px);
    animation: move-lane 10s linear infinite; /* Animasi garis jalan */
}

/* Keyframes untuk membuat ilusi jalan bergerak */
@keyframes move-lane {
    to {
        background-position: 200px 0;
    }
}

/* Container Truk */
.truck-wrap {
    position: absolute;
    bottom: 10px; /* Angkat sedikit dari bawah jalan */
    left: -200px; /* Mulai dari luar layar */
    transform: perspective(100px) rotateY(0deg); /* Untuk efek 3D ringan */
    animation-name: drive-truck;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 10s; /* Durasi diatur di JS, ini default */
    z-index: 20;
}

/* Bayangan Truk */
.shadow {
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(5px);
    z-index: 19;
    left: -200px; 
    animation-name: drive-shadow;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 10s; /* Sama dengan durasi truk */
}

/* Keyframes untuk Animasi Truk dan Bayangan */
@keyframes drive-truck {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 300px)); } /* Bergerak melintasi seluruh lebar layar */
}

@keyframes drive-shadow {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 300px)); }
}



/* KHUSUS gambar recent post sidebar */
.sidebar-news-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}


/* KHUSUS gambar recent post sidebar */
.sidebar-news-thumb1 {
    width: 250px;
    height: 230px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}



/* galery video */
.video-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.video-card iframe {
    border-radius: 8px 8px 0 0;
}


/* sejarah */
.custom-container {
    padding-left: 80px;
    padding-right: 80px;
}

@media (max-width: 768px) {
    .custom-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* backround */
.posts-list {
    background: #ffffff;
    padding: 32px 36px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

body {
    background-color: #f5f7fa;
}


/* galery modal */
.gallery-card {
    width: 100%;
    height: 220px;              /* KUNCI tinggi seragam */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    background-color: #f1f1f1;  /* fallback kalau gambar kecil */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* POTONG proporsional */
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}
/* ===============================
   SIDEBAR MODERN & ELEGAN
================================ */

/* Wrapper sidebar */
.blog_right_sidebar {
    background: transparent;
}

/* Card widget */
.single_sidebar_widget {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

/* Efek kilap (shine) */
.single_sidebar_widget::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -70%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: rotate(25deg);
    transition: all 0.6s ease;
}

/* Hover widget */
.single_sidebar_widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Gerak kilap */
.single_sidebar_widget:hover::before {
    left: 130%;
}

/* Judul widget */
.widget_title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    color: #0d6efd;
    border-bottom: 2px solid rgba(13, 110, 253, 0.2);
}

/* ===============================
   PROFIL / KATEGORI
================================ */
.post_category_widget ul {
    padding-left: 0;
    margin: 0;
}

.post_category_widget li {
    list-style: none;
    margin-bottom: 10px;
}

.post_category_widget a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover kategori */
.post_category_widget a:hover {
    background: linear-gradient(135deg, #0d6efd, #4f8cff);
    color: #ffffff;
    transform: translateX(6px);
}

/* ===============================
   BERITA TERKINI
================================ */
.popular_post_widget .post_item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.popular_post_widget .post_item:hover {
    background: #f5f8ff;
    transform: translateX(6px);
}

/* Thumbnail */
.sidebar-news-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 14px;
    transition: all 0.3s ease;
}

/* Hover gambar */
.post_item:hover .sidebar-news-thumb {
    transform: scale(1.05);
}

/* Judul berita */
.popular_post_widget h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Hover judul */
.popular_post_widget a:hover h3 {
    color: #0d6efd;
}

/* Tanggal */
.popular_post_widget p {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .single_sidebar_widget {
        padding: 18px;
    }
}
/* ===============================
   RINGKAS SPASI PROFIL
================================ */
.post_category_widget li {
    margin-bottom: 4px; /* dari 10px → lebih rapat */
}

.post_category_widget a {
    padding: 6px 10px; /* dari 10px 14px */
    font-size: 14px;
}

/* ===============================
   PROFIL — SUPER RAPAT
================================ */
.post_category_widget li {
    margin-bottom: 2px;
}

.post_category_widget a {
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.3;
}

/* ===============================
   BERITA TERKINI — SUPER RAPAT
================================ */
.popular_post_widget .post_item {
    padding: 4px 6px;
    margin-bottom: 4px;
}

.sidebar-news-thumb {
    width: 52px;
    height: 52px;
    margin-right: 8px;
}

/* Judul berita */
.popular_post_widget h3 {
    font-size: 12.5px;
    line-height: 1.3;
    margin-bottom: 1px;
}

/* Tanggal */
.popular_post_widget p {
    font-size: 10.5px;
    margin-top: 0;
    line-height: 1.2;
}
/* ===============================
   FORCE NUMBERING (ANTI THEME)
=============================== */
.force-numbering {
    counter-reset: item;
    padding-left: 0;
    margin-left: 0;
}

.force-numbering li {
    list-style: none !important;
    counter-increment: item;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.force-numbering li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}
/* BARIS PERTAMA */
.announcements-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .announcements-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .announcements-grid-top {
        grid-template-columns: 1fr;
    }
}

/* SLIDER */
.announcements-slider {
    padding-bottom: 40px;
}

.announcements-slider .swiper-slide {
    height: auto;
}
/* VIDEO SLIDER OVERRIDE */
.videoSwiper .swiper-slide {
    height: auto;
    padding: 10px 0;
}
.videoSwiper .video-card {
    width: 100%;
    max-width: 100%;
}
.videoSwiper .video-wrapper {
    aspect-ratio: 16 / 9;   /* lebih stabil dari padding-top */
    padding-top: 0;         /* MATIKAN grid lama */
    min-height: 200px;      /* 🔥 INI YANG MEMBESARKAN */
}
.videoSwiper .video-wrapper iframe {
    width: 100%;
    height: 100%;
}
@media (min-width: 1024px) {
    .videoSwiper .video-wrapper {
        min-height: 220px;
    }
}
/* ===============================
   FIX UKURAN VIDEO DETAIL
   =============================== */

.video-detail-page .posts-list {
    padding: 0 !important;          /* buang padding card */
    background: transparent;
    box-shadow: none;
}

.video-detail-page .card {
    border-radius: 14px;
    overflow: hidden;
}

.video-detail-page .ratio {
    width: 100%;
    min-height: 520px;              /* 🔥 MEMBESARKAN */
}

.video-detail-page iframe {
    width: 100%;
    height: 100%;
}

/* Desktop besar */
@media (min-width: 1200px) {
    .video-detail-page .ratio {
        min-height: 620px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .video-detail-page .ratio {
        min-height: 420px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .video-detail-page .ratio {
        min-height: 260px;
    }
}
/* ===============================
   VIDEO DETAIL PAGE (FINAL)
   =============================== */

.video-detail-page .video-detail-wrapper {
    position: relative;
    width: 100%;
    height: 600px;          /* 🔥 TINGGI UTAMA */
    background: #000;
    border-radius: 14px;
    overflow: hidden;
}

.video-detail-page .video-detail-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Desktop besar */
@media (min-width: 1200px) {
    .video-detail-page .video-detail-wrapper {
        height: 720px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .video-detail-page .video-detail-wrapper {
        height: 420px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .video-detail-page .video-detail-wrapper {
        height: 260px;
    }
}
@media (max-width: 576px) {
    .hero-pagination {
        display: none !important;
    }
}
/* =========================
   HERO SLIDER — PREMIUM VERSION
========================= */

.modern-hero-section {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Ukuran proporsional */
#modernSwiper {
    width: 100%;
    height: 65vh;
    min-height: 320px;
    max-height: 520px;
}

/* Slide full height */
#modernSwiper .swiper-wrapper,
#modernSwiper .swiper-slide {
    height: 100%;
}

/* Gambar */
#modernSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transition: transform 8s ease;
}

/* Efek zoom halus saat aktif */
#modernSwiper .swiper-slide-active img {
    transform: scale(1);
}

/* ===============================
   HERO SLIDER – OCEAN LUXURY OVERLAY
   =============================== */
#modernSwiper {
    position: relative;
    overflow: hidden;
}
/* PASTIKAN GAMBAR HERO FULL COLOR */
#modernSwiper img {
    filter: saturate(1.1) contrast(1.05);
}
/* ANTI GRAYSCALE TOTAL */
#modernSwiper,
#modernSwiper * {
    filter: none !important;
}
#modernSwiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

#modernSwiper .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 40, 80, 0.18) 0%,
        rgba(0, 90, 160, 0.15) 45%,
        rgba(0, 25, 60, 0.55) 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

/* HANYA SLIDE AKTIF */
#modernSwiper .swiper-slide-active::after {
    opacity: 1;
}


/* =========================
   HERO CONTENT
========================= */

.hero-content {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* =========================
   PAGINATION — PREMIUM
========================= */

.hero-pagination {
    bottom: 22px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all .3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        #ffc107,
        #ffffff
    );
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    #modernSwiper {
        height: 55vh;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 576px) {
    #modernSwiper {
        height: 42vh;
        min-height: 240px;
    }

    .hero-content {
        bottom: 14%;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-pagination {
        display: none !important;
    }
}
/* === ANIMASI INFORMASI TERBARU (AMAN UNTUK SWIPER) === */
.js-animate-section .animate-item {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition:
        opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.js-animate-section.is-visible .animate-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.js-animate-section.is-visible .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Delay halus */
.js-animate-section.is-visible .animate-item:nth-child(1) {
    transition-delay: 0.1s;
}
.js-animate-section.is-visible .animate-item:nth-child(2) {
    transition-delay: 0.25s;
}
/* =========================================
   INFRASTRUKTUR — RE-ANIMATE SAAT SCROLL
   ========================================= */

/* kondisi awal (sembunyi) */
.infrastructure-section.js-animate-section .animate-item {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
    will-change: transform, opacity;
}

/* saat terlihat */
.infrastructure-section.js-animate-section.is-visible .animate-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* delay bertahap (seperti grid infrastruktur) */
.infrastructure-section.js-animate-section.is-visible .animate-item:nth-child(1) {
    transition-delay: 0.1s;
}
.infrastructure-section.js-animate-section.is-visible .animate-item:nth-child(2) {
    transition-delay: 0.25s;
}
.infrastructure-section.js-animate-section.is-visible .animate-item:nth-child(3) {
    transition-delay: 0.4s;
}
.infrastructure-section.js-animate-section.is-visible .animate-item:nth-child(4) {
    transition-delay: 0.55s;
}

#modernSwiper .swiper-button-prev:hover,
#modernSwiper .swiper-button-next:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* Geser posisi agar tidak nempel tepi */
#modernSwiper .swiper-button-prev {
    left: 24px;
}
#modernSwiper .swiper-button-next {
    right: 24px;
}
/* HERO NAV FIX */
.modern-hero-section .swiper-button-prev,
.modern-hero-section .swiper-button-next {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003d7a;
    z-index: 20;
}

.modern-hero-section .swiper-button-prev::after,
.modern-hero-section .swiper-button-next::after {
    display: none; /* matikan arrow bawaan swiper */
}

.modern-hero-section .swiper-button-prev i,
.modern-hero-section .swiper-button-next i {
    font-size: 20px;
}
/* VIDEO SLIDER — FINAL & STABIL */
.videoSwiper .swiper-slide {
    height: auto;
    padding: 10px 0;
}

.videoSwiper .video-card {
    width: 100%;
    max-width: 100%;
}

.videoSwiper .video-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 220px;
    background: #000;
    overflow: hidden;
}

.videoSwiper .video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Desktop besar */
@media (min-width: 1024px) {
    .videoSwiper .video-wrapper {
        min-height: 240px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .videoSwiper .video-wrapper {
        min-height: 200px;
    }
}
/* === SCROLL ANIMATION (FINAL & SWIPER-SAFE) === */
.js-animate-section .animate-item {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: transform, opacity;
}

.js-animate-section.is-visible .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Delay halus (aman untuk non-swiper item) */
.js-animate-section.is-visible .animate-item:nth-child(1) {
    transition-delay: 0.1s;
}
.js-animate-section.is-visible .animate-item:nth-child(2) {
    transition-delay: 0.25s;
}
/* ===== CONTAINER INFORMASI TERBARU ===== */
.news-section .swiper {
    border-radius: 28px;     /* frame elegan */
    padding: 16px 0;         /* napas atas bawah */
}
.news-card {
    border-radius: 18px;
    overflow: hidden;
}
.news-section .swiper {
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.35);
}
/* =========================================
   FIX FINAL: TINGGI CARD PENGUMUMAN SAMA
   ========================================= */

/* Swiper wrapper harus stretch */
.announcementsSwiper .swiper-wrapper {
    align-items: stretch;
}

/* Setiap slide flex & full height */
.announcementsSwiper .swiper-slide {
    display: flex;
    height: auto;
}

/* Card pengumuman full tinggi */
.announcementsSwiper .announcement-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

/* Frame gambar diseragamkan */
.announcementsSwiper .announcement-image {
    height: 220px;              /* 🔥 KUNCI UTAMA */
    overflow: hidden;
    background: #f1f1f1;
}

/* Gambar dipotong proporsional */
.announcementsSwiper .announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Konten fleksibel */
.announcementsSwiper .announcement-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

/* Link selalu di bawah */
.announcementsSwiper .announcement-link {
    margin-top: auto;
}
/* =========================================
   NEWS — COMPACT & STABIL (FINAL)
   ========================================= */

/* Samakan perilaku dengan video */
.news-card {
    height: 100%;
}

/* FRAME GAMBAR TETAP */
.news-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;   /* 🔥 KUNCI */
    max-height: 220px;      /* 🔥 BATAS TINGGI */
    overflow: hidden;
}

/* Pastikan gambar tidak ikut tinggi konten */
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay lebih tipis */
.news-card-overlay {
    padding: 14px;
}

/* Judul ringkas */
.news-card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* SEMBUNYIKAN deskripsi agar tinggi konsisten */
.news-card-excerpt {
    display: none;
}

/* Badge & meta kecil */
.news-badge {
    font-size: 9px;
    padding: 4px 8px;
}

.news-date {
    font-size: 9px;
}

/* CTA ringkas */
.news-card-cta {
    font-size: 12px;
}
/* =========================================
   FIX BACKGROUND PUTIH DI SLIDER BERITA
   ========================================= */

/* Matikan background putih swiper & slide */
.newsSwiper,
.newsSwiper .swiper-slide {
    background: transparent !important;
}

/* Pastikan hanya card yang punya warna */
.news-card {
    background: transparent;
}

/* Kalau masih ada frame putih dari wrapper */
.news-carousel {
    background: transparent;
}

/* Opsional: samakan bayangan agar menyatu */
.news-card {
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
/* ================================
   PANAH PENGUMUMAN = HERO STYLE
================================ */

.announcementsSwiper {
    position: relative;
}

/* Base panah */
.announcements-prev,
.announcements-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0a4f7c;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .25s ease;
}

/* Posisi floating */
.announcements-prev {
    left: -22px;
}

.announcements-next {
    right: -22px;
}

/* Tengah vertikal */
.announcements-prev,
.announcements-next {
    top: 50%;
    transform: translateY(-50%);
}

/* Icon */
.announcements-prev::after,
.announcements-next::after {
    font-size: 16px;
    font-weight: bold;
}

/* Hover effect */
.announcements-prev:hover,
.announcements-next:hover {
    background: #137bbd;
    transform: translateY(-50%) scale(1.08);
}

/* Disable default Swiper opacity */
.announcements-prev.swiper-button-disabled,
.announcements-next.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* Mobile: sembunyikan */
@media (max-width: 576px) {
    .announcements-prev,
    .announcements-next {
        display: none;
    }
}
/* =====================================================
   ANNOUNCEMENTS — FRAME PUTIH (SAMA DENGAN INFORMASI)
===================================================== */

/* FRAME LUAR (INI YANG BIKIN BORDER KOSONG) */
.announcementsSwiper {
    background: #ffffff;
    border-radius: 28px;
    padding: 18px 16px;          /* 🔥 RUANG PUTIH */
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.35);
}

/* Slide jangan punya background sendiri */
.announcementsSwiper .swiper-slide {
    background: transparent;
}

/* Card tetap lebih kecil dari frame */
.announcementsSwiper .announcement-card {
    border-radius: 18px;
    overflow: hidden;
}
/* =====================================================
   ANNOUNCEMENTS — COMPACT MODE (SETARA INFORMASI)
===================================================== */

/* BATASI TINGGI GAMBAR */
.announcementsSwiper .announcement-image {
    height: 160px;          /* 🔥 diperkecil dari 220px */
}

/* KONTEN LEBIH RINGKAS */
.announcementsSwiper .announcement-content {
    padding: 16px 18px;     /* 🔥 sebelumnya 24px */
}

/* JUDUL LEBIH KECIL & RAPAT */
.announcementsSwiper .announcement-title {
    font-size: 0.95rem;     /* 🔥 mirip news */
    line-height: 1.35;
    margin-bottom: 10px;
}

/* LINK JANGAN MAKAN TINGGI */
.announcementsSwiper .announcement-link {
    font-size: 13px;
}

/* CARD TOTAL JADI LEBIH PENDEK */
.announcementsSwiper .announcement-card {
    border-radius: 18px;
}

/* OPSIONAL: SAMAKAN FEEL SHADOW DENGAN NEWS */
.announcementsSwiper .announcement-card {
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}
/* =====================================================
   MULTIMEDIA (VIDEO) — COMPACT MODE (HOME ONLY)
===================================================== */

/* FRAME SLIDER (SAMAKAN DENGAN NEWS & PENGUMUMAN) */
.video-section .videoSwiper {
    background: #ffffff;
    border-radius: 28px;
    padding: 18px 16px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.35);
}

/* Slide transparan */
.videoSwiper .swiper-slide {
    background: transparent;
    display: flex;
}

/* CARD VIDEO LEBIH RINGKAS */
.videoSwiper .video-card {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

/* FRAME VIDEO DIPERKECIL */
.videoSwiper .video-wrapper {
    aspect-ratio: 16 / 9;
    min-height: 160px;     /* 🔥 sebelumnya 220–240 */
    max-height: 180px;
    background: #000;
}

/* JUDUL VIDEO LEBIH COMPACT */
.videoSwiper .video-info {
    padding: 14px 16px;    /* 🔥 lebih rapat */
}

.videoSwiper .video-title {
    font-size: 0.95rem;    /* 🔥 samakan dengan pengumuman */
    line-height: 1.35;
}

/* MATIKAN FEATURED DI HOME (BIAR SERAGAM) */
.videoSwiper .video-card-featured {
    grid-column: auto;
}
.videoSwiper {
    position: relative;
}

.video-swiper-prev,
.video-swiper-next {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003d7a;
    top: 50%;
    transform: translateY(-50%);
    transition: .25s ease;
}

.video-swiper-prev {
    left: -24px;
}

.video-swiper-next {
    right: -24px;
}

/* Hover */
.video-swiper-prev:hover,
.video-swiper-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile off */
@media (max-width: 576px) {
    .video-swiper-prev,
    .video-swiper-next {
        display: none;
    }
}
/* ================================
   INFRASTRUKTUR = INFORMASI TERBARU
================================ */

/* Card utama */
.infra-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transition: .3s ease;
}

.infra-card:hover {
    transform: translateY(-6px);
}

/* FRAME GAMBAR (KUNCI TINGGI) */
.infra-card-image {
    position: relative;
    aspect-ratio: 16 / 9;   /* 🔥 SAMA DENGAN NEWS */
    max-height: 220px;
    overflow: hidden;
}

.infra-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tahun */
.infra-year {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffc107;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Konten */
.infra-card-content {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.infra-card-title {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.infra-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.infra-card-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

/* PANAH MODEL HERO */
.infra-like-prev,
.infra-like-next {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    color: #003d7a;
    top: 50%;
    transform: translateY(-50%);
}

.infra-like-prev { left: -24px; }
.infra-like-next { right: -24px; }

/* Pagination */
.infra-like-pagination .swiper-pagination-bullet {
    background: #cfcfcf;
    opacity: 1;
}
.infra-like-pagination .swiper-pagination-bullet-active {
    background: #0d6efd;
    width: 28px;
    border-radius: 6px;
}
/* ================================
   FIX ROUND INFRASTRUKTUR (FINAL)
================================ */

/* Slide harus ikut rounded */
.infrastructureSwiper .swiper-slide {
    border-radius: 20px;
    overflow: visible;
}

/* Card utama */
.infra-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

/* Frame gambar */
.infra-card-image {
    border-radius: 20px 20px 0 0; /* atas bulat */
    overflow: hidden;
}

/* Gambar */
.infra-card-image img {
    border-radius: 20px 20px 0 0;
}

/* Konten bawah */
.infra-card-content {
    border-radius: 0 0 20px 20px;
}
    #imgModal .modal-dialog {
    max-width: 98vw !important;
    margin: 1rem auto;
}

#imgModal .modal-content {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
#imgModal .modal-dialog {
    max-width: 98vw !important;
    margin: 1rem auto;
}
#imgModal .swiper-slide img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* =========================================
   INFORMASI & LAYANAN — COMPACT & ELEGANT
   ========================================= */

/* Section lebih ringkas */
.portal-section-wrapper {
    padding: 30px 0 40px;
}

/* Grid lebih rapat */
.portal-grid {
    gap: 20px;
}

/* Card utama */
.portal-card {
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition: all .25s ease;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Header card lebih kecil */
.portal-card-header {
    padding: 14px 18px;
    font-size: 0.95rem;
    gap: 10px;
}

.portal-card-header i {
    font-size: 18px;
}

/* Body lebih ringkas */
.portal-card-body {
    max-height: 300px;     /* 🔥 lebih pendek */
}

/* List item lebih kecil */
.portal-list-item a {
    padding: 12px 16px;
    font-size: 13px;
    gap: 10px;
}

.portal-list-item a i {
    font-size: 10px;
}

/* Hover lebih halus */
.portal-list-item a:hover {
    padding-left: 22px;
}

/* ===== AGENDA ===== */

/* Gambar agenda lebih pendek */
.agenda-image {
    height: 160px;         /* 🔥 sebelumnya 200px */
}

/* Konten agenda ringkas */
.agenda-content {
    padding: 14px 16px;
}

.agenda-content h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.agenda-cta {
    font-size: 12px;
}

/* Overlay icon lebih kecil */
.agenda-overlay i {
    font-size: 32px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .portal-grid {
        gap: 16px;
    }

    .portal-card-body {
        max-height: none;
    }
}

@media (max-width: 576px) {
    .portal-card-header {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .portal-list-item a {
        padding: 10px 14px;
        font-size: 12.5px;
    }
}
/* KUNCI TINGGI INFORMASI & LAYANAN */
.portal-card {
    height: 280px;              /* 🔥 SESUAI GAMBAR KAMU */
    display: flex;
    flex-direction: column;
}
/* =====================================================
   RESOURCES — 1 ITEM ONLY (ABSOLUT FINAL, SNAP BASED)
===================================================== */

.resources-section {
    padding: 40px 0 60px;
    background: #f5f7fa;
}

/* FRAME PUTIH */
.resources-section .custom-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 26px 30px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.4);
}

/* GRID */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD */
.resource-module {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}

/* TITLE */
.resource-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* =====================================================
   🔥 BOX — SNAP CONTAINER (KUNCI UTAMA)
===================================================== */

.resource-box {
    height: 280px;                 /* tinggi 1 unit */
    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory; /* 🔥 KUNCI */
    scroll-behavior: smooth;
}

/* Scrollbar */
.resource-box::-webkit-scrollbar {
    width: 6px;
}
.resource-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

/* =====================================================
   ITEM — SATU UNIT TETAP
===================================================== */

.resource-item {
    height: 280px;                 /* 🔥 SAMA DENGAN BOX */
    scroll-snap-align: start;

    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;
}

/* GAMBAR — PROPORSI TETAP */
.resource-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

/* JUDUL — DIKUNCI (ANTI NGINTIP) */
.resource-item span {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #111;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    display: box;
    box-orient: vertical;
    line-clamp: 2;

    overflow: hidden;
}


/* EMPTY */
.resource-empty {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #94a3b8;
}

/* MATIKAN TOTAL SISA CSS LAMA */
.resource-slider,
.resource-overlay {
    display: none !important;
}

.resource-box span {
    background: none !important;
    position: static !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-box,
    .resource-item {
        height: 320px;
    }

    .resource-item img {
        height: 230px;
    }
}
/* ===================================
   LINK TERKAIT — INFINITE MARQUEE
=================================== */

.links-section {
    padding: 40px 0;
    background: #ffffff;
}

.links-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
}

.links-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 90px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.link-item img {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
}

/* Hover effect */
.link-item:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}

/* Infinite animation */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .links-track {
        gap: 32px;
        animation-duration: 30s;
    }

    .link-item {
        width: 120px;
        height: 80px;
    }
}
/* =========================================
   LANGUAGE SWITCHER — PILL STYLE (FINAL)
========================================= */

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    height: 32px;
    padding: 4px 12px;

    background: #e5e7eb;        /* abu-abu lembut */
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    color: #111827;

    cursor: pointer;
    user-select: none;
    transition: all .25s ease;
}

.lang-switcher img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.lang-switcher:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

/* Pastikan sejajar topbar */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* KUNCI UI LANGUAGE SWITCHER DARI GOOGLE TRANSLATE */
.notranslate,
.notranslate * {
    translate: no !important;
}
/* ===============================
   BACK TO TOP BUTTON
================================ */

#backToTop {
    position: fixed;
    right: 20px;
    bottom: 60px; /* aman dari banner kuning */

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: none;

    background: linear-gradient(135deg, #0d6efd, #003d7a);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: all .3s ease;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    z-index: 9998;
}

#backToTop:hover {
    transform: translateY(0) scale(1.1);
    box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #backToTop {
        width: 40px;
        height: 40px;
        right: 14px;
        bottom: 70px;
    }
}
