/* =============================================
   RESPONSIVE STYLES FOR PROFIL PAGE
   ============================================= */

/* Base responsive utilities */
/* Center gallery scroller across all breakpoints */
.galeri-scroller { margin-left: auto; margin-right: auto; display: block; }
.galeri-scroll { margin-left: auto; margin-right: auto; display: block; }

/* Multi-row support for profil-nav (two rows, 4 items per row) */
.profil-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 4px;
  padding: 4px var(--nav-pad-x);
}
.profil-nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative; /* for divider positioning */
}

/* Increase width when not floating */
.profil-nav:not(.floating) {
  width: min(96vw, 1700px);
  margin-inline: auto;
}

/* Vertical dividers between menu items for both floating and non-floating */
.profil-nav ul li::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -8px; /* half of column-gap to center divider */
  width: 1px;
  height: 70%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,0.45) 10%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0.45) 90%,
    transparent 100%
  );
  opacity: 0.9;
}
/* Show dividers on all but last column per row (overrides older rules) */
.profil-nav ul li:not(:nth-child(4n))::after { display: block; }
/* Hide divider on last column items */
.profil-nav ul li:nth-child(4n)::after { display: none !important; }

/* Compact link sizing to reduce navbar height */
.profil-nav a {
  font-size: 0.95rem;
  padding: 6px 10px;
  line-height: 1.2;
}
/* Remove slide animation when toggling floating */
.profil-nav,
.profil-nav.floating {
  transition: width .35s ease, max-width .35s ease, padding .35s ease, border-radius .35s ease, box-shadow .25s ease, background .25s ease, filter .25s ease !important;
}

/* Smooth size morph variables and bindings */
.profil-nav {
  display: none;
  --nav-width: min(96vw, 1700px);
  --nav-radius: 50px;
  --nav-pad-x: 12px;
  width: var(--nav-width);
  border-radius: var(--nav-radius);
}

/* Show profil-nav on screens above 900px */
@media (min-width: 901px) {
  .profil-nav {
    display: block !important;
  }
}
.profil-nav.floating {
  --nav-width: min(98vw, 1500px);
  --nav-radius: 24px;
  --nav-pad-x: 16px;
}
/* Animate inner padding smoothly */
.profil-nav ul { transition: padding .35s ease; }
:root {
  --mobile-padding: 16px;
  --mobile-gap: 12px;
  --tablet-padding: 24px;
  --tablet-gap: 16px;
  --menu-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bounce-timing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --smooth-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --fontXXL: 4rem;
  --fontXL: 2.3rem;
  --fontL: 2rem;
  --fontB: 1.5rem;
  --fontMM: 1.2rem;
  --fontM: 1rem;
  --fontS: 0.85rem;
  --primary-color: #133E87;
  --secondary-color: #608BC1;
  --third-color: #CBDCEB;
  --light-color: #F3F3E0;
  --white-color: #FFFFFF;
  --primary-transparent: #133e8782;
}

/* =============================================
   SMALL MOBILE (320px dan dibawahnya)
   ============================================= */
   @media (max-width: 320px) {
    .galeri-scroller {
    max-width: 250px;
    width: 250px;
    height: 300px !important;
    overflow: hidden;
    position: relative;
  }
  
  .galeri-scroll {
    width: 150px;
    height: 200px;
    top: 1%;
    margin-right: 3rem !important;
  }
  
  .gallery-slide {
    width: 170px !important;
    height: 200px !important;
    margin-right: 3rem !important;
  }
  .gallery-slide:nth-child(1) {
    transform: translateX(-170px) translateZ(-85px) rotateY(20deg);
  }
  
  .gallery-slide:nth-child(2) {
    transform: translateX(-85px) translateZ(-42px) rotateY(10deg);
  }
  
  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
  }
  
  .gallery-slide:nth-child(4) {
    transform: translateX(85px) translateZ(-42px) rotateY(-10deg);
  }
  
  .gallery-slide:nth-child(5) {
    transform: translateX(170px) translateZ(-85px) rotateY(-20deg);
  }
  
  
  
  .hamburger{
    width: 160px !important; /* Increased width for better appearance on min 320px */
    height: 20px !important; /* Increased height for better appearance on min 320px */
  }
.awards-title::after{
  font-size: .85rem !important;
}
                  .award-card{
                        flex: 0 0 clamp(250px,  30vw, 150px) !important;
                        scroll-snap-align: start;
                        height: 300px !important;
                    }
                 
                .award-card:hover{
                  transform:translateY(-4px);
                  box-shadow:0 18px 40px rgba(0,0,0,.20);
                }    
                .award-media{
                  position:relative;
                  aspect-ratio:16/9;
                  overflow:hidden;
                }
                .award-img{
                  width:100% !important;
                  height:100% !important;
                  object-fit:cover;
                  display:block;
                  filter:saturate(1.05) contrast(1.03);
                } 
                .award-badge{
                  font-size:.50rem !important;
                }
                .award-body p{
                  font-size:.7rem !important;
                }
                .award-body h4{
                  font-size:.95rem !important;
                }

                .sejarah-header h2{
                  font-size: 1.5rem !important;
                }
   .timeline {
    max-width: 90vw !important;
    padding: 0 10px !important;
  }
  .timeline-year{
    font-size: 0.4rem !important;
  }
  .timeline-content {
    max-width: 120px !important;
    width: 120px !important;
    padding: 0 8px !important;
    font-size: 0.5rem !important;
    line-height: 1.2 !important;
  }

  .peta-title, .title-galeri, .galeri-title, .medsos-title, .person-in-charge-title, .visi-title, .misi-title, .awards-title, .struktur-title{
    font-size: 1.5rem !important;
  }

  .visi-desc{
    font-size: .9rem !important;
    width: 250px;
  }
  .misi-list{
    width: 250px;
  }
  .misi-list li{
    font-size: .9rem !important;
  }

  .struktur-menu{
  width: 250px !important;
 }
.struktur-tab{
  font-size: .5rem ;
}
.struktur-content{
  width: 250px !important;
}
.struktur-list li{
  font-size: .75rem !important;
}
.struktur-list-img .struktur-img {
    width: 80px !important;
    height: 80px !important;
    margin-right: var(--mobile-gap);
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  /* Video Modal Responsive Styles for Very Small Mobile (320px and below) */
  .video-modal-content {
    height: 70vh !important;
    width: 98vw !important;
    padding: 8px !important;
    border-radius: 8px !important;
    border-width: 2px !important;
  }
  
  .video-modal-content iframe {
    border-radius: 6px !important;
    border-width: 1px !important;
  }
  
  .video-close {
    width: 35px !important;
    height: 35px !important;
    top: 8px !important;
    right: 8px !important;
  }
  
  .video-close svg {
    width: 18px;
    height: 18px;
  }

}

