:root {
    --primary: #047857;
    --primary-dark: #065f46;
    --secondary: #FCD34D;
    --white: #ffffff;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 16px;
    --nav-height: 56px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #fef9c3 100%);
    color: var(--gray-800);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

#app { width:100%; max-width:100vw; overflow-x:hidden; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4,120,87,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    height: var(--nav-height);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}
.navbar-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.navbar-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
@media (min-width:768px) {
    .navbar-name { font-size: 0.95rem; }
}

/* Desktop Menu */
.nav-desktop {
    display: none;
    list-style: none;
    align-items: center;
    gap: 4px;
}
@media (min-width:1024px) {
    .nav-desktop { display: flex; }
}
.nav-desktop a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.25s;
    white-space: nowrap;
}
.nav-desktop a:hover,
.nav-desktop a.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

/* Dropdown Desktop */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    min-width: 200px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--gray-700) !important;
    font-size: 0.85rem;
    border-radius: 0 !important;
    background: transparent !important;
}
.dropdown-menu a:hover {
    background: #f0fdf4 !important;
    color: var(--primary) !important;
}
.dropdown-toggle i {
    font-size: 0.6rem;
    margin-left: 4px;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
}
@media (min-width:1024px) {
    .hamburger { display: none; }
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.35s ease;
}
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px,-5px);
}

/* ==================== MOBILE MENU ==================== */
.nav-mobile {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(4,120,87,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25,0.8,0.25,1);
}
.nav-mobile.open {
    max-height: 600px;
}
.nav-mobile ul {
    list-style: none;
    padding: 8px 16px;
}
.nav-mobile li {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.nav-mobile.open li {
    opacity: 1;
    transform: translateX(0);
}
.nav-mobile.open li:nth-child(1)  { transition-delay: 0.00s; }
.nav-mobile.open li:nth-child(2)  { transition-delay: 0.10s; }
.nav-mobile.open li:nth-child(3)  { transition-delay: 0.20s; }
.nav-mobile.open li:nth-child(4)  { transition-delay: 0.30s; }
.nav-mobile.open li:nth-child(5)  { transition-delay: 0.40s; }
.nav-mobile.open li:nth-child(6)  { transition-delay: 0.50s; }
.nav-mobile.open li:nth-child(7)  { transition-delay: 0.60s; }
.nav-mobile.open li:nth-child(8)  { transition-delay: 0.70s; }
.nav-mobile.open li:nth-child(9)  { transition-delay: 0.80s; }
.nav-mobile.open li:nth-child(10) { transition-delay: 0.90s; }
.nav-mobile.open li:nth-child(11) { transition-delay: 1.00s; }

.nav-mobile a {
    display: block;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 12px 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ==================== CONTAINER ==================== */
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 16px; }

/* ==================== SECTION ==================== */
.section { padding:50px 0; width:100%; }
@media (min-width:768px) { .section { padding:70px 0; } }

/* ==================== HEADINGS ==================== */
h2 { font-size:1.5rem; font-weight:700; color:var(--primary); text-align:center; margin-bottom:32px; }
@media (min-width:768px) { h2 { font-size:1.8rem; margin-bottom:40px; } }
h3 { font-size:1.1rem; font-weight:600; color:var(--primary); margin-bottom:8px; }
@media (min-width:768px) { h3 { font-size:1.2rem; } }

/* ==================== CARD ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (min-width:768px) { .card { padding:24px; } }

/* ==================== GRID ==================== */
.grid-2 { display:grid; grid-template-columns:1fr; gap:20px; }
@media (min-width:768px) { .grid-2 { grid-template-columns:1fr 1fr; gap:24px; } }
.grid-3 { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:640px) { .grid-3 { grid-template-columns:1fr 1fr; } }
@media (min-width:1024px) { .grid-3 { grid-template-columns:1fr 1fr 1fr; } }
.grid-4 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (min-width:640px) { .grid-4 { grid-template-columns:repeat(4,1fr); gap:16px; } }

/* ==================== SLIDER ==================== */
.hero-section { position:relative; padding-top:var(--nav-height); }
.slider-container { position:relative; width:100%; height:400px; overflow:hidden; }
@media (min-width:769px) { .slider-container { height:600px; } }
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
@media (min-width:769px) {
    .slide img { object-position: center; }
}
.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active { background: white; }

/* ==================== HERO OVERLAY ==================== */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    padding: 16px;
}
.hero-content { max-width:700px; }
.hero-content h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 0.85rem;
    color: #FCD34D;
    margin-bottom: 20px;
    font-weight: 500;
}
@media (min-width:768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.3rem; }
}
.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
}
@media (min-width:768px) {
    .btn { padding:10px 22px; font-size:0.9rem; }
}
.btn-primary { background:var(--secondary); color:var(--primary); }
.btn-outline { background:white; color:var(--primary); }
.btn:hover { transform:scale(1.04); box-shadow:0 6px 18px rgba(0,0,0,0.15); }

