@import url('https://fonts.googleapis.com/css?family=Poppins:500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rancho&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: white;
    
}

html,
body {
    overflow-x: hidden;
     margin: 0;
    padding: 0;
    width: 100%;
    
    
    /* To prevent Horizontal scroll */
}

main, section {
    margin-bottom: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0a1a2f;
    margin: 0;
    padding: 0;

    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    /* To scrolling animation */
    scroll-snap-type: none;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5em 5em;
    display: flex;
    flex-direction: column;   /* THIS makes text appear above nav */
    align-items: center;
    z-index: 10000;

    background: rgba(0, 53, 73, 0.6); /* transparent blue */
    backdrop-filter: blur(5px); /* glass effect */
    /* Header shld be above everything */
}

.header-left{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:10px;
}

.jabatan-name{
    font-size:1.7em;
    font-weight:600;
    line-height:1.2;
    text-align:center;
}

#header .logo {
    color: #002431;
    font-weight: 800;
    font-size: 2.5em;
    text-decoration: none;
    /* To prevent Underline */
}

#header ul {
    display: flex;
    /* To get elements in row */
    justify-content: space-around;
    align-items: center;
}

#header ul li {
    list-style: none;
    /* To Remove dot */
    margin: 0px 20px;
}

#header ul li a {
    text-decoration: none;
    /* To prevent Underline */
    padding: 6px 15px;
    color: white;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
}

#header ul li a:hover,
#header ul li a.active {
    background: white;
    color: #003549;
}

/* Logo image size */
#header .logo img {
    height: 80px;
    width: auto;
    display: block;

    
}

img {
    max-width: 100%;
    height: auto;
}

#touch{
    position:absolute;
    bottom:70px;
    left:50%;
    transform:translateX(-50%);
    font-size:1.6em;
    letter-spacing:3px;
    color:white;
    font-weight:500;
    animation: blink 2s infinite;
    z-index:60;   /* VERY IMPORTANT */
    text-align:center;
}

@keyframes blink{
    0%,100%{opacity:1;}
    50%{opacity:0.4;}
}

/* The Section Body... Set it to max size of screen */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* To blend section color with water color */
section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    filter: blur(1px);
    z-index: 10;
}

/* Make all images absolute and cover whole screen */


.top-section img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    pointer-events:none;
}




#rocks{
     width: 100%;
    max-width: 800px;
    height: auto;
    bottom: 40px;
    left: 0;

    
}


/* Properites for th text on top section  */
section #text span {
    font-size: 0.6em;
    letter-spacing: 2px;
    font-weight: 400;
    color: white;
    letter-spacing: 6px;
}

section #text {
    position: absolute;
    color: white;
    font-size: 5vw;
    text-align: center;
    line-height: 0.9em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transform: translateY(-50%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* center horizontally and vertically */
    z-index: 50; /* higher than all background images */
}


/* The explore Button */
#explore {
    text-decoration: none;
    /* To prevent Underline */
    padding: 8px 25px;
    background: white;
    color: #003549;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 40px;
    transform: translateY(140px);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    /* To move it 100px below from center */
}

#explore:hover {
    background: #003549;
    color: white;
}

/* Propeties of Top button */
#top {
    position: fixed;
    width: 50px;
    height: 50px;
    background: #4faa2e;
    bottom: 10%;
    right: 5%;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    color: white;
    font-size: 25px;
    border-radius: 50%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}



/* Glass Effect */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-Left: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    padding: 1em;
    margin-bottom: 2%;
}
.glass h3 {
    color: #003549;
}

.glass p, 
.glass li, 
.glass h4 {
    color: #003549;
}
section {
    margin-bottom: 0;
}

/* Properties for middle section (below water) */
.sec {
    position: relative;
    background: #f5f7fa;
    color: #003549;
    padding: 10px 20px;
    z-index: 50;
    overflow: hidden;
}
.visi-misi-section{
    background: #f5f7fa;
     margin-top: 0;
     width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 20px;
}

.section-title{
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: #003549;
    margin-bottom: 40px;
    letter-spacing: 2px;
}


/* =========================
   GOV VISI & MISI (KIOSK UI UPGRADE)
   RESPONSIVE + INTERACTIVE
   NO FONT SIZE CHANGES
========================= */