@media (max-width: 480px) {
  /* Style untuk layar sangat kecil */
  .awards-title::after{
  font-size: .75rem !important;
 font-family:'Karma', serif !important;
}
.awards-title {
    font-size: 1.4rem !important;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  /* Header Section */
  .profil-header {
    margin-bottom: var(--mobile-gap);
  }
  
  .header-bg {
    height: 250px;
  }
  
  .header-img {
    height: 250px;
    object-fit: cover;
  }
  
  .profil-title {
    font-size: 1.2rem;
    top: 90px;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  
  .nav-atas .logo img {
    margin-top: 8px;
    margin-left: -25px;
    width: 8%;
    height: 8%;
  }
  
  .nav-atas .logo-text {
    margin-left: -12px;
  }
  
  .nav-atas .logo-text .desa {
    font-size: 0.7rem;
  }
  
  .nav-atas .logo-text .kabupaten {
    font-size: 0.5rem;
  }
  
  /* Navigation - Hidden on mobile */
  .profil-nav {
    display: none !important;
  }
  
  /* Mobile menu styling */
  .hamburger {
    display: flex !important;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    background-color: transparent !important;
    border-radius: 10 !important;
    width: 140px !important; /* Increased width for better appearance on min 320px */
    height: 40px !important; /* Increased height for better appearance on min 320px */
  }
  
  .hamburger:hover {
    background: rgba(19, 62, 135, 1);
    transform: translateY(-1px);
  }
  
  .hamburger span {
    display: block;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
  }

  /* Hamburger active state (X animation) */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Mobile menu container */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-atas.show-menu .main-nav {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile menu list styling */
  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
  }

  .mobile-menu-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-atas.show-menu .mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for menu items */
  .nav-atas.show-menu .mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
  .nav-atas.show-menu .mobile-menu-list li:nth-child(2) { transition-delay: 0.15s; }
  .nav-atas.show-menu .mobile-menu-list li:nth-child(3) { transition-delay: 0.2s; }
  .nav-atas.show-menu .mobile-menu-list li:nth-child(4) { transition-delay: 0.25s; }
  .nav-atas.show-menu .mobile-menu-list li:nth-child(5) { transition-delay: 0.3s; }
  .nav-atas.show-menu .mobile-menu-list li:nth-child(6) { transition-delay: 0.35s; }
  .nav-atas.show-menu .mobile-menu-list li:nth-child(7) { transition-delay: 0.4s; }
  .nav-atas.show-menu .mobile-menu-list li:nth-child(8) { transition-delay: 0.45s; }

  .mobile-menu-list li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Playfair Display SC', serif;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
  }

  .mobile-menu-list li a:hover {
    background: rgba(19, 62, 135, 0.8);
    color: #CBDCEB;
    transform: translateX(5px);
  }

  /* Hide desktop navigation on mobile */
  .nav-links {
    display: none !important;
  }
  
  /* Data Desa Section */
  .data-desa-section {
    padding: 0 0 var(--mobile-padding) 0;
    min-height: 220px;
  }
  
  .data-desa-grid {
    max-width: 100vw;
    padding: 0 var(--mobile-padding);
    gap: 5px;
    grid-template-columns: repeat(1, 1fr);
  }
  
  .data-desa-box {
    font-size: 0.75rem;
    min-height: 40px;
    text-align: center;
    padding: 6px;
  }
  
  .data-desa-title {
    font-size: 1.1rem !important;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  
  /* Timeline Section */

  .sejarah-header h2{
    font-size: 1.5rem !important;
  }
  .timeline {
    max-width: 100vw;
    padding: 0 var(--mobile-padding);
  }
  .timeline-year{
    font-size: .7rem !important;
  }
  .timeline-content {
    max-width: 150px !important;
    padding: 0 8px !important;
    font-size: 0.47rem !important;
    line-height: 1.2 !important;
  }

  .c-right {
    margin-right: -0.1rem !important;
  }

  .c-left {
    margin-left: -0.1rem !important;
  }
  .struktur-menu{
    width: 350px;
  }
  .struktur-tab{
    padding: 14px 12px;
    font-size: .8rem !important;
    border-radius: 10px;
  }
  .struktur-content{
     width: 350px;
  }
  .struktur-org-title{
    color: var(--primary-color);
    font-size: 2rem;
  }
  
  /* Gallery Responsive */
  .galeri-scroller {
    max-width: 480px;
    height: 350px;
    overflow: hidden;
    position: relative;
  }
  
  .galeri-scroll {
    width: 440px;
    height: 200px;
    top: 5%;
    left: 18%;
  }
  
  .gallery-slide {
    width: 200px;
    height: 250px;
  }
  
  .gallery-slide:nth-child(1) {
    transform: translateX(-170px) translateZ(-85px) rotateY(20deg);
  }
  
  .gallery-slide:nth-child(2) {
    transform: translateX(-85px) translateZ(-42px) rotateY(10deg);
  }
  
  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
  }
  
  .gallery-slide:nth-child(4) {
    transform: translateX(85px) translateZ(-42px) rotateY(-10deg);
  }
  
  .gallery-slide:nth-child(5) {
    transform: translateX(170px) translateZ(-85px) rotateY(-20deg);
  }
  
  .galeri-ctrl {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .slide-overlay h3 {
    font-size: 14px;
  }
  
  .slide-overlay p {
    font-size: 10px;
  }

  .peta-title, .title-galeri, .galeri-title, .medsos-title, .person-in-charge-title, .visi-title, .misi-title, .awards-title, .struktur-title{
    font-size: 1.5rem !important;
  }

  .visi-desc{
    font-size: .9rem !important;
    width: 290px;
  }
  .misi-list{
    width: 290px;
  }
  .misi-list li{
    font-size: .9rem !important;
  }

  .peta-tab-btn{
    font-size: .9rem;
    border-radius: 10px;
    border: none;
  }
.footer-container {
        padding: 0 20px;
    }
  .footer-title {
    font-size: 1.1rem !important;
    margin-bottom: 6px;
  }
  
  .footer-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #E8E8E8 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
}
  .footer-bottom {
    text-align: right;
    font-size: .8rem;
    color: #E8E8E8;
    opacity: 0.8;
    padding-top: 30px;
    border-top: 1px solid rgba(232, 232, 232, 0.15);
    text-align: center;
}
  .footer-column a {
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    text-align: left !important;
}
 .struktur-list-img .struktur-img {
    width: 90px;
    height: 90px;
    margin-right: var(--mobile-gap);
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .facilities-toggle-btn {
    display: inline-block;
    width: calc(100% - 32px);
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .facilities-toggle-btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-light);
  }
  
  /* Video Modal Responsive Styles for Small Mobile */
  .video-modal-content {
    height: 75vh;
    width: 98vw;
    padding: 12px;
    border-radius: 12px;
  }
  
  .video-modal-content iframe {
    border-radius: 8px;
    border-width: 1px;
  }
  
  .video-close {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }
  
}

/* Video Modal Responsive Styles for 350px and Below - Extra Small Mobile */
@media (max-width: 350px) {
  .video-modal-content {
    height: 68vh !important;
    width: 99vw !important;
    padding: 6px !important;
    border-radius: 6px !important;
    border-width: 1px !important;
  }
  
  .video-modal-content iframe {
    border-radius: 4px !important;
    border-width: 1px !important;
  }
  
  .video-close {
    width: 32px !important;
    height: 32px !important;
    top: 6px !important;
    right: 6px !important;
  }
  
  .video-close svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Video Modal Responsive Styles for 350px - 400px Range */
@media (min-width: 350px) and (max-width: 400px) {
  .video-modal-content {
    height: 72vh;
    width: 97vw;
    padding: 10px;
    border-radius: 10px;
  }
  
  .video-modal-content iframe {
    border-radius: 7px;
    border-width: 1px;
  }
  
  .video-close {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }
  
  .video-close svg {
    width: 20px;
    height: 20px;
  }
}

/* Video Modal Responsive Styles for 400px - 480px Range */
@media (min-width: 400px) and (max-width: 480px) {
  .video-modal-content {
    height: 73vh;
    width: 96vw;
    padding: 11px;
    border-radius: 11px;
  }
  
  .video-modal-content iframe {
    border-radius: 7px;
    border-width: 1px;
  }
  
  .video-close {
    width: 39px;
    height: 39px;
    top: 11px;
    right: 11px;
  }
}

@media (min-width: 481px) and (max-width: 766px){ /* KHUSUS HAMBURGER MENU*/
 .nav-links{
    display:none !important;}

  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    left: 150px;
  }
  .struktur-img{
    width: 350px;
    height: 350px;
  }



}

/* =============================================
   481px - 600px
   ============================================= */

@media (min-width: 481px) and (max-width: 600px) {
  /* Style untuk tablet portrait */
  .profil-header {
    position: relative;
    margin-bottom: var(--mobile-gap);
  }
  
  .header-bg {
    height: 220px;
  }
  
  .header-img {
    height: 220px;
    object-fit: cover;
  }
  
  .profil-title {
    font-size: 1.8rem;
    top: 100px;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  
  .profil-nav {
    width: 95vw;
    top: 250px;
    bottom: auto;
    padding: 0 8px;
  }
  
  .profil-nav.floating {
    width: auto;
    max-width: 95vw;
    top: 10px !important;
  }
  
  .profil-nav ul {
    gap: var(--mobile-gap);
  }
  
  .profil-nav a {
    font-size: 0.9rem;
    padding: 8px 6px;
  }

  /* Hide profil navigation on tablet portrait and show hamburger menu */
  .profil-nav {
    display: none !important;
  }
  
  .hamburger {
    display: flex !important;
    width: 48px;
    height: 48px;
    margin-right: 18px;
    margin-top: 10px;
  }
  
  .hamburger span {
    width: 21px;
    height: 2.2px;
    margin: 3px 0;
  }
  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
  }

  .mobile-menu-list li a {
    font-size: 1.25rem;
    padding: 14px 28px;
    min-width: 240px;
  }

  .mobile-menu-list {
    gap: 22px;
  }

  .data-desa-section {
    padding: 0 0 var(--mobile-padding) 0;
    min-height: 280px;
  }
  
  .data-desa-grid {
    max-width: 95vw;
    padding: 0 var(--mobile-padding);
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .data-desa-box {
    font-size: 0.85rem;
    min-height: 50px;
    text-align: center;
  }
  
  .data-desa-title {
    font-size: 1.5rem;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  
  .timeline {
    max-width: 95vw;
    padding: 0 var(--mobile-padding);
  }
  
  .timeline-content {
    max-width: 280px !important;
    padding: 0 18px !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  .c-right {
    margin-right: -1.5rem !important;
  }

  .c-left {
    margin-left: -1.5rem !important;
  }

  /* Gallery Responsive */
  .galeri-scroller {
    max-width: 700px;
    height: 480px;
  }

  .galeri-scroll {
    width: 700px;
    height: 380px;
    top: 5%;
    left: 28%;
  }

  .gallery-slide {
    height: 400px;
    max-width: 500px;
    width: 300;
  }

  .gallery-slide:nth-child(1) {
    transform: translateX(-260px) translateZ(-130px) rotateY(20deg);
  }

  .gallery-slide:nth-child(2) {
    transform: translateX(-130px) translateZ(-65px) rotateY(10deg);
  }

  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
  }

  .gallery-slide:nth-child(4) {
    transform: translateX(130px) translateZ(-65px) rotateY(-10deg);
  }

  .gallery-slide:nth-child(5) {
    transform: translateX(260px) translateZ(-130px) rotateY(-20deg);
  }

  .galeri-ctrl {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .slide-overlay h3 {
    font-size: 18px;
  }

  .slide-overlay p {
    font-size: 13px;
  }
  
  .nav-atas .logo img {
    margin-top: 10px;
    margin-left: -20px;
    width: 12%;
    height: 12%;
  }
  
  .nav-atas .logo-text {
    margin-left: -8px;
    font-size: 0.9rem;
  }


  /* Responsive hamburger menu for larger mobile screens */
  .hamburger {
    width: 45px;
    height: 45px;
    margin-right: 20px;
    margin-top: 12px;
  }
  
  .hamburger span {
    width: 22px;
    height: 2.5px;
    margin: 2.5px 0;
  }

  .mobile-menu-list li a {
    font-size: 1.3rem;
    padding: 15px 30px;
    min-width: 250px;
  }

  .mobile-menu-list {
    gap: 25px;
  }

  /* Keep floating nav compact on small tablets if shown */
  .profil-nav.floating {
    width: auto;
    max-width: 94vw;
    top: 8px !important;
  }
  
  /* Data Desa Section */
  .data-desa-section {
    padding: 0 0 var(--mobile-padding) 0;
    min-height: 300px;
  }
  
  .data-desa-title {
    font-size: 1.3rem;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  .data-desa-col{
    gap: 10px;
  }
  
    .data-desa-grid {
      max-width: 90vw;
      padding: 0 var(--tablet-padding);
      gap: 2px;
    }
    .data-desa-box {
      font-size: 0.7rem;
      min-height: 50px;
      text-align: center;
    }

    /* Penghargaan */
    .data-desa-awards{
      grid-template-columns: 1fr;
      max-width: 400px;
    }

    /* Sejarah Section */
  .sejarah-section {
    padding: var(--mobile-padding) 0;
  }
  
  .sejarah-header h2 {
    font-size: 1.5rem;
    margin: var(--mobile-gap) 0 var(--mobile-padding) 0;
    text-align: center;
  }
  
  

  /* Gallery Responsive for Mobile */
  .galeri-scroller {
    height: 600px;
    max-width: 600px;
    overflow: hidden;
    position: relative;
  }

  .galeri-scroll {
    width: 450px;
    height: 300px;

  }

  .gallery-slide {
    width: 400px;
    height: 580px;
  }

  .gallery-slide:nth-child(1) {
    transform: translateX(-300px) translateZ(-150px) rotateY(25deg);
    opacity: 0.3;
    z-index: 1;
  }

  .gallery-slide:nth-child(2) {
    transform: translateX(-150px) translateZ(-75px) rotateY(15deg);
    opacity: 0.6;
    z-index: 2;
  }

  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
    opacity: 1;
    z-index: 5;
  }

  .gallery-slide:nth-child(4) {
    transform: translateX(150px) translateZ(-75px) rotateY(-15deg);
    opacity: 0.6;
    z-index: 2;
  }

  .gallery-slide:nth-child(5) {
    transform: translateX(300px) translateZ(-150px) rotateY(-25deg);
    opacity: 0.3;
    z-index: 1;
  }

  .galeri-ctrl {
    width: 45px;
    height: 45px;
    font-size: 18px;
    position: absolute;
    bottom: 10px;
    z-index: 10;
  }

  .prev-gallery {
    left: 40%;
    transform: translateX(-20%);
  }

  .next-gallery {
    left: 55%;
    transform: translateX(20%);
  }

  .slide-overlay h3 {
    font-size: 18px;
  }

  .slide-overlay p {
    font-size: 12px;
  }

  .awards-title {
    font-size: 2rem;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }

  /* Visi Misi Section */
  .visi-misi-section {
    padding: var(--mobile-padding) var(--mobile-padding) var(--mobile-padding) var(--mobile-padding);
  }
  
  .visi-title, 
  .misi-title {
    font-size: 1.5rem;
    margin-bottom: var(--mobile-gap);
    text-align: center;
  }
  
  .visi-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--mobile-padding);
    text-align: center;
    padding: 30px 20px;
    width: 400px;
  }

  .misi-list{
     width: 400px;
    padding: 30px 30px;
  }
  
  .misi-list li {
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 20px;
    margin: 0;
  }
  
  .misi-list li {
    margin-bottom: 8px;
  }
  
  /* Struktur Section */
  .struktur-section {
    padding: var(--mobile-padding);
  }
  
  .struktur-title {
    font-size: 1.5rem;
    margin-bottom: var(--mobile-padding);
    text-align: center;
  }
  
  .struktur-menu {
    gap: 10px;
    margin-bottom: var(--mobile-padding);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .struktur-tab {
    padding: 10px 16px;
    font-size: .9rem;
    border-radius: 20px;
    min-width: auto;
    flex: 0 0 auto;
  }
  
  .struktur-content {
    padding: var(--mobile-gap);
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
  }
  
  .struktur-org-title {
    font-size: 1.8rem;
    margin-bottom: var(--mobile-gap);
    text-align: center;
    color: var(--primary-color);
  }
  
  .struktur-list li{
    font-size: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .struktur-list li {
    margin-bottom: 8px;
    padding: 8px var(--mobile-gap);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
  }
  
  .struktur-list-img .struktur-img {
    width: 100px;
    height: 100px;
    margin-right: var(--mobile-gap);
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .struktur-org-img-wrapper {
    margin-bottom: var(--mobile-padding);
    text-align: center;
  }
  
  .struktur-org-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .struktur-pdf-btn {
    padding: 12px 20px;
    font-size: 0.7rem;
    margin-top: var(--mobile-padding);
    border-radius: 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .struktur-pdf-wrapper iframe {
    min-height: 250px;
    border-radius: 12px;
  }
  
  .img-modal-content {
    margin: 24px auto;
    max-width: 98vw;
    max-height: 60vh;
  }
  
  .img-modal-close {
    top: 12px;
    right: 18px;
    font-size: 2rem;
  }

  /* Footer */
  .main-footer {
    padding: var(--mobile-padding) 0 0 0;
    margin-top: var(--mobile-padding);
  }
  
  .footer-columns {
    gap: 30px;
  }
  .footer-bottom {
    text-align: right;
    font-size: 0.5rem;
    color: #E8E8E8;
    opacity: 0.8;
    padding-top: 30px;
    border-top: 1px solid rgba(232, 232, 232, 0.15);
     text-align: center;
}


  .peta-tab-btn{
    font-size: 1rem;
     border-radius: 10px;
    border: none;
  }
.map-modal-content{
  position:relative;
  width:min(80vw,600px);
  height:min(50vh,600px);
  background:#0b2657;
  border-radius:12px;
  box-shadow:0 18px 60px rgba(0,0,0,.5);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18)
}    
.map-stage{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0b2657}
.map-stage img{
  max-width:100%;
  max-height:100%;object-fit:contain;filter:drop-shadow(0 12px 30px rgba(0,0,0,.35))}

  .map-image{
    width: 100%;
    min-height: 600px;
    background-position-x: 60px ;
    background-size: 500px;
  }
  .title-galeri, .galeri-title{
    font-size: 1.5rem;
  }
  .galeri-subtitle{
    font-size: 0.7rem;
  }
  .medsos-title{
    font-size: 1.5rem;
  }
  .medsos-subtitle{
    font-size: 0.8rem;
  }
  .ms-tile:hover{ 
    transform:translateY(-10px) 
    scale(1.02); 
    min-height:300px;}
  
  
   .person-in-charge-section {
        padding: 40px 16px 60px;
    }
    .person-in-charge-title {
        font-size: 1.8rem;
    }
    .person-card {
        padding: 30px 20px;
    }
    .person-photo {
        width: 120px;
        height: 120px;
    }
    .person-name {
        font-size: 1.3rem;
    }
    .video-modal-content{height:400px;width:75vw;padding:15px;}
    .video-modal-content iframe{border-radius:8px;border-width:1px;}

}


@media (max-width: 900px){
   .video-modal-content{height:70vh;width:95vw;padding:15px;}
}

@media (max-width: 400px){
   .video-modal-content{height:50vh;width:95vw;padding:15px;}
   .image-modal{
    padding-bottom: 150px;
   }
}

/* Awards horizontal scroll for small tablets (600px–930px) */
@media (min-width: 320px) and (max-width: 930px){
  .data-desa-section .data-desa-awards{
    display:flex !important;
    gap:16px;
    overflow-x:auto;
    overflow-y:visible;
    width:100%;
    max-width:100vw;
    padding:0 20px 14px;
    margin:10px 0 40px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scroll-padding:0 20px;
  }
  .data-desa-section .data-desa-awards{ scrollbar-width:thin; scrollbar-color: rgba(19,62,135,.6) transparent; }
  .data-desa-section .data-desa-awards::-webkit-scrollbar{ height:8px; }
  .data-desa-section .data-desa-awards::-webkit-scrollbar-track{ background:transparent; }
  .data-desa-section .data-desa-awards::-webkit-scrollbar-thumb{ background:linear-gradient(135deg,#133E87,#608BC1); border-radius:8px; }

  .data-desa-section .award-card{
    flex:0 0 clamp(340px, 76vw, 520px);
    scroll-snap-align:start;
  }
  .data-desa-section .awards-title{ position:relative; }
  .data-desa-section .awards-title::after{
    content:'Geser untuk melihat lainnya →';
    display:block;
    margin-top:8px;
    font-size:1.2rem;
    font-weight:600;
    color:rgba(255,255,255,0.85);
    text-align:center;
    letter-spacing:.5px;
  }
}

@media (min-width: 601px) and (max-width: 766px) {
  .galeri-scroller {
    height: 700px;
    max-width: 600px;
    overflow: hidden;
    position: relative;
  }

  .galeri-scroll {
    width: 450px;
    height: 300px;
    top: 3rem;
    left: 1.5rem;
  }

  .gallery-slide {
    width: 400px;
    height: 480px;
  }

  .visi-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--mobile-padding);
    text-align: center;
    padding: 30px 20px;
    width: 400px;
  }

  .misi-list{
     width: 400px;
    padding: 30px 30px;
  }
  
  .misi-list li {
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 20px;
    margin: 0;
  }
  
  .misi-list li {
    margin-bottom: 8px;
  }

  /* Struktur Section */
  .struktur-section {
    padding: var(--mobile-padding);
  }
  
  .struktur-title {
    font-size: 1.5rem;
    margin-bottom: var(--mobile-padding);
    text-align: center;
  }
  
  .struktur-menu {
    gap: 5px;
    margin-bottom: var(--mobile-padding);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .struktur-tab {
    padding: 10px 16px;
    font-size: .9rem;
    border-radius: 20px;
    min-width: auto;
    flex: 0 0 auto;
  }
  
  .struktur-content {
    padding: var(--mobile-gap);
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
  }
  
  .struktur-org-title {
    font-size: 1.5rem;
    margin-bottom: var(--mobile-gap);
    text-align: center;
    color: var(--primary-color);
  }
  
  .struktur-list {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .struktur-list li {
    margin-bottom: 8px;
    padding: 8px var(--mobile-gap);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
  }
  
  .struktur-list-img .struktur-img {
    width: 100px;
    height: 100px;
    margin-right: var(--mobile-gap);
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .struktur-org-img-wrapper {
    margin-bottom: var(--mobile-padding);
    text-align: center;
  }
  
  .struktur-org-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .struktur-pdf-btn {
    padding: 12px 20px;
    font-size: 1rem;
    margin-top: var(--mobile-padding);
    border-radius: 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .struktur-pdf-wrapper iframe {
    min-height: 250px;
    border-radius: 12px;
  }
  
  .img-modal-content {
    margin: 24px auto;
    max-width: 98vw;
    max-height: 60vh;
  }
  
  .img-modal-close {
    top: 12px;
    right: 18px;
    font-size: 2rem;
  }

  .peta-tab-btn{
    font-size: 1.2rem;
     border-radius: 10px;
    border: none;
  }

}
  
@media (max-width: 900px) {
  /* Image Grid Gallery Responsive for Mobile */
  .image-grid-container {
    padding: 0 5px;
    margin: 30px auto;
    width: 95%;
    max-width: 100%;
  }
  
  .image-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }
  
  .grid-item {
    border-radius: 10px;
    height: 250px;
    width: 100%;
  }
  
  .grid-item.large{
    grid-column: span 9 !important;
    grid-row: span 1 !important;
  }
  .grid-item.medium {
    grid-column: span 9 !important;
    grid-row: span 1 !important;
  }
  .grid-item.wide{
    grid-column: span 9 !important;
    grid-row: span 1 !important;
  }
  .grid-item.wide-a{
    grid-column: span 9 !important;
    grid-row: span 1 !important;
  }

  
  .grid-item-overlay {
    opacity: 1;
    transform: translateY(0);
    padding: 15px;
  }
  
  .grid-item-overlay h3 {
    font-size: 1.2rem;
  }
  
  .grid-item-overlay p {
    font-size: 0.9rem;
  }
  
  .video-thumbnail {
    height: 100%;
    width: 100%;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

@media (min-width: 767px) and (max-width: 900px) {
  /* Style untuk mobile */
.medsos-grid{ grid-template-columns: 1fr 1fr; align-items:start; } 
  /* Header Section */
  .profil-header {
    margin-bottom: var(--mobile-gap);
  }

  .header-bg {
    height: 330px;
  }

  .header-img {
    height: 330px;
    object-fit: cover;
  }

  .profil-title {
    font-size: 2.5rem;
    top: 110px;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  .nav-atas .logo img {
    margin-top: 10px;
    margin-left:-30px;
    width: 10%;
    height: 10%;
  }
  .nav-atas .logo-text{
    margin-left: -10px;
  }
  .nav-atas .logo-text .desa{
    font-size: 0.8rem;
  }
  .nav-atas .logo-text .kabupaten{
    font-size: 0.6rem;
  }

  /* Navigation - Hidden on mobile */
  .profil-nav {
    display: none !important;
  }

  @media (min-width: 601px) and (max-width: 767px){

  }

  /* Hamburger menu styling - Completely Redesigned */
  .hamburger {
    display: flex !important;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    background-color: transparent !important;
    border-radius: 10 !important;
    width: 100px !important; /* Increased width for better appearance on min 320px */
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(243, 243, 224, 0.95); /* Light background with transparency */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
  }

  .main-nav.active {
    transform: translateX(0);
  }

  @media (max-width: 900px){
    /* Mobile menu list styling - Completely Redesigned */
  .nav-links {
    display: none !important;
  }

  .menu-list {
    display: none !important;
  }

  /* Facilities pane mobile height control */
  .facilities-pane .facility-grid {
    grid-template-columns: 1fr; /* stack cards inside pane */
    gap: 16px;
  }

  .facilities-pane {
    max-height: 400px !important;
    overflow: hidden !important;
    position: relative;
  }
  .facilities-pane.expanded {
    max-height: none;
    overflow: visible;
  }
  .facilities-pane::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: linear-gradient(180deg, rgba(247,249,252,0), rgba(247,249,252,1));
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .facilities-pane.expanded::after {
    opacity: 0;
  }

  .mobile-menu-list {
    display: flex !important;
    flex-direction: column;
    gap: 25px;
    padding: 40px 30px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    align-items: center; /* center items now */
    left: 200px;
  }
}

  .mobile-menu-list li {
    list-style: none;
    text-align: center; /* center text */
    border-bottom: 2px solid #133e87;
    width: 100%;
    margin-bottom: 5px;
  }

  /* Data Desa Section */
  .data-desa-section {
    padding: 0 0 var(--mobile-padding) 0;
    min-height: 250px;
  }

  .data-desa-grid {
    max-width: 98vw;
    padding: 0 var(--mobile-padding);
    gap: 6px;
    grid-template-columns: repeat(2, 1fr);
  }

  .data-desa-box {
    font-size: 0.8rem;
    min-height: 45px;
    text-align: center;
    padding: 8px;
  }

  .data-desa-title {
    font-size: 1.3rem;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }

  /* Timeline Section */
  .timeline {
    max-width: 98vw;
    padding: 0 var(--mobile-padding);
  }

  .timeline-content {
    padding: 0 10px !important;
    line-height: 1.3 !important;
  }

  .c-right {
    margin-right: -3rem !important;
  }

  .c-left {
    margin-left: -3rem !important;
  }

  /* Gallery Responsive */
  /* Gallery Responsive */
  .galeri-scroller {
    max-width: 780px;
    height: 350px;
    overflow: hidden;
    position: relative;
  }
  
  .galeri-scroll {
    width: 440px;
    height: 200px;
    top: 5%;
    left: 27%;
  }
  
  .gallery-slide {
    width: 200px;
    height: 250px;
  }
  
  /* Video thumbnail specific styles */
  .video-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
  }

  .video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }

  .slide-overlay h3 {
    font-size: 16px;
  }

  .slide-overlay p {
    font-size: 12px;
  }

  .mobile-menu-list li a {
    color: #133e87; /* Primary color */
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: block;
    padding: 15px 15px;
    border-radius: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center; /* Center the text within the anchor tag */
  }

  .mobile-menu-list li a:hover,
  .mobile-menu-list li a:active {
    background-color: #133e87; /* Primary color */
    color: #ffffff; /* Light color */
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(19, 62, 135, 0.2);
  }

  
  .hamburger{
   width: 50px;
  height: 50px; /* Make width and height equal for square */
  z-index: 90;
  border-radius: 8px; /* Smaller border-radius for square corners */
  background-color: rgba(19, 62, 135, 0.8); /* Add a semi-transparent blue background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  }

  /* Close button styling */
  .hamburger span {
    height: 2px; /* Drastically reduce from 32px to 3px */
  width: 20px; /* Keep width smaller than container width */
  background-color: #FFFFFF; /* Change from blue to white */
  margin: 4px auto;
  display: block;
  transition: all 0.3s ease;
  border-radius: 1px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
  }

  /* Keep floating nav compact on small tablets if shown */
  .profil-nav.floating {
    width: auto;
    max-width: 94vw;
    top: 8px !important;
  }

  /* Data Desa Section */
  .data-desa-section {
    padding: 0 0 var(--mobile-padding) 0;
    min-height: 300px;
  }

  .data-desa-title {
    font-size: 1.3rem;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  .data-desa-col{
    gap: 10px;
  }

  .data-desa-grid {
    max-width: 90vw;
    padding: 0 var(--tablet-padding);
    gap: 2px;
  }
  .data-desa-box {
    font-size: 0.7rem;
    min-height: 50px;
    text-align: center;
  }

  /* Penghargaan */
  .data-desa-awards{
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  /* Sejarah Section */
  .sejarah-section {
    padding: var(--mobile-padding) 0;
  }
  
  .sejarah-header h2 {
    font-size: 1.5rem;
    margin: var(--mobile-gap) 0 var(--mobile-padding) 0;
    text-align: center;
  }
  
  /* Responsive timeline adjustments */
  .timeline {
    max-width: 98vw;
    padding: 0 55px !important;
  }
  
  .timeline:before {
    left: 50% !important;
  }
  
  .timeline-row {
    flex-direction: row !important;
    align-items: flex-start !important;
    margin-bottom: 40px !important;
  }
  
  .timeline-row.left {
    justify-content: flex-start;
    
  }
  .timeline-row.right{
    justify-content: flex-end;
  }
  
  .timeline-row:after {
    top: 18px !important;
    transform: translateX(-50%) !important;
  }
  
  .timeline-content {
    line-height: 1.5 !important;
    font-family: 'Karma', sans-serif;
    max-width: 300px !important;
  }
.c-right{
  margin-right: -3.5rem;
}
.c-left{
  margin-left: -4.5rem;
}
  
  .timeline-year {
    margin-bottom: 8px !important;
  }


  


  /* Gallery Responsive for Mobile */
  .galeri-scroller {
    max-width: 900px !important;
    height: 450px !important;
    position: relative;
    overflow: hidden;
  }

  .galeri-scroll {
    width: 900px !important;
    height: 600px !important;
    bottom: 2rem;
  }

  .gallery-slide {
    max-width: 900px !important;
    width: 300px !important;
    height: 350px !important;
  }

  .gallery-slide:nth-child(1) {
    transform: translateX(-400px) translateZ(-200px) rotateY(25deg);
    opacity: 0.3;
    z-index: 1;
  }

  .gallery-slide:nth-child(2) {
    transform: translateX(-200px) translateZ(-100px) rotateY(15deg);
    opacity: 0.6;
    z-index: 2;
  }

  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
    opacity: 1;
    z-index: 5;
  }

  .gallery-slide:nth-child(4) {
    transform: translateX(200px) translateZ(-100px) rotateY(-15deg);
    opacity: 0.6;
    z-index: 2;
  }

  .gallery-slide:nth-child(5) {
    transform: translateX(400px) translateZ(-200px) rotateY(-25deg);
    opacity: 0.3;
    z-index: 1;
  }

  .galeri-ctrl {
    width: 45px;
    height: 45px;
    font-size: 18px;
    position: absolute;
    bottom: 10px;
    z-index: 10;
  }

  .prev-gallery {
    left: 40%;
    transform: translateX(-20%);
  }

  .next-gallery {
    left: 50%;
    transform: translateX(20%);
  }


  .slide-overlay h3 {
    font-size: 18px;
  }

  .slide-overlay p {
    font-size: 12px;
  }

  .awards-title {
    font-size: 2rem;
    margin: var(--mobile-padding) 0;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }

  /* Visi Misi Section */
  
  .visi-title, 
  .misi-title {
    font-size: 1.5rem;
    margin-bottom: var(--mobile-gap);
    text-align: center;
  }
  
  .visi-desc {
    font-size: 1rem;
    width: 700px;
    line-height: 1.6;
    margin-bottom: var(--mobile-padding);
    text-align: center;
    padding: 20px 30px !important;
  }
  .misi-list{
    width: 700px;
  }
  .misi-list li {
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 20px;
    margin: 0;
  }
  
  .misi-list li {
    margin-bottom: 8px;
  }
  
  /* Struktur Section */
  .struktur-section {
    padding: var(--mobile-padding);
  }
  
  .struktur-title {
    font-size: 1.5rem;
    margin-bottom: var(--mobile-padding);
    text-align: center;
  }
  
  .struktur-menu {
    gap: 10px;
    margin-bottom: var(--mobile-padding);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .struktur-tab {
    padding: 10px 16px;
    font-size: 1.1rem;
    border-radius: 20px;
    min-width: auto;
    flex: 0 0 auto;
  }
  
  .struktur-content {
    padding: var(--mobile-gap);
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
  }
  
  .struktur-org-title {
    font-size: 1.8rem;
    margin-bottom: var(--mobile-gap);
    text-align: center;
    color: var(--primary-color);
  }
  
  .struktur-list {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .struktur-list li {
    margin-bottom: 8px;
    padding: 8px var(--mobile-gap);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
  }
  
  .struktur-list-img .struktur-img {
    width: 100px;
    height: 100px;
    margin-right: var(--mobile-gap);
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .struktur-org-img-wrapper {
    margin-bottom: var(--mobile-padding);
    text-align: center;
  }
  
  .struktur-org-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .struktur-pdf-btn {
    padding: 12px 20px;
    font-size: 1rem;
    margin-top: var(--mobile-padding);
    border-radius: 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .struktur-pdf-wrapper iframe {
    min-height: 250px;
    border-radius: 12px;
  }
  
  .img-modal-content {
    margin: 24px auto;
    max-width: 98vw;
    max-height: 60vh;
  }
  
  .img-modal-close {
    top: 12px;
    right: 18px;
    font-size: 2rem;
  }

  /* Footer */
  .main-footer {
    padding: var(--mobile-padding) 0 0 0;
    margin-top: var(--mobile-padding);
  }
  
  .footer-columns {
    gap: 40px;
  }
  
  .footer-col {
    min-width: 0;
    margin-bottom: 18px;
  }
  
  .footer-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .footer-col ul li {
    font-size: 0.5rem !important;
  }
  
  .footer-copyright {
    font-size: 0.5rem !important;
    padding: 0 8px 8px 0;
  }

  .peta-tab-btn{
    font-size: 1.3rem;
     border-radius: 10px;
    border: none;
  }
.map-modal-content{
  position:relative;
  width:min(80vw,600px);
  height:min(50vh,600px);
  background:#0b2657;
  border-radius:12px;
  box-shadow:0 18px 60px rgba(0,0,0,.5);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18)
}    
.map-stage{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0b2657}
.map-stage img{
  max-width:100%;
  max-height:100%;object-fit:contain;filter:drop-shadow(0 12px 30px rgba(0,0,0,.35))}

  .map-image{
    width: 100%;
    min-height: 600px;
    background-position-x: 60px ;
    background-size: 500px;
  }

  .gallery-slide {
    width: 240px;
    height: 330px;
    max-width: 500px;
  }
  .title-galeri, .galeri-title{
    font-size: 1.5rem;
  }
  .galeri-subtitle{
    font-size: 0.7rem;
  }
  .medsos-title{
    font-size: 1.5rem;
  }
  .medsos-subtitle{
    font-size: 0.8rem;
  }
  .ms-tile:hover{ 
    transform:translateY(-10px) 
    scale(1.02); 
    min-height:300px;}
  
  

  /* Show on mobile only */
  @media (max-width: 900px) {
    .mobile-bottom-nav { 
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)) !important;
    }
    .mobile-nav-container { 
      margin: 0 auto !important; 
      width: min(560px, calc(100vw - 24px)) !important; 
      max-width: calc(100vw - 24px) !important;
    }
  }

  /* Extra small screens */
  @media (max-width: 375px) {
    .mobile-nav-container {
      width: calc(100vw - 20px) !important;
      max-width: calc(100vw - 20px) !important;
      padding: 6px 8px !important;
      gap: 4px !important;
    }
    
    .mobile-bottom-nav {
      padding-inline: 10px !important;
    }
  }

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

  /* High contrast support */
  @media (prefers-contrast: high) {
    .mobile-nav-item {
      border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .mobile-nav-item.active {
      border-color: #fff;
    }
  }

  /* Compact mode for ultra-small screens */
  @media (max-width: 360px) {
    .mobile-nav-label { display: none; }
    .mobile-nav-item { padding: 12px 10px; }
    .mobile-nav-icon { width: 28px; height: 28px; }
  }
}
@media (min-width: 901px) and (max-width: 1023px) {

  .profil-nav ul li:not(:last-child)::after {
        display: none;
    }

.submenu , .dropdown-toggle{
    display: none;
}

/* Show main navigation like desktop */
.nav-links {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 56px;
    gap: 24px; /* Slightly smaller gap for this breakpoint */
    text-decoration: none;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
    flex-direction: row;
}

.nav-links li {
    width: auto;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: 'Playfair Display SC', serif;
    font-size: 1.5rem; /* Slightly smaller font size */
    font-weight: 500;
    padding: 8px 12px; /* More compact padding */
    transition: color 0.2s;
    display: block;
    text-align: center;
}

 .main-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Playfair Display SC', serif;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 12px 0;
    transition: color 0.2s;
    display: block;
}
.header-container {
        height: calc(100vh + 60px); /* extend to cover nav overlap on mobile */
        min-height: 560px;
        background-attachment: scroll;
    }

    .main-title h1 {
        font-size: 4em;
    }
    
    /* Mobile responsive for floating cards */
    .floating-info-cards {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .info-card {
        min-width: 160px;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .card-icon {
        font-size: 2em;
    }
    
    .card-number {
        font-size: 1.5em;
    }
    
    .card-text {
        font-size: 0.8em;
    }
    
    /* Mobile responsive for scroll indicator */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow span {
        width: 16px;
        height: 16px;
    }
    
    .scroll-text {
        font-size: 0.8em;
    }

    .nav-wrapper {
        margin-top: 0;
        padding-bottom: 0;
    }

    /* Override any mobile navigation conflicts for this breakpoint */
    nav { overflow: visible; }

<<<<<<< Updated upstream
=======


>>>>>>> Stashed changes
    .hamburger {
        display: none;
    }

    /* Make profil-nav more compact for this breakpoint */
    .profil-nav {
        --nav-width: min(94vw, 1000px)  !important; /* Smaller width */
        --nav-radius: 30px  !important; /* Smaller border radius */
        --nav-pad-x: 8px  !important; /* Smaller padding */
        margin-bottom: 10px  !important; /* Add some space below */
    }

    .profil-nav ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 12px  !important; /* Smaller gap */
        row-gap: 2px  !important; /* Smaller row gap */
        padding: 2px var(--nav-pad-x)  !important; /* Less padding */
    }

    .profil-nav a {
        font-size: 0.8rem !important; /* Smaller font size */
        padding: 4px 6px  !important; /* More compact padding */
        line-height: 1.1  !important; /* Tighter line height */
    }

    /* Prevent horizontal overflow */
    .profil-main {
        overflow-x: hidden;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .content-container {
        display: block;
        padding: 40px 20px;
    }

    .text-content, .image-placeholder {
        flex-basis: 100%;
    }

    .image-placeholder {
        margin-top: 20px;
        height: 250px;
    }

    .container {
        padding: 50px 20px;
    }

    .feature-item,
    .feature-item:nth-child(even) {
        display: block;
        margin-bottom: 80px;
    }

    .feature-item:nth-child(odd) .feature-text {
        text-align: center;
    }

    .feature-shape {
        width: 100%;
        height: 280px;
        transform: rotate(0deg) !important;
        margin-bottom: 25px;
    }

    .feature-text {
        max-width: 100%;
        text-align: center !important;
        padding: 20px;
        border-radius: 16px;
    }

    .feature-text h2 {
        font-size: 2.2rem;
    }

    .feature-text h2::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature-text p {
        font-size: 1.1rem;
    }

    .map-image {
        width: 95%;
        height: 50%;
    }

    .footer-columns {
        gap: 40px;
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }

  /* Style untuk tablet landscape */
  .profil-header {
    position: relative;
    margin-bottom: 0;
  }
  
  .header-bg {
    height: 350px;
  }
  
  .header-img {
    height: 350px;
    object-fit: cover;
  }
  
  .profil-title {
    font-size: 2.2rem;
    top: 160px;
    padding: 0 var(--tablet-padding);
  }

  .nav-atas{
        top: 10px;
    }

    .main-nav{
      top: -10px;
      position: relative;
    }
  
  .profil-nav {
    top: 320px;
    bottom: auto;
    padding: 0 10px;
  }
  
  .profil-nav.floating {
    max-width: 94vw;
    top: 14px !important;
  }
  
  .profil-nav ul {
    gap: var(--tablet-gap);
  }
  
  .profil-nav a {
    font-size: 1.1rem;
    padding: 12px 10px;
  }

  .data-desa-section {
    padding: 60px 0 var(--tablet-padding) 0;
    min-height: 320px;
    position: relative;
    z-index: 1;
    margin-top: -80px;
  }
  
  .data-desa-grid {
    max-width: 92vw;
    padding: 0 var(--tablet-padding);
    gap: 10px;
  }
  
  .data-desa-box {
    font-size: 0.9rem;
    min-height: 60px;
    text-align: center;
  }
  
  .data-desa-title {
    display: block !important;
    visibility: visible !important;
    font-size: 1.7rem  !important;
    margin: var(--tablet-padding) 0;
    padding: 0 var(--tablet-padding);
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 80px !important;
  }
  
  .timeline {
    max-width: 92vw;
    padding: 0 var(--tablet-padding);
  }
  
  .timeline-content {
    max-width: 280px !important;
    padding: 0 25px !important;
    font-size: 0.72rem !important;
    line-height: 1.5 !important;
  }

  .c-right {
    margin-right: -2.5rem !important;
  }

  .c-left {
    margin-left: -2.5rem !important;
  }

  /* Gallery Responsive */
  .galeri-scroller {
    max-width: 1010px;
    height: 720px;
    overflow: hidden;
    position: relative;
  }

  .galeri-scroll {
    width: 900px;
    height: 420px;
    top: 5%;
    left: 28%;
  }

  .gallery-slide {
    height: 400px;
    max-width: 500px;
  }

  .gallery-slide:nth-child(1) {
    transform: translateX(-320px) translateZ(-160px) rotateY(20deg);
  }

  .gallery-slide:nth-child(2) {
    transform: translateX(-160px) translateZ(-80px) rotateY(10deg);
  }

  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
  }

  .gallery-slide:nth-child(4) {
    transform: translateX(160px) translateZ(-80px) rotateY(-10deg);
  }

  .gallery-slide:nth-child(5) {
    transform: translateX(320px) translateZ(-160px) rotateY(-20deg);
  }

  .galeri-ctrl {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .slide-overlay h3 {
    font-size: 22px;
  }

  .slide-overlay p {
    font-size: 15px;
  }

   .image-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 180px;
    }
    
    .grid-item.large, 
    .grid-item.medium {
        grid-column: span 4;
        grid-row: span 1;
    }
    
    .grid-item.wide {
        grid-column: span 4;
    }
    
    .image-modal-content {
        width: 95%;
        margin: 0;
    }
    
    .image-modal-body {
        flex-direction: column;
    }
    
    .image-modal-info {
        padding: 20px;
    }

     .map-marker {
        width: 30px;
        height: 30px;
    }
    
    .marker-number {
        font-size: 14px;
    }
    
    .marker-tooltip {
        font-size: 12px;
        padding: 4px 8px;
    }
     .nav-atas {
        --nav-atas-glow-intensity: 0.7;
        --nav-atas-animation-speed: 1.3;
    }
    
    .nav-atas .main-nav .menu-list::before {
        animation-duration: calc(4.5s / var(--nav-atas-animation-speed));
        opacity: calc(0.85 * var(--nav-atas-glow-intensity));
    }
    
    .nav-atas .main-nav .menu-list::after {
        animation-duration: calc(5s / var(--nav-atas-animation-speed));
        opacity: calc(0.7 * var(--nav-atas-glow-intensity));
    }

    .visi-desc {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    padding: 30px 20px;
    width: 790px;
  }

  .misi-list{
    width: 950px !important;
    padding: 30px 40px;
  }
  
  .misi-list li {
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 20px;
    margin: 0;
  }
  
  .misi-list li {
    margin-bottom: 8px;
  }
}

/* =============================================
   DESKTOP (1024px - 1279px)
   ============================================= */
   @media (min-width: 1024px) and (max-width: 1279px) {
    .profil-header {
        position: relative;
        margin-bottom: 0;
    }
    /* Make profil-nav more compact for this breakpoint */
    .profil-nav {
        --nav-width: min(94vw, 1000px)  !important; /* Smaller width */
        --nav-radius: 30px  !important; /* Smaller border radius */
        --nav-pad-x: 8px  !important; /* Smaller padding */
        margin-bottom: 10px  !important; /* Add some space below */
    }

    .profil-nav ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 12px  !important; /* Smaller gap */
        row-gap: 2px  !important; /* Smaller row gap */
        padding: 2px var(--nav-pad-x)  !important; /* Less padding */
    }

    .profil-nav a {
        font-size: 0.8rem !important; /* Smaller font size */
        padding: 4px 6px  !important; /* More compact padding */
        line-height: 1.1  !important; /* Tighter line height */
    }
    .profil-nav {
    top: 400px;
    bottom: auto;
    padding: 0 10px;
  }

  .visi-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: center;
    padding: 30px 20px;
    width: 900px;
  }

  .misi-list{
    width: 1100px !important;
    padding: 30px 50px;
  }
  
  .misi-list li {
    font-size: 1.3rem;
    line-height: 1.5;
    padding-left: 20px;
    margin: 0;
  }
  
  .misi-list li {
    margin-bottom: 8px;
  }


  }

/* =============================================
   LARGE SCREENS (1280px - 1600px)
   Enhanced typography and spacing for desktop
   ============================================= */
/* Timeline content organization (high-specificity) */
.sejarah-section .timeline-content .timeline-year{
  display:block;
  margin-bottom:8px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,0.28) !important;
}
.sejarah-section .timeline-content p{
  margin:0 !important;
  padding:10px 12px !important;
  background:rgba(255,255,255,0.06) !important;
  border:1px solid rgba(255,255,255,0.22) !important;
  border-radius:10px !important;
  line-height:1.55 !important;
}
.sejarah-section .timeline-content p + p{ margin-top:10px !important; }

/* Side accents near the center line by alignment */
@media (min-width: 601px) and (max-width: 900px){
  .sejarah-section .timeline-row.left .timeline-content p{ border-left:2px solid rgba(255,255,255,0.32) !important; padding-left:12px !important; }
  .sejarah-section .timeline-row.right .timeline-content p{ border-right:2px solid rgba(255,255,255,0.32) !important; padding-right:12px !important; }
}
@media (min-width: 900px){
  .sejarah-section .timeline-row.left .timeline-content p{ border-left:3px solid rgba(255,255,255,0.35) !important; padding-left:14px !important; }
  .sejarah-section .timeline-row.right .timeline-content p{ border-right:3px solid rgba(255,255,255,0.35) !important; padding-right:14px !important; }
}



/* =============================================
   DESKTOP SUBMENU STYLES
   ============================================= */
@media (min-width: 901px) {
  .submenu {
    display: none !important;
  }

  .mobile-menu-list {
    display: none !important;
  }
}

/* =============================================
   MODERN HAMBURGER MENU SYSTEM
   ============================================= */
@media (max-width: 900px) {
  .profil-nav{
    display: none;
  }
  
  /* Navigation Container */
  .nav-atas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  /* ===== MODERN HAMBURGER BUTTON ===== */
  .hamburger {
    position: relative;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px; /* Keep width and height equal for square */
    cursor: pointer;
    margin-left: auto;
    margin-right: 20px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px; /* Smaller border-radius for square corners */
    transition: all 0.4s var(--menu-timing);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
  }
  
  .hamburger:hover::before {
    left: 100%;
  }
  
  .hamburger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
  
  .hamburger:active {
    transform: translateY(0) scale(0.95);
  }
  
  /* ===== HAMBURGER LINES WITH ENHANCED ANIMATION ===== */
  .hamburger span {
    display: block;
    width: 20px; /* Smaller width to fit inside square */
    height: 2px; /* Thin lines */
    background: linear-gradient(45deg, #fff, #f0f0f0);
    margin: auto; /* Center lines vertically and horizontally */
    border-radius: 1px; /* Slightly rounded edges */
    transition: all 0.4s var(--bounce-timing);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .hamburger span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #7296cb, #608BC1);
    border-radius: 4px;
    transition: width 0.3s ease;
  }
  
  .hamburger:hover span::before {
    width: 100%;
  }
  .nav-atas.show-menu .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-atas.show-menu .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-atas.show-menu .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

  .nav-atas .logo{
 max-width: 300px;
    }
  /* ===== MODERN OVERLAY MENU ===== */
  .main-nav {
    position: fixed;
    top: 0;
    width: 100vw;
    max-width: none;
    max-height: none;
    height: 100vh;
    background: var(--third-color);
     opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1000;
    overflow-x: auto;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #ccc;
  }

  /* Hide desktop menu on mobile */
  .menu-list {
    display: none;
  }

  /* Show mobile menu */
  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 10;
  }

  .mobile-menu-list li {
    width: 100%;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: slideInMenu 0.6s var(--bounce-timing) forwards;
  }

  .mobile-menu-list li:nth-child(1) { animation-delay: 0.1s; }
  .mobile-menu-list li:nth-child(2) { animation-delay: 0.2s; }
  .mobile-menu-list li:nth-child(3) { animation-delay: 0.3s; }
  .mobile-menu-list li:nth-child(4) { animation-delay: 0.4s; }

  .mobile-menu-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    color: var(--primary-color) !important;
    text-decoration: none;
    font-size: 0.8rem !important;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s var(--smooth-timing);
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }

  .mobile-menu-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
  }

  .mobile-menu-list li a:hover::before {
    left: 100%;
  }

  .mobile-menu-list li a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    color: #fff;
  }
  
  .main-nav::before {
    content: none;
  }
  
  .nav-atas.show-menu .main-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);

  }
  
  /* ===== ENHANCED MENU LIST ===== */
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 360px;
    z-index: 10;
  }
  
  /* ===== STUNNING MENU ITEMS ===== */
  .main-nav ul li {
    width: 100%;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: slideInMenu 0.6s var(--bounce-timing) forwards;
  }
  
  .main-nav ul li:nth-child(1) { animation-delay: 0.1s; }
  .main-nav ul li:nth-child(2) { animation-delay: 0.2s; }
  .main-nav ul li:nth-child(3) { animation-delay: 0.3s; }
  .main-nav ul li:nth-child(4) { animation-delay: 0.4s; }
  .main-nav ul li:nth-child(5) { animation-delay: 0.5s; }
  
  @keyframes slideInMenu {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* ===== GLASSMORPHISM MENU LINKS ===== */
  
  /* Animated gradient overlay */
  .main-nav ul li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
  }
  
  .main-nav ul li > a:hover::before {
    left: 100%;
  }
  
  /* ===== MODERN DROPDOWN ARROWS ===== */
  .main-nav ul li > a::after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: all 0.3s var(--smooth-timing);
    opacity: 0.7;
    margin-left: auto;
  }
  
  /* Hide arrow on main links since we have separate toggle buttons */
  .main-nav ul li > a {
    padding-right: 12px;
  }
  .main-nav ul li > a::after {
    display: none;
  }
  
  /* Dropdown toggle button */
  .dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
  }
  
  .dropdown-toggle::before {
    content: ">";
    font-weight: bold;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    transition: transform 0.3s var(--smooth-timing);
  }
  
  .dropdown-toggle.open::before {
    transform: rotate(90deg);
  }
  
  .dropdown-toggle:focus-visible {
    outline: 2px solid rgba(114, 150, 203, 0.8);
    outline-offset: 2px;
  }
  
  .main-nav ul li.open > .dropdown-toggle::before {
    transform: rotate(90deg);
  }
  
  .main-nav ul li.open > a {
    padding-right: 12px;
  }
  
  .main-nav ul li.open > a::after {
    display: none;
  }
  
  .main-nav ul li.open > .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  /* ===== HOVER EFFECTS ===== */
  .main-nav ul li > a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    color: #fff;
  }
  
  /* ===== ACTIVE STATE ===== */
  .main-nav ul li.open > a {
    background: linear-gradient(135deg, rgba(114, 150, 203, 0.2), rgba(96, 139, 193, 0.15));
    border-color: rgba(114, 150, 203, 0.3);
    box-shadow: 0 8px 32px rgba(114, 150, 203, 0.2);
  }
  
  /* ===== ENHANCED SUBMENUS ===== */
  .main-nav ul li .mobile-submenu,
  .main-nav ul li .submenu,
  .main-nav ul li #profilSubmenu {
    position: static;
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(15px);
    border-radius: 16px;
    transition: all 0.5s var(--smooth-timing);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* ===== SUBMENU SHOW ANIMATION ===== */
  .main-nav ul li.open .mobile-submenu,
  .main-nav ul li.open .submenu,
  .main-nav ul li.open #profilSubmenu {
    max-height: 600px;
    opacity: 1;
    margin-top: 12px;
    padding: 16px 0;
    transform: translateY(0);
  }
  
  /* ===== SUBMENU ITEMS STYLING ===== */
  .main-nav .mobile-submenu li,
  .main-nav .submenu li,
  .main-nav #profilSubmenu li {
    margin: 0;
    max-width: none;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInSubmenu 0.4s var(--smooth-timing) forwards;
  }
  
  .main-nav ul li.open .mobile-submenu li:nth-child(1),
  .main-nav ul li.open .submenu li:nth-child(1),
  .main-nav ul li.open #profilSubmenu li:nth-child(1) { animation-delay: 0.1s; }
  
  .main-nav ul li.open .mobile-submenu li:nth-child(2),
  .main-nav ul li.open .submenu li:nth-child(2),
  .main-nav ul li.open #profilSubmenu li:nth-child(2) { animation-delay: 0.15s; }
  
  .main-nav ul li.open .mobile-submenu li:nth-child(3),
  .main-nav ul li.open .submenu li:nth-child(3),
  .main-nav ul li.open #profilSubmenu li:nth-child(3) { animation-delay: 0.2s; }
  
  .main-nav ul li.open .mobile-submenu li:nth-child(4),
  .main-nav ul li.open .submenu li:nth-child(4),
  .main-nav ul li.open #profilSubmenu li:nth-child(4) { animation-delay: 0.25s; }
  
  @keyframes slideInSubmenu {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* ===== BEAUTIFUL SUBMENU LINKS ===== */
  .main-nav .mobile-submenu li a,
  .main-nav .submenu li a,
  .main-nav #profilSubmenu li a {
    font-size: 1rem;
    padding: 12px 20px;
    margin: 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    display: block;
    color: var(--primary-color) !important;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s var(--smooth-timing);
    border: 1px solid transparent;
    overflow: hidden;
  }
  
  /* Submenu link shine effect */
  .main-nav .mobile-submenu li a::before,
  .main-nav .submenu li a::before,
  .main-nav #profilSubmenu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
  }
  
  /* Remove arrow from submenu items */
  .main-nav .mobile-submenu li a::after,
  .main-nav .submenu li a::after,
  .main-nav #profilSubmenu li a::after {
    display: none;
  }
  
  .main-nav .mobile-submenu li a:hover,
  .main-nav .submenu li a:hover,
  .main-nav #profilSubmenu li a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(114, 150, 203, 0.3);
    transform: translateX(8px) scale(1.02);
    color: #fff;
    box-shadow: 0 4px 20px rgba(114, 150, 203, 0.15);
  }
  
  .main-nav .mobile-submenu li a:hover::before,
  .main-nav .submenu li a:hover::before,
  .main-nav #profilSubmenu li a:hover::before {
    left: 100%;
  }
  
  /* ===== PULSE ANIMATION FOR ACTIVE ITEMS ===== */
  .main-nav ul li.open > a {
    animation: pulseGlow 2s ease-in-out infinite;
  }
  
  @keyframes pulseGlow {
    0%, 100% { 
      box-shadow: 0 8px 32px rgba(114, 150, 203, 0.2);
    }
    50% { 
      box-shadow: 0 8px 32px rgba(114, 150, 203, 0.4);
    }
  }
}

