/* ============ Variable CSS ============ */
:root {
    --primary-color: #004b99;
    --secondary-color: #00a8a8;
    --accent-color: #ffeb3b;
    --background-color: #f5f7fa;
    --text-color: #020202;
    --header-bg-gradient: linear-gradient(90deg, #15559C 0%, #208D79 100%);
    --nav-color: #ff8c00;
    --footer-bg-gradient: linear-gradient(90deg, #1860B9 0%, #208D79 100%);
    --container-max-width: 1200px;
    --container-padding: 20px;
}

/* ============ Reset & Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Utility Classes ============ */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============ Top Bar ============ */
.top-bar {
    background-color: #fff;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar-content {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rsud-name {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-item {
    color: #000000;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.contact-icon {
    font-size: 13px;
    color: #208D79;
}

.contact-text {
    white-space: normal;
    word-break: break-word;
	font-size: 14px;  /* PERUBAHAN: tambahan untuk memperkecil teks */
}

/* ============ Header ============ */
header {
    background: var(--header-bg-gradient);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.header-wrap {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-logo-container {
    display: flex;
    align-items: center;
}

.header-logo-container img {
    height: 60px;
    width: auto;
}

.header-col-group {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.header-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-col.info img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.header-col h4 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 14px;
}

.header-col p {
    margin: 0;
    font-size: 12px;
    color: white;
    line-height: 1.4;
}

/* ============ Navigation ============ */
nav {
    background-color: var(--nav-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrap {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dropdown-arrow {
    font-size: 0.7em;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    z-index: 1002;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    color: var(--text-color);
    padding: 10px 16px;
    white-space: nowrap;
    font-size: 13px;
}

.submenu li a:hover {
    background-color: #f0f0f0;
    color: var(--nav-color);
}

nav ul li:hover > .submenu {
    display: block;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Search */
.search-icon-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-container:hover {
    background: rgba(255, 255, 255, 0.4);
}

.search-icon {
    color: white;
    font-size: 18px;
}

/* Search Overlay */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 10001;
}

.search-box {
    background-color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
}

.search-box .search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-box .search-icon-btn img {
    height: 24px;
    width: 24px;
}

/* ============ Mobile Menu Toggle ============ */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

/* ============ Hero Section & Banner ============ */
.hero-section {
    position: relative;
}

.banner-slider {
    width: 100%;
    height: 720px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#ffffff, #eef4ff);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
	z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide picture,
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Slider Navigation */
.nav {
    position: absolute;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ddd;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #1a73e8;
    transform: scale(1.2);
}

/* ============ Cards Section ============ */
.content {
    max-width: var(--container-max-width);
    margin: 60px auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    flex: 1 1 260px;
    max-width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon img {
    height: 60px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s;
}

.card:hover .card-icon img {
    filter: none;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(90deg, #3b8b6e 0%, #208d79 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: opacity 0.3s;
    width: 100%;
    margin-top: auto;
    cursor: pointer;
}

.read-more-btn:hover {
    opacity: 0.85;
}

/* ============ Footer ============ */
.tautan-section {
    background-color: #1b3a6f;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.tautan-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
}

.tautan-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.tautan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.tautan-item:hover {
    transform: translateY(-5px);
}

.tautan-item img {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-main {
    background: var(--footer-bg-gradient);
    color: white;
    padding: 50px 20px;
}

.footer-wrap-main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col-main {
    flex: 1;
    min-width: 250px;
}

.footer-logo-container-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-ppid-main img {
    width: 200px;
    height: auto;
}

.ppid-title-main {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 5px;
}

.ppid-subtitle-main {
    font-size: 11px;
    line-height: 1.4;
}

.visitor-text-main {
    font-size: 12px;
    margin-top: 10px;
}

.footer-heading-main {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.phone-number-main {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.address-text-main {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.map-container-main {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
    margin-top: 10px;
}

.map-container-main iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-copyright-main {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .banner-slider {
        height: 400px;
    }
    
    .header-col-group {
        gap: 20px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav ul li a {
        font-size: 12px;
        padding: 10px 5px;
    }
}

/* Mobile Landscape & Tablet Portrait (max-width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }
    
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-bar-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .contact-item {
        width: 100%;
		gap: 6px;
    }
    
    .contact-text {
        font-size: 10px;
    }
	
	.contact-icon {
        font-size: 12px;
    }
    
    /* Header */
    .header-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-col-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .header-col {
        justify-content: center;
        text-align: center;
    }
    
    .header-col.info {
        flex-direction: column;
        text-align: center;
    }
    
    /* Navigation Mobile */
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--nav-color);
        padding: 10px 0;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1001;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li a {
        padding: 12px 20px;
        width: 100%;
        white-space: normal;
    }
    
    /* Submenu Mobile */
    .submenu {
        display: none !important;
        position: static;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        padding-left: 20px;
    }
    
    .submenu li a {
        padding: 10px 20px;
        color: white;
    }
    
    nav ul li.active .submenu {
        display: block !important;
    }
    
    nav ul li:hover > .submenu {
        display: none;
    }
    
    .search-icon-container {
        display: none;
    }
    
    /* Banner */
    .banner-slider {
        height: 280px;
    }
    
    .nav {
        font-size: 20px;
        padding: 8px 12px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    /* Cards */
    .content {
        gap: 20px;
        margin: 40px auto;
    }
    
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    /* Footer Links */
    .tautan-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .tautan-item img {
        height: 80px;
    }
    
    /* Footer Main */
    .footer-wrap-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-col-main {
        text-align: center;
    }
    
    .footer-contact-main,
    .footer-map-main {
        text-align: center;
    }
    
    .map-container-main {
        max-width: 300px;
        margin: 10px auto 0;
    }
}

/* Mobile Small (max-width: 480px) */
@media screen and (max-width: 480px) {
    .banner-slider {
        height: 200px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .tautan-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tautan-section h2 {
        font-size: 22px;
    }
    
    .phone-number-main {
        font-size: 20px;
    }
    
    .logo-ppid-main img {
        width: 150px;
    }
    
    .ppid-title-main {
        font-size: 16px;
    }
    
    .search-box {
        width: 95%;
        padding: 12px 15px;
    }
    
    .search-box input {
        font-size: 14px;
    }
}