.gov-section{
    padding: 40px 20px 10px;   /* tighter spacing (fix empty gap) */
    background: transparent;
    position: relative;
    overflow: visible;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* container */
.gov-container{
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
.gov-header{
    text-align: center;
    margin-bottom: 25px;
}

.gov-header h2{
    color: #003549;
    letter-spacing: 3px;
}

.gov-line{
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, #0b5e8e, #4faa2e);
    margin: 10px auto;
    border-radius: 5px;
}



/* CARD BASE */
.gov-card{
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 28px;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;

    /* smooth feel */
    transition: all 0.35s ease;
}

/* subtle animated top glow */
.gov-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0b5e8e, #4faa2e);
    transition: 0.5s;
}

/* HOVER / TOUCH FEEDBACK */
.gov-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.gov-card:hover::before{
    left: 0;
}

/* TITLES */
.gov-card h3{
    color: #003549;
    margin-bottom: 12px;
    letter-spacing: 2px;
    position: relative;
}

/* TEXT */
.gov-card p,
.gov-card ul{
    color: #333;
    line-height: 1.8em;
}

/* LIST */
.gov-card ul{
    padding-left: 20px;
}

/* ICON EFFECT (optional but subtle professional feel) */
.gov-card h3::after{
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #0b5e8e;
    margin-top: 6px;
}

/* MOBILE OPTIMIZATION */
@media screen and (max-width: 768px){
    .gov-section{
        padding: 25px 15px 5px;
    }

    .gov-card{
        padding: 20px;
    }
}

/* =========================
   GOVERNMENT FOOTER (UPGRADED)
========================= */

.gov-footer{
    background: #0b2f3a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    padding-top: 40px;
     width: 100%;
    margin: 0;
}

/* MAIN GRID */
.gov-footer-container{
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;

    align-items: start;
}

/* FOOTER COLUMNS */
.gov-footer-col{
    text-align: left;
}

/* HEADINGS */
.gov-footer-col h3{
    font-size: 1.3em;
    margin-bottom: 12px;
}

.gov-footer-col h4{
    font-size: 1.1em;
    margin-bottom: 15px;
    border-left: 3px solid #4faa2e;
    padding-left: 10px;
}

/* TEXT */
.gov-footer-col p{
    font-size: 0.95em;
    line-height: 1.6em;
    opacity: 0.9;
}

/* LINKS */
.gov-footer-col ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.gov-footer-col ul li{
    margin-bottom: 10px;
}

.gov-footer-col ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.85;
    transition: 0.2s;
    display: inline-block;
}

.gov-footer-col ul li a:hover{
    opacity: 1;
    color: #4faa2e;
    transform: translateX(5px);
}

/* ICONS */
.footer-icons{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-icons .icon{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);

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

    color: white;
    font-size: 18px;

    transition: 0.3s ease;
}

.footer-icons .icon:hover{
    transform: translateY(-4px);
    background: #4faa2e;
}

/* BOTTOM BAR */
.gov-footer-bottom{
    margin-top: 30px;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px){

    .gov-footer-container{
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: left;
    }

    .gov-footer-col{
        text-align: left;
    }

    .footer-icons{
        justify-content: flex-start;
    }

    .gov-footer-col h3{
        font-size: 1.1em;
    }

    .gov-footer-col h4{
        font-size: 1em;
    }

    .gov-footer-col p,
    .gov-footer-col ul li a{
        font-size: 0.9em;
    }
}

.content-wrapper {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}












.sec h2 {
    font-family: 'Poppins', sans-serif; /* formal sans-serif */
    font-weight: 800; /* bold for emphasis */
    font-size: 4em; /* increase size for "Selamat Datang" */
    color: #003549;
    text-align: center;
    line-height: 1.2em;
    margin-bottom: 30px;
}

.sec #name {
    font-family: 'Poppins', sans-serif; /* formal sans-serif */
    font-weight: 500; /* medium weight */
    font-size: 1.5em; /* smaller than main greeting */
    color: white;
    text-align: center;
    line-height: 1.4em;
}

.sec h3 {
    font-size: 1.8em;
    margin: 2%;
    font-family: 'Poppins', sans-serif; 
    color: #003549;
}

.sec h4 {
    font-size: 1.2em;
    text-decoration: underline;
    font-weight: 600;
    color: #003549;
}

.sec p {
    margin: 10px 20px 40px;
    font-family: 'Poppins', sans-serif; /* Body text use Poppins for clarity */
    color: #003549;
    font-weight: 400; 
}

.sec ul {
    margin: 0 5%;
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* normal for body text */
    color: #003549;
}

.sec ul li {
    margin: 2%;
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* normal for body text */
    color: #003549;
}


