* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Skip to content */
.skip-link {
    background-color: #800080;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 20px;
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 100;
  }
  
  .skip-link:focus {
    top: 0;
  }

/* Header navigator */
header nav {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    box-shadow: 0 5px 5px rgba(139, 139, 139, 0.514);
    position: fixed;
    z-index: 10;
    top: 0;
}

.navbar .logo img {
    width: 200px;
}

.navbar .navbar-list ul {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.navbar .navbar-list li {
    list-style-type: none;
}

.navbar .navbar-list a {
    text-decoration: none;
    color: purple;
    font-weight: bold;
    padding: 10px;
    border-radius: 20px;
}

.navbar .navbar-list a:hover {
    color: white;
    background-color: #800080;
    border-radius: 20px;
    transition: all 0.4s ease-in-out;
    padding: 10px;
}

.navbar .navbar-list .dropdown .dropdown-content a:hover {
    border-radius: 0;
}
  
  li.dropdown {
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    top: 70px;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown:hover .dropdown-content, .dropbtn:focus + .dropdown-content {
    display: block;
  }

.burger {
    display: none;
}

.navbar-burger, .navbar-burger li {
    display: none;
}

/* ...existing code... */
.navbar-burger .service-menu-content {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 10px; 
}

.navbar-burger .service-menu-content li {
    margin: 0;
}

.navbar-burger .service-menu-content a {
    text-decoration: none;
    color: white;
    font-size: 14px;
}
.navbar-burger .service-menu.actived .service-menu-content {
    display: block;
}

/* offcanvas */

.leaflet-container {
    height: 400px;
    width: 600px;
    max-width: 100%;
    max-height: 100%;
}
#map { 
    width: 1000px; 
    height: 500px; 
}

.info { 
    padding: 6px 8px; 
    font: 14px/16px Arial, Helvetica, sans-serif; 
    background: white; 
    background: rgba(255,255,255,0.8); 
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
    border-radius: 5px; 
} 

.info h4 { 
    margin: 0 0 5px; 
    color: #777; 
}

.legend { 
    text-align: left; 
    line-height: 18px; 
    color: #555; 
} 

.legend i { 
    width: 18px; 
    height: 18px; 
    float: left; 
    margin-right: 8px; 
    opacity: 0.7; 
}

/* header navigator */

/* Hero website*/
.hero {
    display: flex;
    align-items: center;
    min-height: 600px;
    width: 100%;
    text-align: center;
    background-image: url('petugas.jpg');
    background-position: center;
    margin-top: 110px;
  }

  .hero::before {
    margin-top: 110px;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    z-index: 1;
}
  
  .hero__inner {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 1000px;
  }
  
  .hero__title {
    color: #fff;
    font-weight: 500;
    font-size: 36px;
  }
  
  .hero__tagline {
    color: #fff;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 300;
  }

/* Main content */
main {
    width: 100%;
    padding: 2rem;
}

main .content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 110px;
}

main .content article {
    box-shadow: 0 5px 5px rgba(139, 139, 139, 0.514);
    padding: 20px;
}

/* Akhir main */

/* halaman home */
/* .intro {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: 100%;
} */

/* ...existing code... */

