:root {
    --primary: #1A365D;
    --primary-dark: #102642;
    --secondary: #C9A227;
    --secondary-light: #F4D76A;
    --accent: #2D5A27;
    --accent-light: #3F7D38;
    --light: #F8F9FA;
    --soft: #EEF3F8;
    --dark: #1A1A2E;
    --muted: #6B7280;
    --white: #FFFFFF;
    --danger: #E53E3E;
    --success: #38A169;
    --shadow: 0 14px 35px rgba(26, 54, 93, 0.12);
    --shadow-soft: 0 8px 24px rgba(26, 54, 93, 0.08);
    --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26,54,93,0.08);
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.navbar-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo { display: flex; align-items: center; justify-content: flex-start; gap: 0; font-weight: 800; color: var(--primary); font-size: 1.25rem; line-height: 0; padding: 2px 0; min-width: 88px; }
.site-logo-img { width: auto; height: 66px; object-fit: contain; display: block; margin: 0; flex-shrink: 0; }
.footer-logo-img { width: auto; height: 88px; object-fit: contain; display: block; margin-bottom: 14px; flex-shrink: 0; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    color: #30415b;
    font-weight: 600;
    font-size: 0.92rem;
    transition: 0.25s ease;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(201,162,39,0.16); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-admin, .btn-admin-mobile {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}
.mobile-menu-btn { display: none; border: none; background: var(--soft); color: var(--primary); width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; }
.mobile-menu { display: none; background: var(--white); border-bottom: 1px solid rgba(26,54,93,0.08); padding: 12px 16px; }
.mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 13px 10px; border-radius: 12px; font-weight: 600; }
.mobile-menu a:hover { background: var(--soft); }
.mobile-menu.active { display: block; }

/* Scroll banner */
.scroll-banner { background: var(--primary); color: var(--white); overflow: hidden; white-space: nowrap; }
.scroll-content { display: inline-flex; gap: 34px; padding: 10px 0; animation: marquee 35s linear infinite; }
.scroll-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.scroll-item i { color: var(--secondary-light); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(26,54,93,0.92), rgba(45,90,39,0.82)),
        url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 110px 16px 80px;
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, rgba(201,162,39,0.25), transparent 34%); }
.hero-content { position: relative; z-index: 1; max-width: 950px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    margin-bottom: 24px;
    font-weight: 600;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.04; margin-bottom: 4px; }
.hero h2 { font-family: 'Playfair Display', serif; color: var(--secondary-light); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.05; margin-bottom: 20px; }
.hero p { max-width: 760px; margin: 0 auto 30px; font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.9); }
.hero-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.btn-hero, .btn-submit, .btn-detail, .btn-apply {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800;
    transition: 0.25s ease;
}
.btn-hero:hover, .btn-submit:hover, .btn-detail:hover, .btn-apply:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); color: var(--dark); }
.btn-secondary { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: var(--white); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 14px; max-width: 620px; margin: 0 auto; }
.stat-item { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.18); }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--secondary-light); }
.stat-label { color: rgba(255,255,255,0.85); font-weight: 600; }

