:root{
  --text:#0f172a;
  --muted:#64748b;
  --primary:#0ea5e9;
  --primary2:#0284c7;
  --bg:#f6f7fb;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow: 0 12px 30px rgba(15, 23, 42, .10);
  --shadow2: 0 18px 45px rgba(15, 23, 42, .16);
  --radius:16px;
}

*{box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial}
body{margin:0;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}

/* ✅ FULL WIDTH: container cuma padding, bukan max-width */
.container{
  width:100%;
  padding:0 22px;
}

/* NAVBAR */
.navbar{
  background:#7ee9e2;
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:1000;
}
.navbar .inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900;
}
.brand img{width:34px;height:34px;border-radius:10px;object-fit:cover}
.menu{display:flex;gap:6px;flex-wrap:wrap}
.menu a{
  padding:9px 12px;border-radius:12px;
  color:var(--muted);font-weight:650;
  transition:.18s ease;
}
.menu a:hover{background:#f1f5f9;color:var(--text)}

/* HERO FULL */
.hero{
    display:flex;
    min-height:calc(100vh - 130px);
    background:#f8fafc;
    overflow:hidden;
}

.hero-left{
    width:50%;
}

.hero-left img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hero-right{
    width:50%;
    padding:60px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:#ffffff;
}

.hero-right h1{
    font-size:42px;
    margin:10px 0;
    color:#0f172a;
}

.hero-right p{
    color:#64748b;
    line-height:1.7;
    margin-bottom:20px;
}

.hero-stats{
    margin-top:30px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.hero-card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.hero-card h3{
    margin:0;
    font-size:30px;
    color:#0ea5e9;
}

.hero-card span{
    color:#64748b;
    font-size:14px;
}
.hero .kicker{
  opacity:.9;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-size:12px;
}
.hero h1{
  margin:10px 0 10px;
  font-size:42px; line-height:1.1;
  text-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.hero p{
  margin:0 auto 18px;
  max-width:780px;
  opacity:.92;
  line-height:1.6;
}
.hero .actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* BUTTON */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;
  border-radius:14px;
  font-weight:850;
  border:1px solid rgba(255,255,255,.22);
  transition:.18s ease;
}
.btn-primary{
  background:linear-gradient(180deg,var(--primary),var(--primary2));
  color:#fff;
}
.btn-primary:hover{filter:brightness(1.03);transform:translateY(-1px)}
.btn-soft{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}
.btn-soft:hover{transform:translateY(-1px)}
.btn-ghost{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.btn-ghost:hover{background:rgba(255,255,255,.26);transform:translateY(-1px)}

/* SECTION FULL */
.section{
  width:100%;
  padding:22px 0;
}
.section-head{
  display:flex;justify-content:space-between;align-items:end;gap:12px;
  margin:8px 0 14px;
}
.section-head h2{margin:0;font-size:20px}
.section-head small{color:var(--muted)}

/* GRID FULL-WIDTH tapi tetep enak */
.grid{display:grid;gap:14px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}

.card{
  background: var(--card);
  border: 4px solid #76d9e7;   /* garis merah tipis */
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}


/* ICON BOX */
.iconbox{display:flex;gap:12px;align-items:flex-start;}
.icon{
  width:44px;height:44px;border-radius:14px;
  background:#e0f2fe;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;
}

/* ===== CENTER BUTTON DI CARD LAYANAN ===== */

/* khusus area tombol di card layanan */
.iconbox > div > div:last-child{
  display: flex;
  justify-content: center;
}

/* kalau tombolnya lebih dari satu (cek status) */
.iconbox > div > div:last-child{
  gap: 8px;
  flex-wrap: wrap;
}

/* NEWS */
.news-thumb{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover .news-thumb{
  transform: scale(1.03);
  box-shadow: 0 16px 35px rgba(15,23,42,.18);
}
.meta{margin-top:10px;color:var(--muted);font-size:13px}
.card h3{margin:8px 0 10px;font-size:16px;line-height:1.3}

/* FORM PUBLIC */
.form-wrap{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
}
.form-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap:12px;
  margin-top:10px;
}
.col-12{grid-column: span 12;}
.col-8{grid-column: span 8;}
.col-6{grid-column: span 6;}
.col-4{grid-column: span 4;}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}

.input, select, textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
}
label{display:block;font-weight:800;color:var(--muted);margin:10px 0 6px;}
.help{font-size:13px;color:var(--muted);margin-top:6px;}

/* FOOTER FULL */
.footer{
  width:100%;
  padding:18px 0;
  text-align:center;
  color:var(--muted);
  border-top:1px solid var(--border);
  background:#fff;
}

/* RESPONSIVE */
@media(max-width:900px){
  .grid-3,.grid-2{grid-template-columns:1fr}
  .hero h1{font-size:30px}
  .col-8,.col-6,.col-4{grid-column: span 12;}
}

/* ====== BERITA (LIST & DETAIL) ====== */
.page-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  margin: 8px 0 14px;
}
.page-head h1{margin:0;font-size:26px}
.page-head p{margin:6px 0 0;color:var(--muted)}

