/* Larexa Inspired Design System */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary-grad: linear-gradient(150deg, #2AB9A5 0%, #97C74E 100%);
    --primary-color: #2AB9A5;
    --secondary-color: #97C74E;
    --text-dark: #212529;
    --text-muted: #8F9397;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.1);
    --radius-lg: 30px;
    --radius-md: 15px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Loading Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-center {
    width: 50px;
    height: 50px;
    border: 3px solid #eee;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Top Bar */
.top-bar {
    background: var(--bg-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.top-bar-item i {
    color: var(--primary-color);
}

.top-bar-right a {
    color: var(--text-muted);
    margin-left: 15px;
}

.top-bar-right a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-item {
    position: relative;
    padding: 10px 0;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 25px;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 30px;
}

/* Hero Slider */
.slider {
    position: relative;
    height: 600px;
    background: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
    z-index: 10;
}

.slide-text h2 {
    font-size: 56px;
    color: #fff;
    margin-bottom: 20px;
}

.slide-text p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.cta-button {
    background: var(--primary-grad);
    color: #fff;
    padding: 15px 35px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(42, 185, 165, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(42, 185, 165, 0.4);
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Poliklinik Cards */
.poliklinik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.poli-card {
    background: var(--bg-white);
    padding: 50px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f1f1f1;
    transition: var(--transition);
}

.poli-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.poli-card i {
    font-size: 50px;
    margin-bottom: 25px;
    background: var(--primary-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layanan Unggulan */
.layanan-unggulan-section {
    background-color: var(--bg-light);
}

.unggulan-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    border-top: 5px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.unggulan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.unggulan-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-grad) !important;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.unggulan-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.unggulan-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.unggulan-items {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    flex-grow: 1;
}

.unggulan-items li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 15px;
}

.unggulan-items li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.unggulan-price {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.price-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.price-value {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

.btn-unggulan {
    background: var(--primary-grad) !important;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.btn-unggulan:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Dokter Section */
.dokter-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.dokter-photo {
    height: 350px;
    background: #eee;
}

.dokter-info .spesialis {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* News Section */
.news-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.news-date {
    background: var(--primary-grad);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

/* Announcement */
.memo-section {
    background: var(--primary-grad);
    padding: 100px 0;
}

.memo-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 60px;
    color: #fff;
}

/* Footer */
footer {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-section p,
.footer-section a {
    color: #8F9397;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: #555;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    padding: 100px 40px;
    transition: var(--transition);
    display: none;
}

.mobile-menu.active {
    left: 0;
    display: block;
}

/* Pengumuman Modal Styles */
.pengumuman-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.pengumuman-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pengumuman-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: var(--radius-lg);
    max-width: 85%;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pengumuman-modal-body {
    padding: 15px;
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pengumuman-modal-body img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.pengumuman-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: var(--primary-grad);
    color: white;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 10000;
}

.pengumuman-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .pengumuman-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .pengumuman-modal-body img {
        max-height: 85vh;
    }

    .pengumuman-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: -10px;
        right: -10px;
    }
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-dropdown-content {
    display: none;
    padding: 15px 0 0 20px;
    flex-direction: column;
    gap: 10px;
}

.mobile-dropdown-content.active {
    display: flex;
}

.mobile-dropdown-content a {
    color: var(--text-muted);
    font-size: 18px;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .slide-text h2 {
        font-size: 36px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}