/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffffcc;
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo-placeholder {
    width: 150px;
    height: 50px;
    /*background-color: #ccc;*/
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.logo {
    width: 100%;
    height: auto;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: 0.3s;
}

.navbar ul li a:hover,
.navbar ul li .btn-login:hover {
    color: #2980b9;
}

.btn-login {
    padding: 0.4rem 0.8rem;
    background-color: #3498db;
    color: white !important;
    border-radius: 5px;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: url('/images/bg-hospital.jpg') center center / cover no-repeat;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background-color: rgba(0,0,0,0.55);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-text {
    color: white;
    text-align: center;
    max-width: 700px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: #2980b9;
}

/* Tentang */
.tentang {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.tentang .container {
    max-width: 900px;
    margin: 0 auto;
}

.tentang h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tentang p {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: #555;
}

.fitur {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.fitur-item {
    flex: 1 1 250px;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fitur-item h3 {
    margin-bottom: 0.5rem;
    color: #3498db;
}

.fitur-item p {
    color: #666;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

.berita {
    background: #f9f9f9;
    padding: 40px 0;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.berita-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.berita-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.berita-content {
    padding: 15px;
}

.berita-content h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.berita-content p {
    margin: 0 0 6px;
    color: #444;
    font-size: 0.95rem;
}

.berita-content small {
    color: #777;
    font-size: 0.85rem;
}

.berita h2{
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.galeri-section {
    padding: 40px 20px;
    background-color: #f9fafb;
}

.galeri-title {
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    color: #1f2937;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.galeri-item .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.galeri-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.galeri-item:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(31, 41, 55, 0.7); /* abu gelap transparan */
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

