/* =============================================
   STYLE.CSS - PRM Sidomulyo (FINAL CLEAN)
   ============================================= */

/* ===== IMPORT FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #0F5132;
    --primary-dark: #0B3E28;
    --secondary: #66BB6A;
    --accent: #C9A227;
    --dark-bg: #0f2a18;
    --bg: #F7F9F8;
    --section-bg: #EEF3EF;
    --white: #ffffff;
    --grey: #f7f9f8;
    --grey-dark: #dde3dc;
    --text: #1F2937;
    --text-light: #4B5563;
    --shadow: 0 10px 30px rgba(15, 81, 50, 0.12);
    --shadow-hover: 0 20px 50px rgba(15, 81, 50, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease-in-out;
    --gradient: linear-gradient(94deg, #0F5132 10%, #66BB6A 100%);
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    padding-top: 4px;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    transition: background-color 0.7s ease;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 64px 0 0;
    z-index: -1;
    pointer-events: none;
    background: var(--scroll-atmosphere, rgba(15, 81, 50, 0.04));
    opacity: 0.55;
    transition: background 0.7s ease, opacity 0.7s ease;
}

body[data-scroll-theme='home'] { --scroll-atmosphere: linear-gradient(135deg, rgba(11, 62, 40, .22), rgba(15, 81, 50, .08)); background-color: #e8f1eb; }
body[data-scroll-theme='sejarah'] { --scroll-atmosphere: linear-gradient(135deg, rgba(15, 81, 50, .18), rgba(47, 125, 90, .08)); background-color: #e7f1ea; }
body[data-scroll-theme='sambutan'] { --scroll-atmosphere: linear-gradient(135deg, rgba(15, 81, 50, .2), rgba(102, 187, 106, .08)); background-color: #eaf3ec; }
body[data-scroll-theme='pimpinan'] { --scroll-atmosphere: linear-gradient(135deg, rgba(11, 62, 40, .2), rgba(15, 81, 50, .1)); background-color: #e4efe8; }
body[data-scroll-theme='organisasi'] { --scroll-atmosphere: linear-gradient(135deg, rgba(15, 81, 50, .18), rgba(47, 125, 90, .1)); background-color: #e7f2eb; }
body[data-scroll-theme='aum'] { --scroll-atmosphere: linear-gradient(135deg, rgba(11, 62, 40, .2), rgba(102, 187, 106, .08)); background-color: #e5f0e8; }
body[data-scroll-theme='kegiatan'] { --scroll-atmosphere: linear-gradient(135deg, rgba(15, 81, 50, .2), rgba(201, 162, 39, .05)); background-color: #eaf2eb; }
body[data-scroll-theme='galeri'] { --scroll-atmosphere: linear-gradient(135deg, rgba(11, 62, 40, .18), rgba(47, 125, 90, .08)); background-color: #e8f1eb; }
body[data-scroll-theme='kontak'] { --scroll-atmosphere: linear-gradient(135deg, rgba(15, 81, 50, .2), rgba(102, 187, 106, .08)); background-color: #e5f1e9; }

/* One consistent dark-green navbar color on laptop and desktop. */
.main-menu > ul > li > a,
.main-menu > ul > li > a:hover,
.main-menu > ul > li > a.active,
.main-menu > ul > li.has-dropdown > a:focus-visible {
    color: #0f5132;
}
.main-menu > ul > li > a.active::after {
    background: #0f5132;
}

.scroll-section-active {
    position: relative;
    isolation: isolate;
}
.scroll-section-active::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-top: 2px solid rgba(15, 81, 50, .24);
    box-shadow: 0 -6px 18px rgba(15, 81, 50, .05);
    opacity: .55;
}
@keyframes scrollSectionLift {
    from { opacity: .94; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollAccentFlow {
    from { opacity: 0; transform: scaleX(.72); transform-origin: left center; }
    to { opacity: .7; transform: scaleX(1); transform-origin: left center; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-section-active,
    .scroll-section-active::after { animation: none; }
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    padding: 14px 36px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(15, 81, 50, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 81, 50, 0.3);
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--bg);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ===== SECTION DASAR ===== */
section { padding: 72px 0; }

.section-title {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-bottom: 48px;
    padding: 0 24px;
}
.section-title h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.12;
    background: linear-gradient(94deg, #0F5132 20%, #C9A227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 10px auto 0;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


.section-title-separator {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0F5132 0%, #C9A227 100%);
    margin: 0 auto 14px;
    border-radius: 2px;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 18px;
}

/* ===== HEADER WRAPPER ===== */
.header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(15, 81, 50, 0.1);
    z-index: 9999;
    transition: box-shadow 0.3s ease;
}

.header-wrapper.scrolled {
    box-shadow: 0 4px 12px rgba(15, 81, 50, 0.15);
}

/* ===== HEADER CONTENT (DESKTOP) ===== */
.header-content {
    display: none;
    padding: 0 20px;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ===== LOGO SECTION ===== */
.header-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.header-content > .push-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #C9A227;
    border-radius: 10px;
    background: #FFF8DF;
    color: #B18400;
    flex-shrink: 0;
    margin-left: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.header-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    color: #0F5132;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1.2;
}

@media (min-width: 769px) {
    .header-content {
        display: flex;
        gap: 18px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px 10px;
    }

    .header-logo {
        margin-right: 8px;
        align-items: center;
        flex: 0 0 auto;
    }

    .logo-link {
        gap: 10px;
    }

    .logo-text {
        font-size: 15px;
        letter-spacing: 0.25px;
    }

    .main-menu {
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 auto;
    }

    .main-menu > ul {
        display: flex;
        height: 100%;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-menu > ul > li > a {
        display: inline-flex;
        align-items: center;
        padding: 10px 6px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
    }

    .main-menu > ul > li {
        display: flex;
        align-items: center;
    }

    .header-content > .push-toggle {
        margin-left: 4px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid #C9A227;
        background: #FFF8DF;
        color: #B18400;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-content > .push-toggle:hover {
        background: #F5D76E;
        color: #6F5200;
        opacity: 1;
    }
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    z-index: 10001;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: #0F5132;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 86vw;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid rgba(15, 81, 50, 0.12);
    box-shadow: 12px 0 30px rgba(15, 81, 50, 0.14);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 10002;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 2px solid #E5E7E5;
    background: #F7F9F8;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-menu-header .mobile-header-push-toggle {
    flex: 0 0 32px;
}

.mobile-menu-header h2 {
    flex: 1;
    text-align: center;
}

.mobile-menu-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0F5132;
    margin: 0;
}

.menu-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #0F5132;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Mobile Menu List */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-list > li {
    border-bottom: 1px solid #E5E7E5;
}

@keyframes mobileNavItem {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu.active .mobile-menu-list > li {
    animation: mobileNavItem 0.3s ease-out both;
}

.mobile-menu.active .mobile-menu-list > li:nth-child(2) { animation-delay: 0.03s; }
.mobile-menu.active .mobile-menu-list > li:nth-child(3) { animation-delay: 0.06s; }
.mobile-menu.active .mobile-menu-list > li:nth-child(4) { animation-delay: 0.09s; }
.mobile-menu.active .mobile-menu-list > li:nth-child(5) { animation-delay: 0.12s; }
.mobile-menu.active .mobile-menu-list > li:nth-child(6) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
    .mobile-menu.active .mobile-menu-list > li {
        animation: none;
    }
}

.mobile-menu-list > li > a {
    display: block;
    padding: 18px 20px;
    color: #1F2937;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-menu-list > li > a:active {
    background: #F7F9F8;
    color: #0F5132;
}

/* Menu Accordion */
.menu-accordion {
    border-bottom: 1px solid #E5E7E5;
}

.accordion-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #1F2937;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
}

.accordion-toggle:active {
    background: #F7F9F8;
    color: #0F5132;
}

.accordion-toggle i {
    font-size: 12px;
    color: #C9A227;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.menu-accordion.open .accordion-toggle i {
    transform: rotate(180deg);
}

/* Accordion Content */
.accordion-content {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #F7F9F8;
}

.menu-accordion.open .accordion-content {
    max-height: 800px;
}

.accordion-content li {
    border: none;
}

.accordion-content li a {
    display: block;
    padding: 15px 20px 15px 44px;
    color: #4B5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.accordion-content li a:active {
    background: #E5E7E5;
    color: #0F5132;
    border-left-color: #0F5132;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== DESKTOP NAVBAR (>768px) ===== */
@media (min-width: 769px) {
    .header-content {
        display: flex;
    }

    .menu-toggle,
    .notification-btn,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }

    .header-logo img {
        height: 48px;
    }

    .logo-text {
        font-size: 14px;
    }
}

/* ===== MOBILE NAVBAR (<=768px) ===== */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
        height: 64px;
    }

    .menu-toggle,
    .notification-btn {
        display: flex !important;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: block !important;
    }

    body.mobile-menu-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    /* Pastikan menu desktop tidak muncul */
    .header,
    .main-menu,
    .dropdown-menu {
        display: none !important;
    }
}

