:root {
    --primary-green: #1B4D3E;
    --secondary-green: #2C7A53;
    --deep-green: #113329;
    --earth-brown: #C38D4F;
    --light-bg: #F4F7F5;
    --soft-green: #E8F0EA;
    --text-dark: #2C3E35;
    --text-muted: #66756E;
    --white: #FFFFFF;
    --border-soft: rgba(27, 77, 62, 0.12);
    --shadow-soft: 0 12px 30px rgba(27, 77, 62, 0.08);
    --content-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }
a { color: inherit; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
}
.nav-container {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.site-logo a {
    color: var(--earth-brown);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.primary-menu a {
    color: #fff;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color .25s ease;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--earth-brown); }

/* Shared */
.section-shell,
.fg-container { width: min(var(--content-width), calc(100% - 40px)); margin: 0 auto; }
.section-header { text-align: center; }
.section-header h2 {
    position: relative;
    display: inline-block;
    margin: 0 0 18px;
    color: var(--primary-green);
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.2;
}
.section-header h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--earth-brown);
}
.section-header p { max-width: 720px; margin: 0 auto; color: var(--text-muted); }
.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(44, 122, 83, .10);
    color: var(--secondary-green);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 999px;
    transition: .25s ease;
}
.btn-primary { padding: 14px 26px; background: var(--earth-brown); color: #fff; }
.btn-primary:hover { background: #A37038; transform: translateY(-2px); }
.btn-outline { padding: 11px 17px; border: 1px solid rgba(44,122,83,.25); color: var(--secondary-green); background: #fff; }
.btn-outline:hover { color: #fff; background: var(--secondary-green); border-color: var(--secondary-green); }

/* Hero */
.hero-section {
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    background-image: linear-gradient(rgba(27,77,62,.84), rgba(27,77,62,.72)), url('https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-content { width: min(820px, 100%); }
.hero-kicker { display: block; margin-bottom: 12px; color: var(--earth-brown); font-weight: 800; letter-spacing: 2px; }
.hero-content h1 { margin: 0 0 20px; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.06; text-transform: uppercase; }
.hero-content p { margin: 0 auto 30px; max-width: 760px; color: #E8F5E9; font-size: 1.12rem; }

/* Visi */
.visi-section { padding: 96px 20px; background: var(--primary-green); color: #fff; text-align: center; }
.visi-container { width: min(900px, 100%); margin: 0 auto; }
.visi-title { margin-bottom: 18px; color: var(--earth-brown); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; }
.visi-text { font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.55; }

/* Misi */
.misi-section { padding: 96px 20px; background: var(--light-bg); }
.misi-grid { width: min(var(--content-width), calc(100% - 0px)); margin: 46px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.misi-card {
    position: relative;
    min-height: 220px;
    padding: 36px 28px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-bottom: 5px solid var(--secondary-green);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}
.misi-card:hover { transform: translateY(-7px); box-shadow: 0 18px 38px rgba(27,77,62,.13); }
.misi-number { position: absolute; top: -10px; right: 10px; color: rgba(44,122,83,.06); font-size: 5rem; font-weight: 800; line-height: 1; }
.misi-card h3 { position: relative; z-index: 1; margin: 8px 0 13px; color: var(--primary-green); font-size: 1.22rem; }
.misi-card p { position: relative; z-index: 1; margin: 0; color: #596861; }

/* Destination & Activity */
.destination-activity-section {
    position: relative;
    padding: 90px 0 72px;
    overflow: hidden;
    background: var(--soft-green);
}
.destination-activity-section::before,
.destination-activity-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.destination-activity-section::before { width: 360px; height: 360px; left: -190px; top: -160px; background: rgba(44,122,83,.07); }
.destination-activity-section::after { width: 300px; height: 300px; right: -150px; bottom: -160px; background: rgba(195,141,79,.07); }
.destination-header { position: relative; z-index: 2; margin-bottom: 38px; }
.activity-marquee {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 28px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.activity-marquee-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: fgActivityScroll 80s linear infinite;
    will-change: transform;
}
.activity-group {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding-right: 24px;
    flex: 0 0 auto;
}
.activity-card {
    flex: 0 0 360px;
    width: 360px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(27,77,62,.09);
}
.activity-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.activity-card-image { position: relative; height: 210px; flex: 0 0 210px; overflow: hidden; background: linear-gradient(135deg, #173F33, #2C7A53); }
.activity-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.activity-card:hover .activity-card-image img { transform: scale(1.06); }
.activity-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: 2px; background: linear-gradient(135deg, #173F33, #2C7A53); }
.activity-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,37,29,.82), rgba(9,37,29,0) 70%); }
.activity-read-more { position: absolute; right: 15px; bottom: 13px; color: #fff; font-size: .77rem; font-weight: 800; opacity: 0; transform: translateY(7px); transition: .25s ease; }
.activity-card:hover .activity-read-more { opacity: 1; transform: none; }
.activity-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 19px 17px; }
.activity-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.activity-category { max-width: 67%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: #E8F7EE; color: var(--secondary-green); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .65px; }
.activity-date { color: #7A8781; font-size: .71rem; white-space: nowrap; }
.activity-card-body h3 { margin: 0 0 10px; color: var(--primary-green); font-size: 1.09rem; line-height: 1.38; }
.activity-card-body p { min-height: 75px; margin: 0; color: #596861; font-size: .88rem; line-height: 1.62; }
.activity-author { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(27,77,62,.08); font-size: .72rem; }
.activity-author span { color: #78847E; }
.activity-author strong { color: var(--secondary-green); white-space: nowrap; }
.activity-footer-cta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(var(--content-width), calc(100% - 40px)); margin: 8px auto 0; padding-top: 18px; border-top: 1px solid rgba(27,77,62,.10); color: #5F6D66; font-size: .86rem; }
.activity-empty { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; padding: 50px 30px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); text-align: center; }
.activity-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 50%; background: var(--primary-green); color: var(--earth-brown); font-weight: 800; font-family: 'Montserrat', sans-serif; }
.activity-empty h3, .activity-empty h2 { margin: 0 0 8px; color: var(--primary-green); }
.activity-empty p { margin: 0; color: var(--text-muted); }
@keyframes fgActivityScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Blog */
.fg-blog-page { background: var(--light-bg); }
.fg-blog-hero { padding: 78px 20px 55px; background: var(--soft-green); text-align: center; }
.fg-blog-hero h1 { margin: 0 0 16px; color: var(--primary-green); font-size: clamp(2.35rem, 5vw, 3.4rem); line-height: 1.12; }
.fg-blog-hero p { max-width: 760px; margin: 0 auto; color: #596861; font-size: 1.04rem; }
.fg-blog-content { padding: 62px 20px 90px; }
.fg-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; align-items: stretch; }
.fg-blog-card { min-width: 0; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(27,77,62,.08); transition: transform .25s ease, box-shadow .25s ease; }
.fg-blog-card:hover { transform: translateY(-7px); box-shadow: 0 18px 36px rgba(27,77,62,.13); }
.fg-blog-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.fg-blog-image { position: relative; height: 220px; flex: 0 0 220px; overflow: hidden; background: linear-gradient(135deg, #173F33, #2C7A53); }
.fg-blog-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.fg-blog-card:hover .fg-blog-image img { transform: scale(1.06); }
.fg-blog-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: 2px; }
.fg-blog-image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,37,29,.82), rgba(9,37,29,0) 68%); }
.fg-blog-image-link { position: absolute; right: 16px; bottom: 14px; color: #fff; font-size: .77rem; font-weight: 800; opacity: 0; transform: translateY(7px); transition: .25s ease; }
.fg-blog-card:hover .fg-blog-image-link { opacity: 1; transform: none; }
.fg-blog-card-body { display: flex; flex-direction: column; flex: 1; min-height: 270px; padding: 20px 20px 17px; }
.fg-blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fg-blog-category { max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: #E8F7EE; color: var(--secondary-green); font-size: .66rem; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.fg-blog-date { color: #78847E; white-space: nowrap; font-size: .73rem; }
.fg-blog-card-body h2 { margin: 0 0 12px; color: var(--primary-green); font-size: 1.18rem; line-height: 1.38; }
.fg-blog-card-body p { margin: 0; color: #596861; font-size: .9rem; line-height: 1.63; }
.fg-blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(27,77,62,.08); font-size: .74rem; }
.fg-blog-card-footer span { color: #78847E; }
.fg-blog-card-footer strong { color: var(--secondary-green); white-space: nowrap; }
.fg-pagination { margin-top: 42px; text-align: center; }
.fg-pagination .nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.fg-pagination a, .fg-pagination span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 13px; border: 1px solid rgba(44,122,83,.18); border-radius: 999px; background: #fff; color: var(--primary-green); text-decoration: none; font-size: .82rem; font-weight: 700; }
.fg-pagination .current, .fg-pagination a:hover { background: var(--secondary-green); border-color: var(--secondary-green); color: #fff; }
.fg-blog-empty { max-width: 620px; margin: 0 auto; padding: 55px 30px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); text-align: center; }
.fg-blog-empty h2 { margin: 0 0 8px; color: var(--primary-green); }
.fg-blog-empty p { margin: 0; color: var(--text-muted); }

/* Footer */
.site-footer { padding: 60px 20px 28px; background: var(--deep-green); color: #A3B8AF; }
.footer-widgets { width: min(var(--content-width), calc(100% - 0px)); margin: 0 auto 38px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 42px; }
.footer-widget h3 { margin: 0 0 16px; color: var(--earth-brown); font-size: 1.05rem; }
.footer-widget p { margin: 0; color: #B7C5BE; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin-bottom: 9px; }
.footer-widget a { color: #B7C5BE; text-decoration: none; transition: color .2s ease; }
.footer-widget a:hover { color: #fff; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 15px; }
.footer-bottom { width: min(var(--content-width), calc(100% - 0px)); margin: 0 auto; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.10); text-align: center; font-size: .86rem; }

/* Responsive */
@media (max-width: 1050px) {
    .nav-container { gap: 18px; }
    .primary-menu { gap: 15px; }
    .misi-grid, .fg-blog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
    .nav-container { flex-direction: column; justify-content: center; padding: 14px 0; }
    .primary-menu { justify-content: center; gap: 10px 14px; }
    .hero-section { min-height: 600px; background-attachment: scroll; }
    .activity-card { flex-basis: 320px; width: 320px; }
    .footer-widgets { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .section-shell, .fg-container, .activity-footer-cta, .nav-container { width: min(100% - 28px, var(--content-width)); }
    .misi-section, .fg-blog-content { padding-left: 0; padding-right: 0; }
    .misi-grid, .fg-blog-grid { grid-template-columns: 1fr; gap: 22px; }
    .destination-activity-section { padding-top: 72px; }
    .activity-group { gap: 18px; padding-right: 18px; }
    .activity-card { flex-basis: 285px; width: 285px; }
    .activity-card-image { height: 190px; flex-basis: 190px; }
    .activity-footer-cta { align-items: flex-start; flex-direction: column; }
    .activity-read-more, .fg-blog-image-link { opacity: 1; transform: none; }
    .site-logo a { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .activity-marquee-track { animation: none; transform: none; }
    .activity-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* Perbaikan layout header section */
.section-header .section-kicker { display: flex; width: max-content; max-width: 100%; margin: 0 auto 14px; }
.section-header h2 { display: block; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.fg-entry { max-width: 820px; padding: 50px 0 80px; line-height: 1.8; color: var(--text-dark); }
.fg-entry img { max-width: 100%; height: auto; border-radius: 10px; }

/* ===== Header simetris dengan logo (tengah) ===== */
.site-header .nav-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 14px 0 12px;
    text-align: center;
}
.site-logo { display: flex; justify-content: center; }
.site-logo a { display: inline-flex; line-height: 0; }
.site-logo img { display: block; width: auto; height: 112px; max-width: 100%; }
.main-navigation { width: 100%; display: flex; justify-content: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.primary-menu { justify-content: center; gap: 8px 30px; }
.primary-menu a { font-size: .86rem; letter-spacing: .6px; }
@media (max-width: 780px) {
    .site-logo img { height: 88px; }
    .primary-menu { gap: 8px 18px; }
}

/* ===== Hero: judul rapi & seimbang ===== */
.hero-content { width: min(900px, 100%); margin-left: auto; margin-right: auto; text-align: center; }
.hero-kicker { font-size: .9rem; letter-spacing: 3px; margin-bottom: 18px; }
.hero-content h1 {
    max-width: 880px;
    margin: 0 auto 22px;
    font-size: clamp(1.9rem, 4.4vw, 3.3rem);
    line-height: 1.18;
    letter-spacing: .5px;
    text-wrap: balance;
}
.hero-content p { max-width: 680px; line-height: 1.75; text-wrap: balance; }

/* ===== Kartu rapi: judul & ringkasan dibatasi 3 baris ===== */
.activity-card-body h3, .fg-blog-card-body h2 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
    overflow: hidden; overflow-wrap: anywhere;
}
.activity-card-body h3 { min-height: calc(1.09rem * 1.38 * 3); }
.fg-blog-card-body h2 { min-height: calc(1.18rem * 1.38 * 3); }
.activity-card-body p, .fg-blog-card-body p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
    overflow: hidden; overflow-wrap: anywhere;
}
.activity-card-body p { min-height: calc(.88rem * 1.62 * 3); margin-bottom: 14px; }
.fg-blog-card-body p { min-height: calc(.9rem * 1.63 * 3); margin-bottom: 14px; }

/* ===== Header: logo kiri, menu kanan ===== */
.site-header .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 88px;
    padding: 8px 0;
    text-align: left;
}
.site-logo { justify-content: flex-start; flex: 0 0 auto; }
.site-logo img { height: 74px; }
.main-navigation { width: auto; padding-top: 0; border-top: 0; justify-content: flex-end; }
.primary-menu { justify-content: flex-end; gap: 8px 24px; }
@media (max-width: 1050px) {
    .site-header .nav-container { gap: 18px; }
    .primary-menu { gap: 8px 16px; }
    .primary-menu a { font-size: .8rem; }
}
@media (max-width: 780px) {
    .site-header .nav-container { flex-direction: column; justify-content: center; gap: 6px; min-height: 0; padding: 10px 0 12px; }
    .site-logo { justify-content: center; }
    .site-logo img { height: 64px; }
    .main-navigation { width: 100%; justify-content: center; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); }
    .primary-menu { justify-content: center; gap: 8px 16px; }
}
