:root {
    --font-main: "Montserrat", sans-serif;
}

html,
body {
    font-family: var(--font-main);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
button,
input,
textarea,
select {
    font-family: var(--font-main);
}

/* =========================
   PROFIL THEME (GLOBAL LOOK)
   Dipakai di semua halaman profil yang punya class: .profil-theme
   Struktur Organisasi tidak pakai class ini.
========================= */

.profil-theme {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: #0b1220;
}

/* Jika ada .hero-bg di dalam halaman */
.profil-theme .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    /* MATIKAN EFEK GERAK */
    animation: none;
    transition: none;
    transform: none;
}

.profil-theme .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* HILANGKAN ZOOM / PARALLAX */
    transform: none;
    animation: none;
    transition: none;

    /* OPSIONAL: tetap jaga kualitas warna */
    filter: saturate(1.05) contrast(1.05);
}

/* overlay elegan biar menyatu dengan background */
.profil-theme::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
            900px 420px at 20% 15%,
            rgba(255, 255, 255, 0.16),
            transparent 60%
        ),
        radial-gradient(
            900px 420px at 80% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(3, 7, 18, 0.68) 0%,
            rgba(3, 7, 18, 0.55) 40%,
            rgba(3, 7, 18, 0.74) 100%
        );
}

/* konten di atas overlay */
.profil-theme .container,
.profil-theme .profil-container {
    position: relative;
    z-index: 2;
}

/* header teks */
.profil-theme h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.profil-theme p,
.profil-theme .profil-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Card menyatu (tanpa putih solid) */
.profil-theme .profil-card,
.profil-theme .timeline-content,
.profil-theme .brand-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* teks di dalam card */
.profil-theme .profil-card h3,
.profil-theme .timeline-content h3,
.profil-theme .brand-card h3 {
    color: #fff;
    font-weight: 700;
}

.profil-theme .profil-card p,
.profil-theme .profil-card li,
.profil-theme .timeline-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Galeri foto biar premium */
.profil-theme .sejarah-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profil-theme .sejarah-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.profil-theme .sejarah-photo img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .profil-theme {
        padding: 56px 0;
    }
    .profil-theme .profil-card,
    .profil-theme .timeline-content,
    .profil-theme .brand-card {
        border-radius: 18px;
    }
}

/* ==================================================
   PROFIL - BASE (UMUM UNTUK SEMUA SUBMENU PROFIL)
================================================== */

.profil-page {
    padding: 70px 0;
    background: #f9fafb;
}

.profil-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.profil-header {
    margin-bottom: 18px;
}

.profil-header h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

/* Subtitle default */
.profil-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* Card base */
.profil-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 30px;
    border: 1px solid #eef2f7;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.profil-card p,
.profil-card li {
    font-size: 15px;
    line-height: 1.9;
    color: #374151;
}

.profil-card ol {
    padding-left: 20px;
}

.profil-card ol li {
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ==================================================
   PROFIL - HERO (UNTUK HEADER DENGAN BACKGROUND IMAGE)
   Dipakai saat section punya class: .profil-hero
================================================== */

.profil-hero {
    position: relative;
    overflow: hidden;
    background: #111827; /* fallback kalau gambar gagal load */
}

/* Tempat gambar background */
.profil-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.profil-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay gelap supaya teks kebaca */
.profil-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Naikkan konten ke atas overlay */
.profil-hero .profil-container {
    position: relative;
    z-index: 2;
}

/* Header warna putih kalau di hero */
.profil-hero .profil-header h1 {
    color: #ffffff;
}

/* Subtitle juga dibuat terang kalau di hero */
.profil-hero .profil-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Opsional: bikin card sedikit transparan biar nyatu dengan hero */
.profil-hero .profil-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(2px);
}

/* ==================================================
   Responsive base
================================================== */
@media (max-width: 768px) {
    .profil-page {
        padding: 40px 0;
    }

    .profil-card {
        padding: 22px;
    }
}

/* ==================================================
   PROFIL - HERO (PPID STYLE)
================================================== */