/* Make all fishes image as absolute.. To overlap with background */
.fishes {
    position: absolute;
    opacity: 0.8;
}

/* Properties for each fish and sea bed*/
#fish1 {
    top: 0%;
}

#fish2 {
    top: 32%;
}

#fish3 {
    top: 60%;
}

#fish4 {
    top: 87%;
}

#seabed {
    width: 100%;
    left: 0;
    bottom: 0;
    opacity: 1;
}
.top-section{
    position: relative;
    overflow: hidden;
}

/* ALL background images */
.top-section img{
    z-index: 1;
}
.bubbles{
    position: absolute;
    inset: 0;
    z-index: 3;
}
.bubbles img{
    position: absolute;
    width:40%;
    height:40%;
    opacity: 0.25;
    animation: floatLeaf 10s linear infinite;
}
.bubbles img:nth-child(1){
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.bubbles img:nth-child(2){
    left: 55%;
    top: 40%;
    animation-delay: 2s;
}

.bubbles img:nth-child(3){
    left: 80%;
    top: 70%;
    animation-delay: 4s;
}
.bubbles img:nth-child(1){
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.bubbles img:nth-child(2){
    left: 55%;
    top: 40%;
    animation-delay: 2s;
}

.bubbles img:nth-child(3){
    left: 80%;
    top: 70%;
    animation-delay: 4s;
}

/* text */
#text, #touch, #explore{
    z-index: 5;
    position: absolute;
}

/* bubbles MUST be above background but below text */
.sea-life{
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.undersea {
    position: absolute;
    opacity: 1;
}

#sea1 {
    top: 10%;
    left: 1%;
    width: 20%;
}

#sea2 {
    top: 16%;
    right: 1%;
    width: 10%;
}

#sea3 {
    top: 40%;
    left: 0;
    width: 12%;
}

#sea4 {
    top: 50%;
    right: 0;
    width: 12%;
}

#sea5 {
    top: 70%;
    left: 1%;
    width: 10%;
}

#sea6 {
    top: 75%;
    right: 2%;
    width: 6%;
}

#sea7 {
    top: 90%;
    right: 70%;
    width: 10%;
}

#sea8 {
    bottom: 0;
    left: 55%;
    width: 10%;
    z-index: 100;
}


  

.gov-card.active .card-details{
    max-height: 300px;
}

/* GRID */
.gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}


.gov-card:hover {
    transform: translateY(-5px);
}

/* ICON + TITLE */
.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.card-top i {
    font-size: 22px;
    color: #1e3a8a;
}

/* SHORT TEXT */
.short {
    margin-top: 10px;
    color: #555;
}

/* HIDDEN DETAILS (ACCORDION) */
.card-details {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    margin-top: 10px;
}

.gov-card.active .card-details {
    max-height: 200px;
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


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

/* Properties for mobile */
@media screen and (max-width: 650px) {

    #header {
        padding: 1em 2em;
        display: flex;
        flex-direction: column;
        justify-content: center;
         position: relative;
    }


    #header ul {
        padding: 0.5em;
    }

    section #text {
        font-size: 20vw;
        /* Adjust text size acc to screen size */
    }

    /* Using contian to make img fit mobile screen size */
    /* height and width chnages size and position */
    section img#cloud {
        object-fit: contain;
        height: 600px;
        width: 600px;
    }

    section img#bird1 {
    width: 200px !important;
    height: auto !important; /* maintains aspect ratio */
    object-fit: contain !important;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

    section img#bird2 {
        object-fit: contain;
        height: 750px;
        width: 500px;
    }

    /* Adjust text content acc to screen size */
    .sec ul li {
        margin: 20px;
    }

    .sec ul {
        margin: 0px 0px;
    }

    .sec h3 {
        font-size: 1.5em;
        margin: 20px 0px;
    }

    .sec p {
        margin: 1% 4%;
    }

    #seabed {
        object-fit: contain;
        left: 0;
        width: 750px;
    }
    .service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

    .glass {
    background: white;
    color: #003549;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.glass:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.glass h3 {
    color: #003549;
    font-size: 1.4em;
    margin-bottom: 15px;
    border-left: 5px solid #085a7a;
    padding-left: 10px;
}
.glass ul {
    padding-left: 20px;
}
.content-wrapper{
    max-width:1200px;
    margin:auto;
    text-align:center;
}



    #sea1 {
        top: 7%;
        width: 40%;
    }

    #sea2 {
        top: 25%;
        width: 20%;
    }

    #sea3 {
        top: 42%;
        width: 25%;
    }

    #sea4 {
        top: 52%;
        width: 25%;
    }

    #sea5 {
        top: 72%;
        left: 1%;
        width: 20%;
    }

    #sea6 {
        top: 80%;
        right: 2%;
        width: 15%;
    }

    #sea7 {
        top: 96%;
        left: 1%;
        width: 20%;
    }

    #sea8 {
        left: 50%;
        width: 15%;
    }
}