/* News */
.news-ticker { background: var(--white); box-shadow: var(--shadow-soft); position: relative; z-index: 2; }
.news-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.news-label { flex: 0 0 auto; background: var(--danger); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 0.88rem; }
.news-content { overflow: hidden; }
.news-item { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.news-date { color: var(--accent); font-weight: 800; }
.news-title { color: #374151; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.news-line { display: block; }

/* Sections */
.section { padding: 82px 0; }
.section-alt { background: var(--soft); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-header h2 { font-family: 'Playfair Display', serif; color: var(--primary); font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 10px; }
.section-header h2 i { color: var(--secondary); }
.section-header p { color: var(--muted); font-size: 1.04rem; }
.activities-grid, .jobs-grid, .gallery-grid { display: grid; gap: 24px; }
.activities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jobs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.activity-card, .job-card, .contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(26,54,93,0.08);
    overflow: hidden;
}
.activity-card { display: grid; grid-template-columns: 130px 1fr; }
.activity-image { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--secondary-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; min-height: 180px; overflow: hidden; }
.activity-image img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }
.activity-content { padding: 22px; }
.activity-date { display: inline-block; color: var(--accent); background: rgba(45,90,39,0.1); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; margin-bottom: 12px; }
.activity-title, .job-title { color: var(--primary); margin-bottom: 10px; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.activity-desc { color: #4B5563; margin-bottom: 18px; }
.btn-detail { background: var(--primary); color: var(--white); padding: 11px 16px; }

.job-card { padding: 22px; }
.job-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.job-company { width: 54px; height: 54px; border-radius: 16px; background: rgba(201,162,39,0.18); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.job-card h4 { color: var(--accent); margin-bottom: 14px; }
.job-details { display: grid; gap: 10px; margin: 14px 0; color: #4B5563; font-size: 0.92rem; }
.job-detail { display: flex; align-items: flex-start; gap: 8px; }
.job-detail i { color: var(--primary); margin-top: 4px; }
.btn-apply { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: var(--white); width: 100%; }

/* Gallery */
.gallery-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.gallery-tab { border: none; padding: 12px 22px; border-radius: 999px; background: var(--white); color: var(--primary); font-weight: 800; cursor: pointer; box-shadow: var(--shadow-soft); }
.gallery-tab.active { background: var(--primary); color: var(--white); }
.gallery-item { position: relative; border-radius: 18px; overflow: hidden; min-height: 230px; cursor: pointer; box-shadow: var(--shadow-soft); }
.gallery-item img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; transition: transform 0.35s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(26,54,93,0.45); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; opacity: 0; transition: 0.25s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Contact */
.contact-form-wrapper { max-width: 920px; margin: 0 auto; padding: 30px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--primary); font-weight: 800; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    border: 1px solid #D6DEE8;
    border-radius: 14px;
    padding: 14px 15px;
    background: var(--white);
    outline: none;
    transition: 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(201,162,39,0.15); }
.form-hint { color: var(--muted); display: block; margin-top: 6px; }
.form-submit { text-align: center; }
.btn-submit { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); min-width: 210px; }

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 56px 0 24px; }
.footer-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo h3, .footer-links h4, .footer-contact h4 { margin-bottom: 14px; }
.footer-logo p, .footer-contact p, .footer-links a { color: rgba(255,255,255,0.78); }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a:hover { color: var(--secondary-light); }
.footer-contact p { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.footer-bottom { padding-top: 22px; text-align: center; color: rgba(255,255,255,0.76); }
.visitor-counter { margin-bottom: 10px; }
.visitor-counter strong { color: var(--secondary-light); }

/* Modal & Toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.62); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 2000; }
.modal.active { display: flex; }
.modal-content { background: var(--white); width: min(640px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 20px; padding: 28px; position: relative; box-shadow: 0 28px 80px rgba(0,0,0,0.25); }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 2rem; cursor: pointer; color: var(--muted); line-height: 1; }
.toast { position: fixed; right: 22px; bottom: 22px; background: var(--accent); color: var(--white); padding: 14px 18px; border-radius: 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); transform: translateY(120px); opacity: 0; transition: 0.25s ease; z-index: 3000; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
    .nav-menu, .btn-admin { display: none; }
    .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .hero { min-height: auto; padding-top: 84px; }
    .activities-grid, .jobs-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .navbar-container { min-height: 66px; }
    .hero-badge { border-radius: 16px; }
    .hero-buttons, .news-container { align-items: stretch; flex-direction: column; }
    .hero-stats, .activities-grid, .jobs-grid, .gallery-grid, .form-row { grid-template-columns: 1fr; }
    .activity-card { grid-template-columns: 1fr; }
    .activity-image { min-height: 130px; }
    .contact-form-wrapper { padding: 20px; }
    .gallery-tabs { flex-wrap: wrap; }
}


.requirements-list {
    margin: 8px 0 0 18px;
    padding: 0;
    display: grid;
    gap: 6px;
}
.requirements-list li {
    line-height: 1.45;
}
.job-requirements {
    align-items: flex-start;
}
.job-card .btn-apply {
    width: 100%;
}
@media (max-width: 768px) {
    .site-logo-img { height: 52px; }
    .footer-logo-img { height: 70px; padding: 0; }
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.72)); color: #fff; font-weight: 700; z-index: 2; }


/* Activity multi media */
.activity-media-field {
    min-width: 230px;
    height: 76px;
    resize: vertical;
    line-height: 1.4;
    padding-top: 12px;
}
.admin-media-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    max-width: 210px;
}
.admin-media-thumb, .admin-video-thumb {
    width: 78px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    background: #eef3f8;
    flex-shrink: 0;
}
.admin-video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
}
.admin-media-empty {
    color: #888;
}
.video-thumb {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(10,45,80,0.9), rgba(45,90,39,0.9));
    color: #fff;
    font-weight: 800;
}
.video-thumb i {
    font-size: 2.8rem;
    color: var(--secondary);
}
.media-carousel {
    position: relative;
    margin-bottom: 18px;
}
.media-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 16px;
    scrollbar-width: thin;
}
.media-slide {
    min-width: 100%;
    scroll-snap-align: start;
    background: #0b1322;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-slide img,
.media-slide video,
.media-slide iframe {
    width: 100%;
    max-height: 430px;
    min-height: 260px;
    object-fit: contain;
    border: 0;
    background: #0b1322;
}
.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(10,45,80,0.88);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    z-index: 2;
}
.media-nav:hover {
    background: var(--primary);
}
.media-prev {
    left: 10px;
}
.media-next {
    right: 10px;
}
.media-counter {
    text-align: center;
    color: #6c7a89;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 8px;
}
.media-error {
    padding: 40px 18px;
    color: #fff;
    text-align: center;
}
@media (max-width: 768px) {
    .media-slide img,
    .media-slide video,
    .media-slide iframe {
        max-height: 300px;
        min-height: 220px;
    }
    .media-nav {
        width: 36px;
        height: 36px;
    }
}