.profil-page.profil-hero {
    /* Pastikan variable --hero-bg didefinisikan atau fallback ke warna solid jika gambar gagal */
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-image: linear-gradient(
            90deg,
            rgba(18, 28, 48, 0.96) 0%,
            rgba(18, 28, 48, 0.75) 55%,
            rgba(18, 28, 48, 0.65) 100%
        ),
        var(--hero-bg); /* Gambar dari inline style HTML */
}

.profil-page.profil-hero .profil-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.profil-page.profil-hero .profil-card + .profil-card {
    margin-top: 18px;
}

.profil-page.profil-hero .profil-card p,
.profil-page.profil-hero .profil-card li {
    color: #334155;
    line-height: 1.85;
}

.profil-page.profil-hero .profil-container {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.profil-page.profil-hero .hero-header {
    margin-bottom: 28px;
}

.profil-page.profil-hero .hero-header h1 {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(30px, 4vw, 46px);
}

.profil-page.profil-hero .hero-header .profil-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive hero */
@media (max-width: 768px) {
    .profil-page.profil-hero {
        padding: 60px 0;
    }
}

/* =========================
   VISI & MISI – GLASS THEME
   (judul putih bold, card transparan)
========================= */

.profil-visi-misi.profil-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background: #0b1220; /* fallback */
}

/* Background image */
.profil-visi-misi .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.profil-visi-misi .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.05);
}

/* Overlay agar teks kebaca */
.profil-visi-misi.profil-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
            900px 420px at 20% 15%,
            rgba(255, 255, 255, 0.16),
            transparent 60%
        ),
        radial-gradient(
            900px 420px at 80% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(3, 7, 18, 0.68) 0%,
            rgba(3, 7, 18, 0.56) 40%,
            rgba(3, 7, 18, 0.76) 100%
        );
}

/* Konten di atas background */
.profil-visi-misi .profil-container {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

/* Header: pertahankan putih bold */
.profil-visi-misi .profil-header {
    margin-bottom: 22px;
}

.profil-visi-misi .profil-header h1 {
    color: #fff;
    font-weight: 800; /* lebih bold */
    letter-spacing: -0.02em;
    font-size: clamp(30px, 3.3vw, 44px);
    line-height: 1.1;
    margin: 0 0 10px 0;
}

.profil-visi-misi .profil-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
}

/* CARD: transparan (glass) */
.profil-visi-misi .profil-card {
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 16px;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Judul dalam card */
.profil-visi-misi .profil-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Isi teks */
.profil-visi-misi .profil-card p,
.profil-visi-misi .profil-card li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.85;
}

/* List */
.profil-visi-misi .profil-card ol {
    padding-left: 18px;
    margin: 0;
}

.profil-visi-misi .profil-card ol li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .profil-visi-misi.profil-hero {
        padding: 56px 0;
    }
    .profil-visi-misi .profil-card {
        padding: 18px;
        border-radius: 18px;
    }
}

/* ==================================================
   PROFIL - TUPoksi (SAMAKAN DENGAN PROFIL THEME)
   Tempel di paling bawah profil.css
================================================== */

.profil-page.profil-tupoksi.profil-theme .profil-card {
    border-radius: 20px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Judul card: hilangkan aksen biru, samakan putih */
.profil-page.profil-tupoksi.profil-theme .profil-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    padding-left: 0; /* hapus padding kiri */
    border-left: 0 !important; /* pastikan tidak ada border kiri */
    position: relative;
}

/* Matikan bar biru */
.profil-page.profil-tupoksi.profil-theme .profil-card h3::before {
    content: none;
}

/* Isi teks & list jadi putih lembut */
.profil-page.profil-tupoksi.profil-theme .profil-card p,
.profil-page.profil-tupoksi.profil-theme .profil-card li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.85;
}

/* List spacing rapi */
.profil-page.profil-tupoksi.profil-theme .profil-card ol {
    padding-left: 18px;
    margin: 0;
}

.profil-page.profil-tupoksi.profil-theme .profil-card ol li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .profil-page.profil-tupoksi.profil-theme .profil-card {
        padding: 18px;
        border-radius: 18px;
    }
}