/* PERKHIDMATAN PAGE */

.perkhidmatan-section {
    width: 100%;
    margin: 0;
    padding: 60px 0 40px;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.perkhidmatan-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.perkhidmatan-grid {
    display: flex;
    gap: 25px;
    height: auto;

    overflow-x: auto;           /* IMPORTANT */
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch; /* smooth iOS swipe */
    touch-action: pan-x;               /* allow horizontal swipe */

    padding: 20px 10px;
    margin-top: 10px;

    cursor: grab;
    scroll-padding-left: 10px;
    scroll-padding-right: 10px;
}
.perkhidmatan-section,
.perkhidmatan-container {
    box-sizing: border-box;
}
.perkhidmatan-grid::-webkit-scrollbar {
    display: none;
}

.perkhidmatan-section .gov-line {
    background: linear-gradient(90deg, #ffffff, #4faa2e);
}

.perkhidmatan-card {
    min-width: 300px;
    max-width: 320px;
    height: auto;
    flex-shrink: 0;
    scroll-snap-align: center;

    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.15);

    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.perkhidmatan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(120deg, #4faa2e, #0b5e8e, transparent);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}


.perkhidmatan-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,53,73,0.15);
}
.perkhidmatan-section .gov-header {
    margin-bottom: 10px; /* was 25px+ before indirectly */
}
.perkhidmatan-section .gov-header h2 {
    color: #003549;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    animation: titleGlow 2.5s ease-in-out infinite;
}
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255,255,255,0.4),
                     0 0 10px rgba(79,170,46,0.4);
    }

    50% {
        text-shadow: 0 0 15px rgba(255,255,255,0.8),
                     0 0 25px rgba(79,170,46,0.8),
                     0 0 35px rgba(0,53,73,0.6);
    }
}
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255,255,255,0.4),
                     0 0 10px rgba(79,170,46,0.4);
    }

    50% {
        text-shadow: 0 0 15px rgba(255,255,255,0.8),
                     0 0 25px rgba(79,170,46,0.8),
                     0 0 35px rgba(0,53,73,0.6);
    }
}

/* Allow normal images inside cards */
.perkhidmatan-card img,
.service-img {
    position: relative !important;
    width: 100%;
    height: 180px;
    object-fit: cover;
    pointer-events: none;
    border-radius: 12px;
    margin-bottom: 10px;
}
.perkhidmatan-section .perkhidmatan-card h3,
.perkhidmatan-section .perkhidmatan-card p,
.perkhidmatan-section .perkhidmatan-card li {
    color: #003549 !important;
    position: relative;
    z-index: 2;
}
.perkhidmatan-section .service-details p,
.perkhidmatan-section .service-details li {
    color: #333 !important;
}

/* HEADER */
.service-header{
display:flex;
justify-content:space-between;
align-items:center;
cursor:pointer;
}

.service-header h3{
font-size:20px;

}

/* ARROW ICON */
.service-header i{
transition:0.3s;
}
.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
    
}
.service-header h3 {
    color: #ffffff;
    font-weight: 600;
}

/* OPEN STATE */
.perkhidmatan-card.active .service-details {
    max-height: 2000px; /* big enough */
    opacity: 1;
    margin-top: 10px;
    transform: translateY(0);
}

.perkhidmatan-card.active {
    background: rgba(79,170,46,0.15);
    border: 1px solid rgba(79,170,46,0.6);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .perkhidmatan-card {
        min-width: 85%;
    }
}


