/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */

header img {
    height: 50px; /* Ukuran logo */
    margin-right: 10px;
}

header h1 {
    font-size: 50px;
    font-weight: bold;
    margin: 0;
}

/* Navigasi */
nav {
    margin-top: 15px; /* Beri jarak antara header dan navbar */
    background: #0056b3;
    padding: 10px 20px;
    right: 20px;
   
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* Geser navbar ke kanan penuh */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s;
    display: block;
}
.nav-right {
    position: relative;
    float: right;
    right: 20px;
}
/* Efek hover pada navbar */
nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease-in-out;
    position: relative;
}

nav ul li a:hover {
    background: linear-gradient(45deg, #004080, #007bff);
    border-radius: 5px;
    color: #fff;
}

/* Underline animasi saat hover */
nav ul li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li:hover::after {
    width: 100%;
    left: 0;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #007bff;
    padding: 15px 20px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
}
.nav-right {
    margin-left: auto;  /* Geser ke kanan penuh */
}

.logo img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px;
}

/* Efek hover pada tombol */
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

button:hover {
    background: linear-gradient(45deg, #0056b3, #0099ff);
    transform: scale(1.05);
}

/* Efek hover pada gambar */
img {
    transition: transform 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}


/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    color: black;
    padding: 12px;
    display: block;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Kontainer utama */
.container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Gambar di atas teks selamat datang */
.welcome-section {
    text-align: center;
    margin-top: 20px;
}

.welcome-section img {
    width: 700px; /* Sesuaikan ukuran gambar */
    height: auto;
    margin-bottom: 15px;
}



/* Responsif */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    header img {
        margin-bottom: 10px;
    }

    nav {
        justify-content: center;
        padding-right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
    }

    .container {
        width: 95%;
    }
}
/* CONTAINER */
.container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    padding: 20px;
}

.hero-section h1 {
    font-size: 28px;
    color: #007bff;
    margin-top: 10px;
}

.hero-section p {
    font-size: 18px;
    color: #333;
    margin-top: 5px;
}

.hero-image {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* CONTENT */
.content {
    text-align: left;
    margin-top: 20px;
}

.content h2 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 10px;
}

.content p, .content ul {
    font-size: 16px;
    color: #333;
}

.content ul {
    list-style: disc;
    margin-left: 20px;
}

/* RESPONSIF */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .content h2 {
        font-size: 20px;
    }
}


/* SOSIAL MEDIA */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* RESPONSIF */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-left, .footer-right {
        text-align: center;
    }

    .social-icons a {
        margin: 5px;
    }
}
/* SECTION HERO */
.hero-section {
    text-align: center;
    padding: 20px;
}

.hero-section h1 {
    font-size: 28px;
    color: #007bff;
    margin-top: 10px;
}

.hero-section p {
    font-size: 18px;
    color: #333;
    margin-top: 5px;
}

/* LIST PELAYANAN */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-item img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
}

.service-item h3 {
    font-size: 20px;
    margin-top: 10px;
    color: #007bff;
}

.service-item p {
    font-size: 16px;
    color: #333;
}

/* RESPONSIF */
@media (max-width: 768px) {
    .service-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
.page-title {
    text-align: center;
    font-size: 28px;
    color: #007bff;
    margin: 20px 0;
}

/* LIST BERITA */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.news-content {
    flex: 1;
}

.news-content h2 {
    font-size: 22px;
    color: #007bff;
}

.news-date {
    font-size: 14px;
    color: #888;
}

.news-text {
    font-size: 16px;
    color: #333;
    margin-top: 5px;
}
/* Style untuk Berita */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
}

.container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-card {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-card h2 {
    font-size: 22px;
    color: #007bff;
}

.news-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.news-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.news-img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
}

.news-content {
    font-size: 16px;
    line-height: 1.6;
}

/* Jika berita kosong */
.no-news {
    text-align: center;
    font-size: 18px;
    color: #777;
}

/* Responsif */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    .news-img {
        width: 100%;
    }
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* RESPONSIF */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        text-align: center;
    }

    .news-img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }
}


table {
    width: 95%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px; rgba(0, 0, 0, .3);
    margin: 20px auto;
    }
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
th {
    background-color: #007bff;
    color: white;
    text-align: center;
}
td:hover {
    background-color: limegreen;
    color: white;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr:hover {
    background-color: #007bff;
    color: white;
}
td:nth-child(1), 

td:nth-child(4),
td:nth-child(5) {
    text-align: center;
}