/* ==================================================
   PROFIL - STRUKTUR ORGANISASI
================================================== */
/* Gunakan scope .profil-riau agar variabel tidak bocor */
.profil-riau {
    --line-width: 4px;
    --line-color: #94a3b8;
    --card-border: #cbd5e1;
    --bg-body: #f8fafc;

    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--bg-body);
    padding: 60px 0 100px;
    overflow-x: hidden;
}

.profil-header-struktur h1 {
    text-align: center;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.profil-header-struktur p {
    text-align: center;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.org-tree-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 20px;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.org-tree-wrapper::-webkit-scrollbar {
    height: 8px;
}
.org-tree-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tree {
    display: inline-table;
    margin: 0 auto;
    min-width: 800px;
}

.tree ul {
    padding-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
}

/* Garis Konektor */
.tree li::before,
.tree li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: var(--line-width) solid var(--line-color);
    width: 50%;
    height: 20px;
}
.tree li::after {
    right: auto;
    left: 50%;
    border-left: var(--line-width) solid var(--line-color);
}
.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}
.tree li:only-child {
    padding-top: 0;
}
.tree li:first-child::before,
.tree li:last-child::after {
    border: 0 none;
}
.tree li:last-child::before {
    border-right: var(--line-width) solid var(--line-color);
    border-radius: 0 10px 0 0;
}
.tree li:first-child::after {
    border-radius: 10px 0 0 0;
}
.tree ul ul::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    border-left: var(--line-width) solid var(--line-color);
    width: 0;
    height: 20px;
    transform: translateX(-50%);
}

/* Card Org */
.tree .card-org {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-family: "Plus Jakarta Sans", sans-serif;
    display: inline-block;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    min-width: 170px;
}

