/* ========== PREMIUM GREEN HEALTHCARE THEME ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;

    --bg-body: #f0fdf4;
    --bg-white: #ffffff;
    --text-heading: #022c22;
    --text-body: #374151;
    --text-muted: #6b7280;

    --gradient-hero: linear-gradient(135deg, #064e3b 0%, #047857 30%, #059669 60%, #0d9488 100%);
    --gradient-card: linear-gradient(135deg, #059669, #0d9488);
    --gradient-accent: linear-gradient(135deg, #34d399, #14b8a6);
    --gradient-dark: linear-gradient(135deg, #022c22 0%, #064e3b 100%);

    --shadow-sm: 0 2px 8px rgba(5,150,105,0.08);
    --shadow-md: 0 8px 30px rgba(5,150,105,0.12);
    --shadow-lg: 0 20px 50px rgba(5,150,105,0.18);
    --shadow-xl: 0 25px 60px rgba(5,150,105,0.25);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 50px;

    --transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

/* ========== RESET ========== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family:'Poppins',sans-serif; font-weight:700; color:var(--text-heading); }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { max-width:100%; display:block; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top:0; left:0; width:100%; z-index:1000;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(5,150,105,0.1);
    transition: var(--transition);
}
.navbar.scrolled { background:rgba(255,255,255,0.95); box-shadow:var(--shadow-md); }

.nav-container {
    max-width: 1400px; /* Lebar container ditambah biar lebih ke pojok */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
}

.nav-logo { display:flex; align-items:center; gap:0.9rem; }
.logo-img { height:48px; width:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,.12)); transition:var(--transition); }
.nav-logo:hover .logo-img { transform:scale(1.08) rotate(-3deg); }
.logo-text { display:flex; flex-direction:column; }
.logo-title {
    font-family:'Poppins',sans-serif; font-weight:800; font-size:1.15rem;
    background: linear-gradient(135deg,#047857,#0d9488);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text; line-height:1.2;
}
.logo-sub { font-size:.75rem; color:var(--emerald-600); font-weight:600; letter-spacing:1.5px; text-transform:uppercase; }

.nav-menu { display:flex; gap:0.4rem; align-items:center; }
.nav-link {
    font-weight:600; color:var(--text-heading); font-size:.92rem;
    padding:.6rem 1.1rem; border-radius:var(--radius-sm);
    transition:var(--transition); display:flex; align-items:center; gap:.45rem;
    position:relative;
}
.nav-link i { font-size:.95rem; color:var(--emerald-500); transition:var(--transition); }
.nav-link:hover, .nav-link.active {
    background: var(--emerald-600);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}
.nav-link:hover i, .nav-link.active i { 
    color: #ffffff; 
}
.nav-link.active::after {
    display: none; /* Removed the small underline as the background pill is now distinct */
}

/* Dropdown */
.nav-dropdown { position:relative; }
.nav-arrow { font-size:.65rem!important; transition:var(--transition); margin-left:2px; }
.nav-dropdown:hover .nav-arrow { transform:rotate(180deg); }
.dropdown-menu {
    position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%) translateY(10px);
    background:var(--bg-white); min-width:240px; border-radius:var(--radius-md);
    box-shadow:var(--shadow-lg); opacity:0; visibility:hidden;
    transition:var(--transition); padding:.6rem; border:1px solid var(--emerald-100);
}
.nav-dropdown:hover .dropdown-menu { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.dropdown-menu li a {
    display:flex; align-items:center; gap:.6rem; padding:.75rem 1.2rem;
    color:var(--text-body); font-weight:500; border-radius:var(--radius-sm); transition:var(--transition);
}
.dropdown-menu li a:hover { background:var(--emerald-50); color:var(--emerald-700); }
.dropdown-menu li a i { font-size:.7rem; color:var(--emerald-400); }

.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:4px; }
.nav-toggle span { display:block; width:24px; height:2.5px; background:var(--emerald-700); margin:5px 0; border-radius:3px; transition:var(--transition); }

/* ========== MAIN ========== */
main { margin-top:78px; min-height:60vh; }