/* ===== RESPONSIVE - TABLET (<=480px) ===== */
@media (max-width: 480px) {
    .header-wrapper {
        height: 64px;
    }

    .header-content {
        padding: 0 12px;
    }

    .header-logo img {
        height: 32px;
    }

    .logo-text {
        font-size: 11px;
        max-width: 100px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
    }

    .notification-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .mobile-menu {
        top: 0;
        height: 100vh;
    }

    .mobile-menu-header {
        padding: 16px 16px;
    }

    .mobile-menu-header h2 {
        font-size: 16px;
    }

    .mobile-menu-list > li > a {
        padding: 16px 16px;
        font-size: 15px;
    }

    .accordion-toggle {
        padding: 16px 16px;
        font-size: 15px;
    }

    .accordion-content li a {
        padding: 13px 16px 13px 40px;
        font-size: 14px;
    }

    .menu-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

/* Final mobile navbar behavior: hidden drawer, opened from the left by the button. */
@media (max-width: 768px) {
    .header-content {
        display: flex !important;
        position: relative;
        padding: 0 12px 0 8px;
    }
    .menu-toggle {
        display: flex !important;
        flex: 0 0 44px;
        order: 0;
        position: relative;
        z-index: 10001;
    }
    .header-logo { order: 1; }
    .notification-btn { order: 2; }
    .main-menu { display: none !important; }
    .mobile-menu {
        display: block !important;
        top: 0;
        left: 0 !important;
        right: auto !important;
        width: min(86vw, 320px);
        max-width: none;
        transform: translate3d(-105%, 0, 0) !important;
        opacity: 0;
        visibility: hidden;
        z-index: 10002;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-width: thin;
        scrollbar-color: rgba(15, 81, 50, .45) transparent;
    }
    .mobile-menu.active {
        transform: translate3d(0, 0, 0) !important;
        opacity: 1;
        visibility: visible;
    }
    .header-wrapper:has(.mobile-menu.active) .menu-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .mobile-menu-list { align-items: stretch; text-align: left; }
    .mobile-menu-list > li > a,
    .accordion-toggle { text-align: left; }
    .mobile-menu-overlay {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        z-index: 9998;
    }
    .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
    .mobile-menu-overlay.active { pointer-events: none; }
    .mobile-menu::-webkit-scrollbar { width: 6px; }
    .mobile-menu::-webkit-scrollbar-track { background: transparent; }
    .mobile-menu::-webkit-scrollbar-thumb { background: rgba(15, 81, 50, .45); border-radius: 8px; }
    .mobile-menu.active .mobile-menu-list > li { animation: mobileDrawerItemIn .32s ease both; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(2) { animation-delay: .04s; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(3) { animation-delay: .08s; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(4) { animation-delay: .12s; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(5) { animation-delay: .16s; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(6) { animation-delay: .20s; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(7) { animation-delay: .24s; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(8) { animation-delay: .28s; }
}

@keyframes mobileDrawerItemIn {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== RESPONSIVE - SMALL MOBILE (<=390px) ===== */
@media (max-width: 390px) {
    .logo-text {
        font-size: 10px;
        max-width: 85px;
    }

    .header-logo img {
        height: 30px;
    }

    .mobile-menu-header h2 {
        font-size: 15px;
    }

    .mobile-menu-list > li > a {
        padding: 12px 14px;
        font-size: 13px;
    }

    .accordion-toggle {
        padding: 12px 14px;
        font-size: 13px;
    }

    .accordion-content li a {
        padding: 10px 14px 10px 32px;
        font-size: 12px;
    }
}

/* ===== RESPONSIVE - EXTRA SMALL (<=360px) ===== */
@media (max-width: 360px) {
    .header-content {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 9px;
        max-width: 75px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-logo img {
        height: 28px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .notification-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .mobile-menu-list > li > a {
        padding: 12px 12px;
        font-size: 12px;
    }

    .accordion-toggle {
        padding: 12px 12px;
        font-size: 12px;
    }

    .accordion-content li a {
        padding: 9px 12px 9px 30px;
        font-size: 11px;
    }
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
    padding: 80px 0 0;
    background-image: linear-gradient(180deg, rgba(15,81,50,0.78), rgba(15,81,50,0.6)), url('https://static.vecteezy.com/system/resources/previews/049/505/706/large_2x/view-of-a-mosque-and-its-dome-with-a-garden-in-its-yard-the-view-of-the-mosque-and-its-dome-looks-out-creating-a-stunning-view-free-photo.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-content { max-width: 820px; padding: 40px 20px; }
.hero-sub-top { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.hero-sub-top-2 { font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 6vw, 68px);
    line-height: 0.98;
    font-weight: 900;
    margin: 6px 0 16px 0;
    text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.hero-title .highlight { color: #F5D03A; }
.hero-description { font-size: 15px; max-width: 680px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 18px; align-items: center; }
.hero-btn {
    display: inline-block; padding: 12px 28px; border-radius: 50px;
    background: var(--primary); color: #fff; font-weight: 800; font-size: 13px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.hero-btn:hover { transform: translateY(-4px); }
.hero-btn-secondary {
    background: linear-gradient(135deg, #0F5132 0%, #1D7A4A 100%);
    border: 1px solid rgba(15, 81, 50, 0.15);
    color: #fff;
    padding: 12px 26px;
    box-shadow: 0 12px 30px rgba(15, 81, 50, 0.18);
    backdrop-filter: blur(4px);
}

.hero-btn-secondary:hover {
    background: linear-gradient(135deg, #0C4630 0%, #135C3A 100%);
    box-shadow: 0 16px 36px rgba(15, 81, 50, 0.22);
    transform: translateY(-3px);
}
.hero-wave {
    position: absolute; left: 0; right: 0; bottom: -1px; height: 140px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='%23ffffff' d='M0,64L120,80C240,96,480,128,720,160C960,192,1200,192,1320,192L1440,192L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z'></path></svg>");
    background-repeat: no-repeat; background-size: cover; pointer-events: none; z-index: 1;
}

/* ===== ABOUT ===== */
.section-about {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 0;
    border-top: 1px solid rgba(15, 81, 50, 0.08);
    background: linear-gradient(135deg, #f4fbf3 0%, #ffffff 100%);
    padding: 84px 0 76px;
}
.about-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(280px, 390px); justify-content: center; gap: 40px; align-items: center; }
.about-text { max-width: 560px; }
.about-text h2 { font-size: 42px; line-height: 1.08; margin: 0 0 22px; color: #0f5132; letter-spacing: -0.4px; }
.about-text p { color: #3d5f42; line-height: 1.85; margin-bottom: 18px; font-size: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-main-image { align-self: center; justify-self: end; width: min(100%, 390px); aspect-ratio: 1 / 1; overflow: hidden; border-radius: 28px; box-shadow: 0 24px 70px rgba(15, 81, 50, 0.1); }
.about-main-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .section-about { padding: 42px 0 38px; } .about-grid { grid-template-columns: 1fr; gap: 24px; } .about-text { width: min(100%, 560px); margin: 0 auto; padding: 0 4px; box-sizing: border-box; } .about-text h2 { font-size: 25px; line-height: 1.15; margin: 0 0 14px; } .about-text p { font-size: 13px; line-height: 1.65; margin: 0 0 14px; } .about-thumb-grid { grid-template-columns: repeat(2, 1fr); } .about-main-image { align-self: auto; justify-self: center; width: min(100%, 320px); aspect-ratio: 1 / 1; border-radius: 14px; } }

/* =============================================
   STYLE-SEJARAH.CSS - Halaman Sejarah PRM Sidomulyo
   ============================================= */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #0F5132;
    --primary-dark: #0B3E28;
    --secondary: #66BB6A;
    --accent: #C9A227;
    --dark-bg: #0f2a18;
    --bg: #F7F9F8;
    --white: #ffffff;
    --grey-dark: #dde3dc;
    --text: #1F2937;
    --text-light: #4B5563;
    --shadow: 0 10px 30px rgba(15, 81, 50, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease-in-out;
    --gradient: linear-gradient(94deg, #0F5132 10%, #66BB6A 100%);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    overscroll-behavior-y: none;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    padding-top: 64px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* =============================================
   HEADER
   ============================================= */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 81, 50, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transition: all 0.3s ease;
}

.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px 0;
    gap: 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.header-logo a { display: flex; align-items: center; }
.header-logo img { height: 52px; width: auto; object-fit: contain; }
.header-logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: #0f5132;
    margin: 0;
    line-height: 1.2;
}

.main-menu {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    gap: 20px;
    animation: navReveal 0.7s ease-out both;
}

.main-menu ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.main-menu ul li { position: relative; min-height: 48px; }

.main-menu ul li a {
    display: block;
    padding: 10px 6px;
    color: #1e3924;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.main-menu ul li {
    animation: navItemReveal 0.45s ease-out both;
}

.main-menu ul li:nth-child(2) { animation-delay: 0.05s; }
.main-menu ul li:nth-child(3) { animation-delay: 0.1s; }
.main-menu ul li:nth-child(4) { animation-delay: 0.15s; }
.main-menu ul li:nth-child(5) { animation-delay: 0.2s; }
.main-menu ul li:nth-child(6) { animation-delay: 0.25s; }
.main-menu ul li:nth-child(7) { animation-delay: 0.3s; }
.main-menu ul li:nth-child(8) { animation-delay: 0.35s; }
.main-menu ul li a:hover {
    color: #0f5132;
    transform: translateY(-2px);
}
.main-menu ul li a.active {
    color: #0f5132;
    position: relative;
}
.main-menu ul li a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: linear-gradient(90deg, #0F5132 0%, #C9A227 100%);
    border-radius: 999px;
}

/* ===== DROPDOWN ===== */
.main-menu ul li.has-dropdown:hover .dropdown-menu,
.main-menu ul li.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999;
    display: block !important;
    flex-direction: column !important;
}

.dropdown-menu li {
    display: block !important;
    width: 100% !important;
}
.dropdown-menu li a {
    display: block !important;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #444;
    border-left: 3px solid transparent;
    text-align: left;
    transition: all 0.2s ease;
}
.dropdown-menu li a:hover {
    background: rgba(26, 60, 110, 0.08);
    color: #1a3c6e;
    border-left-color: #1a3c6e;
}
.dropdown-menu li a.active {
    background: rgba(15, 81, 50, 0.08);
    border-left-color: #0F5132;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px 4px;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1a3c6e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
.menu-overlay.active { display: block; }

@media (max-width: 768px) {
    body { padding-top: 74px; }
    .header { padding: 10px 0; gap: 10px; }
    .header-logo h1 { font-size: 14px; }
    .header-logo img { height: 40px; }

    .menu-toggle { display: flex; }
    .main-menu ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 80px 20px 30px;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        align-items: stretch;
    }
    .main-menu ul.open { right: 0; }
    .main-menu ul li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .main-menu ul li a { padding: 14px 16px; font-size: 15px; white-space: normal; }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #f8f9fa;
    }
    .main-menu ul li.has-dropdown.open .dropdown-menu { max-height: 400px; }
    .dropdown-menu li a { padding: 12px 16px 12px 32px; border-left: none; }
}

/* =============================================
   HERO SEJARAH - MODERN DESIGN
   ============================================= */
.hero-sejarah {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0F5132 0%, #1a6e32 30%, #0B3E28 60%, #051f13 100%);
    background-attachment: fixed;
    color: white;
    padding: 140px 0 100px;
    overflow: hidden;
}

/* Elemen dekoratif latar belakang */
.hero-sejarah::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.hero-sejarah::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    left: -100px;
    z-index: 1;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-sejarah-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
    width: 100%;
}

.hero-sejarah-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-line {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F5D03A, #66BB6A);
    border-radius: 3px;
    box-shadow: 0 0 25px rgba(245, 208, 58, 0.5), 0 0 50px rgba(102, 187, 106, 0.3);
    animation: expandLine 1s ease-out 0.5s both;
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

.hero-label-text {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #F5D03A;
    background: linear-gradient(90deg, #F5D03A, #66BB6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sejarah-title {
    font-family: "Inter", sans-serif;
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.hero-sejarah-title .highlight {
    background: linear-gradient(90deg, #F5D03A 0%, #66BB6A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(245, 208, 58, 0.4));
    position: relative;
}

.hero-sejarah-desc {
    font-size: 18px;
    line-height: 1.9;
    opacity: 0.98;
    max-width: 680px;
    font-weight: 300;
    animation: fadeInDown 0.8s ease-out 0.6s both;
    letter-spacing: 0.3px;
}

/* Animasi keyframes */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SEJARAH BLOCKS - MODERN TIMELINE DESIGN
   ============================================= */
.section-sejarah-full {
    padding: 60px 0 80px;
    background: #f5f7f4;
    position: relative;
    overflow: hidden;
}

.section-sejarah-full .container {
    position: relative;
    z-index: 2;
}

/* Timeline vertical line */
.section-sejarah-full::before {
    display: none;
}

.sejarah-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 24px 20px;
    margin-bottom: 18px;
    margin-left: 0;
    margin-right: 0;
    box-shadow: 0 8px 20px rgba(15, 81, 50, 0.05);
    transition: all 0.25s ease;
    position: relative;
    border: 1px solid rgba(15, 81, 50, 0.08);
    border-top: 4px solid transparent;
    overflow: hidden;
}

.sejarah-block::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.02), transparent 60%);
    pointer-events: none;
}

.sejarah-block::before {
    display: none;
}

.sejarah-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 81, 50, 0.1);
}

/* Warna border top dan dot per block */
.sejarah-block-1 { border-top-color: #0F5132; background: linear-gradient(180deg, rgba(15, 81, 50, 0.02), #ffffff); }
.sejarah-block-1::before { border-color: #0F5132; background: white; }

.sejarah-block-2 { border-top-color: #66BB6A; background: linear-gradient(180deg, rgba(102, 187, 106, 0.02), #ffffff); }
.sejarah-block-2::before { border-color: #66BB6A; background: #66BB6A; }

.sejarah-block-3 { border-top-color: #1565C0; background: linear-gradient(180deg, rgba(21, 101, 192, 0.02), #ffffff); }
.sejarah-block-3::before { border-color: #1565C0; background: #1565C0; }

.sejarah-block-4 { border-top-color: #C9A227; background: linear-gradient(180deg, rgba(201, 162, 39, 0.02), #ffffff); }
.sejarah-block-4::before { border-color: #C9A227; background: #C9A227; }

.sejarah-block-5 { border-top-color: #8B6F4C; background: linear-gradient(180deg, rgba(139, 111, 76, 0.02), #ffffff); }
.sejarah-block-5::before { border-color: #8B6F4C; background: #8B6F4C; }

.sejarah-block-6 { border-top-color: #6A1B9A; background: linear-gradient(180deg, rgba(106, 27, 154, 0.02), #ffffff); }
.sejarah-block-6::before { border-color: #6A1B9A; background: #6A1B9A; }

.sejarah-block-7 { border-top-color: #E65100; background: linear-gradient(180deg, rgba(230, 81, 0, 0.02), #ffffff); }
.sejarah-block-7::before { border-color: #E65100; background: #E65100; }

.sejarah-block-title {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0F5132;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    width: 100%;
}

.sejarah-block-title::before {
    content: '✦';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 81, 50, 0.08);
    color: #0F5132;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.sejarah-block-1 .sejarah-block-title::before { content: '🏛'; }
.sejarah-block-2 .sejarah-block-title::before { content: '📍'; }
.sejarah-block-3 .sejarah-block-title::before { content: '🎓'; }
.sejarah-block-4 .sejarah-block-title::before { content: '🏫'; }
.sejarah-block-5 .sejarah-block-title::before { content: '🕌'; }
.sejarah-block-6 .sejarah-block-title::before { content: '👥'; }
.sejarah-block-7 .sejarah-block-title::before { content: '🌱'; }

.sejarah-block-number {
    display: inline-flex;
    width: 26px;
    height: 26px;
    background: #0F5132;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: none;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}
.sejarah-block-number

.sejarah-block-2 .sejarah-block-number { background: linear-gradient(135deg, #66BB6A, #4caf50); }
.sejarah-block-3 .sejarah-block-number { background: linear-gradient(135deg, #1565C0, #1e88e5); }
.sejarah-block-4 .sejarah-block-number { background: linear-gradient(135deg, #C9A227, #d4af37); }
.sejarah-block-5 .sejarah-block-number { background: linear-gradient(135deg, #8B6F4C, #a1887f); }
.sejarah-block-6 .sejarah-block-number { background: linear-gradient(135deg, #6A1B9A, #9c27b0); }
.sejarah-block-7 .sejarah-block-number { background: linear-gradient(135deg, #E65100, #ff6d00); }

.sejarah-block-content {
    line-height: 1.8;
    color: #4B5563;
    margin-left: 0;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
}

.sejarah-block-content p {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    max-width: 100%;
}

.sejarah-block-content p:last-child {
    margin-bottom: 0;
}

.sejarah-block-content strong {
    color: #0F5132;
    font-weight: 700;
}

.sejarah-tokoh-box,
.sejarah-info-box,
.sejarah-note,
.sejarah-sumber,
.sejarah-quote {
    border-radius: 10px;
    box-shadow: none;
}

.sejarah-tokoh-box {
    background: #f6fbf7;
    border-left: 4px solid #0F5132;
    padding: 16px 18px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
}

.sejarah-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffaf0;
    padding: 16px 18px;
    border-left: 4px solid #C9A227;
    margin-top: 16px;
}

.sejarah-info-box i {
    font-size: 22px;
    color: #C9A227;
    margin-top: 2px;
    flex-shrink: 0;
}

.sejarah-info-box div {
    font-size: 14px;
    line-height: 1.7;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid rgba(15, 81, 50, 0.08);
}

.sejarah-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f4f9f5;
    border-left: 3px solid #0F5132;
    font-size: 13px;
    color: #4B5563;
    margin-top: 14px;
}

.sejarah-note i {
    color: #0F5132;
    font-size: 16px;
    flex-shrink: 0;
}

.sejarah-quote {
    background: #f6faf7;
    padding: 24px 26px;
    border-left: 4px solid #0F5132;
    margin-top: 22px;
    box-shadow: 0 6px 18px rgba(15, 81, 50, 0.04);
}

.sejarah-quote i {
    font-size: 30px;
    color: rgba(15, 81, 50, 0.25);
    position: absolute;
    top: 12px;
    left: 14px;
}

.sejarah-quote blockquote {
    font-size: 16px;
    font-style: italic;
    color: #1F2937;
    padding-left: 28px;
    margin: 0 0 10px 0;
    line-height: 1.7;
}

.sejarah-sumber {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 18px 20px;
    border: 1px dashed #cbd5d1;
    margin-top: 28px;
}

.sejarah-sumber i {
    font-size: 24px;
    color: #0F5132;
    flex-shrink: 0;
}

.sejarah-sumber div {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .section-sejarah-full::before {
        left: 26px;
        transform: none;
    }
    .sejarah-block {
        padding: 24px 22px;
    }
    .sejarah-block::before {
        left: 26px;
        transform: none;
    }
    .sejarah-block-title {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    .section-sejarah-full {
        padding: 48px 0 60px;
    }
    .section-sejarah-full::before {
        display: none;
    }
    .sejarah-block {
        padding: 16px 14px 14px;
        border-radius: 10px;
        margin-bottom: 14px;
    }
    .sejarah-block::before {
        display: none;
    }
    .sejarah-block-title {
        font-size: 16px;
        gap: 10px;
        margin-bottom: 12px;
        align-items: flex-start;
    }
    .sejarah-block-content p {
        font-size: 15px;
        text-align: left;
    }
    .sejarah-block-number {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .sejarah-block-content p {
        text-align: left;
        font-size: 14px;
        line-height: 1.8;
    }
    .sejarah-tokoh-box,
    .sejarah-info-box,
    .sejarah-note,
    .sejarah-sumber,
    .sejarah-quote {
        padding: 14px 16px;
    }
    .sejarah-info-box {
        flex-direction: column;
    }
    .sejarah-sumber {
        flex-direction: column;
        text-align: center;
    }
}
/* ===== TOKOH BOX - MODERN STYLE ===== */
.sejarah-tokoh-box {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.08), rgba(102, 187, 106, 0.08));
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 5px solid #0F5132;
    margin-top: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.7;
}

.sejarah-tokoh-box::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.15), transparent);
    border-radius: 50%;
    z-index: 1;
}

.sejarah-tokoh-box:hover {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.12), rgba(102, 187, 106, 0.12));
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.12);
    border-left-color: #66BB6A;
    transform: translateX(4px);
}

.sejarah-tokoh-box * {
    position: relative;
    z-index: 2;
}

/* ===== INFO BOX - MODERN STYLE ===== */
.sejarah-info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.06));
    padding: 22px 28px;
    border-radius: 12px;
    border-left: 5px solid #C9A227;
    margin-top: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sejarah-info-box::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent);
    border-radius: 50%;
    z-index: 1;
}

.sejarah-info-box:hover {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.08));
    transform: translateX(6px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.15);
    border-left-color: #d4af37;
}

.sejarah-info-box i {
    font-size: 28px;
    color: #C9A227;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.sejarah-info-box div {
    position: relative;
    z-index: 2;
    font-size: 15px;
    line-height: 1.7;
}

/* =============================================
   TABLE KEPEMIMPINAN - MODERN DESIGN
   ============================================= */
.table-responsive {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 81, 50, 0.1);
}

.sejarah-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.sejarah-table thead {
    background: linear-gradient(135deg, #0F5132 0%, #1a6e32 100%);
    color: white;
}

.sejarah-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sejarah-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    color: #4B5563;
}

.sejarah-table tbody tr {
    transition: all 0.2s ease;
}

.sejarah-table tbody tr:hover {
    background: linear-gradient(90deg, #f0f7f0, transparent);
    border-left: 5px solid #0F5132;
    padding-left: 0;
}

.sejarah-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.sejarah-table tbody tr:nth-child(even):hover {
    background: linear-gradient(90deg, #f0f7f0, #f9fafb);
    border-left: 5px solid #66BB6A;
}

/* ===== TABLE NOTE - MODERN STYLE ===== */
.sejarah-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.05), rgba(15, 81, 50, 0.02));
    border-radius: 10px;
    border-left: 3px solid #0F5132;
    font-size: 14px;
    color: #4B5563;
    margin-top: 14px;
    transition: all 0.3s ease;
}

.sejarah-note:hover {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.08), rgba(15, 81, 50, 0.04));
    box-shadow: 0 2px 10px rgba(15, 81, 50, 0.08);
}

.sejarah-note i {
    color: #0F5132;
    font-size: 18px;
    flex-shrink: 0;
}

/* =============================================
   QUOTE - MODERN DESIGN
   ============================================= */
.sejarah-quote {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.08), rgba(102, 187, 106, 0.06));
    padding: 40px 44px;
    border-radius: 14px;
    margin-top: 28px;
    position: relative;
    overflow: hidden;
    border-left: 6px solid #0F5132;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 30px rgba(15, 81, 50, 0.12);
}

.sejarah-quote::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.12), transparent);
    border-radius: 50%;
}

.sejarah-quote:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(15, 81, 50, 0.18);
    border-left-color: #66BB6A;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.12), rgba(102, 187, 106, 0.08));
}

.sejarah-quote i {
    font-size: 42px;
    color: #0F5132;
    opacity: 0.2;
    position: absolute;
    top: 12px;
    left: 18px;
    z-index: 1;
}

.sejarah-quote blockquote {
    font-size: 18px;
    font-style: italic;
    color: #1F2937;
    padding-left: 50px;
    margin: 0 0 14px 0;
    position: relative;
    z-index: 2;
    font-weight: 500;
    line-height: 1.8;
}

.sejarah-quote cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 700;
    color: #0F5132;
    position: relative;
    z-index: 2;
    font-size: 15px;
}

/* =============================================
   SUMBER - MODERN DESIGN
   ============================================= */
.sejarah-sumber {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, white, #f9fafb);
    padding: 22px 32px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(15, 81, 50, 0.1);
    border: 2px dashed #d1d5db;
    margin-top: 40px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.sejarah-sumber::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(15, 81, 50, 0.08), transparent);
    border-radius: 50%;
}

.sejarah-sumber:hover {
    border-color: #0F5132;
    box-shadow: 0 10px 40px rgba(15, 81, 50, 0.15);
    background: linear-gradient(135deg, #f9fafb, #f0f7f0);
    transform: translateY(-4px);
}

.sejarah-sumber i {
    font-size: 32px;
    color: #0F5132;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.sejarah-sumber div {
    font-size: 14px;
    color: #4B5563;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

/* =============================================
   RESPONSIVE - SEJARAH (TABLET)
   ============================================= */
@media (max-width: 992px) {

    .hero-sejarah {
        min-height: 350px;
        padding: 100px 0 60px;
    }

    .hero-sejarah-title {
        font-size: clamp(32px, 4vw, 42px);
    }

    .section-sejarah-full::before {
        display: none;
    }

    .sejarah-block {
        padding: 32px;
        margin-bottom: 32px;
    }

    .sejarah-block::before {
        display: none;
    }

    .sejarah-block-content {
        margin-left: 0;
    }

    .sejarah-block-title {
        font-size: 22px;
    }
}


/* =============================================
   RESPONSIVE - SEJARAH (MOBILE)
   ============================================= */
@media (max-width: 768px) {

    .hero-sejarah {
        min-height: 280px;
        padding: 80px 20px 50px;
    }

    .hero-sejarah::before {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -80px;
    }

    .hero-sejarah::after {
        width: 250px;
        height: 250px;
        bottom: -60px;
        left: -60px;
    }

    .hero-sejarah-title {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-sejarah-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-label-text {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .section-sejarah-full {
        padding: 60px 0 80px;
    }

    .sejarah-block {
        padding: 24px 20px;
        margin-bottom: 24px;
        border-radius: 10px;
    }

    .sejarah-block-title {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        line-height: 1.4;
    }

    .sejarah-block-number {
        width: 40px;
        min-width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .sejarah-block-content {
        margin-left: 0;
        font-size: 14px;
        line-height: 1.8;
    }

    .sejarah-block-content p {
        margin-bottom: 12px;
    }

    .sejarah-tokoh-box,
    .sejarah-info-box {
        padding: 14px 16px;
        font-size: 13px;
    }

    .sejarah-info-box i {
        font-size: 22px;
    }

    .sejarah-quote {
        padding: 24px 20px;
        margin-top: 16px;
    }

    .sejarah-quote blockquote {
        font-size: 16px;
        line-height: 1.7;
        padding-left: 40px;
    }

    .sejarah-quote i {
        font-size: 28px;
    }

    /*
       Tabel dibuat bisa scroll horizontal
       agar tidak merusak layout HP
    */
    .sejarah-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }

    .sejarah-table {
        width: 100%;
        min-width: 600px;
        font-size: 13px;
        border-collapse: collapse;
    }

    .sejarah-table th,
    .sejarah-table td {
        padding: 12px 14px;
        white-space: normal;
    }

    .sejarah-sumber {
        display: flex;
        align-items: flex-start;
        padding: 16px 18px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .sejarah-sumber i {
        font-size: 24px;
    }

    .sejarah-note {
        font-size: 13px;
        line-height: 1.7;
        padding: 12px 14px;
    }
}


/* =============================================
   RESPONSIVE - SEJARAH (SMALL MOBILE)
   ============================================= */
@media (max-width: 480px) {

    .hero-sejarah {
        min-height: 240px;
        padding: 60px 16px 40px;
    }

    .hero-sejarah-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-sejarah-title {
        font-size: clamp(24px, 8vw, 32px);
        line-height: 1.2;
        margin-bottom: 10px;
        font-weight: 800;
    }

    .hero-sejarah-desc {
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-label-text {
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .section-sejarah-full {
        padding: 40px 0 60px;
    }

    .sejarah-block {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .sejarah-block-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .sejarah-block-number {
        width: 36px;
        min-width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .sejarah-block-content {
        font-size: 13px;
        line-height: 1.8;
    }

    .sejarah-block-content p {
        margin-bottom: 10px;
    }

    .sejarah-tokoh-box,
    .sejarah-info-box {
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.7;
        gap: 12px;
    }

    .sejarah-info-box i {
        font-size: 20px;
    }

    .sejarah-quote {
        padding: 18px 16px;
        margin-top: 12px;
        border-radius: 8px;
    }

    .sejarah-quote blockquote {
        font-size: 14px;
        line-height: 1.7;
        padding-left: 32px;
        margin-bottom: 8px;
    }

    .sejarah-quote cite {
        font-size: 12px;
    }

    .sejarah-quote i {
        font-size: 24px;
    }

    .sejarah-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sejarah-table {
        min-width: 550px;
        font-size: 12px;
    }

    .sejarah-table th,
    .sejarah-table td {
        padding: 10px 12px;
    }

    .sejarah-sumber {
        display: flex;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 12px;
        margin-top: 20px;
    }

    .sejarah-sumber i {
        font-size: 20px;
    }

    .sejarah-sumber div {
        font-size: 12px;
        line-height: 1.6;
    }

    .sejarah-note {
        display: flex;
        align-items: flex-start;
        font-size: 12px;
        line-height: 1.6;
        padding: 10px 12px;
        gap: 10px;
    }
}


/* =============================================
   SEJARAH - MINIMALIS CARD & TABS
   ============================================= */
.section-sejarah {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f7f0 100%);
}

.section-sejarah .section-title {
    margin-bottom: 50px;
}

.sejarah-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 81, 50, 0.12);
    overflow: hidden;
    transition: var(--transition);
}

.sejarah-card:hover {
    box-shadow: 0 20px 60px rgba(15, 81, 50, 0.18);
}

/* ===== TAB NAVIGATION ===== */
.sejarah-tabs {
    display: none;
}

/* ===== TAB CONTENT ===== */
.sejarah-content {
    padding: 40px;
}

.sejarah-tab-content {
    display: block;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e5e7e5;

}

.sejarah-tab-content:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sejarah-tab-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sejarah-tab-content h3 i {
    font-size: 28px;
    color: var(--accent);
    flex-shrink: 0;
}

.sejarah-tab-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.sejarah-tab-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 16px;
}

.sejarah-tab-content p strong {
    color: var(--text);
    font-weight: 700;
}

.sejarah-highlight {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.06), rgba(102, 187, 106, 0.06));
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.sejarah-highlight i {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.sejarah-highlight div {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

.sejarah-quote {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.08), rgba(102, 187, 106, 0.08));
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-style: italic;
    color: var(--text);
    line-height: 1.8;
}

.sejarah-quote p {
    margin-bottom: 12px;
    font-size: 16px;
}

.sejarah-quote footer {
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-style: normal;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    margin-top: 12px;
    font-size: inherit;
    line-height: inherit;
}

/* ===== FOOTER ===== */
.sejarah-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: #f8f9f8;
    border-top: 1px solid #e5e7e5;
    font-size: 14px;
    color: var(--text-light);
}

.sejarah-footer i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== RIWAYAT KEPEMIMPINAN DI DALAM KARTU SEJARAH ===== */
.sejarah-riwayat {
    margin-bottom: 0;
    margin-left: 40px;
    margin-right: 40px;
    padding-bottom: 0;
    scroll-margin-top: 100px;
}

.sejarah-history-table-wrap {
    overflow-x: auto;
    margin: 24px 0 0;
    border: 1px solid #e5ebe7;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 18px rgba(15, 81, 50, 0.06);
}

.sejarah-history-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
}

.sejarah-history-table thead {
    background: linear-gradient(110deg, #0b3e28, #0f5132);
    color: #fff;
}

.sejarah-history-table th,
.sejarah-history-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e8eee9;
    text-align: left;
}

.sejarah-history-table th {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sejarah-history-table td {
    color: #34463b;
    font-size: 14px;
}

.sejarah-history-table tbody tr:nth-child(even) {
    background: #f8faf9;
}

.sejarah-history-table tbody tr:hover {
    background: #eef5f0;
}

.sejarah-history-table td:first-child {
    width: 64px;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.sejarah-history-table td:nth-child(2) {
    width: 170px;
    color: var(--primary);
    font-weight: 600;
}

.sejarah-history-table th:nth-child(1),
.sejarah-history-table td:nth-child(1) { width: 8%; }

.sejarah-history-table th:nth-child(2),
.sejarah-history-table td:nth-child(2) { width: 21%; }

.sejarah-history-table th:nth-child(3),
.sejarah-history-table td:nth-child(3) { width: 34%; }

.sejarah-history-table th:nth-child(4),
.sejarah-history-table td:nth-child(4) { width: 37%; }

.sejarah-history-table tr.current {
    background: #f8f2dc !important;
}

.sejarah-history-table tr.current td:first-child {
    color: #9a7610;
}

.sejarah-history-table tr.current td:nth-child(3) {
    color: var(--primary);
    font-weight: 800;
}

.sejarah-history-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 99px;
    background: #e8f2eb;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.history-label-mobile { display: none; }

.sejarah-history-table tr.current .sejarah-history-badge {
    background: #f1e5b8;
    color: #7a5b00;
}

.sejarah-history-note {
    padding: 14px 18px;
    border: 1px solid #e5ebe7;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fbfcfb;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
    .section-sejarah {
        padding: 60px 0;
    }

    .sejarah-card {
        border-radius: 12px;
    }

    .sejarah-content {
        padding: 30px;
    }

    .sejarah-tab-content h3 {
        font-size: 20px;
        margin-bottom: 16px;
        gap: 10px;
    }

    .sejarah-tab-content h3 i {
        font-size: 22px;
    }

    .sejarah-tab-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .sejarah-footer {
        padding: 16px 30px;
        font-size: 13px;
    }

    .sejarah-history-table th,
    .sejarah-history-table td {
        padding: 13px 14px;
        font-size: 13px;
    }
    
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
    .section-sejarah {
        padding: 40px 0 50px;
    }

    .sejarah-content {
        padding: 20px;
    }

    .sejarah-tab-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
        gap: 8px;
    }

    .sejarah-tab-content h3 i {
        font-size: 20px;
    }

    .sejarah-tab-content p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .sejarah-highlight {
        gap: 10px;
        padding: 14px 16px;
        margin-top: 16px;
    }

    .sejarah-quote {
        padding: 16px;
        margin-top: 16px;
    }

    .sejarah-quote p {
        font-size: 14px;
    }

    .sejarah-footer {
        padding: 14px 20px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sejarah-riwayat {
        margin-left: 20px;
        margin-right: 20px;
    }

    .sejarah-history-table-wrap {
        margin-top: 18px;
    }

    .sejarah-history-table th,
    .sejarah-history-table td {
        padding: 10px 8px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .sejarah-history-note {
        padding: 12px;
        font-size: 12px;
    }

    .sejarah-history-table-wrap {
        overflow-x: hidden;
    }

    .sejarah-history-badge {
        padding: 4px 6px;
        font-size: 10px;
        white-space: normal;
        text-align: center;
    }
}

/* Riwayat kepemimpinan: keep all columns readable on small screens. */
@media (max-width: 768px) {
    .sejarah-riwayat {
        margin-left: 0;
        margin-right: 0;
        padding-left: 16px;
        padding-right: 16px;
        text-align: left;
    }
    .sejarah-history-table-wrap {
        width: 100%;
        overflow: hidden;
    }
    .sejarah-history-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }
    .sejarah-history-table th,
    .sejarah-history-table td {
        padding: 10px 6px;
        font-size: 11px;
        line-height: 1.4;
        vertical-align: middle;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .sejarah-history-table th:nth-child(1),
    .sejarah-history-table td:nth-child(1) {
        width: 10%;
        padding-left: 3px;
        padding-right: 3px;
        white-space: nowrap;
    }
    .sejarah-history-table th:nth-child(2),
    .sejarah-history-table td:nth-child(2) { width: 24%; }
    .sejarah-history-table th:nth-child(3),
    .sejarah-history-table td:nth-child(3) { width: 32%; }
    .sejarah-history-table th:nth-child(4),
    .sejarah-history-table td:nth-child(4) { width: 34%; }
    .sejarah-history-table th { font-size: 10px; line-height: 1.25; }
    .sejarah-history-table td:first-child { text-align: center; }
    .sejarah-history-badge {
        display: inline-block;
        width: fit-content;
        max-width: 100%;
        padding: 4px 3px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .sejarah-history-table th,
    .sejarah-history-table td,
    .sejarah-history-table td:first-child,
    .sejarah-history-badge {
        text-align: left;
    }
    .history-label-default { display: none; }
    .history-label-mobile { display: inline; }
}


/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}


/* =============================================
   FOOTER - TABLET
   ============================================= */
@media (max-width: 992px) {

    footer {
        padding: 50px 0 20px;
    }
}


/* =============================================
   FOOTER - MOBILE
   ============================================= */
@media (max-width: 768px) {

    footer {
        padding: 40px 0 20px;
        text-align: center;
    }
}


/* =============================================
   FOOTER - SMALL MOBILE
   ============================================= */
@media (max-width: 480px) {

    footer {
        padding: 35px 15px 15px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    color: var(--white);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-col p, .footer-col ul li, .footer-col ul li a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-col ul li i {
    width: 20px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--white);
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.backtop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.backtop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.backtop:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(15, 81, 50, 0.18);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sejarah-block {
        padding: 28px 24px;
    }
    
    .sejarah-block-title {
        font-size: 20px;
    }
    
    .sejarah-block-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .sejarah-table th,
    .sejarah-table td {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .sejarah-quote {
        padding: 20px 24px;
    }
    
    .sejarah-quote blockquote {
        font-size: 15px;
        padding-left: 30px;
    }
    
    .sejarah-quote i {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-sejarah {
        min-height: 200px;
        padding: 80px 0 40px;
    }
    
    .hero-sejarah-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .sejarah-block {
        padding: 20px 16px;
    }
    
    .sejarah-block-title {
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    .sejarah-table th,
    .sejarah-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .sejarah-info-box {
        flex-direction: column;
    }
    
    .sejarah-sumber {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   SECTION RIWAYAT KEPEMIMPINAN
   ======================================== */

.section-history {
        padding: 80px 0;
        background: linear-gradient(135deg, #f9fafb 0%, #f0f7f0 100%);
}

.section-history .container {
        max-width: 1240px;
}

.section-history .section-title {
        margin-bottom: 50px;
}

.section-history .eyebrow {
        display: block;
        color: var(--primary);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin-bottom: 10px;
}

.section-history .section-title h2 {
        margin: 0 0 12px;
        color: #0f5132;
        font-size: clamp(28px, 5vw, 42px);
}

.section-history .subtitle {
  max-width: 680px;
  margin: auto;
  line-height: 1.7;
  color: #667085;
  font-size: 16px;
}

.section-history .separator {
    width: 55px;
    height: 4px;
  margin: 18px auto 0;
    background: var(--accent);
    border-radius: 20px;
}

/* ---------- CARD ---------- */
.section-history .history-card {
    background: var(--white);
    border: 0;
    border-radius: 16px;
  overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 81, 50, 0.12);
    transition: var(--transition);
}

.section-history .history-card:hover {
    box-shadow: 0 20px 60px rgba(15, 81, 50, 0.18);
}

/* ---------- TABLE ---------- */
.section-history .table-wrap {
  overflow-x: auto;
    scrollbar-color: #0f5132 #e8eee9;
}

.section-history table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.section-history thead {
    background: linear-gradient(110deg, #0b3e28, #0f5132);
  color: #fff;
}

.section-history th,
.section-history td {
    padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid #e8eee9;
}

.section-history th {
    font-size: 14px;
    letter-spacing: 0.3px;
}

.section-history td {
  font-size: 15px;
    color: #34463b;
}

/* ---------- STRIPING ---------- */
.section-history tbody tr:nth-child(even) {
  background: #f8faf9;
}

.section-history tbody tr:hover {
  background: #eef5f0;
}

/* ---------- KOLOM KHUSUS ---------- */
.section-history td:first-child {
    width: 72px;
  text-align: center;
  font-weight: 700;
  color: #0f5132;
}

.section-history td:nth-child(2) {
    width: 190px;
  font-weight: 600;
    color: #0f5132;
}

/* ---------- BARIS AKTIF ---------- */
.section-history .current {
    background: #f8f2dc !important;
}

.section-history .current td:first-child {
  color: #9a7610;
}

.section-history .current td:nth-child(3) {
    color: #0f5132;
    font-weight: 800;
}

/* ---------- BADGE ---------- */
.section-history .badge {
  display: inline-block;
    padding: 5px 11px;
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 99px;
  background: #e8f2eb;
  color: #0f5132;
  font-size: 12px;
  font-weight: 700;
}

.section-history .current .badge {
  background: #f1e5b8;
  color: #7a5b00;
    border-color: rgba(154, 118, 16, 0.2);
}

/* ---------- CATATAN ---------- */
.section-history .note {
    padding: 18px 22px;
    background: #fbfcfb;
  border-top: 1px solid #e8eee9;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .section-history {
      padding: 60px 0;
  }

  .section-history .history-card {
      border-radius: 12px;
  }

  .section-history th,
  .section-history td {
    padding: 14px 16px;
    font-size: 14px;
  }

  .section-history td:first-child {
    width: 60px;
  }

  .section-history td:nth-child(2) {
    width: 130px;
  }

  .section-history .note {
    padding: 15px 16px;
    font-size: 12px;
        display: block;
  }

  .section-history .badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}
/* ===== VISI MISI ===== */
.section-visi-misi {
    padding: 72px 0 78px;
    background: linear-gradient(180deg, #f7faf7 0%, #edf5ef 100%);
}

.section-visi-misi .section-title p {
    color: #34463b;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-top: 22px;
}

.visi-card,
.misi-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 81, 50, 0.14);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 81, 50, 0.08);
    height: 100%;
    min-height: 360px;
}

.visi-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 26px 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,248,242,0.94));
}

.visi-card::after {
    position: absolute;
    right: -45px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(15, 81, 50, 0.08);
    border-radius: 50%;
    content: '';
}

.misi-card {
    padding: 26px 14px 14px;
}

.visi-misi-heading {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.visi-card-icon,
.misi-card-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 4px solid #f6edc9;
    border-radius: 50%;
    outline: 1px solid rgba(201, 162, 39, 0.7);
    background: var(--primary);
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 4px 0 rgba(201, 162, 39, 0.9);
}

.visi-card h3,
.misi-card h3 {
    margin: 0;
    color: var(--primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.visi-misi-rule {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 2px;
    margin: 10px auto 18px;
    background: var(--accent);
}

.visi-misi-rule::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent);
    background: #fff;
    content: '';
    transform: translate(-50%, -50%) rotate(45deg);
}

.visi-quote {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.quote-mark {
    color: var(--accent);
    font-size: 1.35em;
    line-height: 0;
    vertical-align: -0.12em;
}

.misi-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.misi-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 10px 0 0;
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 81, 50, 0.05);
}

.misi-item-number {
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    align-self: stretch;
    color: #fff;
    background: var(--primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 700;
    clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%, 12% 50%);
}

.misi-item p {
    margin: 0;
    color: #26352d;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .visi-misi-grid { grid-template-columns: 1fr; gap: 18px; }
    .visi-card,
    .misi-card { min-height: 300px; }
    .visi-card { padding: 24px 20px; }
    .misi-card { padding: 20px 12px 12px; }
    .visi-quote { font-size: 16px; }
}

/* ===== SAMBUTAN PIMPINAN ===== */
.section-sambutan {
    position: relative;
    padding: 20px 0 30px;
    background: linear-gradient(180deg, rgba(245,247,244,0.96) 0%, rgba(241,244,240,0.96) 100%);
    overflow: hidden;
}
.section-sambutan::before,
.section-sambutan::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(18, 88, 58, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
.section-sambutan::before {
    right: -60px;
    top: 20px;
    background: radial-gradient(circle at center, rgba(18,88,58,0.08), rgba(18,88,58,0.02) 60%, transparent 70%);
}
.section-sambutan::after {
    left: -60px;
    bottom: 30px;
    background: radial-gradient(circle at center, rgba(18,88,58,0.06), rgba(18,88,58,0.02) 60%, transparent 70%);
}
.sambutan-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(270px, 373px) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 972px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 81, 50, 0.08);
    overflow: hidden;
}
.sambutan-photo-card {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #f3f5f1;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: stretch;
}
.sambutan-photo-wrap {
    width: 100%;
    min-height: 370px;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    flex: 1;
}
.sambutan-photo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center top;
    background: transparent;
}
.sambutan-name-card {
    background: linear-gradient(180deg, #0d4b35 0%, #103c30 100%);
    color: #fff;
    text-align: center;
    padding: -15px 18px 14px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}
.sambutan-name-card h3 {
    margin: 0;
    font-size: clamp(1.6rem, 1.5vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    width: 100%;
}
.sambutan-name-card p {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 500;
    text-align: center;
    width: 100%;
}
.sambutan-copy {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 28px 28px 28px 0;
}
.sambutan-salam {
    position: relative;
    margin: 0 0 12px;
    padding-left: 16px;
    font-size: clamp(1rem, 1.1vw, 1.35rem);
    line-height: 1.35;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1f3f31;
}
.sambutan-salam::before {
    content: '';
    position: absolute;
    top: 0.15em;
    bottom: 0.15em;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: #d5b566;
}
.sambutan-copy h2 {
    margin: 0;
    font-size: clamp(1.85rem, 2.1vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 800;
    color: #0f4432;
    font-family: Georgia, 'Times New Roman', serif;
    text-wrap: balance;
}
.sambutan-copy h2 span {
    display: block;
    white-space: nowrap;
}
.sambutan-line {
    width: 140px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d5b566 0%, #d5b566 100%);
    margin: 12px 0 16px;
}
.sambutan-text-wrapper {
    max-width: 560px;
}
.sambutan-text {
    margin: 0 0 16px;
    font-size: clamp(0.9rem, 0.92vw, 1rem);
    line-height: 1.75;
    color: #2d403c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.sambutan-text:last-child {
    margin-bottom: 0;
}
.sambutan-closing {
    margin: 18px 0 0;
    color: #1f513b;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(.9rem, 1vw, 1.1rem);
    font-weight: 700;
    line-height: 1.4;
}
.sambutan-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 13px 24px;
    background: linear-gradient(180deg, #0d4b35 0%, #0b3d2d 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(16,69,46,0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sambutan-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(16,69,46,0.18);
}
@media (max-width: 992px) {
    .sambutan-shell {
        grid-template-columns: 1fr;
        gap: 26px;
        align-items: center;
        left: 0;
    }
    .sambutan-photo-card {
        width: min(100%, 380px);
        align-self: center;
    }
    .sambutan-copy {
        max-width: 100%;
        padding: 0 0 28px;
    }
    .sambutan-copy h2 {
        font-size: clamp(2rem, 6vw, 3.2rem);
    }
}
@media (max-width: 576px) {
    .section-sambutan {
        padding: 56px 0 70px;
    }
    .sambutan-photo-card {
        width: min(100%, 250px);
    }
    .sambutan-photo-wrap,
    .sambutan-photo-wrap img {
        min-height: 250px;
    }
    .sambutan-name-card h3 {
        font-size: 1.35rem;
        color: #fff;
    }
    .sambutan-name-card p {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.88);
    }
    .sambutan-name-card {
        min-height: 74px;
        padding: 10px 14px 12px;
        background: linear-gradient(180deg, #0d4b35 0%, #103c30 100%);
    }
    .sambutan-salam {
        font-size: 1.1rem;
    }
    .sambutan-copy h2 {
        font-size: 1.35rem;
        line-height: 1.1;
    }
    .sambutan-line {
        width: 120px;
    }
    .sambutan-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PIMPINAN MODERN ===== */
.section-pimpinan { background: linear-gradient(180deg, #f8faf8 0%, #eef3ef 100%); padding: 60px 0 70px; position: relative; overflow: hidden; }
.section-pimpinan .section-title .subtitle { display: inline-block; background: rgba(15, 81, 50, 0.08); padding: 4px 20px; border-radius: 50px; font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 6px; }

.subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kegiatan-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.org-chart { display: flex; flex-direction: column; align-items: center; gap: 35px; margin-top: 30px; }
.org-level-1 { display: flex; justify-content: center; width: 100%; }

.org-card { background: white; border-radius: 20px; padding: 30px 28px 24px; text-align: center; box-shadow: 0 10px 40px rgba(15, 81, 50, 0.08); transition: all 0.4s ease; border: 1px solid rgba(15, 81, 50, 0.06); min-width: 220px; }
.org-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(15, 81, 50, 0.15); }
.org-card-ketua { background: linear-gradient(145deg, #0F5132, #196941); color: white; border: none; min-width: 240px; }
.org-card-ketua .org-icon { background: rgba(255, 255, 255, 0.15); color: white; }
.org-card-ketua .org-jabatan { color: rgba(255, 255, 255, 0.8); }
.org-card-ketua .org-nama { color: white; }
.org-card-ketua .org-badge { background: rgba(255, 255, 255, 0.15); color: white; }

.org-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(15, 81, 50, 0.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 14px; }
.org-nama { font-size: 18px; font-weight: 700; margin: 0 0 4px 0; color: var(--text); }
.org-jabatan { font-size: 13px; color: var(--text-light); margin: 0 0 12px 0; }
.org-badge { display: inline-block; padding: 3px 16px; background: rgba(15, 81, 50, 0.08); border-radius: 50px; font-size: 11px; font-weight: 600; color: var(--primary); }

.org-connector { width: 2px; height: 30px; background: linear-gradient(180deg, rgba(15, 81, 50, 0.3), rgba(15, 81, 50, 0.1)); }
.org-connector-horizontal { width: 60%; height: 2px; background: linear-gradient(90deg, transparent, rgba(15, 81, 50, 0.2), transparent); margin: 0 auto; }

.org-level-2 { display: flex; justify-content: center; gap: 30px; width: 100%; flex-wrap: wrap; }
.org-card-sekben { background: white; border-radius: 16px; padding: 24px 22px 20px; box-shadow: 0 6px 24px rgba(15, 81, 50, 0.06); border: 1px solid rgba(15, 81, 50, 0.06); flex: 1; min-width: 180px; max-width: 280px; }
.org-card-sekben .org-icon { width: 52px; height: 52px; font-size: 22px; margin-bottom: 10px; }
.org-card-sekben .org-nama { font-size: 16px; }
.org-tugas { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.org-tugas li { font-size: 12px; color: var(--text-light); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.org-tugas li i { color: var(--secondary); font-size: 12px; width: 16px; }

.org-level-3 { display: flex; justify-content: center; gap: 20px; width: 100%; flex-wrap: wrap; }
.org-card-wakil { background: white; border-radius: 16px; padding: 20px 18px 18px; box-shadow: 0 4px 16px rgba(15, 81, 50, 0.04); border: 1px solid rgba(15, 81, 50, 0.04); flex: 1; min-width: 150px; max-width: 210px; }
.org-card-wakil .org-icon { width: 44px; height: 44px; font-size: 18px; margin-bottom: 8px; }
.org-card-wakil .org-nama { font-size: 14px; }
.org-card-wakil .org-jabatan { font-size: 11px; margin-bottom: 6px; }
.org-bidang { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.org-bidang span { background: rgba(15, 81, 50, 0.06); padding: 2px 12px; border-radius: 20px; font-size: 10px; font-weight: 600; color: var(--primary); }

.org-level-4 { display: flex; justify-content: center; gap: 20px; width: 100%; flex-wrap: wrap; }
.org-card-wakil-sekben { background: white; border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 16px rgba(15, 81, 50, 0.04); border: 1px solid rgba(15, 81, 50, 0.04); flex: 1; min-width: 140px; max-width: 200px; }
.org-card-wakil-sekben .org-icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 6px; }
.org-card-wakil-sekben .org-nama { font-size: 13px; }
.org-card-wakil-sekben .org-jabatan { font-size: 11px; opacity: 0.7; }

@media (max-width: 768px) { 
    .org-level-2, .org-level-3, .org-level-4 { flex-direction: column; align-items: center; }
    .org-card-sekben, .org-card-wakil, .org-card-wakil-sekben { max-width: 100%; width: 100%; }
}

/* ============================================================
   STRUKTUR PIMPINAN & MAJELIS PRM SIDOMULYO
   ============================================================ */
.section-pimpinan-majelis {
    background: #f8f6f3;
    padding: 64px 0 50px;
}

.struktur-heading {
    text-align: center;
    margin-bottom: 16px;
}

.struktur-heading h2 {
    position: relative;
    margin: 0;
    color: #0f5132;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
}

.struktur-heading h2::after {
    content: '';
    display: block;
    width: 58px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: #d5b566;
}

.struktur-heading p {
    margin: 10px 0 0;
    color: #527064;
    font-size: clamp(.85rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: .02em;
}

/* --- BADGE JUDUL --- */
.section-title-pimpinan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title-pimpinan:before,
.section-title-pimpinan:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #ddd;
}

.section-title-pimpinan span {
    background: linear-gradient(#087548, #005f35);
    color: #fff;
    border-radius: 18px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    white-space: nowrap;
}

.section-title-pimpinan.majelis-title-wrapper {
    margin-top: 36px;
}

/* --- PIMPINAN UTAMA --- */
.org-chart {
    position: relative;
    padding-top: 8px;
}

.chairman {
    width: 240px;
    margin: 0 auto;
    position: relative;
}

.person-card {
    background: #fff;
    border: 1px solid #e5e9e7;
    border-bottom: 4px solid #006b3c;
    border-radius: 28px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .09);
    text-align: center;
}

.chairman .person-card {
    padding: 12px 14px 14px;
}

.avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, #087848, #005c34);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.person-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .1px;
    line-height: 1.25;
    color: #182127;
}

.person-role {
    margin-top: 4px;
    color: #14623d;
    font-size: 11px;
    font-weight: 600;
}

/* Garis ketua */
.org-chart .chairman:after {
    content: "";
    position: absolute;
    width: 2px;
    height: 39px;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    background: #bcc3c0;
}

.branch {
    position: relative;
    display: grid;
    grid-template-columns: 230px 230px;
    justify-content: space-between;
    width: 560px;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 31px;
}

.branch:before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(92% - 400px);
    width: 331px;
    max-width: 100%;
    height: 2px;
    background: #bcc3c0;
}

.branch:after {
    content: "";
    position: absolute;
    top: -42px;
    left: 50%;
    width: 2px;
    height: 0px;
    transform: translateX(-50%);
    background: #bcc3c0;
}

.branch-card {
    position: relative;
}

.branch-card:before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    transform: translateX(-50%);
    background: #bcc3c0;
}

.branch-card .person-card {
    padding: 10px 10px 12px;
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.branch-card .avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 18px;
}

.branch-card .person-name {
    font-size: 14px;
    white-space: nowrap;
}

.branch-card .person-role {
    font-size: 11px;
}

/* --- MAJELIS GRID --- */
.majelis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.majelis-card {
    min-height: 150px;
    padding: 10px 8px 10px;
    background: #fff;
    border: 1px solid #e5eae7;
    border-bottom: 4px solid #006b3c;
    border-radius: 24px;
    box-shadow: 0 4px 13px rgba(0, 0, 0, .08);
    text-align: center;
}

.majelis-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 7px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf4e6;
    color: #006b3c;
    font-size: 16px;
}

.majelis-card h3 {
    color: #1d4c36;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gold-line {
    width: 70px;
    height: 1px;
    background: #d1bd79;
    margin: 10px auto 9px;
    position: relative;
}

.gold-line:after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    background: #c9a33a;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.description {
    font-size: 11px;
    line-height: 1.5;
    color: #444;
}

.people {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: auto;
}

.person-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #303633;
}

.person-small i {
    color: #17643f;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .majelis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .branch {
        width: 680px;
        grid-template-columns: 290px 290px;
    }
    .branch:before {
        width: 680px;
        left: calc(50% - 340px);
    }
    .chairman {
        width: 290px;
    }
}

@media (max-width: 600px) {
    .section-pimpinan-majelis {
        padding: 24px 0 40px;
    }

    .section-title-pimpinan {
        gap: 8px;
        margin-bottom: 18px;
    }
    .section-title-pimpinan span {
        font-size: 11px;
        padding: 6px 15px;
    }
    .section-title-pimpinan.majelis-title-wrapper {
        margin-top: 35px;
    }

    .chairman {
        width: 235px;
    }
    .chairman .person-card {
        padding: 13px 10px 15px;
    }
    .avatar {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }
    .person-name {
        font-size: 17px;
    }
    .person-role {
        font-size: 12px;
    }

    .org-chart {
        padding-top: 0;
    }
    .org-chart .chairman:after {
        height: 32px;
        bottom: -32px;
    }

    .branch {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-top: 25px;
    }
    .branch:before {
        left: 24.4%;
        width: 51%;
    }
    .branch:after {
        top: -32px;
        height: 32px;
    }
    .branch-card:before {
        top: -25px;
        height: 25px;
    }
    .branch-card .person-card {
        min-height: 105px;
        padding: 10px 7px;
        display: block;
        text-align: center;
    }
    .branch-card .avatar {
        width: 42px;
        height: 42px;
        margin: 0 auto 6px;
        font-size: 20px;
    }
    .branch-card .person-name {
        font-size: 14px;
        white-space: normal;
        line-height: 1.25;
    }
    .branch-card .person-role {
        font-size: 10px;
    }

    .majelis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .majelis-card {
        min-height: 160px;
        padding: 11px 7px;
    }
    .majelis-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .majelis-card h3 {
        font-size: 10px;
    }
    .description {
        font-size: 9px;
    }
    .person-small {
        font-size: 10px;
    }
}
/* =========================================
   TUGAS-TUGAS MAJELIS
========================================= */

.tugas-majelis {
    width: 100%;
    padding: 55px 20px;
    background: #f8faf8;
    box-sizing: border-box;
}


/* =========================================
   JUDUL
========================================= */

.tugas-title {
    text-align: center;
    margin-bottom: 32px;
    animation: tugasFadeUp 0.7s ease-out both;
}

.tugas-title span {
    display: inline-block;

    background: #006b3c;
    color: #ffffff;

    padding: 8px 24px;

    border-radius: 20px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.7px;

}


/* =========================================
   CONTAINER KARTU
========================================= */

.tugas-container {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    /* Penting agar detail tidak
       memengaruhi tinggi kartu lain */
    align-items: start;
}


/* =========================================
   KARTU MAJELIS
========================================= */

.tugas-card {
    position: relative;
    width: 100%;
    min-height: 250px;
    height: 250px;
    max-height: 250px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e3e8e5;

    border-bottom: 4px solid #006b3c;

    border-radius: 12px;

    padding: 25px 20px 18px;

    text-align: center;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    align-self: start;
    animation: tugasFadeUp 0.65s ease-out both;
    transition:
        height 0.3s ease,
        max-height 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tugas-card:nth-child(2) { animation-delay: 0.08s; }
.tugas-card:nth-child(3) { animation-delay: 0.16s; }
.tugas-card:nth-child(4) { animation-delay: 0.24s; }
.tugas-card:nth-child(5) { animation-delay: 0.32s; }
.tugas-card:nth-child(6) { animation-delay: 0.4s; }

.tugas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 75%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

.tugas-card:hover::before {
    left: 135%;
}

@keyframes tugasFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tugasTitleGlow {
    0%, 100% { box-shadow: 0 5px 14px rgba(0, 107, 60, 0.12); }
    50% { box-shadow: 0 8px 22px rgba(0, 107, 60, 0.28); }
}

@keyframes tugasIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tugas-title,
    .tugas-title span,
    .tugas-card,
    .tugas-icon {
        animation: none;
    }

    .tugas-card::before {
        display: none;
    }
}

.tugas-card.active {
    height: auto;
    max-height: none;
    overflow: hidden;
}


/* Hover */

.tugas-card:hover {
    transform: translateY(-8px) scale(1.015);

    box-shadow:
        0 16px 30px rgba(0, 107, 60, 0.16);
}


/* =========================================
   ICON
========================================= */

.tugas-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    border-radius: 50%;

    background: #edf6e9;

    color: #006b3c;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 25px;
}

.tugas-card:hover .tugas-icon {
    transform: translateY(-7px) scale(1.08) rotate(6deg);
    box-shadow: 0 8px 18px rgba(0, 107, 60, 0.2);
}


/* =========================================
   NAMA MAJELIS
========================================= */

.tugas-card h3 {
    margin: 0 0 10px;

    color: #17452f;

    font-size: 18px;

    font-weight: 800;

    line-height: 1.4;
}


/* =========================================
   DESKRIPSI SINGKAT
========================================= */

.tugas-singkat {
    margin: 0;

    min-height: 65px;

    color: #666666;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================
   DETAIL TUGAS
========================================= */

.tugas-detail {
    box-sizing: border-box;
    display: none;
    margin-top: 12px;
    padding: 18px 0 0;
    text-align: left;
    border-top: 1px dashed #d1d5db;
}


/* =========================================
   DETAIL SAAT AKTIF
========================================= */

.tugas-card.active .tugas-detail {
    display: block;
}


/* =========================================
   JUDUL DETAIL
========================================= */

.tugas-detail h4 {
    margin: 0 0 10px;

    color: #006b3c;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================
   PARAGRAF DETAIL
========================================= */

.tugas-detail p {
    margin: 0 0 10px;

    color: #555555;

    font-size: 13px;

    line-height: 1.75;
}


/* Teks tebal */

.tugas-detail strong {
    color: #17452f;
}


/* =========================================
   BUTTON LIHAT TUGAS
========================================= */

.tugas-card button {
    position: relative;

    z-index: 110;

    margin-top: 15px;

    padding: 0;

    border: none;

    outline: none;

    background: transparent;

    color: #006b3c;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: color 0.2s ease;
}


.tugas-card button:hover {
    color: #004d2c;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .tugas-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

}


/* =========================================
   HP
========================================= */

@media (max-width: 600px) {

    .tugas-majelis {
        padding: 40px 15px;
    }


    .tugas-title {
        margin-bottom: 25px;
    }


    .tugas-title span {
        padding: 7px 18px;

        font-size: 12px;
    }


    .tugas-container {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .tugas-card {
        padding: 22px 18px 17px;
        min-height: 220px;
        height: 220px;
        max-height: 220px;
    }

    .tugas-card.active {
        height: auto;
        max-height: none;
    }


    .tugas-icon {
        width: 52px;
        height: 52px;

        font-size: 23px;
    }


    .tugas-card h3 {
        font-size: 17px;
    }


    .tugas-singkat {
        min-height: auto;

        font-size: 13px;
    }


    .tugas-detail {
        margin-top: 10px;
        padding: 14px 0 0;
    }


    .tugas-detail p {
        font-size: 12px;

        line-height: 1.7;
    }

}
/* ===== ORGANISASI OTONOM & LEMBAGA ===== */
.section-organisasi {
    position: relative;
    padding: 64px 0 72px;
    background: #fbfdfb;
    overflow: hidden;
}

.section-organisasi .section-title {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: left;
    padding: 0;
}

.section-organisasi .section-title h2 {
    position: relative;
    margin: 0 0 8px;
    padding-left: 14px;
    color: #17452f;
    background: none;
    -webkit-text-fill-color: initial;
    font-size: clamp(22px, 2.4vw, 29px);
    line-height: 1.2;
}

.section-organisasi .section-title h2::before {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: #0f5132;
}

.section-organisasi .section-title .subtitle {
    display: block;
    max-width: 700px;
    color: #52635a;
    font-size: 13px;
    line-height: 1.6;
}

.org-sub-section + .org-sub-section {
    margin-top: 42px;
}

.sub-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.sub-section-header::before {
    content: '';
    width: 3px;
    height: 23px;
    flex: 0 0 3px;
    border-radius: 0;
    background: #0f5132;
}

.sub-section-header h3 {
    margin: 0;
    color: #17452f;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.accordion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: stretch;
    grid-auto-rows: 184px;
}

.accordion-item {
    min-height: 0;
    height: 100%;
    max-height: 184px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dbe5de;
    border-top: 1px solid #dbe5de;
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.07);
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.accordion-item::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #0f5132, #66bb6a);
}

.accordion-item:hover,
.accordion-item.active {
    border-color: #0f5132;
    box-shadow: 0 12px 28px rgba(15, 81, 50, 0.12);
}

.accordion-item:hover {
    transform: translateY(-3px);
}

.accordion-item.active {
    height: 100%;
    max-height: 184px;
    transform: none;
}

.section-organisasi .accordion-header {
    cursor: default;
}

.section-organisasi .accordion-icon {
    display: none;
}

.accordion-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 8px 11px;
    cursor: pointer;
    background: #ffffff;
    border-bottom: 0;
}

.accordion-title {
    min-width: 0;
    color: #17452f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.accordion-icon-wrapper {
    width: 30px;
    height: 30px;
}

.accordion-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #0f5132;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0 11px 9px;
    overflow: visible;
}

.short-desc {
    flex: 0 0 auto;
    margin: 0 0 4px;
    color: #52635a;
    font-size: 10px;
    line-height: 1.35;
}

.full-desc {
    display: block;
    margin-top: 2px;
    padding-top: 9px;
    border-top: 1px dashed #cbd8cf;
    color: #37483e;
    font-size: 11px;
    line-height: 1.5;
}

.full-desc p {
    margin: 0;
}

.read-more-btn {
    display: none;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: auto;
    min-height: 17px;
    padding: 2px 0 0;
    border: 0;
    background: transparent;
    color: #0f5132;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    visibility: visible;
    opacity: 1;
}

.read-more-btn:hover {
    color: #66bb6a;
}

.accordion-icon-wrapper { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.icon-aisyiyah { background: #e8f5e9; color: #2e7d32; }
.icon-nasyiatul { background: #e3f2fd; color: #1565c0; }
.icon-ipm { background: #fff3e0; color: #ef6c00; }
.icon-pemuda { background: #fce4ec; color: #c62828; }
.icon-hw { background: #e0f2f1; color: #00695c; }
.icon-tapaksuci { background: #f3e5f5; color: #6a1b9a; }
.icon-rukun { background: #f1f8e9; color: #33691e; }
.icon-keagamaan { background: #e8eaf6; color: #283593; }
.icon-sosial { background: #fff8e1; color: #f57f17; }

.local-structure { color: #0F5132; font-size: 1rem; margin-bottom: 6px; font-weight: 700; }
.peran-section { margin: 10px 0; }
.peran-section h5 { color: #0F5132; margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; }
.peran-section ul { padding-left: 18px; margin: 0; list-style-type: disc; line-height: 1.7; font-size: 0.85rem; }
.kedudukan-section { margin-top: 12px; padding: 10px 12px; background: #f3f6f4; border-left: 4px solid #0F5132; border-radius: 4px; font-size: 0.85rem; color: #2d3e3a; }
.warning-note { margin-top: 10px; padding: 8px 10px; background: #fff3cd; border: 1px solid #ffeeba; border-radius: 6px; font-size: 0.8rem; color: #856404; }

@media (max-width: 992px) {
    .accordion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .section-organisasi {
        padding: 54px 0 60px;
    }

    .section-organisasi .section-title {
        margin-bottom: 32px;
        padding: 0;
    }

    .section-organisasi .section-title .subtitle {
        font-size: 13px;
        line-height: 1.7;
    }

    .org-sub-section + .org-sub-section {
        margin-top: 34px;
    }

    .sub-section-header {
        margin-bottom: 14px;
    }

    .sub-section-header h3 {
        font-size: 17px;
    }

    .accordion-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        grid-auto-rows: 184px;
    }

    .accordion-item {
        min-height: 0;
        height: 100%;
        max-height: 184px;
    }

    .accordion-header {
        grid-template-columns: 34px minmax(0, 1fr) 20px;
        min-height: 40px;
        padding: 6px 9px;
        gap: 9px;
    }

    .section-organisasi .accordion-header {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .accordion-icon-wrapper {
        width: 30px;
        height: 30px;
    }

    .accordion-title {
        font-size: 13px;
    }

    .accordion-body {
        padding: 0 9px 6px;
    }

    .short-desc,
    .full-desc {
        font-size: 11px;
        line-height: 1.45;
    }

    .read-more-btn {
        display: none;
    }
}

/* ===== AUM & PETA ===== */
.section-aum-dakwah { background: linear-gradient(180deg, #f0f6f2 0%, #ffffff 100%); padding: 60px 0 70px; position: relative; overflow: hidden; }
.aum-dakwah-layout { display: grid; grid-template-columns: 1fr; gap: 28px; position: relative; z-index: 1; }
.aum-carousel-wrapper { position: relative; overflow: hidden; border-radius: 18px; padding: 6px 0 10px; }
.aum-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 2px 12px; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x mandatory; cursor: grab; }
.aum-carousel::-webkit-scrollbar { display: none; }
.aum-carousel .aum-item { flex: 0 0 300px; min-width: 270px; scroll-snap-align: start; background: #ffffff; border-radius: 18px; padding: 18px 16px 16px; border: 1px solid rgba(15, 81, 50, 0.08); box-shadow: 0 8px 20px rgba(15, 81, 50, 0.05); transition: all 0.4s ease; display: flex; flex-direction: column; }
.aum-carousel .aum-item:hover { transform: translateY(-4px) scale(1.005); box-shadow: 0 14px 26px rgba(15, 81, 50, 0.12); }
.aum-carousel .aum-item .aum-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aum-carousel .aum-item .aum-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: linear-gradient(135deg, #0F5132, #66BB6A); color: #ffffff; flex-shrink: 0; }
.aum-carousel .aum-item .aum-head h3 { font-size: 15px; font-weight: 700; color: #0F5132; margin: 0; }
.aum-carousel .aum-item .aum-type { display: inline-flex; padding: 3px 10px; border-radius: 50px; background: rgba(15, 81, 50, 0.10); color: #0F5132; font-size: 9px; font-weight: 700; text-transform: uppercase; margin-top: 4px; }
.aum-carousel .aum-item .aum-info { margin: 0 0 12px; flex: 1; }
.aum-carousel .aum-item .aum-info > div { display: grid; grid-template-columns: 60px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(15, 81, 50, 0.06); }
.aum-carousel .aum-item .aum-info > div:last-child { border-bottom: none; }
.aum-carousel .aum-item .aum-info dt { font-weight: 700; color: #0F5132; font-size: 10px; }
.aum-carousel .aum-item .aum-info dd { margin: 0; color: #4B5563; font-size: 12px; line-height: 1.5; }
.aum-carousel .aum-item .btn-link { display: inline-flex; align-items: center; gap: 8px; color: #0F5132; font-weight: 700; font-size: 11px; padding: 7px 12px; border-radius: 50px; background: rgba(15, 81, 50, 0.06); transition: all 0.3s ease; margin-top: auto; align-self: flex-start; }
.aum-carousel .aum-item .btn-link:hover { background: #0F5132; color: #ffffff; transform: translateX(4px); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(15, 81, 50, 0.12); color: #0F5132; font-size: 15px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.carousel-btn:hover { background: #0F5132; color: #ffffff; }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

.peta-dakwah-panel { background: #ffffff; border-radius: 16px; border: 1px solid rgba(15, 81, 50, 0.08); box-shadow: 0 10px 24px rgba(15, 81, 50, 0.05); padding: 16px 16px 18px; }
.peta-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.peta-header .small-label { display: inline-flex; font-size: 9px; font-weight: 800; color: #66BB6A; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(15, 81, 50, 0.08); padding: 4px 10px; border-radius: 50px; }
.peta-header h3 { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: #0F5132; }
.peta-header .map-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 50px; background: linear-gradient(135deg, #0F5132, #66BB6A); color: #ffffff; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.map-frame { width: 100%; border-radius: 12px; overflow: hidden; min-height: 260px; border: 1px solid rgba(15, 81, 50, 0.06); }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: rgba(15, 81, 50, 0.05); border-radius: 50px; font-size: 10px; font-weight: 600; color: #1F2937; border: 1px solid rgba(15, 81, 50, 0.06); }
@media (max-width: 992px) { .aum-carousel .aum-item { flex: 0 0 260px; min-width: 230px; } }
@media (max-width: 480px) {
    .aum-carousel .aum-item {
        flex: 0 0 calc(100vw - 40px);
        width: calc(100vw - 40px);
        min-width: 0;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 14px;
        box-sizing: border-box;
    }

    .aum-carousel .aum-item .aum-head { gap: 8px; margin-bottom: 7px; }
    .aum-carousel .aum-item .aum-icon { width: 34px; height: 34px; font-size: 14px; }
    .aum-carousel .aum-item .aum-head h3 { font-size: 13px; }
    .aum-carousel .aum-item .aum-info { margin-bottom: 8px; }
    .aum-carousel .aum-item .aum-info > div { grid-template-columns: 50px 1fr; gap: 5px; padding: 4px 0; }
    .aum-carousel .aum-item .aum-info dt { font-size: 9px; }
    .aum-carousel .aum-item .aum-info dd { font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
    .aum-carousel .aum-item .btn-link { gap: 5px; padding: 6px 9px; font-size: 9px; }
    .peta-header { flex-direction: column; align-items: flex-start; }
}


/* ===== ARTIKEL ===== */
.section-artikel { padding: 58px 0 52px; background: #f9fafb; }
.section-artikel .section-title h2 { color: #12372A; font-family: 'Inter', 'Segoe UI', sans-serif; font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: 0; }
.section-artikel .section-title p { color: #475467; font-family: 'Inter', 'Segoe UI', sans-serif; font-size: 17px; font-weight: 500; line-height: 1.6; }
.artikel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 34px; }
.artikel-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); transition: transform 0.35s ease, box-shadow 0.35s ease; display: flex; flex-direction: column; }
.artikel-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(15, 81, 50, 0.15); }
.artikel-image-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 150px; overflow: hidden; background: #f0f0f0; }
.artikel-image-wrapper img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; }
.artikel-card:hover .artikel-image-wrapper img { transform: scale(1.08); }
.artikel-image-placeholder { width: 100%; height: 100%; min-height: 150px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0F5132, #66BB6A); color: white; font-size: 48px; }
.artikel-badge { position: absolute; top: 12px; left: 12px; bottom: auto; right: auto; z-index: 2; }
.badge-date { display: inline-block; background: rgba(15, 81, 50, 0.9); color: white; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.artikel-preview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg, rgba(15,81,50,.08), rgba(15,81,50,.88)); opacity: 0; transition: opacity .35s ease; }
.artikel-preview:hover { color: #fff; }
.artikel-card:hover .artikel-preview, .artikel-card:focus-within .artikel-preview { opacity: 1; }
.artikel-preview-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.95); color: #0f5132; font-size: 20px; transform: scale(.45); transition: transform .35s ease; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.artikel-card:hover .artikel-preview-icon, .artikel-card:focus-within .artikel-preview-icon { transform: scale(1); }
.artikel-content { min-width: 0; padding: 17px; flex: 1; display: flex; flex-direction: column; }
.artikel-title { width: 100%; max-width: 100%; font-size: 22px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; color: #12372A; overflow-wrap: anywhere; word-break: normal; }
.artikel-title a { color: #0F5132; transition: color 0.3s ease; }
.artikel-title a:hover { color: #66BB6A; }
.artikel-excerpt { width: 100%; max-width: 100%; font-size: 15px; font-weight: 400; color: #344054; line-height: 1.7; margin-bottom: 14px; flex-grow: 1; overflow-wrap: anywhere; word-break: normal; }
.artikel-footer { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid #f0f0f0; }
.artikel-views { font-size: 12px; font-weight: 400; color: #667085; }
.artikel-views i { margin-right: 5px; }
.artikel-link { min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: #0F5132; font-weight: 600; font-size: 14px; transition: all 0.3s ease; overflow-wrap: anywhere; }
.artikel-link:hover { color: #66BB6A; gap: 12px; }
.artikel-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 40px; }
.pagination-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #0F5132; color: white; border-radius: 6px; font-weight: 600; transition: all 0.3s ease; }
.pagination-btn:hover { background: #66BB6A; }
.pagination-info { font-size: 14px; color: #666; }

@media (min-width: 769px) {
    .section-artikel .container { max-width: 900px; }
    .artikel-grid { gap: 12px; }
    .artikel-image-wrapper { min-height: 120px; }
    .artikel-title { font-size: 18px; }
    .artikel-excerpt { font-size: 13px; line-height: 1.55; }
    .artikel-content { padding: 14px; }
    .artikel-card:focus-visible { outline: 3px solid rgba(15, 81, 50, .35); outline-offset: 3px; }
}

@media (max-width: 768px) {
    .section-artikel { padding: 34px 0 30px; }
    .section-artikel .section-title { margin-bottom: 18px; }
    .section-artikel .section-title h2 { font-size: 24px; line-height: 1.15; }
    .section-artikel .section-title p { font-size: 13px; }
    .artikel-grid {
        display: flex;
        gap: 10px;
        margin: 0 -16px 18px;
        padding: 0 16px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .artikel-grid::-webkit-scrollbar { display: none; }
    .artikel-card {
        flex: 0 0 min(58vw, 200px);
        scroll-snap-align: start;
        border-radius: 9px;
    }
    .artikel-image-wrapper { min-height: 0; }
    .artikel-image-placeholder { min-height: 0; font-size: 30px; }
    .artikel-badge { top: 8px; left: 8px; }
    .badge-date { padding: 3px 6px; font-size: 9px; }
    .artikel-content { padding: 10px; }
    .artikel-title { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
    .artikel-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
    .artikel-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
    .artikel-footer { gap: 6px; padding-top: 8px; }
    .artikel-views { font-size: 10px; }
    .artikel-link { font-size: 11px; }
}

/* ===== KEGIATAN CAROUSEL ===== */
.section-kegiatan-carousel { background: #f7faf8; padding: 58px 0 64px; position: relative; overflow: hidden; }
.section-kegiatan-carousel .section-title { margin-bottom: 26px; }
.section-kegiatan-carousel .section-title h2 { color: #17452f; background: none; -webkit-text-fill-color: initial; font-size: 25px; }
.section-kegiatan-carousel .section-title h2::after { content: ''; display: block; width: 46px; height: 3px; margin: 8px auto 0; border-radius: 3px; background: #c9a227; }
.section-kegiatan-carousel .kegiatan-description { max-width: 680px; margin: 9px auto 0; color: #607067; font-size: 12px; line-height: 1.6; }
.kegiatan-carousel-wrapper { position: relative; overflow: visible; margin: 0; padding: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; }
.kegiatan-carousel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; padding: 0; scroll-snap-type: none; cursor: default; align-items: stretch; }
.kegiatan-carousel::-webkit-scrollbar { display: none; }
.kegiatan-card { min-width: 0; min-height: 270px; scroll-snap-align: none; background: #ffffff; border-radius: 10px; padding: 18px 16px 16px; border: 1px solid #dce5df; box-shadow: 0 4px 12px rgba(15, 81, 50, 0.06); transition: all 0.25s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.kegiatan-card:hover { transform: translateY(-4px) scale(1.005); box-shadow: 0 14px 28px rgba(15, 81, 50, 0.12); }
.kegiatan-card.kegiatan-dakwah { border-top: 4px solid var(--primary); }
.kegiatan-card.kegiatan-sosial { border-top: 4px solid var(--secondary); }
.kegiatan-card.kegiatan-pembinaan { border-top: 4px solid var(--accent); }
.kegiatan-card.kegiatan-organisasi { border-top: 4px solid #8B6F4C; }
.kegiatan-card-number { font-size: 30px; font-weight: 900; color: rgba(15, 81, 50, 0.06); position: absolute; top: 8px; right: 10px; pointer-events: none; }
.kegiatan-card-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #ffffff; margin-bottom: 8px; flex-shrink: 0; }
.kegiatan-dakwah .kegiatan-card-icon { background: linear-gradient(135deg, #0F5132, #2E7D32); }
.kegiatan-sosial .kegiatan-card-icon { background: linear-gradient(135deg, #E65100, #F57C00); }
.kegiatan-pembinaan .kegiatan-card-icon { background: linear-gradient(135deg, #0D47A1, #1976D2); }
.kegiatan-organisasi .kegiatan-card-icon { background: linear-gradient(135deg, #4E342E, #6D4C41); }
.kegiatan-card h3 { font-size: 14px; font-weight: 700; color: #0F5132; margin: 0 0 8px 0; }
.kegiatan-card p { font-size: 13px; line-height: 1.55; color: #29352e; margin: 0 0 14px 0; flex-grow: 1; }
.kegiatan-card-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 9px; }
.kegiatan-card-meta span { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #303b35; }
.kegiatan-card-meta span i { width: 14px; color: #17231c; font-size: 10px; }
.kegiatan-card-btn { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 8px; background: var(--primary); color: #ffffff; border-radius: 5px; font-weight: 600; font-size: 8px; line-height: 1.2; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; border: 1px solid var(--primary); align-self: flex-start; margin-top: auto; }
.kegiatan-card-btn i { font-size: 7px; transition: transform 0.2s ease; }
.kegiatan-card-btn:hover { background: transparent; color: var(--primary); transform: translateY(-1px); }
.kegiatan-card-btn:hover i { transform: translateX(3px); }
.kegiatan-share-btn { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 8px; padding: 7px 13px; border: 1px solid #25D366; border-radius: 50px; background: #25D366; color: #ffffff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.kegiatan-share-btn:hover { background: #1da851; border-color: #1da851; transform: translateX(4px); }
.kegiatan-share-btn i { font-size: 14px; }
.kegiatan-carousel-btn { display: none; }
.kegiatan-carousel-btn:hover { background: #0F5132; color: #ffffff; }
.kegiatan-carousel-prev { left: -2px; }
.kegiatan-carousel-next { right: -2px; }
.kegiatan-carousel-progress { display: none; }
.kegiatan-progress-bar { width: 100%; height: 4px; background: rgba(15, 81, 50, 0.10); border-radius: 4px; overflow: hidden; }
.kegiatan-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #0F5132, #66BB6A); border-radius: 4px; transition: width 0.3s ease; }
.kegiatan-archive-note { margin-top: 16px; background: #fff; border-radius: 12px; border: 1px dashed rgba(15, 81, 50, 0.35); padding: 10px 12px; text-align: center; }
.kegiatan-archive-note p { color: var(--text-light); font-size: 11px; }
@media (max-width: 992px) { .kegiatan-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .section-kegiatan-carousel { padding: 28px 0 38px; }
    .section-kegiatan-carousel .section-title { margin-bottom: 14px; }
    .section-kegiatan-carousel .section-title h2 { font-size: 15px; }
    .section-kegiatan-carousel .section-title h2::after { width: 34px; height: 2px; margin-top: 5px; }
    .section-kegiatan-carousel .kegiatan-description { display: none; }
    .kegiatan-carousel { grid-template-columns: 1fr; gap: 12px; width: min(100%, 360px); margin: 0 auto; }
    .kegiatan-card { width: 100%; min-height: 0; height: auto; padding: 14px 14px 13px; border-radius: 9px; box-sizing: border-box; }
    .kegiatan-card-number { font-size: 25px; top: 8px; right: 9px; }
    .kegiatan-card-icon { width: 34px; height: 34px; border-radius: 8px; font-size: 14px; margin-bottom: 7px; }
    .kegiatan-card h3 { font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
    .kegiatan-card p { font-size: 11px; line-height: 1.5; margin-bottom: 12px; }
    .kegiatan-card-meta { display: none; }
    .kegiatan-card-btn { gap: 4px; padding: 5px 8px; font-size: 8px; border-width: 1px; }
}

/* ===== GALERI ===== */
.section-galeri { background: linear-gradient(180deg, #ffffff 0%, #f0f6f2 100%); padding: 60px 0 70px; position: relative; overflow: hidden; }
.galeri-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.galeri-filter button { padding: 7px 14px; border-radius: 50px; border: 2px solid rgba(15, 81, 50, 0.15); background: transparent; color: var(--text); font-weight: 600; font-size: 11px; cursor: pointer; transition: all 0.3s ease; }
.galeri-filter button:hover, .galeri-filter button.active { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.galeri-grid { display: grid; grid-template-rows: repeat(2, clamp(130px, 17vw, 190px)); grid-auto-flow: column; grid-auto-columns: clamp(180px, 24vw, 280px); gap: clamp(8px, 1.2vw, 16px); min-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(15, 81, 50, 0.35) transparent; }
.galeri-arsip-section { padding: 54px 0 62px; background: #eef3ef; border-top: 1px solid rgba(15, 81, 50, .1); }
.galeri-arsip-section .section-title { margin-bottom: 24px; }
.galeri-arsip-section .section-title h2 { color: #17452f; background: none; -webkit-text-fill-color: initial; font-size: 25px; }
.galeri-arsip-section .section-title p:not(.section-eyebrow) { max-width: 680px; margin: 9px auto 0; color: #607067; font-size: 12px; line-height: 1.6; }
.galeri-arsip-grid { display: grid; grid-template-rows: repeat(2, clamp(130px, 17vw, 190px)); grid-auto-flow: column; grid-auto-columns: clamp(180px, 24vw, 280px); gap: clamp(8px, 1.2vw, 16px); min-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 12px; scroll-snap-type: x proximity; touch-action: pan-x; scrollbar-width: thin; scrollbar-color: rgba(15, 81, 50, 0.35) transparent; }
.galeri-arsip-item { min-height: 0; }
@media (max-width: 768px) { .galeri-arsip-grid { grid-template-rows: repeat(2, clamp(120px, 28vw, 160px)); grid-auto-columns: clamp(170px, 42vw, 220px); gap: 10px; } }
@media (max-width: 480px) { .galeri-arsip-grid { grid-template-rows: repeat(2, 130px); grid-auto-columns: 180px; gap: 8px; } }
@media (max-width: 768px) { .galeri-arsip-section .section-title { margin-bottom: 14px; } .galeri-arsip-section .section-title h2 { font-size: 15px; } .galeri-arsip-section .section-title p:not(.section-eyebrow) { display: none; } }
.galeri-item { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; cursor: pointer; background: #eef3ef; transition: all 0.4s ease; box-shadow: 0 4px 16px rgba(15, 81, 50, 0.06); }
.galeri-item:hover,
.galeri-item:active,
.galeri-item:focus-visible { transform: translateY(-6px) scale(1.01); box-shadow: 0 14px 26px rgba(15, 81, 50, 0.12); }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; user-select: none; -webkit-user-drag: none; }
.galeri-item:hover img,
.galeri-item:active img,
.galeri-item:focus-visible img { transform: scale(1.06); }
.galeri-item .galeri-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: linear-gradient(transparent, rgba(15, 81, 50, 0.85)); color: white; transform: translateY(100%); transition: transform 0.4s ease; }
.galeri-item:hover .galeri-overlay,
.galeri-item:active .galeri-overlay,
.galeri-item:focus-visible .galeri-overlay { transform: translateY(0); }
.galeri-item .galeri-overlay h4 { font-size: 14px; margin: 0 0 4px 0; font-weight: 700; }
.galeri-item .galeri-overlay p { font-size: 11px; opacity: 0.9; margin: 0; }
.galeri-item .galeri-label { position: absolute; top: 10px; left: 10px; background: rgba(15, 81, 50, 0.85); color: white; padding: 4px 10px; border-radius: 50px; font-size: 9px; font-weight: 600; }
.galeri-item .galeri-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 46px; height: 46px; background: rgba(255, 255, 255, 0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; transition: all 0.4s ease; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.galeri-item:hover .galeri-icon,
.galeri-item:active .galeri-icon,
.galeri-item:focus-visible .galeri-icon { transform: translate(-50%, -50%) scale(1); }
.galeri-item.hidden { display: none; }

.galeri-lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(10px); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; }
.galeri-lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
.galeri-lightbox-content { max-width: 800px; width: 100%; background: white; border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.4); transform: scale(0.9); transition: transform 0.3s ease; }
.galeri-lightbox.open .galeri-lightbox-content { transform: scale(1); }
.galeri-lightbox-close { position: absolute; top: 12px; right: 16px; background: rgba(255,255,255,0.2); border: none; color: white; font-size: 24px; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10; }
.galeri-lightbox-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.galeri-lightbox-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.galeri-lightbox-info { padding: 16px 18px 20px; }
.galeri-lightbox-info h3 { font-size: 18px; color: var(--primary); margin: 0 0 4px 0; }
.galeri-lightbox-info .category { color: var(--secondary); font-weight: 600; font-size: 11px; display: inline-block; padding: 4px 12px; background: rgba(102, 187, 106, 0.15); border-radius: 50px; margin: 6px 0 10px; }
.galeri-lightbox-info p { color: var(--text-light); line-height: 1.7; margin: 0; font-size: 12px; }
@media (max-width: 768px) { .galeri-grid { grid-template-rows: repeat(2, clamp(120px, 28vw, 160px)); grid-auto-columns: clamp(170px, 42vw, 220px); gap: 10px; } .galeri-lightbox { padding: 16px; } .galeri-lightbox-image { aspect-ratio: 4/3; } }
@media (max-width: 480px) { .galeri-grid { grid-template-rows: repeat(2, 130px); grid-auto-columns: 180px; gap: 8px; } .galeri-item .galeri-overlay { display: none; } }

/* ===== CONTACT ===== */
.section-contact { background: var(--section-bg); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: start; }
.contact-info { background: linear-gradient(135deg, #0F5132 0%, #196941 45%, #B9A235 100%); padding: 40px; border-radius: var(--radius); color: var(--white); display: flex; flex-direction: column; gap: 25px; }
.contact-info h3 { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: #ffffff; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; padding: 12px 14px; border-left: 3px solid #c9a227; border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, 0.1); }
.contact-item i { font-size: 20px; width: 25px; margin-top: 3px; color: #f3d76a; }
.contact-item:nth-of-type(2) i { color: #b8e6c0; }
.contact-item:nth-of-type(3) i { color: #9ed0ff; }
.contact-item .label { color: #f3d76a; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.contact-item .value { margin-top: 3px; font-weight: 600; line-height: 1.5; color: #ffffff; }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--grey-dark); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); background: var(--white); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } .contact-form .form-row { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
    body { padding-top: 64px; }
    .container { padding: 0 16px; }
    section { padding: 48px 0; }
    .section-title { margin-bottom: 28px; padding: 0 6px; }
    .section-title h2 { font-size: 24px; }
    .section-title p { font-size: 13px; }
    .header { grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; }
    .header-logo img { height: 38px; }
    .header-logo h1 { font-size: 14px; }
    .main-menu ul { gap: 4px; }
    .main-menu ul li { min-height: auto; }
    .main-menu ul li a { font-size: 11px; padding: 7px 4px; }
    .btn-primary, .btn-secondary { padding: 11px 18px; font-size: 13px; }
}

@media (max-width: 480px) {
    .header-logo h1 { font-size: 12px; }
    .section-title h2 { font-size: 22px; }
    .section-title p { font-size: 12px; }
    .main-menu ul li a { font-size: 10px; letter-spacing: 0.02em; }
}

/* ===== FOOTER ===== */
footer { background: var(--dark-bg); color: var(--white); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.footer-col h3 { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 18px; position: relative; color: var(--white); }
.footer-col h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 3px; background: var(--accent); border-radius: 3px; }
.footer-col p, .footer-col ul li, .footer-col ul li a { color: rgba(255, 255, 255, 0.92); font-size: 14px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-col ul li i { width: 20px; color: var(--secondary); }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 18px; transition: var(--transition); }
.social-links a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; font-size: 14px; opacity: 0.7; }
.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { color: var(--secondary); }

/* ===== BACK TO TOP ===== */
.backtop { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: var(--gradient); color: var(--white); border: none; border-radius: 50%; font-size: 18px; cursor: pointer; box-shadow: var(--shadow); transition: var(--transition); opacity: 0; visibility: hidden; transform: translateY(20px); z-index: 999; }
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* ===== DARK MODE ===== */
body.dark { background: #0d0f12; color: #e8e8ee; }
body.dark .header-wrapper { background: #101319; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
body.dark .main-menu ul li a { color: #e8e8ee; }
body.dark .menu-toggle span { background: #e8e8ee; }

/* One stable navbar color; scrolling does not recolor menu items. */
.main-menu > ul > li > a:hover,
.main-menu > ul > li > a.active {
    color: #c9a227;
    background: transparent;
    background-image: linear-gradient(90deg, #f4d35e 0%, #c9a227 55%, #efd36a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
}
.main-menu > ul > li > a.active {
    color: #0f5132;
    background-image: none;
    -webkit-text-fill-color: initial;
    transform: none;
}
.main-menu > ul > li > a.active::after {
    display: none;
}
.main-menu > ul > li > a[href*='#artikel']:hover,
.main-menu > ul > li > a[href*='#artikel'].active,
.dropdown-menu li a.active,
.mobile-menu-list a[href*='#artikel']:hover,
.mobile-menu-list a[href*='#artikel'].scroll-active {
    color: #c9a227;
    background-image: linear-gradient(90deg, #f4d35e 0%, #c9a227 55%, #efd36a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mobile-menu-list .accordion-toggle.scroll-active {
    color: #c9a227;
    font-weight: 800;
    background: transparent;
    background-image: linear-gradient(90deg, #f4d35e 0%, #c9a227 55%, #efd36a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mobile-menu-list > li > a:hover,
.mobile-menu-list > li > a:focus-visible,
.mobile-menu-list > li > a:active,
.accordion-toggle:hover,
.accordion-toggle:focus-visible {
    color: #c9a227;
    border-left: 0;
    background: transparent;
    background-image: linear-gradient(90deg, #f4d35e 0%, #c9a227 55%, #efd36a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mobile-menu-list a.scroll-active { color: #c9a227; font-weight: 800; border-left: 0; background: transparent; background-image: linear-gradient(90deg, #f4d35e 0%, #c9a227 55%, #efd36a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.accordion-content { border-left: 4px solid #2f7d5a; }
body.dark .org-card, body.dark .pricing-card, body.dark .blog-card, body.dark .team-card, body.dark .contact-form { background: #1a1d24; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
body.dark .org-card p, body.dark .pricing-card p, body.dark .blog-content .excerpt { color: #aaa; }
body.dark .blog-content h3 a { color: #e8e8ee; }

/* Keep laptop content compact while preserving full-width mobile layouts. */
@media (min-width: 769px) and (max-width: 1600px) {
    .container {
        width: min(100%, 1120px);
        max-width: 1120px;
        padding-left: 32px;
        padding-right: 32px;
    }
}
body.dark .contact-form input, body.dark .contact-form select, body.dark .contact-form textarea { background: #0d0f12; color: #e8e8ee; border-color: #2a2d36; }
body.dark .faq-item { border-color: #2a2d36; }
body.dark .faq-question { color: #e8e8ee; }
body.dark .section-title p { color: #aaa; }
body.dark .pagination a { background: #1a1d24; color: #e8e8ee; }
body.dark .pagination a:hover { background: var(--primary); color: var(--white); }
body.dark .hero-wave svg path { fill: #1a1a2e; }
body.dark .section-pimpinan { background: linear-gradient(180deg, #12151a 0%, #1a1d24 100%); }
body.dark .org-card, body.dark .org-card-sekben, body.dark .org-card-wakil, body.dark .org-card-wakil-sekben { background: #1a1d24; border-color: rgba(255, 255, 255, 0.06); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
body.dark .org-card-ketua { background: linear-gradient(145deg, #0F5132, #1a6e32); }
body.dark .org-nama { color: #e8e8ee; }
body.dark .org-jabatan { color: #aaa; }
body.dark .org-tugas li { color: #aaa; }
body.dark .org-bidang span { background: rgba(255, 255, 255, 0.06); color: #aaa; }
body.dark .org-icon { background: rgba(255, 255, 255, 0.06); color: #e8e8ee; }
body.dark .org-card-ketua .org-icon { background: rgba(255, 255, 255, 0.15); color: white; }
body.dark .section-galeri { background: linear-gradient(180deg, #12151a 0%, #1a1d24 100%); }
body.dark .galeri-item { background: #1a1d24; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark .galeri-lightbox-content { background: #1a1d24; }
body.dark .galeri-lightbox-info h3 { color: #e8e8ee; }
body.dark .galeri-lightbox-info p { color: #aaa; }
body.dark .galeri-filter button { color: #aaa; border-color: rgba(255,255,255,0.1); }
body.dark .galeri-filter button:hover, body.dark .galeri-filter button.active { background: var(--primary); color: white; }
body.dark .section-kegiatan-carousel { background: linear-gradient(180deg, #12151a 0%, #1a1d24 100%); }
body.dark .kegiatan-card { background: #1a1d24; border-color: rgba(255, 255, 255, 0.06); }
body.dark .kegiatan-card h3 { color: #e8e8ee; }
body.dark .kegiatan-card p { color: #aaa; }
body.dark .kegiatan-card-meta span { color: #888; }
body.dark .kegiatan-card-number { color: rgba(255, 255, 255, 0.04); }
body.dark .kegiatan-archive-note { background: #1a1d24; border-color: rgba(255, 255, 255, 0.1); }
body.dark .kegiatan-archive-note p { color: #aaa; }
body.dark .kegiatan-carousel-btn { background: rgba(26, 29, 36, 0.95); border-color: rgba(255, 255, 255, 0.08); color: #e8e8ee; }
body.dark .kegiatan-carousel-btn:hover { background: #0F5132; color: #ffffff; }
body.dark .kegiatan-progress-bar { background: rgba(255, 255, 255, 0.08); }

/* ===== RESPONSIVE UMUM ===== */
@media (max-width: 1024px) { .organisasi-grid, .pricing-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); } .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .section-title h2 { font-size: 28px; } section { padding: 60px 0; } .footer-content { grid-template-columns: 1fr; gap: 30px; } .footer-col { text-align: left; } .footer-col .social-links { justify-content: flex-start; } }
@media (max-width: 480px) { .section-title h2 { font-size: 24px; } section { padding: 40px 0; } .header-logo h1 { font-size: 14px; } .header-logo img { height: 40px; } }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Calm motion pass: keep interaction feedback without constant movement. */
.tugas-title span,
.tugas-card,
.tugas-icon,
.hero-sejarah::before,
.hero-sejarah::after {
    animation: none;
}
.tugas-card:hover { transform: translateY(-2px); }
.org-card:hover,
.galeri-item:hover,
.artikel-card:hover { transform: translateY(-3px); }
.artikel-card { transition: transform .4s ease, box-shadow .4s ease; }
.artikel-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 14px 26px rgba(15, 81, 50, .12); }
.artikel-card:hover .artikel-image-wrapper img { transform: scale(1.06); }
.artikel-card:hover .artikel-preview { opacity: 1; }
.artikel-card:hover .artikel-preview-icon { transform: scale(1); }
.section-title,
.section-title h2,
.section-title p { animation: none; }

/* Calm navbar motion. */
.main-menu { animation: none; }
.main-menu ul li { animation: none; }
.main-menu ul li a { transition: color .18s ease, background-color .18s ease; }
.main-menu ul li a:hover { transform: none; }
.mobile-menu { transition: transform .24s ease, opacity .24s ease, visibility .24s ease; }
.mobile-menu.active .mobile-menu-list > li { animation: none; }
.mobile-menu-list > li > a,
.accordion-toggle { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }

/* Navbar without animation or transition. */
.header-wrapper,
.main-menu,
.main-menu ul,
.main-menu ul li,
.main-menu ul li a,
.dropdown-menu,
.menu-toggle,
.menu-toggle span,
.mobile-menu,
.mobile-menu-header,
.mobile-menu-list,
.mobile-menu-list > li,
.mobile-menu-list > li > a,
.accordion-toggle,
.accordion-content,
.mobile-menu-overlay {
    animation: none !important;
    transition: none !important;
}
.main-menu ul li a:hover,
.mobile-menu-list > li > a:hover,
.accordion-toggle:hover { transform: none !important; }

/* Mobile-only navbar motion and right-aligned menu button. */
@media (max-width: 768px) {
    .header-logo { order: 0; }
    .menu-toggle {
        order: 2;
        margin-left: auto;
        animation: none !important;
        transition: background-color .2s ease, transform .2s ease !important;
    }
    .menu-toggle span { transition: transform .25s ease, opacity .2s ease !important; }
    .menu-toggle:active { transform: scale(.94); }
    .mobile-menu {
        animation: none !important;
        transition: transform .28s ease, opacity .28s ease, visibility .28s ease !important;
    }
    .mobile-menu-overlay { transition: opacity .28s ease, visibility .28s ease !important; }
    .mobile-menu.active .mobile-menu-list > li {
        animation: mobileDrawerItemIn .3s ease both !important;
    }
    .mobile-menu.active .mobile-menu-list > li:nth-child(2) { animation-delay: .04s !important; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(3) { animation-delay: .08s !important; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(4) { animation-delay: .12s !important; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(5) { animation-delay: .16s !important; }
    .mobile-menu.active .mobile-menu-list > li:nth-child(6) { animation-delay: .2s !important; }
    .mobile-menu-list > li > a,
    .accordion-toggle { transition: background-color .18s ease, color .18s ease !important; }
    .accordion-content { transition: max-height .25s ease !important; }
    body.mobile-menu-open {
        overflow-y: auto;
        position: static;
    }
}

/* Full-width page layout with responsive content gutters. */
.container,
.container-hero {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
}
.header-content {
    width: 100%;
    max-width: none;
}
@media (max-width: 768px) {
    .container,
    .container-hero {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@keyframes laptopNavbarDrop {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobileNavbarFromLeft {
    from { opacity: 0; transform: translate3d(-105%, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Desktop: navbar drops from the top. */
@media (min-width: 769px) {
    .header-wrapper { animation: laptopNavbarDrop .45s ease-out both !important; }
}

/* Mobile: drawer enters from the left when opened. */
@media (max-width: 768px) {
    .mobile-menu.active {
        animation: mobileNavbarFromLeft .3s ease-out both !important;
    }
}

/* =============================================
   PETA DAKWAH - DENGAN MARKER
   ============================================= */
.peta-dakwah-panel {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 81, 50, 0.08);
    box-shadow: 0 10px 24px rgba(15, 81, 50, 0.05);
    padding: 16px 16px 18px;
    transition: all 0.3s ease;
}

.peta-dakwah-panel:hover {
    box-shadow: 0 16px 40px rgba(15, 81, 50, 0.12);
    transform: translateY(-2px);
}

.map-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    min-height: 260px;
    border: 1px solid rgba(15, 81, 50, 0.06);
    position: relative;
}

.map-frame iframe {
    width: 100%;
    height: 330px;
    border: 0;
    display: block;
    transition: all 0.3s ease;
}

.map-frame iframe:hover {
    transform: scale(1.002);
}

.map-legend {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(15, 81, 50, 0.05);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: #1F2937;
    border: 1px solid rgba(15, 81, 50, 0.06);
    transition: all 0.3s ease;
}

.map-legend span:hover {
    background: rgba(15, 81, 50, 0.10);
    transform: translateY(-2px);
}

/* Responsive Map */
@media (max-width: 768px) {
    .map-frame iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .map-frame iframe {
        height: 200px;
    }
    .map-legend span {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* ============================================
   HERO MODERN (Bagian Hero Saja)
   ============================================ */
.hero-modern {
    position: relative;
    z-index: 0;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 24px 0 0;
    box-sizing: border-box;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Background Image */
.hero-bg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: calc(100% + 2px);
    background-size: cover;
    background-position: center 0 !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat;
    z-index: 0;
    transform: none;
    animation: none;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Overlay Gradasi Hijau Tua */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        95deg,
        rgba(6, 40, 20, 0.92) 0%,
        rgba(6, 40, 20, 0.80) 40%,
        rgba(6, 40, 20, 0.40) 70%,
        rgba(6, 40, 20, 0) 100%
    );
    z-index: 1;
}

/* Pola Dekoratif (Geometris) */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 36px);
    z-index: 1;
    pointer-events: none;
}

/* Kontainer Konten */
.container-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 24px 24px;
}

.hero-content {
    max-width: 500px;
    margin-top: 0;
}

.hero-label {
    animation: heroTextReveal 0.7s ease-out 0.15s both;
}

.hero-title {
    animation: heroTextReveal 0.7s ease-out 0.3s both;
}

.hero-desc {
    animation: heroTextReveal 0.7s ease-out 0.45s both;
}

.hero-buttons {
    animation: heroTextReveal 0.7s ease-out 0.6s both;
}

@keyframes navReveal {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes navItemReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTextReveal {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Label Atas (Pimpinan Ranting...) */
.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #F5D03A; /* Warna Kuning Emas */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-label .line {
    display: none;
}

/* Judul Utama */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: #F5D03A;
    display: inline-block;
}

/* Deskripsi */
.hero-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
    max-width: 600px;
}

/* Tombol Aksi */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    background: #2F8F5B;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #2F8F5B;
}

.btn-primary-hero:hover {
    background: #247448;
    border-color: #247448;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 81, 50, 0.4);
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    background: transparent;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* ===== UX POLISH: PROGRAM & CONTENT SYSTEM ===== */
:root {
    --content-width: 1180px;
    --content-radius: 12px;
    --content-border: #dfe8e1;
    --content-shadow: 0 8px 24px rgba(15, 81, 50, 0.07);
    --content-shadow-hover: 0 14px 32px rgba(15, 81, 50, 0.12);
}

html {
    scroll-padding-top: 100px;
}

section {
    scroll-margin-top: 100px;
}

.container {
    max-width: var(--content-width);
}

.section-title {
    margin-bottom: 36px;
}

.section-title h2 {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
    letter-spacing: 0;
}

.section-title p {
    font-size: 14px;
    color: #607067;
}

.section-title-separator {
    height: 3px;
    width: 48px;
    margin-top: 12px;
    background: var(--accent);
}

.section-about,
.section-sambutan,
.section-pimpinan,
.section-pimpinan-majelis,
.section-kegiatan-carousel,
.section-galeri,
.section-contact {
    border-top: 1px solid rgba(15, 81, 50, 0.06);
}

.about-text p,
.sambutan-text,
.kegiatan-card p,
.artikel-excerpt,
.contact-item .value {
    color: #435248;
}

.org-card,
.org-card-sekben,
.org-card-wakil,
.org-card-wakil-sekben,
.majelis-card,
.tugas-card,
.kegiatan-card,
.aum-carousel .aum-item,
.artikel-card,
.galeri-item,
.contact-info,
.contact-form,
.peta-dakwah-panel,
.sambutan-card,
.sejarah-card,
.section-history .history-card {
    border-radius: var(--content-radius);
    border: 1px solid var(--content-border);
    box-shadow: var(--content-shadow);
}

.org-card:hover,
.org-card-sekben:hover,
.org-card-wakil:hover,
.org-card-wakil-sekben:hover,
.majelis-card:hover,
.tugas-card:hover,
.kegiatan-card:hover,
.aum-carousel .aum-item:hover,
.artikel-card:hover,
.galeri-item:hover,
.peta-dakwah-panel:hover,
.contact-info:hover,
.contact-form:hover {
    box-shadow: var(--content-shadow-hover);
}

.kegiatan-card,
.tugas-card,
.aum-carousel .aum-item,
.artikel-card {
    min-height: 250px;
}

.kegiatan-card h3,
.artikel-title,
.aum-carousel .aum-item .aum-head h3,
.tugas-card h3 {
    letter-spacing: 0;
}

.kegiatan-card-btn,
.artikel-link,
.pagination-btn,
.tugas-card button,
.btn-primary,
.btn-secondary {
    min-height: 36px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(201, 162, 39, 0.7);
    outline-offset: 3px;
}

.galeri-filter button,
.kegiatan-card-btn,
.artikel-link,
.pagination-btn {
    white-space: nowrap;
}

.contact-wrapper {
    gap: 28px;
}

.contact-info,
.contact-form {
    padding: 30px;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 72px;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .section-title p {
        font-size: 13px;
    }

    .about-text h2 {
        font-size: 25px;
    }

    .kegiatan-carousel,
    .tugas-container {
        gap: 14px;
    }

    .contact-info,
    .contact-form {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 22px;
    }

    .section-title p {
        font-size: 12px;
    }

    .kegiatan-card,
    .tugas-card,
    .aum-carousel .aum-item,
    .artikel-card {
        min-height: 0;
    }

    .galeri-filter {
        gap: 6px;
    }

    .galeri-filter button {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 992px) {
    .hero-title { font-size: clamp(30px, 4.5vw, 42px); }
    .hero-desc { font-size: 14px; }
}

@media (max-width: 768px) {
    .hero-modern { min-height: 470px; padding-bottom: 0; }
    .container-hero { padding: 72px 20px 60px; }
    .hero-content { max-width: 100%; margin-top: -10px; }
    .hero-title { font-size: 27px; }
    .hero-desc { max-width: 600px; font-size: 13px; line-height: 1.6; }
    .hero-label { font-size: 11px; letter-spacing: 1px; }
    .hero-label .line { display: none; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary-hero, .btn-secondary-hero { width: 100%; justify-content: center; }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(6, 40, 20, 0.92) 0%, rgba(6, 40, 20, 0.85) 60%, rgba(6, 40, 20, 0.60) 100%);
    }
}

@media (max-width: 480px) {
    .hero-modern { min-height: 470px; }
    .container-hero { padding-top: 60px; }
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 12px; }
}

/* ===== ANIMASI KONTEN GLOBAL ===== */
@keyframes contentFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body > header,
body > section,
body > footer {
    animation: contentFadeUp 0.7s ease-out both;
}

body > header { animation-delay: 0.05s; }
body > section:nth-of-type(1) { animation-delay: 0.12s; }
body > section:nth-of-type(2) { animation-delay: 0.18s; }
body > section:nth-of-type(3) { animation-delay: 0.24s; }
body > section:nth-of-type(4) { animation-delay: 0.3s; }

.section-title,
.section-eyebrow,
.about-text,
.about-main-image,
.sejarah-card,
.visi-card,
.misi-card,
.sambutan-card,
.person-card,
.branch-card,
.majelis-card,
.tugas-card,
.accordion-item,
.aum-item,
.artikel-card,
.galeri-item,
.contact-info,
.contact-form,
.peta-dakwah-panel,
.kegiatan-archive-note,
.visi-misi-grid > *,
.org-chart > *,
.majelis-grid > *,
.accordion-grid > *,
.aum-carousel > *,
.artikel-grid > *,
.galeri-grid > * {
    animation: contentFadeUp 0.65s ease-out both;
}

.section-title,
.visi-misi-grid > *:nth-child(2n),
.org-chart > *:nth-child(2n),
.majelis-grid > *:nth-child(2n),
.accordion-grid > *:nth-child(2n),
.aum-carousel > *:nth-child(2n),
.artikel-grid > *:nth-child(2n),
.galeri-grid > *:nth-child(2n) {
    animation-delay: 0.12s;
}

.visi-misi-grid > *:nth-child(3n),
.majelis-grid > *:nth-child(3n),
.accordion-grid > *:nth-child(3n),
.aum-carousel > *:nth-child(3n),
.artikel-grid > *:nth-child(3n),
.galeri-grid > *:nth-child(3n) {
    animation-delay: 0.24s;
}

.kegiatan-carousel > .kegiatan-card {
    animation: none;
    opacity: 1;
}

button,
a,
img,
.org-card,
.map-legend span {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Final full-width override. */
.container,
.container-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(16px, 3vw, 48px) !important;
    padding-right: clamp(16px, 3vw, 48px) !important;
}
.hero-modern .container-hero {
    padding-left: clamp(32px, 10.5vw, 150px) !important;
    padding-right: clamp(32px, 10.5vw, 150px) !important;
}
@media (max-width: 768px) {
    .container,
    .container-hero {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .hero-modern .container-hero {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Navbar remains static on desktop and mobile. */
body > .header-wrapper,
.header-wrapper,
.header-wrapper *,
.header-wrapper::before,
.header-wrapper::after {
    animation: none !important;
    transition: none !important;
}

.header-wrapper {
    transform: none !important;
}

/* Enlarge the navbar area without enlarging its text. */
.header-wrapper .header-content {
    min-height: 78px;
}

.header-wrapper .header-logo img {
    height: 58px;
}

.header-wrapper .main-menu ul li {
    min-height: 58px;
}

@media (max-width: 768px) {
    body { padding-top: 64px; }

    .header-wrapper .header-content {
        min-height: 74px;
    }

    .header-wrapper .header-logo img {
        height: 46px;
    }

    .header-wrapper .menu-toggle {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body > header,
    body > section,
    body > footer,
    .section-title,
    .section-eyebrow,
    .about-text,
    .about-main-image,
    .sejarah-card,
    .visi-card,
    .misi-card,
    .sambutan-card,
    .person-card,
    .branch-card,
    .majelis-card,
    .tugas-card,
    .accordion-item,
    .aum-item,
    .kegiatan-card,
    .artikel-card,
    .galeri-item,
    .contact-info,
    .contact-form,
    .peta-dakwah-panel,
    .kegiatan-archive-note,
    .visi-misi-grid > *,
    .org-chart > *,
    .majelis-grid > *,
    .accordion-grid > *,
    .aum-carousel > *,
    .kegiatan-carousel > *,
    .artikel-grid > *,
    .galeri-grid > * {
        animation: none;
    }
}