/* =============================================
   MICRO INTERACTIONS & ACCESSIBILITY
   ============================================= */


/* Prevent background scroll when hamburger open */
html.no-scroll,
body.no-scroll {
  height: 100%;
  overflow: hidden;
}


@media (min-width: 900px) and (max-width: 1279px){
 .galeri-scroller {
    max-width: 900px !important;
    height: 450px !important;
    position: relative;
    overflow: hidden;
  }

  .galeri-scroll {
    width: 900px !important;
    height: 600px !important;
    top: 1%;
    left: 35%;
  }

  .gallery-slide {
    max-width: 900px !important;
    width: 300px !important;
    height: 350px !important;
  }

   .medsos-grid{ grid-template-columns: 1fr 1fr; align-items:start; } 

   .data-desa-title, .peta-title, .title-galeri, .galeri-title, .medsos-title, .person-in-charge-title{
    font-size: 2rem !important;
  }
}

@media (min-width: 1280px) {
.medsos-grid{ grid-template-columns: 1fr 1fr; align-items:start; } 
  
  /* Root Variables - Increased sizes for large screens */
  :root {
    --fontXXL: 5.5rem;
    --fontXL: 4.5rem;
    --fontL: 2.8rem;
    --fontB: 2rem;
    --fontMM: 1.5rem;
    --fontM: 1.2rem;
    --fontS: 1rem;
    --desktop-padding: 80px;
    --desktop-gap: 40px;
  }

  /* === PROFILE HEADER === */
  .profil-header {
    margin-bottom: var(--desktop-gap);
  }

  .header-bg {
    height: 500px;
  }

  .header-img {
    height: 500px;
    object-fit: cover;
  }

  .profil-title {
    font-size: 3.8rem;
    top: 200px;
    padding: 0 var(--desktop-padding);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
  }

  /* === NAVIGATION === */
  

  .nav-atas .logo img {
    width: 70px;
    height: 70px;
    margin-top: 12px;
  }

  .nav-atas .logo-text {
    margin-left: 12px;
  }

  .nav-atas .logo-text .desa {
    font-size: 1.5rem;
  }

  .nav-atas .logo-text .kabupaten {
    font-size: 1.15rem;
  }

  .profil-nav {
    top: 420px;
    bottom: auto;
    padding: 0 50px;
    max-width: 1600px;
    margin: 0 auto;
  }

  .profil-nav.floating {
    max-width: 1600px;
    padding: 0 60px;
  }

  .profil-nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 6px;
  }

  .profil-nav a {
    font-size: 1.05rem;
    padding: 8px 12px;
    line-height: 1.2;
  }

  /* === DATA DESA SECTION === */
  .data-desa-section {
    padding: var(--desktop-padding) 0;
    min-height: 450px;
  }

  .data-desa-title {
    font-size: 2rem;
    margin: var(--desktop-gap) 0;
    padding: 0 var(--desktop-padding);
  }

  .data-desa-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--desktop-padding);
    gap: 28px;
    grid-template-columns: repeat(4, 1fr);
  }

  .data-desa-box {
    font-size: 1.3rem;
    border-radius: 18px;
  }

  .awards-title{
     font-size: 3rem !important;
  }

  /* === TIMELINE SECTION === */
  .sejarah-header h2{
    font-size: 3rem !important;
  }
  .timeline {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--desktop-padding);
  }

  .timeline::after {
    width: 8px;
  }

  .timeline-box {
    padding: 30px 40px;
    min-width: 380px;
    border-radius: 20px;
  }

  .timeline-box::after {
    width: 30px;
    height: 30px;
    border-width: 6px;
  }

  .timeline-box::before {
    width: 24px;
    height: 24px;
    border-width: 6px;
  }

  .timeline-content {
    max-width: 380px !important;
    padding: 0 40px !important;
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
  }

  .timeline-content h2 {
    font-size: 2.2rem !important;
    margin-bottom: 20px !important;
  }

  .c-right {
    margin-right: -4rem !important;
  }

  .c-left {
    margin-left: -4rem !important;
  }

  /* === GALLERY SECTION === */
  .galeri-scroller {
    max-width: 1400px;
    height: 600px;
    margin: var(--desktop-padding) auto;
  }

  .galeri-scroll {
    width: 1400px;
    height: 500px;
    top: 10%;
    left: 37%;
  }

  .gallery-slide {
    width: 350px;
    height: 420px;
    border-radius: 20px;
  }

  .gallery-slide:nth-child(1) {
    transform: translateX(-500px) translateZ(-200px) rotateY(20deg);
  }

  .gallery-slide:nth-child(2) {
    transform: translateX(-250px) translateZ(-100px) rotateY(10deg);
  }

  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
  }

  .gallery-slide:nth-child(4) {
    transform: translateX(250px) translateZ(-100px) rotateY(-10deg);
  }

  .gallery-slide:nth-child(5) {
    transform: translateX(500px) translateZ(-200px) rotateY(-20deg);
  }

  .galeri-ctrl {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-width: 4px;
  }

  .slide-overlay h3 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .slide-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  /* === SECTION TITLES === */
  .section-title {
    font-size: 3rem;
    margin: var(--desktop-padding) 0 var(--desktop-gap) 0;
    padding: 0 var(--desktop-padding);
  }

  /* === VISI MISI SECTION === */
  .visi-title, .misi-title {
    font-size: 3rem !important;
  }
  .vm-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--desktop-padding);
    gap: var(--desktop-gap);
  }

  .vm-box {
    padding: 50px;
    border-radius: 24px;
  }

  .vm-box h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
  }

  .vm-box p, .vm-box li {
    font-size: 1.25rem;
    line-height: 1.8;
  }

  /* === STRUKTUR ORGANISASI === */
  .struktur-title{
    font-size: 3rem !important;
  }
  .struktur-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--desktop-padding);
  }

  .struktur-card {
    padding: 40px;
    border-radius: 20px;
  }

  .struktur-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .struktur-card p {
    font-size: 1.25rem;
  }

  .struktur-card .position {
    font-size: 1.15rem;
  }

  /* === MILESTONE SECTION === */
  .ms-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--desktop-padding);
    gap: 35px;
  }

  .ms-tile {
    padding: 40px;
    border-radius: 24px;
    min-height: 350px;
  }

  .ms-tile h3 {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }

  .ms-tile .year {
    font-size: 3.5rem;
    margin-bottom: 16px;
  }

  .ms-tile p {
    font-size: 1.3rem;
    line-height: 1.7;
  }

  .ms-tile:hover {
    transform: translateY(-12px) scale(1.02);
    min-height: 380px;
  }

  /* === CONTENT SECTIONS === */
  .content-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--desktop-padding);
  }

  .content-section h2 {
    font-size: 3rem;
    margin-bottom: 30px;
  }

  .content-section p {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .peta-title, .title-galeri, .galeri-title, .medsos-title, .person-in-charge-title{
    font-size: 3rem !important;
  }
}