/* ========== HERO ========== */
.hero {
    position:relative; padding:7rem 2rem 8rem;
    background: url('https://images.unsplash.com/photo-1604598939574-50b7335db2c7?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    color:#fff; overflow:hidden;
    display:flex; align-items:center; justify-content:center; text-align:center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.7;
    z-index: 1;
}

.hero::after {
    content:''; position:absolute; bottom:-2px; left:0; width:100%; height:80px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f0fdf4' d='M0,40 C360,80 720,0 1080,40 C1260,60 1360,50 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

.hero-content { position:relative; z-index:2; max-width:750px; }
.hero-badge {
    display:inline-flex; align-items:center; gap:.5rem;
    background:rgba(255,255,255,.15); backdrop-filter:blur(8px);
    padding:.55rem 1.6rem; border-radius:var(--radius-full);
    font-weight:600; font-size:.85rem; border:1px solid rgba(255,255,255,.25);
    animation: fadeInUp .8s ease;
}
.hero-title {
    font-size:3.8rem; font-weight:900; line-height:1.15; margin:1.5rem 0;
    text-shadow:0 4px 20px rgba(0,0,0,.2);
    animation: fadeInUp .8s ease .15s backwards;
}
.hero-desc {
    font-size:1.15rem; opacity:.92; margin-bottom:2.5rem; line-height:1.8;
    animation: fadeInUp .8s ease .3s backwards;
}
.hero-btn {
    display:inline-flex; align-items:center; gap:.7rem;
    background:#fff; color:var(--emerald-800);
    padding:1rem 2.4rem; border-radius:var(--radius-full);
    font-weight:700; font-size:1.05rem; font-family:'Poppins',sans-serif;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    transition:var(--transition);
    animation: fadeInUp .8s ease .45s backwards;
}
.hero-btn:hover { transform:translateY(-4px); box-shadow:0 18px 40px rgba(0,0,0,.22); background:var(--emerald-50); }
.hero-btn i { transition:transform .3s; }
.hero-btn:hover i:last-child { transform:translateX(4px); }

/* ========== SECTION HEADER ========== */
.section-header { text-align:center; margin-bottom:3.5rem; }
.section-subtitle {
    display:inline-flex; align-items:center; gap:.4rem;
    color:var(--emerald-600); font-weight:700; text-transform:uppercase;
    letter-spacing:2px; font-size:.82rem; margin-bottom:.6rem;
}
.section-title {
    font-size:2.4rem; position:relative; display:inline-block; padding-bottom:1rem;
}
.section-title::after {
    content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
    width:60px; height:4px; background:var(--gradient-accent); border-radius:4px;
}

/* ========== CARDS ========== */
.card-grid {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:2rem; max-width:1240px; margin:0 auto; padding:0 2rem;
}

.glass-card {
    background:var(--bg-white); border-radius:var(--radius-lg);
    padding:2.5rem 2rem; box-shadow:var(--shadow-sm);
    border:1px solid var(--emerald-100); transition:var(--transition);
    position:relative; overflow:hidden;
}
.glass-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:4px;
    background:var(--gradient-accent); opacity:0; transition:var(--transition);
}
.glass-card:hover {
    transform:translateY(-8px); box-shadow:var(--shadow-lg); border-color:var(--emerald-200);
}
.glass-card:hover::before { opacity:1; }

.card-icon {
    width:64px; height:64px; border-radius:var(--radius-md);
    background:linear-gradient(135deg,var(--emerald-50),var(--emerald-100));
    display:flex; align-items:center; justify-content:center;
    font-size:1.6rem; color:var(--emerald-600); margin-bottom:1.5rem;
    transition:var(--transition);
}
.glass-card:hover .card-icon {
    background:var(--gradient-card); color:#fff; transform:scale(1.08);
}

.card-title { font-size:1.3rem; margin-bottom:.8rem; color:var(--emerald-800); }
.card-text { color:var(--text-muted); margin-bottom:1.5rem; font-size:.95rem; }

.btn-outline {
    display:inline-flex; align-items:center; gap:.4rem;
    padding:.55rem 1.4rem; border:2px solid var(--emerald-500);
    color:var(--emerald-600); border-radius:var(--radius-full);
    font-weight:600; font-size:.9rem; transition:var(--transition);
}
.btn-outline:hover { background:var(--emerald-600); color:#fff; border-color:var(--emerald-600); transform:translateY(-2px); }

/* ========== MATERI CARDS ========== */
.materi-card {
    background:var(--bg-white); border-radius:var(--radius-lg); overflow:hidden;
    box-shadow:var(--shadow-sm); transition:var(--transition); display:flex; flex-direction:column;
    border:1px solid var(--emerald-100);
}
.materi-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-lg); }
.materi-img { width:100%; height:200px; object-fit:cover; transition:transform .5s ease; }
.materi-card:hover .materi-img { transform:scale(1.05); }
.materi-content { padding:1.5rem; flex-grow:1; display:flex; flex-direction:column; }
.materi-category { font-size:.78rem; color:var(--emerald-600); font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:.5rem; }
.materi-title { font-size:1.15rem; margin-bottom:.8rem; }
.materi-excerpt { color:var(--text-muted); font-size:.92rem; margin-bottom:1.2rem; flex-grow:1; }
.materi-meta {
    display:flex; justify-content:space-between; align-items:center;
    border-top:1px solid var(--emerald-100); padding-top:1rem; font-size:.83rem; color:var(--text-muted);
}