.perkhidmatan-card.active .service-header i{
transform:rotate(180deg);
}
.toggle-btn {
    background: linear-gradient(135deg, #0b5e8e, #4faa2e);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #003549;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-btn:hover {
    transform: scale(1.1);
}
.perkhidmatan-card.active .toggle-btn {
    transform: rotate(90deg) scale(1.1);
}
.service-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    padding: 8px 0;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.carousel-controls button {
    background: linear-gradient(135deg, #0b5e8e, #4faa2e);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-controls button:hover {
    background: #003549;
    transform: scale(1.1);
}

.section-smoke {
    position: absolute;
    bottom: -80px; /* IMPORTANT: overlap into next section */
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 20;
}

/* SMOKE LAYERS */
.section-smoke::before,
.section-smoke::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 100%;
    left: -50%;
    top: 0;

    background: radial-gradient(circle at 30% 50%, rgba(15,42,61,0.6), transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(15,42,61,0.5), transparent 60%);

    filter: blur(60px);
    animation: smokeFlow 12s infinite linear;
}

.section-smoke {
    opacity: 0.9;
}

.section-smoke::after {
    animation-delay: 4s;
    opacity: 0.6;
}

@keyframes smokeFlow {
    0% { transform: translateX(0); }
    50% { transform: translateX(10%); }
    100% { transform: translateX(0); }
}




/* =========================
   PENGUMUMAN FIXED + RESPONSIVE
========================= */

.pengumuman-section {
    background: #f5f7fa;
    padding: 70px 20px;
    width: 100%;
    min-height: 100vh;

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

    position: relative;
    overflow: hidden;
}

/* container */
.pengumuman-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* SCROLL WRAPPER */
.pengumuman-grid-wrapper {
    width: 100%;
    overflow: hidden;
}

/* MAIN CAROUSEL */
.pengumuman-grid {
    display: flex;
    gap: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 10px;
    scroll-padding-right: 10px;

    padding: 15px 5px;

    cursor:default;
}

/* HIDE SCROLLBAR */
.pengumuman-grid::-webkit-scrollbar {
    display: none;
}

/* CARD */
.pengumuman-card {
    flex: 0 0 320px;
    scroll-snap-align: center;

    background: #fff;
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;

    position: relative;
}

/* hover */
.pengumuman-card:hover {
    transform: translateY(-6px);
}

/* IMAGE */
.pengumuman-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* CONTENT */
.pengumuman-content {
    padding: 15px;
}

.pengumuman-content h3 {
    font-size: 1.05em;
    color: #003549;
    margin-bottom: 8px;
}

.pengumuman-content p {
    font-size: 0.9em;
    color: #444;
    line-height: 1.5em;
}

.pengumuman-content span {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8em;
    color: #fff;
    background: #0b5e8e;
    padding: 4px 10px;
    border-radius: 20px;
}

/* overlay effect */
.pengumuman-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,53,73,0.15), transparent);
    opacity: 0;
    transition: 0.3s;
}

.pengumuman-card:hover::after {
    opacity: 1;
}












/* =========================
   TEXT RESPONSIVE FIX
========================= */

@media (max-width: 768px){

    .sec h2{
        font-size: 2.2em;
        margin-bottom: 20px;
    }

    .sec #name{
        font-size: 1.1em;
        padding: 0 10px;
    }

    .sec h3{
        font-size: 1.4em;
        margin: 15px 0;
    }

    .sec h4{
        font-size: 1em;
    }

    .sec p{
        margin: 10px;
        font-size: 0.95em;
        line-height: 1.6em;
    }

    .sec ul{
        margin: 0 10px;
    }

    .sec ul li{
        margin: 10px 0;
    }
}





/* hover overlay effect */
.pengumuman-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,53,73,0.15), transparent);
    opacity: 0;
    transition: 0.3s;
}

.pengumuman-card:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {

    .pengumuman-grid {
        grid-template-columns: 1fr; /* 1 card per row */
        gap: 15px;
    }

    .pengumuman-card img {
        height: 160px;
    }

    .pengumuman-content {
        padding: 12px;
    }
}



/* ========================= MAP SECTION IMPROVEMENT ========================= */ 
.peta-section {
    background: #f5f7fa;

    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 20px;
}

.peta-container {
    width: 100%;
    max-width: 1200px;
}

.peta-layout {
    display: flex;
    flex-direction: row;   /* SIDE BY SIDE */
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.peta-map {
    width: 100%;
    max-width: 1200px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border: 2px solid rgba(79,170,46,0.3);
    flex: 2;
    min-width: 65%;
}

/* keep iframe full width under search */
.peta-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.peta-map:hover iframe {
    transform: scale(1.03);
}

.peta-info {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .peta-layout {
        flex-direction: column;
    }

    .peta-map,
    .peta-info {
        min-width: 100%;
    }
}
.peta-map::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #0b5e8e, #4faa2e);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}
.peta-actions {
    display: flex;
    flex-direction: row;   /* SAME LINE */
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;       /* allows mobile wrapping */
}

.peta-actions input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border-radius: 50px;
    border: none;
    outline: none;
}