.img-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    background: #e2e8f0;
}
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: #0f172a;
}
.role-name {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.tree li .card-head {
    border-top: 5px solid #f59e0b;
    background: linear-gradient(to bottom, #fff, #fffbeb);
}
.tree li .card-sub {
    border-top: 5px solid #3b82f6;
}
.tree li .card-team {
    border-top: 5px solid #10b981;
}

.tree .card-org:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border-color: #94a3b8;
}

/* =======================================================
   PROFIL PEGAWAI – FINAL (ANTI BENTROK)
   ======================================================= */

.profil-pegawai {
    position: relative;
}

/* ===============================
   PIMPINAN (KEPALA + KASUBBAG)
   =============================== */
.profil-pegawai .pegawai-pimpinan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

/* Mobile: stack */
@media (max-width: 768px) {
    .profil-pegawai .pegawai-pimpinan {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   GRID PEGAWAI LAIN
   =============================== */
.profil-pegawai .pegawai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* ===============================
   CARD UMUM
   =============================== */
.profil-pegawai .pegawai-card {
    text-align: center;
    padding: 24px 22px;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ===============================
   GLASS CARD
   =============================== */
.profil-pegawai .glass-card {
    position: relative;
    background: rgba(180, 190, 200, 0.35); /* abu transparan */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.15);
}
.profil-pegawai .pegawai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

/* ===============================
   FOTO PEGAWAI (LONJONG / ADMIN STYLE)
   =============================== */
.profil-pegawai .foto-pegawai {
    width: 120px;
    height: 150px;
    margin: 0 auto 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #0b5ed7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profil-pegawai .foto-pegawai img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   PIMPINAN LEBIH MENONJOL
   =============================== */
.profil-pegawai .pegawai-kepala .foto-pegawai,
.profil-pegawai .pegawai-kasubbag .foto-pegawai {
    width: 150px;
    height: 190px;
}

/* ===============================
   TEKS
   =============================== */
.profil-pegawai .pegawai-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fefefe;
}

.profil-pegawai .pegawai-card p {
    font-size: 12px;
    color: #ffffff;
}

/* ===============================
   MOBILE OPTIMIZATION
   =============================== */
@media (max-width: 640px) {
    .profil-pegawai .foto-pegawai {
        width: 100px;
        height: 130px;
    }

    .profil-pegawai .pegawai-kepala .foto-pegawai,
    .profil-pegawai .pegawai-kasubbag .foto-pegawai {
        width: 120px;
        height: 160px;
    }
}

/* ==================================================
   ULTRA MODERN BRAND PAGE
================================================== */
/* Gunakan variable lokal atau pastikan tidak global reset */
.brand-section {
    --primary-color: #3b82f6;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --text-color: #334155;
    --bg-page: #f8fafc;

    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--bg-page);
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate;
}
@keyframes pulseGlow {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
}

.brand-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

.brand-header {
    text-align: center;
    margin-bottom: 70px;
}

.badge-header {
    display: inline-block;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid #dbeafe;
}

.brand-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.brand-header p {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.brand-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.card-visual {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    background-color: #ffffff;
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}
.card-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}
.brand-card:hover .card-visual img {
    transform: scale(1.1);
}

.card-details {
    padding: 24px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.info p {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 10px;
    width: 100%;
}
.btn-dl {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-png {
    background: #eff6ff;
    color: #3b82f6;
    border-color: #dbeafe;
}
.btn-png:hover {
    background: #3b82f6;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-pdf {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}
.btn-pdf:hover {
    background: #ef4444;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .brand-header h1 {
        font-size: 2.5rem;
    }
    .card-visual {
        height: 200px;
        padding: 30px;
    }
    .card-details {
        padding: 20px;
    }
    .btn-dl {
        font-size: 0.8rem;
        padding: 10px;
    }
}

/* ===============================
   SEJARAH PAGE LAYOUT
================================ */

.sejarah-page {
    background: #f8fafc;
    padding: 60px 0;
}

.sejarah-container {
    max-width: 1200px;
    margin: auto;
    padding: 8px;
}

/* ===============================
   HEADER
================================ */

.sejarah-header {
    margin-bottom: 32px;
}

.sejarah-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.sejarah-header p {
    margin-top: 6px;
    font-size: 14px;
    color: #ffffff;
}

/* ===============================
   KONTEN UTAMA (2 KOLOM)
================================ */

.sejarah-content {
    display: grid;
    grid-template-columns: 2.1fr 0.5fr; /* kiri lebih lebar */
    gap: 24px;
    align-items: stretch; /* PENTING */
}

/* ===============================
   DESKRIPSI SEJARAH
================================ */

.sejarah-deskripsi {
    display: flex;
    flex-direction: column;

    /* JANGAN pakai height keras */
    min-height: 100%;
    height: auto;

    /* GLASS EFFECT */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 20px;

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sejarah-deskripsi h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fafafa;
}

.text-box {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;

    color: #111827;

    text-align: justify; /* rata kanan–kiri */
    text-justify: inter-word;

    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    letter-spacing: 0.15px;
    word-spacing: 0.5px;
}

.text-box p {
    text-indent: 2.1em;
    margin-bottom: 16px;
    color: #f9f9f9;
}
.sejarah-deskripsi,
.sejarah-deskripsi h4,
.text-box {
    font-family: "Montserrat", sans-serif;
}
/* ===============================
   GAMBAR ILUSTRASI (LANDSCAPE)
================================ */

.sejarah-illustration {
    display: grid;
    grid-template-columns: 1fr; /* tetap 1 kolom */
    gap: 14px;
    justify-self: end; /* NEMPEL KANAN */
    align-self: start; /* PENTING */
    padding-bottom: 12px; /* jarak aman dari garis bawah */
    width: 97%;
}

.upload-box {
    aspect-ratio: 10 / 6; /* rasio foto umum */
    height: 130px;

    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.upload-box:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-placeholder {
    font-size: 13px;
    color: #9ca3af;
}

/* ===============================
   GALERI TOKOH PIMPINAN (PORTRAIT)
================================ */

.sejarah-galeri {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 20px;
    margin-top: 24px;
}

/* Judul */
.sejarah-galeri h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

/* Deskripsi */
.galeri-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    max-width: 640px;
}
.sejarah-galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.galeri-box {
    flex: 0 0 calc(25% - 15px); /* 4 ITEM */
    max-width: 220px;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 10px;

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

    transition: 0.3s ease;
}

/* WRAPPER (AMAN UNTUK SLIDER JS) */
.galeri-wrapper {
    position: relative;
    overflow: hidden;
}

/* CONTAINER ITEM (HORIZONTAL / GRID) */
.sejarah-galeri-grid {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Hover halus */
.galeri-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

/* GAMBAR – TIDAK TERPOTONG */
.galeri-box img {
    width: 100%;
    height: auto; /* JANGAN 100% */
    max-height: 360px; /* BATAS TINGGI */
    object-fit: contain; /* TIDAK TERPOTONG */
    border-radius: 12px;
}

/* Placeholder */
.galeri-box span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* PANAH */
.galeri-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;

    z-index: 5;
}

.galeri-nav.prev {
    left: -8px;
}
.galeri-nav.next {
    right: -8px;
}

.galeri-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ===============================
   FIX KHUSUS MOBILE & TABLET
================================ */

/* TABLET */
@media (max-width: 992px) {
    .sejarah-galeri {
        padding-top: 16px;
    }

    .galeri-wrapper {
        padding: 0 10px; /* beri ruang kiri kanan */
    }

    .sejarah-galeri-grid {
        gap: 14px;
    }

    .galeri-box {
        flex: 0 0 48%; /* 2 card rapi */
        max-width: 100%;
        padding: 8px;
    }

    .galeri-box img {
        max-height: 260px;
    }

    /* Panah jangan nutup gambar */
    .galeri-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .galeri-nav.prev {
        left: 0;
    }

    .galeri-nav.next {
        right: 0;
    }
    .sejarah-content {
        grid-template-columns: 1fr; /* jadi 1 kolom */
        gap: 20px;
    }

    .sejarah-deskripsi {
        padding: 18px;
    }

    .text-box {
        font-size: 13.5px;
        line-height: 1.8;
    }

    .sejarah-illustration {
        grid-template-columns: repeat(2, 1fr); /* 2 foto per baris */
        gap: 12px;
    }

    .upload-box {
        height: 120px;
    }
}

/* ===============================
   MOBILE RESPONSIVE (≤ 576px)
   FINAL & STABIL
================================ */

@media (max-width: 576px) {
    /* Hindari tabrakan navbar */
    .sejarah-page {
        padding-top: 76px;
    }

    /* Container */
    .sejarah-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Header */
    .sejarah-header {
        margin-bottom: 16px;
    }

    .sejarah-header h1 {
        font-size: 22px;
        line-height: 1.35;
    }

    .sejarah-header p {
        font-size: 13px;
        line-height: 1.6;
    }

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

    .sejarah-deskripsi {
        margin-top: 0;
        padding: 16px;
        border-radius: 14px;
    }

    .sejarah-deskripsi h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .text-box {
        font-size: 13px;
        line-height: 1.75;
        text-indent: 1em;
        text-align: justify;
    }

    /* ===============================
       ILUSTRASI
    ============================== */

    .sejarah-illustration {
        margin-top: 6px;
        gap: 12px;
    }

    .upload-box {
        height: 110px;
        border-radius: 12px;
    }

    /* ===============================
       GALERI TOKOH
    ============================== */

    .sejarah-galeri h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .galeri-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .galeri-wrapper {
        padding: 0 6px;
    }

    .sejarah-galeri-grid {
        gap: 12px;
    }

    .galeri-box {
        flex: 0 0 100%; /* 1 card per layar */
        max-width: 100%;
        padding: 10px;
        border-radius: 14px;
    }

    .galeri-box img {
        max-height: 240px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Panah slider */
    .galeri-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
        opacity: 0.85;
    }
}

/* FORCE: semua halaman profil-theme card jadi glass */
.profil-theme .profil-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* teks di card */
.profil-theme .profil-card h3 {
    color: #fff !important;
}

.profil-theme .profil-card p,
.profil-theme .profil-card li {
    color: rgba(255, 255, 255, 0.9) !important;
}