/* ==================== ANIMATIONS ==================== */
.fade-in { animation: fadeIn 0.6s ease-in; }
@keyframes fadeIn {
    from { opacity:0; transform:translateY(20px); }
    to { opacity:1; transform:translateY(0); }
}
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ==================== CARD TITLE ==================== */
.card-title {
    border-bottom: 3px solid #FCD34D;
    padding-bottom: 6px;
    display: inline-block;
    margin-bottom: 12px;
}
.icon-yellow { color:#FCD34D; }

/* ==================== LOADING & CONTENT ==================== */
.loading-text { color:#6b7280; font-style:italic; font-size:0.9rem; }
.content-text {
    color: #374151;
    white-space: pre-line;
    text-align: justify;
    line-height: 1.6;
    font-size: 0.9rem;
}
.toggle-area { margin-top:16px; display:flex; gap:12px; align-items:center; }
.toggle-link { color:#059669; font-weight:600; font-size:0.85rem; text-decoration:none; }
.toggle-link:hover { text-decoration:underline; }
.toggle-icon { font-size:0.65rem; }
.retry-btn { font-size:0.85rem; color:#059669; background:none; border:none; cursor:pointer; }

/* Animasi expand/collapse untuk full text */
#history-full,
#vision-full {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease;
}
#history-full:not(.hidden),
#vision-full:not(.hidden) {
    max-height: 2000px;
    opacity: 1;
}

/* ==================== ARSIP ==================== */
.arsip-section { background:linear-gradient(135deg, #047857 0%, #065f46 100%); color:white; }
.text-white { color:white; }
.arsip-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.arsip-card:hover { background:rgba(255,255,255,0.2); transform:translateY(-4px); }
.arsip-card i { font-size:2rem; color:#FCD34D; margin-bottom:8px; display:block; }
@media (min-width:768px) { .arsip-card i { font-size:2.5rem; } }
.arsip-card h3 { color:white; font-size:1rem; margin-bottom:4px; }
.arsip-card p { font-size:0.8rem; color:#fef3c7; }

/* ==================== WELCOME ==================== */
.welcome-card { max-width:750px; margin:0 auto; }
.welcome-quote { display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; }
.quote-icon { font-size:2rem; color:#FCD34D; opacity:0.3; flex-shrink:0; }
.welcome-author { border-top:2px solid #FCD34D; padding-top:14px; display:flex; gap:12px; align-items:center; }
.author-icon { font-size:1.5rem; color:#047857; flex-shrink:0; }
.author-name { font-weight:700; font-size:1rem; color:#047857; }
.author-role { color:#4b5563; font-size:0.8rem; }

/* ==================== PROGRAM ==================== */
.program-section { background:#f0fdf4; }
.card-icon { font-size:2rem; color:#059669; }

/* ==================== FACILITY ==================== */
.facility-card { padding:0; overflow:hidden; }
.facility-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius) var(--radius) 0 0;
}
@media (min-width:768px) { .facility-img { height:200px; } }
.facility-img i { font-size:3.5rem; color:white; opacity:0.8; }
@media (min-width:768px) { .facility-img i { font-size:4.5rem; } }
.facility-body { padding:16px 20px; }

/* ==================== TESTIMONI ==================== */
.testimoni-section { background:linear-gradient(135deg, #fef9c3, #fef3c7); }
.stars { color:#facc15; font-size:1rem; margin-bottom:12px; }

/* ==================== CONTACT ==================== */
.contact-card { max-width:650px; margin:0 auto; }
.contact-heading { margin-bottom:16px; }
.contact-row { display:flex; gap:12px; align-items:flex-start; }
.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #047857;
}
.wa-icon { color:#059669; font-size:1.2rem; }
.wa-link { color:#059669; font-weight:500; font-size:0.85rem; text-decoration:none; }
.wa-link:hover { text-decoration:underline; }
.wa-link i { font-size:0.65rem; }

/* ==================== FOOTER ==================== */
footer { background:var(--primary); color:white; text-align:center; padding:24px 16px; font-size:0.85rem; }

/* ==================== UTILITY ==================== */
.hidden { display:none; }
.space-y-6 > * + * { margin-top:20px; }
.text-gray-600 { color:#4b5563; }
.text-gray-700 { color:#374151; }
.text-green-700 { color:#047857; }
.italic { font-style:italic; }
.font-semibold { font-weight:600; }
.leading-relaxed { line-height:1.6; }
.mb-1 { margin-bottom:4px; }
.mb-3 { margin-bottom:12px; }
.border-t { border-top:2px solid #FCD34D; padding-top:14px; }
.text-sm { font-size:0.75rem; }