.crumb{
  color:var(--muted);
  font-size:13px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.crumb span{opacity:.7}

.news-card .news-cover{display:block}
.news-title{margin:8px 0 6px;font-size:16px;line-height:1.35}
.news-title a:hover{color:var(--primary)}

.link-read{
  display:inline-block;
  margin-top:10px;
  font-weight:900;
  color:var(--primary);
}
.link-read:hover{
  color:var(--primary2);
  text-decoration:underline;
}

/* DETAIL */
.detail-wrap{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
}
.detail-head h1{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.15;
}
.detail-cover{
  width:100%;
  max-height:520px;
  height:auto;
  object-fit:contain;
  background:#f1f5f9;
  border-radius:16px;
  border:1px solid var(--border);
  margin:14px 0 10px;
}
.detail-content{
  color:#0f172a;
  line-height:1.8;
  font-size:15.5px;
}
.detail-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

/* PAGER */
.pager{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:16px;
}
.pager-info{color:var(--muted);font-weight:700}

/* RESPONSIVE */
@media(max-width:900px){
  .page-head{flex-direction:column;align-items:flex-start}
  .detail-cover{height:260px}
}

.page-head.center{
  justify-content:center;
  text-align:center;
}
.page-head.center p{
  margin-left:auto;
  margin-right:auto;
  max-width:720px;
}


/* FIX: center judul "Layanan" & "Kabar/Berita Terbaru" di index */
.section-tittle{
  text-align: center;
  width: 100%;
}

.section-tittle h2{
  margin: 0 auto;
  text-align: center;
  margin-bottom: 8px;
}

.section-tittle small{
  display:inline-block;
  margin-top:6px;
  text-align:center;
  margin-bottom: 18px;
  
}

/* NAV ACTIVE */
.menu a.active{
  color: var(--primary);
  background: #e0f2fe;
  position: relative;
}

.menu a.active::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:6px;
  height:3px;
  border-radius:99px;
  background: var(--primary);
}

/* ===== CENTER JUDUL FORM (LAPORAN & SURAT) ===== */
.page-head.center{
  text-align: center;
  margin-bottom: 24px;
}

.page-head.center h1{
  margin-bottom: 8px;
}

.page-head.center p{
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

/* CENTER JUDUL & DESKRIPSI FORM (SAJA) */
.form-title{
  text-align: center;
  margin: 0 0 6px;
}

.form-desc{
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ===== FORM INPUT LEBIH TEGAS ===== */
.input,
select,
textarea {
  border: 2px solid #cbd5e1;        /* lebih tebal */
  background: #ffffff;
}

/* fokus (saat diklik) */
.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

/* label lebih tegas */
label {
  color: #334155;
  font-weight: 900;
}

button,
a.btn{
  cursor: pointer;
}

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal-box{
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow2);
}
.code-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px dashed var(--border);
  border-radius:14px;
  background:#f8fafc;
  font-weight:900;
}

