/* ================= VARIABLES ================= */
:root {
    --primary-color: #007bff; /* Biru Tua */
    --secondary-color: #20c997; /* Hijau Toska */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ================= BASE STYLES ================= */
body {
    background: linear-gradient(135deg, #0a4da2, #0e76c7);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: 0.15;
    pointer-events: none;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}
a:hover {
    color: var(--secondary-color);
}
h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

/* ================= HEADER & NAVIGATION ================= */
.rsbk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #ffffff;
    border-bottom: 1px solid #d9d9d9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}
.rsbk-logo {
    width: 70px;
    height: auto;
    object-fit: contain;
}
.rsbk-header-text h1 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    color: #003366;
    font-weight: 700;
}
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li {
    margin-left: 25px;
}
.nav-links a {
    font-weight: 600;
    padding: 5px 0;
    display: block;
    color: var(--text-color);
}
.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0;
}

/* ================= MAIN CONTENT ================= */
.rsbk-homepage {
    max-width: 1200px;
    margin: 25px auto 90px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    position: relative;
}

/* HERO SLIDER */
.rsbk-hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.rsbk-slide {
    display: none;
    width: 100%;
    height: 100%;
}
.rsbk-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rsbk-slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
    width: 90%;
}
.rsbk-slider-text h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}
.rsbk-slider-text p {
    font-size: 18px;
    margin-bottom: 20px;
}
.btn-main {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}
.btn-main:hover {
    background-color: #1aae82;
    color: white;
}

/* SERVICES GRID */
.rsbk-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.rsbk-service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-top: 5px solid var(--secondary-color);
    transition: 0.3s;
}
.rsbk-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    border-top-color: var(--primary-color);
}
.rsbk-service-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* NEWS / ABOUT */
.rsbk-news-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    margin-bottom: 15px;
}

/* ================= FOOTER ================= */
footer {
    background-color: #343a40;
    color: white;
    padding: 40px 5% 20px;
    margin-top: 40px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-info, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ccc;
}
.footer-links a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}

/* ================= RESPONSIVE MOBILE ================= */
@media (max-width: 992px) {
    /* Navbar Toggle */
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }
    nav.active {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        padding: 0;
    }
    .nav-links li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .nav-links a {
        padding: 15px 5%;
    }
    
    .rsbk-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rsbk-header-text h1 { font-size: 16px; }
    .rsbk-logo { width: 55px; }
    .rsbk-hero-slider { height: 250px; }
    .rsbk-slider-text h1 { font-size: 20px; }
    .rsbk-slider-text p { font-size: 14px; }
    .rsbk-homepage { margin: 15px; padding: 15px; }
    .footer-content { flex-direction: column; }
}

@media (max-width: 480px) {
    .rsbk-services-grid { grid-template-columns: 1fr; }
}

/* ================= TAMBAHAN SEKSI BARU ================= */
.bg-light { background-color: #f8f9fa; }
.text-center { text-align: center; }

/* Layout Sejarah & Struktur Organisasi */
.rsbk-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}
.rsbk-about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Grid Maklumat & Alur Pelayanan */
.rsbk-image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.rsbk-image-grid-2 img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Grid Ruangan IGD */
.rsbk-image-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.rsbk-image-grid-5 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.rsbk-image-grid-5 img:hover {
    transform: scale(1.05);
}

/* Grid Galeri Sertifikat (Fit Otomatis) */
.rsbk-image-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.rsbk-image-grid-auto img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.rsbk-image-grid-auto img:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* Responsif untuk Layar Kecil / HP */
@media (max-width: 768px) {
    .rsbk-about-grid { grid-template-columns: 1fr; }
    .rsbk-image-grid-2 { grid-template-columns: 1fr; }
}

/* Perbarui bagian ini di css/style.css Anda */
.hero-contact-info .contact-socials {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-contact-info .contact-socials a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.hero-contact-info .contact-socials a:hover {
    transform: scale(1.1);
}