.time-24h-input { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.media-error small { display:block; margin-top:8px; font-size:.78rem; opacity:.8; }

/* Popup Info / Iklan RW 08
   Class khusus rw08-promo-popup agar tidak bentrok dan tidak mengubah tampilan web utama. */
.rw08-promo-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rw08-promo-popup.is-active {
    display: flex;
}

.rw08-promo-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.rw08-promo-popup__box {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    z-index: 1;
    animation: rw08PromoPopupShow 0.28s ease;
}

.rw08-promo-popup__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #1A1A2E;
    font-size: 30px;
    line-height: 42px;
    font-weight: 700;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.rw08-promo-popup__close:hover {
    background: #f1f1f1;
}

.rw08-promo-popup__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rw08-promo-popup__image {
    width: 100%;
    max-height: calc(100vh - 60px);
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
    background: transparent;
}

.rw08-promo-popup__fallback {
    display: none;
    width: 100%;
    border-radius: 24px;
    padding: 30px 22px 28px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 0%, rgba(244, 215, 106, 0.45), transparent 32%),
        linear-gradient(145deg, #1A365D, #2D5A27);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.rw08-promo-popup__fallback h2 {
    margin: 12px 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 6vw, 2.7rem);
    line-height: 1.05;
}

.rw08-promo-popup__fallback p {
    margin: 0 auto 20px;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.9);
}

.rw08-promo-popup__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #F4D76A;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.rw08-promo-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--dark);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

@keyframes rw08PromoPopupShow {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .rw08-promo-popup {
        padding: 18px;
    }

    .rw08-promo-popup__box {
        width: min(340px, 100%);
    }

    .rw08-promo-popup__close {
        top: -10px;
        right: -10px;
        width: 38px;
        height: 38px;
        font-size: 26px;
        line-height: 38px;
    }

    .rw08-promo-popup__image {
        border-radius: 18px;
    }

    .rw08-promo-popup__fallback {
        border-radius: 20px;
        padding: 28px 18px 24px;
    }
}