/* ===== MODAL ACTIONS (UNTUK LAPORAN & SURAT) ===== */
.modal-actions{
  display: flex;
  justify-content: flex-end; /* tombol ke kanan */
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* === DETAIL BERITA KIRI – KANAN === */
.detail-berita{
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* kiri */
.detail-berita-img{
  flex: 0 0 45%;
}

.detail-berita-img img{
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
}

/* kanan */
.detail-berita-content{
  flex: 1;
}

.detail-berita-content h1{
  margin: 0 0 8px;
}

.detail-berita-content .meta{
  font-size: 14px;
  color: #777;
  margin-bottom: 14px;
}

.detail-berita-content .isi{
  line-height: 1.7;
}

/* tombol */
.detail-actions{
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px){
  .detail-berita{
    flex-direction: column;
  }
}

.section-tittle{
  background: #8af4e5;
  border: 2px solid #679be9;
  border-radius: 14px;

  padding: 6px 3px;
  margin: 0 auto 10px;     /* center */
  max-width: 500px;       /* <<< INI YANG NGECILIN */
  text-align: center;
}

.section-tittle h2{
  margin: 0 0 4px;
}

.section-tittle small{
  display: block;
  color: var(--muted);
}

/* ===== RAPIIIN TOMBOL LAYANAN (FIX) ===== */

/* pastikan konten iconbox rata kiri */
.iconbox{
  align-items: flex-start !important;
}

/* paksa semua tombol di layanan ke kiri */
.iconbox .btn,
.iconbox div{
  text-align: left !important;
}

/* khusus wrapper tombol */
.iconbox > div > div{
  display: flex !important;
  justify-content: flex-start !important;
}


/* ======================================
   ✨ MODERN UI UPGRADE – INDEX ONLY
====================================== */

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

/* ===== HERO LEBIH PREMIUM ===== */
.hero{
  position:relative;
}

.hero::after{
  content:"";
  position:absolute;
  bottom:0px;
  left:0;
  width:100%;
  height:50px;
  background:linear-gradient(to bottom, rgba(246,247,251,0), var(--bg));
}

/* Animasi masuk hero */
.hero .content{
  animation: fadeUp 1.2s ease forwards;
}

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

/* ===== SECTION SPACING LEBIH LUAS ===== */
.section{
  padding:40px 0;
  position:relative;
}



/* ===== SECTION TITLE MODERN ===== */
.section-tittle{
  margin-bottom:50px;
}

.section-tittle h2{
  font-size:28px;
  font-weight:900;
  position:relative;
  display:inline-block;
}

.section-tittle h2::after{
  content:"";
  display:block;
  width:70px;
  height:4px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
  margin:12px auto 0;
  border-radius:100px;
}

/* ===== CARD MODERN GLASS STYLE ===== */
.card{
  border:none !important;
  background:#ffffff;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  transition: all .4s cubic-bezier(.25,.8,.25,1);
  border-radius:20px;
  overflow:hidden;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow: 0 25px 60px rgba(15,23,42,.18);
}

/* ===== ICON LEBIH HIDUP ===== */
.icon{
  background:linear-gradient(135deg,#e0f2fe,#bae6fd);
  box-shadow:0 10px 25px rgba(14,165,233,.25);
  transition:.4s;
}

.card:hover .icon{
  transform:scale(1.15) rotate(5deg);
}

/* ===== BUTTON PREMIUM ===== */
.btn{
  border:none;
  border-radius:30px;
  padding:12px 20px;
  font-weight:800;
  letter-spacing:.3px;
  transition:all .3s ease;
}

.btn-primary{
  background:linear-gradient(90deg,var(--primary),var(--primary2));
  box-shadow:0 8px 20px rgba(14,165,233,.35);
}

.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(14,165,233,.45);
}

/* ===== NEWS IMAGE HOVER ===== */
.news-thumb{
  transition:transform .5s ease;
}

.card:hover .news-thumb{
  transform:scale(1.07);
}

/* ===== REVEAL ANIMATION ===== */
.reveal{
  opacity:0;
  transform:translateY(60px);
  transition:all 1s cubic-bezier(.2,.65,.3,1);
}

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

/* delay bertahap */
.reveal.delay-1{transition-delay:.2s;}
.reveal.delay-2{transition-delay:.4s;}
.reveal.delay-3{transition-delay:.6s;}

/* ===== TYPOGRAPHY LEBIH RAPI ===== */
body{
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height:1.6;
}

h1,h2,h3{
  letter-spacing:.3px;
}

/* ===== SMOOTH GRID SPACING ===== */
.grid{
  gap:28px;
}

.footer{
  padding:30px 0;
  background:#6bd9f4;
  color:#ffffff;
  font-weight:600;
  letter-spacing:.5px;
}

/* ============================= */
/* ✨ TEXT IMPROVEMENT SYSTEM */
/* ============================= */

/* Paragraf lebih lega & nyaman dibaca */
.card p{
  line-height:1.9;
  margin-bottom:18px;
  font-size:15.5px;
  text-align:justify;
  color:#334155;
}
@media(max-width:900px){
  .card p{
    text-align: left;
  }
}
/* Paragraf pertama sedikit lebih menonjol */
.card p:first-of-type{
  font-size:16.5px;
  font-weight:500;
}

/* List misi lebih rapi */
.card ul{
  margin-top:10px;
  padding-left:22px;
  line-height:1.8;
}

.card ul li{
  margin-bottom:10px;
}

/* ============================= */
/* 📸 GALERI MODERN STYLE */
/* ============================= */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
  margin-top:30px;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
  box-shadow:0 15px 35px rgba(15,23,42,.15);
  transition:transform .35s ease, box-shadow .35s ease;
}

.gallery-item img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition:transform .6s ease;
}

