/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1b4332;
    --primary-dark: #081c15;
    --primary-light: #2d6a4f;
    --primary-ultra-light: #ebf5ee;
    --accent: #d4af37;
    --accent-hover: #c5a028;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, textarea, select {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

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

.text-center { text-align: center; }

.section-title-wrapper {
    margin-bottom: 50px;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 8px;
    display: inline-block;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background-color: rgba(27, 67, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
}

header.scrolled .container {
    height: 70px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--bg-white);
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bg-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.75rem;
    cursor: pointer;
}

/* Mobile Nav Styles */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }

    header.scrolled .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-align: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.9) 0%, rgba(27, 67, 50, 0.8) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: scale(1.05);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-tagline {
    font-family: var(--font-heading);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    animation: fadeInUp 1.2s ease;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.4s ease;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 1.6s ease;
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
}

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

/* Tentang Desa Section */
.tentang {
    background-color: var(--bg-white);
}

.tentang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 992px) {
    .tentang-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.tentang-desc-top {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 35px auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.tentang-video-wrapper-full {
    position: relative;
    width: 100%;
    height: 600px; /* Extra Large Cinematic Height for Desktop */
    max-height: 80vh;
    margin: 0 auto 50px auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(8, 28, 21, 0.3);
    border: 4px solid var(--accent);
    background-color: var(--primary-dark);
}

@media (max-width: 992px) {
    .tentang-video-wrapper-full {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .tentang-video-wrapper-full {
        height: auto;
        padding-top: 56.25%;
    }
}

.tentang-video-wrapper-full iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tentang-text h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.tentang-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.visimisi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

@media (max-width: 576px) {
    .visimisi-grid {
        grid-template-columns: 1fr;
    }
}

.visimisi-box {
    background-color: var(--primary-ultra-light);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.visimisi-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.visimisi-box h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visimisi-box ul {
    list-style: none;
}

.visimisi-box li {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

/* Executive Tugas Perangkat Desa Component */
.tugas-wrapper {
    margin-top: 50px;
    background-color: var(--primary-ultra-light);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(27, 67, 50, 0.12);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
    .tugas-wrapper {
        padding: 20px;
    }
}

.tugas-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.tugas-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tugas-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.tugas-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tugas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .tugas-grid {
        grid-template-columns: 1fr;
    }
}

.tugas-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.tugas-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.tugas-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.tugas-card-icon {
    width: 46px;
    height: 46px;
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.tugas-role-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tugas-card-header h5 {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.tugas-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.tugas-list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tugas-pill {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--bg-light);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tugas-pill:hover {
    transform: translateX(4px);
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.pill-num {
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 1px;
}

.tugas-pill p {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Pemerintahan Section */
.pemerintahan {
    background-color: var(--primary-ultra-light);
}

.pemerintah-kades-card {
    max-width: 800px;
    margin: 0 auto 50px auto;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
    border-top: 4px solid var(--accent);
}

@media (max-width: 768px) {
    .pemerintah-kades-card {
        grid-template-columns: 1fr;
    }
}

.kades-img-wrapper {
    position: relative;
    height: 350px;
}

.kades-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.kades-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.kades-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 576px) {
    .kades-info {
        padding: 24px;
    }
}

.kades-name {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.kades-role {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.kades-quote {
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--primary-light);
    padding-left: 15px;
    margin-bottom: 20px;
}

.kades-sosmed {
    display: flex;
    gap: 12px;
}

.sosmed-link {
    width: 36px;
    height: 36px;
    background-color: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sosmed-link:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.pemerintah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.pemerintah-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.pemerintah-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.perangkat-img-wrapper {
    height: 280px;
    overflow: hidden;
}

.perangkat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.pemerintah-card:hover .perangkat-img {
    transform: scale(1.05);
}

.perangkat-info {
    padding: 20px;
    text-align: center;
}

.perangkat-name {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.perangkat-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Potensi & UMKM Section */
.potensi {
    background-color: var(--bg-white);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.potensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.potensi-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.potensi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.potensi-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.potensi-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.potensi-card:hover .potensi-img {
    transform: scale(1.05);
}

.potensi-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.potensi-info {
    padding: 24px;
}

.potensi-card-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.potensi-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Statistik Section */
.statistik {
    background-color: var(--primary);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.statistik::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(45,106,79,0.3) 0%, rgba(8,28,21,0) 70%);
}

.statistik-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .statistik-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bg-white);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kontak & Lokasi Section */
.kontak {
    background-color: var(--bg-white);
}

.kontak-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .kontak-cards-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.info-card-box {
    background-color: var(--primary-ultra-light);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.info-card-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent);
}

.map-container-full {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-lg);
}

.map-container-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer Section */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--accent);
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-about h3 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-kkn {
    color: var(--accent);
    font-weight: 500;
}

/* Istana Kerajaan Section */
.istana {
    background-color: var(--primary-ultra-light);
}

.istana-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .istana-grid {
        grid-template-columns: 1fr;
    }
}

.istana-card-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--accent);
}

.istana-card-img img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.istana-card-img:hover img {
    transform: scale(1.03);
}

.istana-img-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(8, 28, 21, 0.9), transparent);
    color: var(--bg-white);
    padding: 20px 20px 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.istana-artifacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 24px;
}

.artifact-item {
    background-color: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid var(--accent);
}

.artifact-item i {
    color: var(--primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.artifact-item h5 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.artifact-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.istana-badge-tag {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.istana-heading {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 18px;
    line-height: 1.25;
}

.istana-p {
    color: var(--text-dark);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.silsilah-box {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-top: 25px;
    border: 1px solid var(--border-color);
}

.silsilah-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.silsilah-header i {
    color: var(--accent);
}

.silsilah-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.silsilah-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.raja-tag {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.raja-tag.active-raja {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Adat & Tradisi Section */
.adat {
    background-color: var(--bg-white);
}

.adat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

@media (max-width: 992px) {
    .adat-grid {
        grid-template-columns: 1fr;
    }
}

.adat-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border-top: 4px solid var(--accent);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.adat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.adat-header {
    padding: 24px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.adat-icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.adat-category {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adat-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-top: 2px;
}

.adat-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adat-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.suku-badges-wrapper h5, .sompu-info-box h5 {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.suku-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suku-chip {
    background-color: rgba(27, 67, 50, 0.08);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.sompu-info-box {
    background-color: var(--primary-ultra-light);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.sompu-info-box p {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.tradisi-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--bg-white);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.step-num {
    width: 26px;
    height: 26px;
    background-color: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.step-item p {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.4;
}