/* =============================================
   EXTRA LARGE SCREENS (1601px - 1920px)
   Premium desktop experience
   ============================================= */
@media (min-width: 1601px) {
  /* Root Variables - Further increased for XL screens */
  .medsos-grid{ grid-template-columns: 1fr 1fr; align-items:start; } 
  :root {
    --fontXXL: 6.5rem;
    --fontXL: 4rem;
    --fontL: 3.2rem;
    --fontB: 2.3rem;
    --fontMM: 1.7rem;
    --fontM: 1.35rem;
    --fontS: 1.1rem;
    --desktop-padding: 120px;
    --desktop-gap: 60px;
  }

  /* === PROFILE HEADER === */
  .header-bg {
    height: 600px;
  }

  .header-img {
    height: 600px;
  }

  .profil-title {
    font-size: 4.5rem;
    top: 250px;
  }

  /* === NAVIGATION === */
  .nav-atas .logo img {
    width: 85px;
    height: 85px;
  }

  .nav-atas .logo-text .desa {
    font-size: 1.3rem;
  }

  .nav-atas .logo-text .kabupaten {
    font-size: 1rem;
  }

  .profil-nav {
    top: 540px;
    bottom: auto;
    padding: 0 70px;
    max-width: 1920px;
  }

  .profil-nav.floating {
    max-width: 1920px;
    padding: 0 80px;
  }

  .profil-nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 8px;
  }

  .profil-nav a {
    font-size: 1.3rem !important;
    padding: 9px 14px;
    line-height: 1.2;
  }

  /* === DATA DESA SECTION === */
  .data-desa-section {
    padding: calc(var(--desktop-padding) * 1.2) 0;
    min-height: 550px;
  }

  .data-desa-title {
    font-size: 2.5rem;
    margin: calc(var(--desktop-gap) * 1.2) 0;
  }

  .data-desa-grid {
    max-width: 1920px;
    gap: 35px;
  }

  .data-desa-box {
    font-size: 1.5rem;
    border-radius: 22px;
  }

  /* === TIMELINE SECTION === */
  .timeline {
    max-width: 1920px;
    padding: calc(var(--desktop-padding) * 1.2);
  }

  .timeline::after {
    width: 10px;
  }

  .timeline-box {
    padding: 40px 50px;
    min-width: 450px;
    border-radius: 24px;
  }

  .timeline-box::after {
    width: 36px;
    height: 36px;
    border-width: 7px;
  }

  .timeline-box::before {
    width: 28px;
    height: 28px;
    border-width: 7px;
  }

  .timeline-content {
    max-width: 450px !important;
    padding: 0 50px !important;
    font-size: 1.3rem !important;
    line-height: 1.75 !important;
  }

  .timeline-content h2 {
    font-size: 2.6rem !important;
    margin-bottom: 24px !important;
  }

  .c-right {
    margin-right: -5rem !important;
  }

  .c-left {
    margin-left: -5rem !important;
  }

  /* === GALLERY SECTION === */
  .galeri-scroller {
    max-width: 1700px;
    height: 700px;
  }

  .galeri-scroll {
    width: 1700px;
    height: 600px;
  }

  .gallery-slide {
    width: 420px;
    height: 500px;
    border-radius: 24px;
  }

  .gallery-slide:nth-child(1) {
    transform: translateX(-600px) translateZ(-240px) rotateY(20deg);
  }

  .gallery-slide:nth-child(2) {
    transform: translateX(-300px) translateZ(-120px) rotateY(10deg);
  }

  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
  }

  .gallery-slide:nth-child(4) {
    transform: translateX(300px) translateZ(-120px) rotateY(-10deg);
  }

  .gallery-slide:nth-child(5) {
    transform: translateX(600px) translateZ(-240px) rotateY(-20deg);
  }

  .galeri-ctrl {
    width: 70px;
    height: 70px;
    font-size: 28px;
    border-width: 5px;
  }

  .slide-overlay h3 {
    font-size: 2.4rem;
    margin-bottom: 14px;
  }

  .slide-overlay p {
    font-size: 1.35rem;
    line-height: 1.7;
  }

  /* === SECTION TITLES === */
  .section-title {
    font-size: 3.8rem;
    margin: calc(var(--desktop-padding) * 1.2) 0 calc(var(--desktop-gap) * 1.2) 0;
  }

  /* === VISI MISI SECTION === */
  .vm-content {
    max-width: 1920px;
  }

  .vm-box {
    padding: 60px;
    border-radius: 28px;
  }

  .vm-box h2 {
    font-size: 3.2rem;
    margin-bottom: 35px;
  }

  .vm-box p, .vm-box li {
    font-size: 1.4rem;
    line-height: 1.85;
  }

  /* === STRUKTUR ORGANISASI === */
  .struktur-container {
    max-width: 1920px;
  }

  .struktur-card {
    padding: 50px;
    border-radius: 24px;
  }

  .struktur-card h3 {
    font-size: 2.3rem;
    margin-bottom: 18px;
  }

  .struktur-card p {
    font-size: 1.4rem;
  }

  .struktur-card .position {
    font-size: 1.3rem;
  }

  /* === MILESTONE SECTION === */
  .ms-container {
    max-width: 1920px;
    gap: 45px;
  }

  .ms-tile {
    padding: 50px;
    border-radius: 28px;
    min-height: 420px;
  }

  .ms-tile h3 {
    font-size: 2.8rem;
    margin-bottom: 24px;
  }

  .ms-tile .year {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .ms-tile p {
    font-size: 1.45rem;
    line-height: 1.75;
  }

  .ms-tile:hover {
    transform: translateY(-14px) scale(1.02);
    min-height: 450px;
  }

  /* === CONTENT SECTIONS === */
  .content-section {
    max-width: 1920px;
    padding: calc(var(--desktop-padding) * 1.2);
  }

  .content-section h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
  }

  .content-section p {
    font-size: 1rem;
    line-height: 1.85;
  }
  .peta-title, .title-galeri, .galeri-title, .medsos-title, .person-in-charge-title, .visi-title, .misi-title, .awards-title, .struktur-title{
    font-size: 2.5rem !important;
  }
  .nav-links a{
    font-size: 1.8rem !important;
  }
}