/* ========== PAGE HEADER ========== */
.page-header {
    background:var(--gradient-hero); color:#fff;
    padding:8rem 2rem 4rem; text-align:center;
    position:relative; overflow:hidden;
}
.page-header::before {
    content:''; position:absolute; inset:0;
    background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header::after {
    content:''; position:absolute; bottom:-2px; left:0; width:100%; height:60px;
    background:url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f0fdf4' d='M0,30 C480,60 960,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom/cover;
}
.page-header h1 { font-size:2.5rem; margin-bottom:.5rem; position:relative; z-index:1; color:#fff; }
.page-header p { position:relative; z-index:1; opacity:.9; font-size:1.05rem; }

.page-wrapper { padding:4rem 2rem; max-width:1240px; margin:0 auto; }

/* ========== CONTENT BOX ========== */
.content-box {
    background:var(--bg-white); border-radius:var(--radius-lg);
    padding:3rem; box-shadow:var(--shadow-sm); border:1px solid var(--emerald-100);
}

/* ========== LIST CUSTOM ========== */
.list-custom li {
    position:relative; padding-left:2rem; margin-bottom:1.1rem; font-size:1.05rem;
}
.list-custom li::before {
    content:'\f058'; font-family:'Font Awesome 6 Free'; font-weight:900;
    position:absolute; left:0; top:3px; color:var(--emerald-500);
}

/* ========== ORG CHART ========== */
.org-chart { display:flex; flex-direction:column; align-items:center; padding:2rem 0; }
.org-level { display:flex; justify-content:center; gap:2rem; flex-wrap:wrap; }
.org-connector { width:3px; height:40px; background:var(--gradient-accent); margin:0 auto; border-radius:3px; }
.org-card {
    background:var(--bg-white); border:2px solid var(--emerald-200);
    border-radius:var(--radius-md); padding:2rem 1.5rem; text-align:center;
    min-width:200px; max-width:250px; transition:var(--transition); box-shadow:var(--shadow-sm);
}
.org-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.org-head { background:var(--gradient-hero); color:#fff; border-color:transparent; }
.org-head h3,.org-head p { color:#fff; }
.org-avatar {
    width:60px; height:60px; border-radius:50%;
    background:linear-gradient(135deg,var(--emerald-50),var(--emerald-100));
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 1rem; font-size:1.5rem; color:var(--emerald-600);
}
.org-head .org-avatar { background:rgba(255,255,255,.2); color:#fff; }
.org-card h3 { font-size:1.1rem; margin-bottom:.3rem; }
.org-card p { font-size:.88rem; color:var(--text-muted); }

/* ========== ACTIVE FILTER ========== */
.active-filter {
    background: var(--gradient-card) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
    font-weight: 700;
}

/* ========== MATERI DETAIL ========== */
.materi-detail-content { line-height:1.9; font-size:1.05rem; }
.materi-detail-content h3 { color:var(--emerald-800); font-size:1.35rem; margin:2rem 0 1rem; padding-bottom:.5rem; border-bottom:2px solid var(--emerald-200); }
.materi-detail-content ul,.materi-detail-content ol { padding-left:1.5rem; margin-bottom:1.5rem; }
.materi-detail-content li { margin-bottom:.8rem; list-style:disc; }
.materi-detail-content ol li { list-style:decimal; }
.materi-detail-content p { margin-bottom:1rem; }

/* ========== FOOTER ========== */
.footer {
    background: var(--gradient-dark);
    color:rgba(255,255,255,.8); padding:5rem 2rem 2rem; position:relative;
}
.footer::before {
    content:''; position:absolute; top:0; left:0; width:100%; height:5px;
    background:var(--gradient-accent);
}
.footer-container {
    max-width:1240px; margin:0 auto;
    display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem;
}
.footer-logo { display:flex; align-items:center; gap:1rem; margin-bottom:1.5rem; color:#fff; }
.footer-logo img { height:40px; }
.footer-logo h3 { font-size:1.15rem; margin:0; color:#fff; }
.footer-logo p { font-size:.78rem; color:var(--emerald-300); margin:0; }
.footer-desc { font-size:.92rem; line-height:1.7; opacity:.85; }
.footer-col h4 {
    color:#fff; font-size:1.1rem; margin-bottom:1.5rem;
    position:relative; padding-bottom:.5rem;
}
.footer-col h4::after { content:''; position:absolute; bottom:0; left:0; width:35px; height:3px; background:var(--emerald-400); border-radius:3px; }
.footer-col ul { display:flex; flex-direction:column; gap:.7rem; }
.footer-col a { transition:var(--transition); font-size:.92rem; }
.footer-col a:hover { color:var(--emerald-300); padding-left:4px; }
.footer-contact li { display:flex; gap:.8rem; align-items:flex-start; font-size:.9rem; }
.footer-contact i { color:var(--emerald-400); margin-top:4px; }
.footer-social { display:flex; gap:.8rem; margin-bottom:1rem; }
.social-btn {
    width:42px; height:42px; border-radius:50%;
    background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center;
    color:#fff; transition:var(--transition); font-size:1rem;
}
.social-btn:hover { background:var(--emerald-500); transform:translateY(-3px); box-shadow:0 6px 20px rgba(16,185,129,.3); }
/* WhatsApp floating button */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}
.whatsapp-widget a {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    transition: var(--transition);
    font-size: 1.8rem;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37,211,102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}

.whatsapp-widget a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--gradient-dark);
    color: #fff;
    padding: 8px 15px;
    border-radius: 12px;
    opacity: 0;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-md);
}
.whatsapp-widget a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.whatsapp-widget a:hover {
    transform: scale(1.1);
    animation: none;
}
.footer-note { font-size:.85rem; opacity:.7; }
.footer-bottom {
    max-width:1240px; margin:0 auto; padding-top:2rem;
    border-top:1px solid rgba(255,255,255,.1);
    display:flex; justify-content:space-between; align-items:center; font-size:.88rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from{opacity:0;transform:translateY(25px)} to{opacity:1;transform:translateY(0)} }

/* ========== RESPONSIVE ========== */
@media(max-width:992px){
    .nav-menu {
        display:none; position:absolute; top:78px; left:0; width:100%;
        background:var(--bg-white); flex-direction:column; padding:1.5rem;
        box-shadow:var(--shadow-lg); gap:.3rem; border-top:1px solid var(--emerald-100);
    }
    .nav-menu.active { display:flex; }
    .nav-toggle { display:block; }
    .dropdown-menu { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; padding-left:1rem; display:none; min-width:auto; }
    .nav-dropdown.active .dropdown-menu { display:block; }
    .footer-container { grid-template-columns:1fr 1fr; }
}
@media(max-width:768px){
    .hero { padding:6rem 1.5rem 7rem; }
    .hero-title { font-size:2.5rem; }
    .hero-desc { font-size:1rem; }
    .section-title { font-size:2rem; }
    .page-header h1 { font-size:2rem; }
    .content-box { padding:2rem 1.5rem; }
    .card-grid { grid-template-columns:1fr; padding:0 1.5rem; }
    .footer-container { grid-template-columns:1fr; }
    .footer-bottom { flex-direction:column; gap:.8rem; text-align:center; }
    .org-level { flex-direction:column; align-items:center; }
    .page-wrapper > div { grid-template-columns:1fr!important; }
}