.intro {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(to right, purple, #2c002c); /* Gradient background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    margin-top: -110px;
}

.intro:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.intro img {
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.welcome p {
    color: white;
    font-size: 1.2rem;
    margin: 5px 0;
    text-align: center;
}

/* ...existing code... */

.visi-misi, .berita, .lokasi-puskesmas {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(to right, purple, #2c002c); /* Gradient background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.visi-misi:hover, .berita:hover, .lokasi-puskesmas:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.visi-dan-misi h1, .berita h1, .lokasi-puskesmas h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.visi-dan-misi p, .visi-dan-misi ol {
    color: white;
    font-size: 1.2rem;
    margin: 5px 0;
    text-align: center;
}

.visi-dan-misi ol {
    padding-left: 20px;
}

.motto {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(to right, purple, #2c002c); /* Gradient background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.motto:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.head-motto h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.content-motto p {
    color: white;
    font-size: 1.2rem;
    margin: 5px 0;
    text-align: center;
}

.berita {
    width: 100%;
}

.iframe-container {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    /* top: 0; */
    left: 0;
    width: 100%;
    height: 80%;
    border: 0;
}

.lokasi-puskesmas {
    width: 100%;
}

/* akhir halaman home */

/* Halaman puskesmas */
/* ...existing code... */

.intro-puskesmas1, .intro-puskesmas2, .geografis, .iklim, .distribusi {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(to right, purple, #2c002c); /* Gradient background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

.intro-puskesmas1:hover, .intro-puskesmas2:hover, .geografis:hover, .iklim:hover, .distribusi:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.intro-puskesmas1 img, .intro-puskesmas2 img, .geografis img, .iklim img, .distribusi img {
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome-puskesmas1 h1, .welcome-puskesmas2 h1, .content-geografis h1, .content-iklim h1, .content-distribusi h1{
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.welcome-puskesmas1 p, .welcome-puskesmas2 p, .content-geografis p, .content-iklim p, .content-distribusi p, .content-geografis ul {
    color: white;
    font-size: 1.2rem;
    margin: 5px 0;
    text-align: justify;
}

.content-geografis ul {
    padding-left: 20px;
}

/* ...existing code... */

.table-responsive {
    overflow-x: auto; /* Tambahkan scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling untuk perangkat mobile */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
}

.kapus {
    width: 100%;
}

/* ...existing code... */

.splide {
    margin: 20px auto;
    max-width: 90%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.splide__slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.splide__slide:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.splide__slide img {
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.splide__slide b {
    color: #333;
    font-size: 1rem;
    text-align: center;
}

/* ...existing code... */

/* Akhir halaman puskesmas */

/* Halaman hipertensi */

.hipertensi, .kelompok-hipertensi, .klasifikasi-hipertensi, .gambar-kelompok-klasifikasi, .gejala-hipertensi, .komplikasi-hipertensi, .cek-hipertensi, .lokasi {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(to right, purple, #2c002c); /* Gradient background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

.hipertensi:hover, .kelompok-hipertensi:hover, .klasifikasi-hipertensi:hover, .gambar-kelompok-klasifikasi:hover, .gejala-hipertensi:hover, .komplikasi-hipertensi:hover, .cek-hipertensi:hover, .lokasi:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.hipertensi img, .kelompok-hipertensi img, .klasifikasi-hipertensi img, .gambar-kelompok-klasifikasi img, .gejala-hipertensi img, .komplikasi-hipertensi img, .cek-hipertensi img, .lokasi img {
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.content-hipertensi h1, .content-kelompok-hipertensi h1, .content-klasifikasi-hipertensi h1, .content-gejala-hipertensi h1, .content-komplikasi-hipertensi h1, .content-kelompok-hipertensi h3, .content-klasifikasi-hipertensi h3, .lokasi h1, .cek-hipertensi h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.content-hipertensi p, .content-kelompok-hipertensi p, .content-klasifikasi-hipertensi p, .content-gejala-hipertensi p, .content-gejala-hipertensi b, .content-komplikasi-hipertensi p, .content-komplikasi-hipertensi b , .content-kelompok-hipertensi ol, .content-klasifikasi-hipertensi ol, .content-kelompok-hipertensi ul, .content-klasifikasi-hipertensi ul, .cek-hipertensi label, sub {
    color: white;
    font-size: 1.2rem;
    margin: 5px 0;
    text-align: justify;
}

.content-kelompok-hipertensi ol, .content-klasifikasi-hipertensi ol, .content-kelompok-hipertensi ul, .content-klasifikasi-hipertensi ul {
    padding-left: 20px;
}

/* ...existing code... */

.gejala-hipertensi {
    width: 100%;
}

.gejala-ringan-hipertensi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 50px;
    margin-top: 20px;
}

.gejala-ringan {
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
    border-radius: 5px; 
    padding: 10px;
}

.gambar-gejala-ringan {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.gejala-berat-hipertensi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 20px;
}

.gejala-berat {
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
    border-radius: 5px; 
    padding: 10px;
}

.gambar-gejala-berat {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.komplikasi-hipertensi {
    width: 100%;
}

.macam-komplikasi-hipertensi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 20px;
}

.komplikasi-penyakit {
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
    border-radius: 5px; ;
    padding: 10px;
}

.gambar-komplikasi-penyakit {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.cek-hipertensi {
    min-width: 50%;

}

.form-cek-hipertensi {
    display: flex;
    flex-direction: column;
}

.form-cek-hipertensi input {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid purple;
    color: purple;
    font-size: 20px;
}

.form-cek-hipertensi button {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid purple;
    color: purple;
    background-color: white;
    font-weight: bold;
    width: 100px;
    margin-top: 20px;
}

.form-cek-hipertensi button:hover {
    color: white;
    background-color: purple;
    transition: all 0.4s ease-in-out;
}

/* Akhir halaman hipertensi */

/* halaman kontak */
/* ...existing code... */

.kontak, .pesan-langsung, .pembuat-website {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(to right, purple, #2c002c); /* Gradient background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

.kontak:hover, .pesan-langsung:hover, .pembuat-website:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.kontak h1, .pesan-langsung h1, .pembuat-website h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.kontak-content, .pembuat-website-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.kontak-item a i, .akun-sosmed a i {
    font-size: 70px;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.kontak-item a i:hover, .akun-sosmed a i:hover {
    color: #ff009d;
    transform: scale(1.2);
}

.form-pesan {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.form-pesan input, .form-pesan textarea {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid white;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.form-pesan input::placeholder, .form-pesan textarea::placeholder {
    color: white;
}

.form-pesan button {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid white;
    color: white;
    background-color: transparent;
    font-weight: bold;
    width: 100px;
    align-self: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.form-pesan button:hover {
    color: #6a11cb;
    background-color: white;
}

.pembuat-website img {
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pembuat-website-info h1 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.pembuat-website-info p {
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

.akun-sosmed {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ...existing code... */

/* Akhir halaman kontak */

/* main content */

footer {
    background-color: purple;
    color: #ecf0f1;
    padding: 40px 0;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin: 20px;
}

.footer-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-section p, .footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff009d; 
}


.footer-section .socials a {
    margin: 0 10px;
    display: inline-block;
    font-size: 24px;
    color: #ecf0f1;
    transition: transform 0.3s;
}

.footer-section .socials a:hover {
    transform: scale(1.1);
    color: #ff009d;
}

.footer-bottom {
    text-align: center;
    background-color: #2c002c;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 14px;
    margin-bottom: -40px;
}