/* =============================================
   ULTRA LARGE SCREENS (1921px - 2560px)
   4K and Ultra-wide display optimization
   ============================================= */
@media (min-width: 1921px) and (max-width: 2560px) {
  /* Root Variables - Maximum sizes for ultra-large screens */

  .medsos-grid{ grid-template-columns: 1fr 1fr; align-items:start; } 
  :root {
    --fontXXL: 7.5rem;
    --fontXL: 6rem;
    --fontL: 3.8rem;
    --fontB: 2.6rem;
    --fontMM: 2rem;
    --fontM: 1.5rem;
    --fontS: 1.25rem;
    --desktop-padding: 160px;
    --desktop-gap: 80px;
  }

  /* === PROFILE HEADER === */
  .header-bg {
    height: 750px;
  }

  .header-img {
    height: 750px;
  }

  .profil-title {
    font-size: 6rem !important;
    top: 320px;
    text-shadow: 4px 4px 16px rgba(0, 0, 0, 0.7);
  }

  /* === NAVIGATION === */
  .nav-atas {
    padding: 0 var(--desktop-padding);
  }

  .nav-atas .logo img {
    width: 100px;
    height: 100px;
    margin-top: 16px;
  }

  .nav-atas .logo-text {
    margin-left: 16px;
  }

  .nav-atas .logo-text .desa {
    font-size: 2.1rem;
  }

  .nav-atas .logo-text .kabupaten {
    font-size: 1.55rem;
  }

  .profil-nav {
    top: 700px;
    bottom: auto;
    padding: 0 90px;
    max-width: 2400px;
  }

  .profil-nav.floating {
    max-width: 2400px;
    padding: 0 100px;
  }

  .profil-nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 10px;
  }

  .profil-nav a {
    font-size: 1.7rem !important;
    padding: 15px 25px;
    border-radius: 50px;
    line-height: 1.2;
  }

  /* === DATA DESA SECTION === */
  .data-desa-section {
    padding: 40px;
    min-height: 650px;
  }

  .data-desa-title {
    font-size: 4.5rem;
    top: 0;
  }

  .data-desa-grid {
    max-width: 2400px;
    gap: 45px;
    grid-template-columns: repeat(4, 1fr);
  }

  .data-desa-box {
    font-size: 3rem;
    min-height: 170px;
    padding: 45px;
    border-radius: 28px;
  }

  .data-desa-box strong {
    margin-bottom: 5px;
  }

  /* === TIMELINE SECTION === */
  .timeline {
    max-width: 2400px;
    padding: calc(var(--desktop-padding) * 1.3);
  }

  .timeline::after {
    width: 12px;
  }
  .timeline-year{
    font-size: 2rem !important;
  }

  .timeline-box {
    padding: 50px 70px;
    min-width: 550px;
    border-radius: 30px;
  }

  .timeline-box::after {
    width: 44px;
    height: 44px;
    border-width: 8px;
  }

  .timeline-box::before {
    width: 34px;
    height: 34px;
    border-width: 8px;
  }

  .timeline-content {
    max-width: 550px !important;
    padding: 0 60px !important;
    font-size: 1.55rem !important;
    line-height: 1.85 !important;
  }

  .timeline-content h2 {
    font-size: 3.2rem !important;
    margin-bottom: 30px !important;
  }

  .c-right {
    margin-right: -10rem !important;
    right: -10rem !important;
  }

  .c-left {
    margin-left: -10rem !important;
    left: -10rem !important;
  }

  /* === GALLERY SECTION === */
  .galeri-scroller {
    max-width: 2000px;
    height: 850px;
    margin: calc(var(--desktop-padding) * 1.3) auto;
  }

  .galeri-scroll {
    width: 2000px;
    height: 750px;
  }

  .gallery-slide {
    width: 500px;
    height: 600px;
    border-radius: 30px;
  }

  .gallery-slide:nth-child(1) {
    transform: translateX(-700px) translateZ(-280px) rotateY(20deg);
  }

  .gallery-slide:nth-child(2) {
    transform: translateX(-350px) translateZ(-140px) rotateY(10deg);
  }

  .gallery-slide:nth-child(3) {
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
  }

  .gallery-slide:nth-child(4) {
    transform: translateX(350px) translateZ(-140px) rotateY(-10deg);
  }

  .gallery-slide:nth-child(5) {
    transform: translateX(700px) translateZ(-280px) rotateY(-20deg);
  }

  .galeri-ctrl {
    width: 85px;
    height: 85px;
    font-size: 34px;
    border-width: 6px;
  }

  .slide-overlay h3 {
    font-size: 2.8rem;
    margin-bottom: 18px;
  }

  .slide-overlay p {
    font-size: 1.6rem;
    line-height: 1.8;
  }

  /* === SECTION TITLES === */
  .section-title {
    font-size: 4.6rem;
    margin: calc(var(--desktop-padding) * 1.3) 0 calc(var(--desktop-gap) * 1.3) 0;
  }

  /* === VISI MISI SECTION === */
  .vm-content {
    max-width: 2400px;
    padding: 0 var(--desktop-padding);
    gap: calc(var(--desktop-gap) * 1.2);
  }

  .vm-box {
    padding: 80px;
    border-radius: 32px;
  }

  
  .vm-box h2 {
    font-size: 3.8rem;
    margin-bottom: 45px;
  }

  .vm-box p, .vm-box li {
    font-size: 1.65rem;
    line-height: 1.95;
    margin-bottom: 18px;
  }

  /* === STRUKTUR ORGANISASI === */
  .struktur-container {
    max-width: 2400px;
    padding: 0 var(--desktop-padding);
  }

  .struktur-card {
    padding: 65px;
    border-radius: 30px;
  }

  .struktur-card h3 {
    font-size: 2.7rem;
    margin-bottom: 22px;
  }

  .struktur-card p {
    font-size: 1.65rem;
  }

  .struktur-card .position {
    font-size: 1.5rem;
  }