/* BUTTON STYLE */
.peta-actions button {
    background: linear-gradient(135deg, #0b5e8e, #4faa2e);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 8px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .peta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .peta-actions input,
    .peta-actions button {
        width: 100%;
    }
}

/* HOVER EFFECT */
.peta-actions button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* CLICK EFFECT */
.peta-actions button:active {
    transform: scale(0.97);
}

/* GLOW ANIMATION */
.peta-actions button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-25deg);
}

.peta-actions button:hover::after {
    animation: shine 0.8s ease;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

.peta-card {
    background: white;
    padding: 12px 14px;   /* smaller inner space */
    margin-bottom: 10px;  /* tighter spacing */
    border-radius: 12px;
    color: #003549;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.peta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.peta-card h3 {
    color: #0b5e8e;
    font-size: 1em;  
}

.peta-card p{
    font-size: 0.9em;     /* smaller text */
    line-height: 1.4em;
}
#map {
    width: 100%;
    height: 700px;
    border-radius: 18px;
}

.peta-map {
    flex: 2;
    border-radius: 22px;
    overflow: hidden;
    position: relative;

    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border: 2px solid rgba(79,170,46,0.3);

    /* 👇 REDUCED HEIGHT CONTAINER */
    max-height: 420px;
}

.peta-map iframe {
    width: 100%;
    height: 420px;   /* 👈 smaller map */
    border: 0;
    transition: transform 0.5s ease;
}

.peta-actions-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* mobile safe */
    margin: 20px 0 30px;
}

/* SEARCH BAR */
.map-tools{
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-tools input{
    padding: 10px 14px;
    border-radius: 30px;
    border: none;
    outline: none;
    width: 250px;
    color: black;          /* text you type */
    background: white;
}

.map-tools button{
    padding: 10px 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: white;
    color: black;
}.map-tools button:hover{
    background: #333;
}



.map-tools input::placeholder{
    color: rgba(0,0,0,0.6);
}

/* =========================
   FAQ KIOSK UPGRADE
========================= */

.faq-section{
    width: 100%;
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(180deg, #eef3f8, #dfe9f1);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* container */
.faq-container{
    max-width: 1100px;
    margin: auto;
}

/* list */
.faq-grid{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* card */
.faq-item{
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

/* hover */
.faq-item:hover{
    transform: translateY(-4px);
}

/* QUESTION */
.faq-question{
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(135deg, #0b5e8e, #4faa2e);
    color: white;
}

.faq-question h3{
    font-size: 1.1em;
    color: white;
}

.faq-question span{
    font-size: 1.6em;
    transition: 0.3s;
}

/* ANSWER */
.faq-answer{
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #ffffff;
}

/* TEXT CONTENT */
.faq-answer-content{
    padding: 20px 25px;
    color: #333;
    line-height: 1.7em;

    max-height: 300px;        /* 👈 IMPORTANT */
    overflow-y: auto;         /* 👈 SCROLL HERE */
}

/* scrollbar */
.faq-answer-content::-webkit-scrollbar{
    width: 6px;
}

.faq-answer-content::-webkit-scrollbar-thumb{
    background: linear-gradient(#0b5e8e, #4faa2e);
    border-radius: 10px;
}

/* ACTIVE */
.faq-item.active .faq-answer{
    max-height: 400px;  /* 👈 allow expansion */
}

.faq-item.active .faq-question span{
    transform: rotate(45deg);
}

/* glow effect when open */
.faq-item.active{
    border: 1px solid rgba(79,170,46,0.5);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* MOBILE */
@media (max-width: 768px){
    .faq-question h3{
        font-size: 0.95em;
    }

    .faq-answer-content{
        max-height: 250px;
    }
}
.faq-question:active{
    transform: scale(0.98);
}



nav ul li a {
    transition: 0.3s;
}

/* ACTIVE MENU */
nav ul li a.active {
    color: #00e0ff;
    font-weight: bold;
    border-bottom: 2px solid #00e0ff;
}

main {
    flex: 1;
}

.footer-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* base icon style */
.footer-icons .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* hover animation */
.footer-icons .icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 15px rgba(0,224,255,0.6);
}

/* ripple glow effect */
.footer-icons .icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,224,255,0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: 0.4s;
}

.footer-icons .icon:hover::after {
    transform: scale(2);
    opacity: 0;
}

.footer-icons .instagram:hover {
    color: #E1306C;
}

.footer-icons .map:hover {
    color: #00e0ff;
}

.footer-icons .phone:hover {
    color: #25D366;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,224,255,0.5); }
    70% { box-shadow: 0 0 0 10px rgba(0,224,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,224,255,0); }
}

.footer-icons .icon {
    animation: pulse 3s infinite;
}

.phone-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.phone-modal-content {
    background: #0a1a2f;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    width: 300px;
    box-shadow: 0 0 20px rgba(0,224,255,0.4);
    animation: popIn 0.3s ease;
}

.phone-modal-content h2 {
    margin-bottom: 15px;
}

.close-btn {
    position: absolute;
    margin-left: 120px;
    cursor: pointer;
    font-size: 22px;
    color: #00e0ff;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =========================
   GLOBAL SIDEBAR (DESKTOP + MOBILE)
========================= */




/* OPEN */
#mobile-sidebar.active{
    right: 0;
}

/* MENU LIST */
#mobile-sidebar ul{
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding: 0 30px;
}

/* LINKS */
#mobile-sidebar ul li a{
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

/* HOVER EFFECT */
#mobile-sidebar ul li a:hover{
    background: #4faa2e;
    color: #003549;
    padding-left: 15px;
}

/* =========================
   GOVERNMENT SIDEBAR STYLE
========================= */

#overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 9998;
}

#overlay.active{
    opacity: 1;
    visibility: visible;
}

/* SIDEBAR */
#mobile-sidebar{
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;

    background: #0b2f3a; /* formal navy */
    color: white;

    display: flex;
    flex-direction: column;

    transition: 0.25s ease;
    z-index: 9999;

    border-left: 3px solid #4faa2e;
}

#mobile-sidebar.active{
    right: 0;
}