/* Hover effect */
.gallery-item:hover{
  transform:translateY(-6px);
  box-shadow:0 25px 50px rgba(15,23,42,.25);
}

.gallery-item:hover img{
  transform:scale(1.1);
}

/* Caption overlay */
.gallery-caption{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:18px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  color:#fff;
}

.gallery-item:hover .gallery-caption{
  transform:translateY(0);
}

.gallery-caption h3{
  margin:0 0 6px;
  font-size:18px;
}

.gallery-caption p{
  margin:0;
  font-size:13px;
  opacity:.9;
}

/* Reveal animation */
.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:all .8s ease;
}

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

/* ===== STICKY FOOTER FIX ===== */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== NAVBAR MOBILE MODERN ===== */

.nav-toggle{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  cursor:pointer;
}

/* Desktop normal */
.menu{
  display:flex;
  gap:6px;
}

/* Mobile */
@media (max-width:768px){

  .nav-toggle{
    display:block;
  }

  .menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#7ee9e2;
    flex-direction:column;
    padding:16px;
    display:none;
  }

  .menu.show{
    display:flex;
  }

}

/* ===== STICKY FOOTER FIX ===== */

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer.footer {
  margin-top: auto;
}

#btnResendOtp:disabled{
  background:#e5e7eb;
  color:#9ca3af;
  cursor:not-allowed;
}

#btnResendOtp.active{
  background:linear-gradient(135deg,#2563eb,#3b82f6);
  color:white;
  cursor:pointer;
}

#btnKirimOtp.loading{
  background:#e5e7eb;
  color:#6b7280;
}

.syarat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  margin-top:30px;
}
.syarat-card{
  background:#fff;
  border-radius:20px;
  padding:30px;
  box-shadow:0 15px 35px rgba(15,23,42,.08);
  transition:.3s;
  position:relative;
}
.syarat-card::before{
  content:"";
  position:absolute;
  top:0;left:0;width:100%;height:5px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
}
.syarat-card:hover{
  transform:translateY(-6px);
  box-shadow:0 25px 60px rgba(15,23,42,.18);
}
.syarat-icon{
  width:50px;height:50px;
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#e0f2fe,#bae6fd);
  margin-bottom:15px;
  font-size:20px;
}
@media(max-width:900px){
  .syarat-grid{grid-template-columns:1fr;}
}


@media(max-width:900px){

    .hero{
        flex-direction:column;
    }

    .hero-left,
    .hero-right{
        width:100%;
    }

    .hero-left{
        height:300px;
    }

    .hero-right{
        padding:30px;
    }

    .hero-stats{
        grid-template-columns:1fr;
    }
}


/* ANIMASI MASUK */
.hero-left,
.hero-right{
    opacity:0;
}

.hero-left{
    animation:slideLeft 1s ease forwards;
}

.hero-right{
    animation:slideRight 1s ease forwards;
    animation-delay:.3s;
}

.hero-card{
    opacity:0;
    transform:translateY(30px);
    animation:cardUp .8s ease forwards;
}

.hero-card:nth-child(1){
    animation-delay:.8s;
}

.hero-card:nth-child(2){
    animation-delay:1.1s;
}

.hero-card:nth-child(3){
    animation-delay:1.3s;
}
.hero-card:nth-child(4){
    animation-delay:1.5s;
}
.hero-card:nth-child(5){
    animation-delay:1.7s;
}
.hero-card:nth-child(6){
    animation-delay:1.9s;
}

@keyframes slideLeft{
    from{
        opacity:0;
        transform:translateX(-80px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes slideRight{
    from{
        opacity:0;
        transform:translateX(80px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

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

@media(max-width:900px){

    .hero{
        min-height:auto !important;
        overflow:visible !important;
    }

}


.info-bar{
    background:#19aaf3;
    color:white;
    overflow:hidden;
    white-space:nowrap;
    padding:25px 0;
    font-weight:600;
    position:relative;
}
.info-text{
    display:inline-block;
    padding-left:100%;
    animation:runningText 15s linear infinite;
    position: relative;
    top: -10px;
}
@keyframes runningText{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-100%);
    }
}

.hashtag{
    color:#1877f2;
    font-weight:600;
}