.struktur-content {
    padding: var(--desktop-padding);
    max-width: 50%;
    min-height: 0;
    box-sizing: border-box;
  }
  .struktur-menu{
    width: 1600px;
    gap: 50px;
  }
  .struktur-tab{
    font-size: 2.5rem;
    padding: 30px 40px;
    border-radius: 40px;
    min-width: auto;
    flex: 0 0 auto;
  }

  .struktur-org-title {
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
  }
  
  .struktur-list {
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .struktur-list li {
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
  }
  
  .struktur-list-img .struktur-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .struktur-org-img-wrapper {
    text-align: center;
  }
  
  .struktur-org-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .struktur-pdf-btn {
    padding: 12px 20px;
    font-size: 2.5rem;
    border-radius: 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  

  /* === MILESTONE SECTION === */
  .ms-container {
    max-width: 2400px;
    padding: 0 var(--desktop-padding);
    gap: 60px;
  }

  .ms-tile {
    padding: 70px;
    border-radius: 34px;
    min-height: 520px;
  }

  .ms-tile h3 {
    font-size: 3.4rem;
    margin-bottom: 30px;
  }

  .ms-tile .year {
    font-size: 5rem;
    margin-bottom: 26px;
  }

  .ms-tile p {
    font-size: 1.7rem;
    line-height: 1.85;
  }

  .ms-tile:hover {
    transform: translateY(-18px) scale(1.03);
    min-height: 560px;
  }

  /* === CONTENT SECTIONS === */
  .content-section {
    max-width: 2400px;
    padding: calc(var(--desktop-padding) * 1.3);
  }

  .content-section h2 {
    font-size: 4.2rem;
    margin-bottom: 50px;
  }

  .content-section p {
    font-size: 1.4rem;
    line-height: 1.95;
  }

  /* === ADDITIONAL ELEMENTS === */
  .card, .box, .panel {
    border-radius: 28px;
    padding: 50px;
  }

   .btn, .button {
    font-size: 1.5rem;
    padding: 18px 36px;
    border-radius: 16px;
  }

  /* === TABLE ELEMENTS === */
  table {
    font-size: 1.5rem;
  }

  th, td {
    padding: 20px 28px;
  }

  /* === FORM ELEMENTS === */
  input, textarea, select {
    font-size: 1.5rem;
    padding: 16px 24px;
    border-radius: 14px;
  }

  .peta-title, .title-galeri, .galeri-title, .medsos-title, .person-in-charge-title, .visi-title, .misi-title, .awards-title, .struktur-title, .sejarah-header h2 {
    font-size: 5rem !important;
  }
  .nav-links a{
    font-size: 2rem !important;
  }

    .data-desa-awards{
    display:grid !important;
    grid-template-columns:repeat(auto-fit, minmax(40px,1fr)) !important;
    gap: 624px !important;
    max-width: 1400px !important;
    margin:10px!important;
    padding:0 16px !important;
    align-items: center !important;
  }
  .award-card{
    height: 700px !important;
    width: 650px !important;
    right: 300px;
  }
 
                .award-badge{
                  position:absolute;
                  left:12px;
                  top:12px;
                  background:linear-gradient(135deg,#133E87,#608BC1);
                  color:#fff;
                  font-weight:700;
                  padding:10px 20px !important;
                  border-radius:999px;
                  font-size:2rem !important;
                  box-shadow:0 6px 16px rgba(0,0,0,.18);
                }
                .award-body{
                  padding:14px 16px 18px;
                  color:#254a8a;
                }
                .award-body h4{
                  margin:2px 0 6px;
                  font-size:2rem !important;
                  color:#133E87;
                }
                .award-body p{
                  margin:0 0 10px;
                  font-size:2rem !important;
                  line-height:1.45;}

}

/* Additional fix for large screens - broader range to ensure awards spacing */

/* Small tablet responsive adjustments (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .nav-links,
    .nav-wrapper nav .main-nav .nav-links,
    .profil-nav ul {
        gap: 20px;
    }
    
    .nav-links li:not(:last-child)::after,
    .nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after,
    .profil-nav ul li:not(:last-child)::after {
        right: -10px;
        height: 50%;
        opacity: 0.7;
    }
}



@media (max-width: 1100px){
.main-nav a{
    font-size: 1rem;
}
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .image-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .grid-item.large {
        grid-column: span 4;
    }
    
    .grid-item.wide {
        grid-column: span 8;
    }
}


 .awards-title{ text-align:center;
                color:#fff;
                font-family:'Playfair Display SC',serif;
                letter-spacing:2px;
                margin:40px 0 16px;
                font-size:2rem;
                text-shadow:0 3px 16px rgba(0,0,0,.25);
              }    
                .data-desa-awards{
                  display:grid;
                  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
                  gap:28px;
                  max-width:1100px;
                  margin:10px auto 40px;
                  padding:0 16px;
                }
                .award-card{
                  position:relative;
                  background:linear-gradient(180deg,rgba(255,255,255,.86) 0%, rgba(214,227,243,.95) 100%);
                  border:1px solid rgba(255,255,255,.6);
                  border-radius:16px;
                  box-shadow:0 10px 26px rgba(0,0,0,.12);
                  overflow:hidden;
                  transition:transform .28s ease, box-shadow .28s ease;
                }
                .award-card:hover{
                  transform:translateY(-4px);
                  box-shadow:0 18px 40px rgba(0,0,0,.20);
                }    
                .award-media{
                  position:relative;
                  aspect-ratio:16/9;
                  overflow:hidden;
                }
                .award-img{
                  width:100%;
                  height:100%;
                  object-fit:cover;
                  display:block;
                  filter:saturate(1.05) contrast(1.03);
                } 
                .award-badge{
                  position:absolute;
                  left:12px;
                  top:12px;
                  background:linear-gradient(135deg,#133E87,#608BC1);
                  color:#fff;
                  font-weight:700;
                  padding:6px 10px;
                  border-radius:999px;
                  font-size:.78rem;
                  box-shadow:0 6px 16px rgba(0,0,0,.18);
                }
                .award-body{
                  padding:14px 16px 18px;
                  color:#254a8a;
                }
                .award-body h4{
                  margin:2px 0 6px;
                  font-size:1.1rem;
                  color:#133E87;
                }
                .award-body p{
                  margin:0 0 10px;
                  font-size:.96rem;
                  line-height:1.45;}

                .award-view{
                  appearance:none;
                  border:none;
                  border-radius:999px;
                  padding:8px 14px;
                  background:linear-gradient(135deg,#133E87,#608BC1);
                  color:#fff;
                  font-weight:700;
                  cursor:pointer;
                  box-shadow:0 8px 18px rgba(0,0,0,.18);
                } 
                .award-view:hover{filter:brightness(1.05);}    
                /* Modal Gallery */
                .awards-modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:9999;}
                .awards-modal.open{display:flex;}
                .awards-modal-content{position:relative;width:min(92vw,1080px);height:min(82vh,720px);background:#0b2657;border-radius:12px;box-shadow:0 18px 60px rgba(0,0,0,.5);overflow:hidden;border:1px solid rgba(255,255,255,.18);}    
                .awards-slider{height:100%;display:flex;touch-action:pan-y;transition:transform .35s ease;position:relative;z-index:1;}
                .awards-slide{min-width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#0b2657;}
                .awards-slide img{max-width:100%;max-height:100%;object-fit:contain;} 
                .awards-close,.awards-prev,.awards-next{position:absolute;top:12px;width:40px;height:40px;border:none;border-radius:50%;background:rgba(255,255,255,.9);color:#133E87;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.25);z-index:2;} 
                .awards-close{right:12px;}
                .awards-prev{left:12px;top:calc(50% - 20px);}
                .awards-next{right:12px;top:calc(50% - 20px);}
                @media (max-width: 600px){ .award-body p{font-size:.9rem;} .awards-modal-content{height:80vh;} }

                @media (min-width: 600px) and (max-width: 930px){
                    /* Make awards horizontally scrollable on small tablets */
                    .data-desa-awards{
                        display:flex !important;
                        overflow-x:auto;
                        overflow-y:visible;
                        gap:18px;
                        width: 100%;
                        max-width: 100vw;
                        padding: 0 20px 14px;
                        margin: 10px 0 40px;
                        scroll-snap-type: x proximity;
                        scroll-padding: 0 20px;
                        -webkit-overflow-scrolling: touch;
                        scrollbar-width: thin;
                        scrollbar-color: rgba(19,62,135,.6) transparent;
                    }
                    .data-desa-awards::-webkit-scrollbar{height:8px}
                    .data-desa-awards::-webkit-scrollbar-track{background:transparent}
                    .data-desa-awards::-webkit-scrollbar-thumb{
                        background:linear-gradient(135deg,#133E87,#608BC1);
                        border-radius:999px;
                    }
                    .award-card{
                        flex: 0 0 clamp(340px, 76vw, 520px);
                        scroll-snap-align: start;
                    }
                                        /* Text cue under the title */
                    .awards-title::after{
                        content:'Geser untuk melihat lainnya →';
                        display:block;
                        font-family:'Karma', serif;
                        font-weight:600;
                        font-size:2rem;
                        opacity:.9;
                        color:#fff;
                        margin-top:6px;
                    }
                }

        
@media (max-width: 900px){
    .peta-panel{grid-template-columns:1fr;gap:14px}
}
@media (max-width:600px){
    .peta-title{font-size:1.6rem}
    .peta-desc p{font-size:.95rem}
    .peta-caption{font-size:.78rem}
}

/* Responsive adjustments for markers */

@media (max-width: 900px) {
    .map-container {
        grid-template-columns: 1fr; /* stack on tablet/mobile */
    }
    .map-pane .map-image { min-height: 360px; }
}
@media (max-width: 900px){
    .facilities-pane .facility-grid {
    display: grid;
grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

    .facilities-pane {
        max-height: 400px !important;
        overflow: hidden !important;
        position: relative;
    }
    .facilities-pane.expanded {
        max-height: none !important;
        overflow: visible !important;
    }
    .facilities-pane::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 56px;
        background: linear-gradient(180deg, rgba(247,249,252,0), rgba(247,249,252,1));
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .facilities-pane.expanded::after {
        opacity: 0;
    }
    .facilities-toggle-btn {
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        background: var(--primary-color) !important;
        color: white !important;
        border: none !important;
        padding: 8px 16px !important;
        border-radius: 16px !important;
        font-size: var(--fontS) !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        transition: all 0.25s ease !important;
    }
    .facilities-toggle-btn:hover {
        background: var(--secondary-color) !important;
        transform: translateX(-50%) translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    }
    .facilities-pane.expanded .facilities-toggle-btn {
        position: static !important;
        transform: none !important;
        margin: 12px auto 0 !important;
        display: block !important;
    }
}

@media (max-width: 400px){
    .facilities-pane .facility-grid {
    display: grid;
grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}
}

/* Awards horizontal scroll for small tablets (600px–930px) */
@media (min-width: 600px) and (max-width: 930px){
  .data-desa-awards{
    display: flex !important;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
    padding: 0 20px 14px;
    margin: 10px 0 40px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 20px;
  }
  .data-desa-awards{ scrollbar-width: thin; scrollbar-color: rgba(19,62,135,.6) transparent; }
  .data-desa-awards::-webkit-scrollbar{ height: 8px; }
  .data-desa-awards::-webkit-scrollbar-track{ background: transparent; }
  .data-desa-awards::-webkit-scrollbar-thumb{ background: linear-gradient(135deg,#133E87,#608BC1); border-radius: 8px; }

  .award-card{
    flex: 0 0 clamp(340px, 76vw, 520px);
    scroll-snap-align: start;
  }

  .awards-title{ position: relative; }
  .awards-title::after{
    content: 'Geser untuk melihat lainnya →';
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-align: center;
    letter-spacing: .5px;
  }
}
/* Tablet timeline adjustments to prevent overlap and maintain center alignment */
@media (min-width: 601px) and (max-width: 900px) {
    .timeline { 
        max-width: 95vw; 
        padding: 0 20px; 
    }
    .timeline:before {
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
    }
    .timeline-row {
        align-items: flex-start;
    }
    .timeline-row:after {
        left: 50%;
        top: 18px;
        transform: translateX(-50%);
        width: 18px;
        height: 18px;
        border-width: 4px;
    }
    .timeline-content {
        max-width: 450px;
        padding: 16px 20px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .timeline-content.c-left { margin-left: -1rem; }
    .timeline-content.c-right { margin-right: -1rem; }
}

@media (min-width: 900px){
    
    /* Tighten timeline gutter near the center line for better organization */
    .timeline { 
        max-width: 1100px; 
        padding: 0 32px;
        margin: 0 auto;
    }
    .timeline:before {
        left: 50%;
        transform: translateX(-50%);
    }
    /* Consistent small gutter from the center line */
    .timeline-row.left .timeline-content { margin-right: 14px; }
    .timeline-row.right .timeline-content { margin-left: 14px; }

    /* Neutralize previous negative offsets so content isn't pushed away */
    .timeline-content.c-left { margin-left: 0 !important; }
    .timeline-content.c-right { margin-right: 0 !important; }

    /* Slightly larger readable width on desktop without looking detached */
    .timeline-content { max-width: 420px; }

    /* Side accent near the center line for better visual grouping */
    .timeline-row.left .timeline-content { box-shadow: inset -2px 0 0 rgba(255,255,255,0.22); }
    .timeline-row.right .timeline-content { box-shadow: inset 2px 0 0 rgba(255,255,255,0.22); }
}
/* hide separators on small screens to avoid clutter */

/* === MOBILE BOTTOM NAVIGATION === */
    .mobile-bottom-nav {
        padding: 6px 0;
        margin-bottom: 10px;
    }
    
    .mobile-nav-container {
        padding: 0 8px;
    }
    
    .mobile-nav-item {
        padding: 6px 8px;
        min-width: 50px;
        border-radius: 10px;
    }
    
    .mobile-nav-icon {
        width: 16px !important;
        height: 16px !important;
        margin-bottom: 2px !important;
    }
    
    .mobile-nav-label {
        font-size: 0.65rem;
    }
    
    @media (max-width: 900px) {
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px 0;
    }
    
    .mobile-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
        padding: 8px 12px;
        border-radius: 12px;
        min-width: 60px;
    }
    
    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: var(--white-color);
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }
    
    .mobile-nav-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }
    
    .mobile-nav-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }
    
    .mobile-nav-label {
        font-size: 0.7rem;
        font-weight: 500;
        text-align: center;
        line-height: 1.2;
    }

    .site-footer {
    padding: 100px 0 120px 0;
    }
}

@media (min-width: 901px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
/* =============================================
     ULTRA-MODERN BOTTOM NAVIGATION
     ============================================= */
@media (max-width: 900px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    left: 0;
    right: 0;
    transform: none;
    display: none; /* Hidden by default, shown only on mobile */
    justify-content: center;
    align-items: center;
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
    z-index: 10000;
    pointer-events: none; /* allow clicks only on the inner container */
  }

  .mobile-nav-container {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    width: min(560px, calc(100vw - 24px));
    background: linear-gradient(135deg, rgba(19,62,135,0.82) 0%, rgba(96,139,193,0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    overflow: hidden;
    margin: 0 auto; /* Perfect centering with auto margins */
    pointer-events: auto; /* receive clicks */
  }

  .mobile-nav-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, transparent, rgba(203, 220, 235, 0.07), transparent 30%, rgba(255, 255, 255, 0.08), transparent 60%);
    animation: rotate 28s linear infinite;
    pointer-events: none;
    opacity: 0.5;
  }

  @keyframes rotate {
    to { transform: rotate(360deg); }
  }

  .mobile-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), color 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
    background: transparent;
    border-radius: 16px;
    z-index: 1;
  }

  .mobile-nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  }

  .mobile-nav-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-family: 'karma', serif;
  }

  /* Active State with Morphing Effect */
  .mobile-nav-item.active {
    color: #fff;
    transform: translateY(-8px) scale(1.1);
  }

  .mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 42px;
    background: linear-gradient(135deg, rgba(109,152,238,0.9) 0%, rgba(181,210,246,0.9) 100%);
    border-radius: 14px;
    transform: translate(-50%, -50%);
    z-index: -1;
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.45);
    animation: pulseGlow 2s ease-in-out infinite;
  }

  @keyframes pulseGlow {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
      box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    50% {
      transform: translate(-50%, -50%) scale(1.1);
      box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    }
  }

  .mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.2) rotate(5deg);
  }

  .mobile-nav-item.active .mobile-nav-icon svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  }

  .mobile-nav-item.active .mobile-nav-label {
    opacity: 1;
    font-weight: 700;
    transform: scale(1.05);
  }

  /* Smooth hover effects */
  .mobile-nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.98);
    transform: translateY(-4px) scale(1.06);
  }
  .mobile-nav-item:hover:not(.active) .mobile-nav-icon {
    transform: translateY(-2px) scale(1.12);
  }
  .mobile-nav-item:hover:not(.active) .mobile-nav-icon svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  }
  .mobile-nav-item:hover:not(.active) .mobile-nav-label {
    opacity: 0.95;
  }
  .mobile-nav-item:hover:not(.active)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 36px;
    background: linear-gradient(135deg, rgba(109,152,238,0.35), rgba(181,210,246,0.35));
    border-radius: 12px;
    transform: translate(-50%, -50%) scale(0.98);
    z-index: -1;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.25);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
  }
  .mobile-nav-item:active {
    transform: translateY(-2px) scale(0.98);
  }
  .mobile-nav-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(203,220,235,0.45);
  }

  /* Ripple Effect */
  .mobile-nav-item {
    position: relative;
    overflow: hidden;
  }

  .mobile-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
  }

  .mobile-nav-item.ripple::after {
    width: 100px;
    height: 100px;
  }

  /* Show on mobile only */
  @media (max-width: 900px) {
    .mobile-bottom-nav { 
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)) !important;
    }
    .mobile-nav-container { 
      margin: 0 auto !important; 
      width: min(560px, calc(100vw - 24px)) !important; 
      max-width: calc(100vw - 24px) !important;
    }
  }

  /* Extra small screens */
  @media (max-width: 375px) {
    .mobile-nav-container {
      width: calc(100vw - 20px) !important;
      max-width: calc(100vw - 20px) !important;
      padding: 6px 8px !important;
      gap: 4px !important;
    }
    
    .mobile-bottom-nav {
      padding-inline: 10px !important;
    }
  }

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

  /* High contrast support */
  @media (prefers-contrast: high) {
    .mobile-nav-item {
      border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .mobile-nav-item.active {
      border-color: #fff;
    }
  }

  /* Compact mode for ultra-small screens */
  @media (max-width: 360px) {
    .mobile-nav-label { display: none; }
    .mobile-nav-item { padding: 12px 10px; }
    .mobile-nav-icon { width: 28px; height: 28px; }
  }
}