/* HEADER */
.sidebar-header{
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-header h3{
    font-size: 1.1em;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.sidebar-header p{
    font-size: 0.85em;
    opacity: 0.7;
}

#mobile-sidebar ul{
    list-style: none;
    padding: 15px 0;
    margin: 0;

    flex: 1;
    display: flex;
    flex-direction: column;

    justify-content: flex-start;  /* ✅ MOVE TO TOP */
    align-items: flex-start;

    gap: 0;
}


#mobile-sidebar ul li{
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* LINKS */
#mobile-sidebar ul li a{
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: 0.2s;
}

/* HOVER (subtle, formal) */
#mobile-sidebar ul li a:hover{
    background: rgba(255,255,255,0.08);
    padding-left: 25px;
}

/* ACTIVE STATE */
#mobile-sidebar ul li a.active{
    background: rgba(79,170,46,0.2);
    border-left: 4px solid #4faa2e;
}

/* FOOTER */
.sidebar-footer{
    padding: 15px 20px;
    font-size: 0.8em;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* HAMBURGER */
#menu-toggle{
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: #0b2f3a;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10000;
    border: 1px solid rgba(255,255,255,0.2);
}


.perkhidmatan-card.focus {
    box-shadow: 0 0 0 3px rgba(79,170,46,0.4),
                0 25px 60px rgba(0,53,73,0.25);
    transform: scale(1.06);
    transition: 0.3s ease;
}





/* =========================
   BORANG CARD (UPGRADED)
========================= */
.borang-card{
    min-width: 280px;
    max-width: 300px;
    flex: 0 0 auto;

    background: #ffffff;
    border-radius: 12px;

    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);

    transition: 0.2s ease;
}

.borang-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
    

/* subtle top highlight line */
.borang-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0b5e8e, #4faa2e);
}

/* =========================
   PREVIEW AREA
========================= */
.borang-preview{
    height: 180px;
     width: 100%;

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

    background: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
}

/* PDF ICON */
.borang-preview img{
    width: 60px;
    opacity: 0.7;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* IMPORTANT */
    display: block;
}


/* small label under icon */
.borang-preview span{
    font-size: 0.75em;
    color: #64748b;
}
/* =========================
   CONTENT AREA
========================= */
.borang-overlay{
    padding: 16px;
}