/* =============================================
   DESKTOP SUBMENU STYLES
   ============================================= */
@media (min-width: 901px) {
  .submenu {
    display: none !important;
  }

  .mobile-menu-list {
    display: none !important;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS FOR ALL NAVBAR DIVIDERS ===== */

/* Tablet responsive adjustments (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links,
    .nav-wrapper nav .main-nav .nav-links,
    .profil-nav ul {
        gap: 24px;
    }
    
    .nav-links li:not(:last-child)::after,
    .nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after,
    .profil-nav ul li:not(:last-child)::after {
        right: -12px;
        height: 55%;
    }
}

/* Small tablet responsive adjustments (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .nav-links,
    .nav-wrapper nav .main-nav .nav-links,
    .profil-nav ul {
        gap: 20px;
    }
    
    .nav-links li:not(:last-child)::after,
    .nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after,
    .profil-nav ul li:not(:last-child)::after {
        right: -10px;
        height: 50%;
        opacity: 0.7;
    }
}

/* Hide dividers on mobile (768px and below) where hamburger menu is used */
@media (max-width: 768px) {

  .nav-atas{
        margin-top: 10px;
    }
    .nav-links li:not(:last-child)::after,
    .nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after,
    .profil-nav ul li:not(:last-child)::after {
        display: none;
    }
}


/* ========================================
     MOBILE TIMELINE - NO OVERLAP DESIGN
     ======================================== */
@media (min-width: 320px) and (max-width: 900px) {
  .timeline {
    max-width: 100% !important;
    padding: 0 15px !important;
    position: relative;
  }
  
  /* Vertical timeline line - positioned on the left side */
  .timeline:before {
    left: 30px !important;
    width: 3px !important;
    transform: none !important;
  }
  
  .timeline-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    margin-bottom: 60px !important;
    padding-left: 60px !important;
    min-height: 50px !important;
    /* Initial hidden state for scroll animation */
    opacity: 0 !important;
    transform: translateX(-30px) translateY(20px) !important;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  /* Show animation when timeline row comes into view */
  .timeline-row.show {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
  }
  
  /* Staggered animation delays for sequential appearance */
  .timeline-row:nth-child(1) { transition-delay: 0s !important; }
  .timeline-row:nth-child(2) { transition-delay: 0.1s !important; }
  .timeline-row:nth-child(3) { transition-delay: 0.2s !important; }
  .timeline-row:nth-child(4) { transition-delay: 0.3s !important; }
  .timeline-row:nth-child(5) { transition-delay: 0.4s !important; }
  .timeline-row:nth-child(6) { transition-delay: 0.5s !important; }
  .timeline-row:nth-child(7) { transition-delay: 0.6s !important; }
  .timeline-row:nth-child(8) { transition-delay: 0.7s !important; }
  
  /* Reset justify-content for mobile - no difference between left/right */
  .timeline-row.left,
  .timeline-row.right {
    justify-content: flex-start !important;
  }
  
  /* Point ball - positioned on the left timeline line */
  .timeline-row:after {
    position: absolute !important;
    left: 30px !important;
    top: 0 !important;
    transform: translateX(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    border-width: 3px !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    z-index: 10 !important;
    background: #fff !important;
    border-color: #254a8a !important;
  }

  
  /* Timeline content - positioned to the right of the point ball */
  .timeline-content {
    position: relative !important;
    width: 100% !important;
    max-width: calc(100vw - 110px) !important;
    padding: 14px 18px !important;
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-20px) scale(0.9) !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }
  
  /* Remove negative margins that cause overlap */
  .timeline-content.c-right,
  .timeline-content.c-left {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Show content when timeline-row comes into view (on scroll) */
  .timeline-row.show .timeline-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
    pointer-events: auto !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25) !important;
  }
  
  /* Active point ball styling when in view - more prominent */
  .timeline-row.show:after {
    width: 32px !important;
    height: 32px !important;
    background: linear-gradient(135deg, #7296cb 0%, #5a7eb8 100%) !important;
    border-color: #fff !important;
    border-width: 4px !important;
    box-shadow: 
      0 0 0 6px rgba(114, 150, 203, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: translateX(-50%) scale(1.05) !important;
  }
  
  /* Timeline year badge */
  .timeline-year {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    padding: 5px 10px !important;
    display: inline-block !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  /* Timeline content text */
  .timeline-content p {
    margin: 0 !important;
    color: #fff !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }
  
  /* Add connecting line from point ball to content (visual enhancement) */
  .timeline-row.show:before {
    content: '' !important;
    position: absolute !important;
    left: 44px !important;
    top: 14px !important;
    width: 16px !important;
    height: 2px !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%) !important;
    z-index: 5 !important;
    transition: all 0.3s ease !important;
  }
}