.borang-overlay h3{
    font-size: 1em;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.borang-overlay p{
    font-size: 0.85em;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* =========================
   BUTTONS (IMPROVED)
========================= */
/* BUTTON CONTAINER */
/* BUTTON CONTAINER */

.borang-actions{
    display: flex;
    gap: 8px;
}

/* base */
.borang-actions a{
    flex: 1;
    text-align: center;

    padding: 8px 10px;
    border-radius: 6px;

    font-size: 0.8em;
    font-weight: 500;

    text-decoration: none;

    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;

    transition: 0.2s ease;
}

/* view */
.borang-actions a.view{
    border-color: #0b5e8e;
    color: #0b5e8e;
}

/* download */
.borang-actions a.download{
    border-color: #16a34a;
    color: #16a34a;
}

/* qr */
.borang-actions a.qr{
    border-color: #7c3aed;
    color: #7c3aed;
}

/* hover (clean, no glow) */
.borang-actions a:hover{
    background: #0b5e8e;
    color: white;
    border-color: #0b5e8e;
}








/* =========================
   GRID (IF YOU USE MULTIPLE CARDS)
========================= */

/* MATCH PETA BUTTON STYLE */
.borang-actions button {
    background: linear-gradient(135deg, #0b5e8e, #4faa2e);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;
}

/* HOVER (same as peta) */
.borang-actions button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* CLICK EFFECT */
.borang-actions button:active {
    transform: scale(0.97);
}

/* SHINE EFFECT */
.borang-actions button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-25deg);
}

/* TRIGGER SHINE */
.borang-actions button:hover::after {
    animation: shine 0.8s ease;
}

/* SAME ANIMATION */
@keyframes shine {
    100% {
        left: 200%;
    }
}

/* =========================
BORANG SCROLL UPGRADE (ADD HERE)
========================= */

/* Make section behave like kiosk screen */
.borang-section{
    background: #f4f6f9;
    padding: 80px 0;
    min-height: 100vh;

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

/* Allow container to stretch */
.borang-container{
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 1300px;
    margin: auto;
}

/* SCROLL AREA */
.borang-scroll{
    display: flex;
    gap: 24px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 10px 5px 25px;

    scroll-snap-type: x mandatory;
}

/* Smooth scrollbar */
.borang-scroll::-webkit-scrollbar{
    width: 6px;
}
.borang-scroll::-webkit-scrollbar-thumb{
    background: #cbd5e1;
    border-radius: 10px;
}
.borang-scroll::-webkit-scrollbar-track{
    background: transparent;
}

/* FULLSCREEN OVERLAY */
.pdf-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;

    display: none;
    flex-direction: column;
}

/* HEADER BAR */
.pdf-header{
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
}



/* PDF CONTAINER */
.pdf-viewer{
    flex: 1;
    width: 100%;
    height: 100%;
}

/* IFRAME FULLSCREEN FIX */
.pdf-viewer iframe{
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-close{
    position: absolute;
    top: 18px;
    right: 18px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: #ff2e2e;
    color: white;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;
    z-index: 999999;

    box-shadow: 0 10px 25px rgba(0,0,0,0.35);

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

.pdf-close:hover{
    background: #cc0000;
    transform: scale(1.1);
}

#pdfPreview canvas {
    width: 100%;
    transition: 0.3s ease;
    border-radius: 10px;
}

#pdfPreview:hover canvas {
    transform: scale(1.05);
}

/* QR MODAL BACKDROP */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
}

/* BOX */
.qr-modal-content {
    position: relative; /* IMPORTANT for absolute button */
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 12px;

    width: 34px;
    height: 34px;
    border-radius: 50%;

    background: #ff2e2e !important;
    color: #ffffff !important;

    font-size: 18px;
    font-weight: bold;

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

    cursor: pointer;
    z-index: 10000;

    border: none;
}
/* hover effect */
.qr-close:hover {
    background: #ff4d4d;
    color: white;
}

/* QR BOX */
#qrModalBox {
    margin-top: 15px;
}

/* ANIMATION */
@keyframes pop {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@media (max-width: 768px) {

    .pengumuman-section {
        padding: 50px 15px;
    }

    .pengumuman-card {
        flex: 0 0 85%;   /* ONE CARD VIEW */
    }

    .pengumuman-card img {
        height: 150px;
    }

    .pengumuman-content h3 {
        font-size: 1em;
    }

    .pengumuman-content p {
        font-size: 0.88em;
    }

    .pengumuman-grid {
        gap: 12px;
        padding: 10px;
    }
}

.pengumuman-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.pengumuman-controls button {
    background: linear-gradient(135deg, #0b5e8e, #4faa2e);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;

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

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.pengumuman-controls button:hover {
    background: #003549;
    transform: scale(1.1);
}

/* ===== MAP FIX ===== */

/* block Google top UI (arrow area) */
.map-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 5;
}

/* custom arrow button */
.custom-map-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: #0a2540;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

/* fullscreen mode */
.peta-map.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background: black;
}

.peta-map.fullscreen iframe {
    height: 100%;
}



