/*
Theme Name: Biro Organisasi Premium
Theme URI: http://biroorganisasi.bengkuluprov.go.id/
Author: Antigravity
Description: A modern, premium, and highly secure custom WordPress theme designed for Biro Organisasi Bengkulu with glassmorphism, rich typography, and dynamic micro-animations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biro-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    /* Color Palette */
    --primary-color: #0d47a1; /* Deep Royal Blue */
    --secondary-color: #1976d2; /* Vibrant Blue */
    --accent-color: #ffb300; /* Gold/Amber */
    --bg-color: #f4f7fb;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(13, 71, 161, 0.15);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.premium-section-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px; /* Formal government style */
    padding: 50px 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06); /* Softer, wider premium shadow */
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .premium-section-card {
        padding: 30px 20px;
        border-radius: 6px;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

/* ==========================================
   5. HEADER & NAVIGATION (BIRO STYLE)
   ========================================== */

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%); /* Ultra-Premium Deep Navy Gradient */
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 10px 0;
    font-weight: 500;
}
.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-bar-right a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    display: flex;
    align-items: center;
}
.top-bar-right a:hover {
    color: var(--premium-red); /* Glowing red hover */
    filter: drop-shadow(0 0 5px rgba(220,38,38,0.5));
}

/* Ultra-Premium Glass Header */
.site-header {
    position: sticky; 
    top: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85); /* Pearl White Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Separates header from dark banner */
    padding: 8px 0; /* Dikurangi agar lebih langsing */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
    padding: 5px 0; /* Sangat langsing saat di-scroll */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); /* Soft elegant floating shadow */
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color); /* Solid Blue, no gradient clip to avoid smudges */
    margin: 0;
}

.site-branding p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -2px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 15px; /* Tighter gap for pill backgrounds */
}

.main-navigation a {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 16px; /* Pill padding */
    border-radius: 8px; /* Rounded pill shape */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item a {
    color: var(--primary-color);
    background: rgba(15, 23, 42, 0.04); /* Subtle pill background on hover/active */
}

/* Hero Section */
.hero-section {
    padding: 80px 20px 60px; /* Dikurangi agar proporsional */
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(80px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.3);
    transition: var(--transition-fast);
    transform: translateY(0);
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(13, 71, 161, 0.4);
}

/* Recent News Grid */
.news-section {
    padding: 60px 20px; /* Dikurangi agar tidak terlalu kosong */
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-fast);
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-thumbnail-wrapper {
    overflow: hidden;
    position: relative;
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--text-main);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.read-more svg {
    width: 18px;
    height: 18px;
    margin-left: 5px;
    transition: var(--transition-fast);
}

.post-card:hover .read-more svg {
    transform: translateX(5px);
}

/* Footer */
.site-footer {
    background: var(--text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffb300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.site-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Single Post */
.single-post-container {
    max-width: 800px;
    margin: 140px auto 100px;
    padding: 0 20px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.single-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.entry-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

/* Responsive - see bottom of file */

/* Animations & Effects */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 179, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(13, 71, 161, 0.1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 179, 0, 0.08);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg);
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-soft);
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
/* Menu Dropdown Fixes */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation div > ul,
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 16px; /* Golden ratio spacing - not too wide, not too cramped */
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
    position: relative;
    padding: 10px 16px; /* Golden ratio padding for pill shape */
    border-radius: 8px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-top: 3px solid var(--premium-red);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex-direction: column;
    min-width: 240px;
    padding: 10px 0;
    z-index: 1000;
    gap: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.main-navigation li:hover > ul.sub-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.main-navigation ul.sub-menu li {
    width: 100%;
}

.main-navigation ul.sub-menu a {
    padding: 12px 20px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none; /* Keep submenu text normal/capitalized */
}

.main-navigation ul.sub-menu a::after {
    display: none; /* Hide bottom line effect on submenus */
}

.main-navigation ul.sub-menu a:hover {
    background: #f8fafc;
    color: var(--primary-color);
    padding-left: 25px; /* Subtle indent effect */
}
/* Slider Styles */
.slider-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    /* margin-top removed because header is now sticky and takes up space in flow */
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}
.slide.active {
    opacity: 1;
}
.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(13, 71, 161, 0.9) 0%, rgba(13, 71, 161, 0.4) 100%);
    display: flex;
    align-items: center;
}
.slide-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}
.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}
.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}
.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Gallery Styles */
.gallery-section {
    padding: 80px 20px;
    background: #f8f9fa;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Related Links Styles */
.links-section {
    padding: 80px 20px;
    background: white;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}
.link-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 71, 161, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
}
.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.15);
    border-color: var(--primary-color);
}
.link-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}
.link-title {
    font-weight: 700;
    font-size: 1.1rem;
}
/* Inner Page Styles */
.page-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98)), url('assets/img/slider1.png') center/cover;
    margin-top: 80px;
    padding: 100px 20px 80px;
    text-align: center;
    color: white;
    margin-bottom: -50px;
}
.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white !important; /* Force white over generic h1 rules */
    letter-spacing: -0.5px;
}
.page-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}
.page-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}
.inner-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: flex;
    gap: 40px;
}
.main-content-area {
    flex: 1;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}
.sidebar-area {
    width: 320px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.widget {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.2s;
}
.widget ul li a:hover {
    color: var(--primary-color);
}

/* Typography for inner content */
.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}
.entry-content h2, .entry-content h3 {
    color: var(--primary-color);
    margin: 1.5em 0 0.8em;
}
.entry-content img {
    border-radius: 8px;
    margin: 1em 0;
}
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.entry-content li {
    margin-bottom: 0.5em;
}


/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.pagination .page-numbers {
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--text-color);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 600;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
}
/* Dropdown Indicator Fix */
.main-navigation li.menu-item-has-children > a {
    padding-right: 16px;
}
.main-navigation li.menu-item-has-children > a::before {
    content: '\25BE'; /* Downward triangle */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.6;
    pointer-events: none;
    transition: transform 0.3s ease;
}
.main-navigation li.menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
}

/* Slider Text Color Fix */
.slide-content h2, 
.slide-content p,
.slide-title {
    color: #ffffff !important;
}

/* Slider Gradient Overlay Enhancement */
.slide-overlay {
    background: linear-gradient(90deg, rgba(10, 37, 88, 0.9) 0%, rgba(13, 71, 161, 0.5) 50%, transparent 100%);
}
/* Additional Refinements */
.small-news-item {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-bottom: 1px solid #eee;
    border-radius: 0 !important;
    padding-bottom: 20px !important;
}
.small-news-item:last-child {
    border-bottom: none;
}
.small-news-item:hover {
    transform: none !important;
}
.small-news-item img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.doc-pill {
    border-color: #e53935 !important;
    color: #e53935 !important;
}
.doc-pill svg {
    stroke: #e53935 !important;
}
.link-logo-card {
    background: white !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}
.link-logo-card h4 {
    color: #333 !important;
    font-size: 1.2rem !important;
}
.link-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
    margin-bottom: 10px;
}


/* --- MOVED FROM FRONT PAGE --- */

/* ==========================================
   PREMIUM ELEGANT DESIGN SYSTEM
   ========================================== */

:root {
    --premium-blue: #0f172a;
    --premium-gold: #f59e0b;
    --premium-red: #e11d48;
    --premium-glass: rgba(255, 255, 255, 0.7);
    --premium-glass-dark: rgba(15, 23, 42, 0.8);
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    
    --font-head: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body) !important;
    background-color: #ffffff; /* White background for seamless edge-to-edge layout */
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head) !important;
}

.premium-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography Enhancements */
.section-label {
    color: var(--premium-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--premium-red);
}
.section-label.centered {
    justify-content: center;
}
.section-label.centered::before { display: none; }
.section-label.dark-mode {
    color: var(--premium-gold);
}
.section-label.dark-mode::before {
    background: var(--premium-gold);
}

.section-heading {
    font-size: 2.2rem; /* Reduced from 2.8rem */
    color: var(--text-dark);
    margin: 0 0 25px 0; /* Reduced from 30px */
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-heading.centered {
    text-align: center;
}
.section-heading.dark-mode {
    color: white;
}

/* Slider Enhancements */
.premium-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--premium-gold);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.slide-desc {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}
.btn-premium {
    display: inline-block;
    background: var(--premium-red);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.3);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.5);
    background: #be123c;
    color: white;
}
.btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Preface Enhancements */
.preface-container {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}
.preface-content {
    flex: 1;
    min-width: 300px;
}
.preface-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}
.preface-quote {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #334155;
    margin-bottom: 35px;
    font-style: normal;
    text-align: justify;
    position: relative;
    padding-left: 25px;
    border-left: 4px solid var(--premium-gold);
}
.preface-name {
    font-size: 1.4rem;
    color: var(--premium-blue);
    font-weight: 800;
    margin: 0 0 5px 0;
}
.preface-title {
    color: var(--premium-red);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.preface-img-wrapper {
    position: relative;
    width: 300px; /* Reduced from 350px */
    height: 400px; /* Reduced from 450px */
}
.preface-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 10px solid white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.img-backdrop {
    position: absolute;
    top: 30px;
    left: -30px;
    width: 100%;
    height: 100%;
    background: var(--premium-blue);
    border-radius: 20px;
    z-index: 1;
}

/* Split News Enhancements */
.split-news-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
}
.big-news-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 550px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.big-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.big-news-card:hover .big-news-img {
    transform: scale(1.08);
}
.big-news-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 50px 40px 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
}
.cat-badge {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.85), rgba(13, 71, 161, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.cat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.cat-badge:hover::before {
    left: 100%;
}
.cat-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.news-date {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-date.dark { color: var(--text-gray); }
.big-news-title a {
    color: white;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 800;
    text-decoration: none;
}
.big-news-title a:hover { color: var(--premium-gold); }

/* Small News List */
.small-news-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 550px;
}
.small-news-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: transparent !important;
    box-shadow: none !important;
}
.small-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.small-news-img-wrap {
    width: 130px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.small-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.small-news-item:hover .small-news-img-wrap img {
    transform: scale(1.1);
}
.cat-text {
    color: transparent;
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 1.5px;
    position: relative;
    padding-left: 12px;
}
.cat-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1976d2;
    box-shadow: 0 0 6px rgba(25, 118, 210, 0.5);
}
.small-news-title {
    margin: 0 0 10px 0;
}
.small-news-title a {
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}
.small-news-title a:hover { color: var(--primary-color); }

/* Premium Gallery Grid (Slider on Desktop & Mobile) */
.gallery-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.premium-gallery-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.premium-gallery-grid::-webkit-scrollbar {
    display: none;
}
.gallery-card {
    flex: 0 0 calc(25% - 15px);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    cursor: pointer;
    scroll-snap-align: center;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-card:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}
.gallery-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Gallery Navigation Arrows (Global) */
.gallery-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
    z-index: 10;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.gallery-nav:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}
.gallery-nav.prev {
    left: -20px;
}
.gallery-nav.next {
    right: -20px;
}
.gallery-nav svg {
    width: 24px;
    height: 24px;
}

/* Gradient Pills */
.doc-pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.premium-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.premium-pill svg {
    stroke: var(--premium-red);
    transition: 0.3s;
}
.premium-pill:hover {
    background: var(--premium-red);
    color: white;
    border-color: var(--premium-red);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.2);
}
.premium-pill:hover svg {
    stroke: white;
}

/* Glass Links Card */
.premium-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.premium-link-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.premium-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.1);
}
.link-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: 0.4s;
}
.premium-link-card:hover .link-icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}
.link-title {
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}


/* ==========================================
   FORMAL & ELEGANT DOCUMENT TYPOGRAPHY (SINGLE PAGES)
   ========================================== */
.entry-content {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p,
.entry-content li {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

/* Elegant Headings inside Document */
.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    color: var(--premium-blue);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 2rem;
    position: relative;
}


.entry-content h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.entry-content h3::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--premium-gold);
    border-radius: 2px;
}

/* Elegant Lists */
.entry-content ul, 
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
}

/* Elegant Blockquote */
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-left: 5px solid var(--premium-red);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--premium-blue);
    border-radius: 0 12px 12px 0;
}

/* Elegant Tables for Formal Data */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content th {
    background: var(--premium-blue);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.entry-content td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content tr:hover td {
    background: #f8fafc;
}
/* ==========================================
   BIRO STYLE FORMAL LAYOUT
   ========================================== */
.biro-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98)), url('assets/img/slider1.png') center/cover;
    padding: 100px 20px 60px; /* Slimmer banner for formal pages */
    margin-top: 80px; /* Offset for fixed header */
    width: 100%;
    position: relative;
}

.biro-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--premium-red) 0%, var(--premium-gold) 100%);
}

.biro-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.biro-breadcrumb {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.biro-breadcrumb a {
    color: var(--premium-gold);
    text-decoration: none;
    transition: 0.3s;
}
.biro-breadcrumb a:hover {
    color: white;
}

.biro-page-title {
    color: white !important;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.biro-content-section {
    background: white;
    padding: 60px 20px 100px; /* Extra bottom padding before footer */
    width: 100%;
}

.biro-content-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 50px; /* Slightly tighter gap for a more compact layout */
}

.biro-main-area {
    flex: 1;
}

.biro-sidebar {
    width: 350px;
    flex-shrink: 0;
    padding-left: 40px;
    border-left: 1px solid #e2e8f0; /* Editorial style separator */
}

.biro-widget {
    background: white; /* Removed gray box */
    padding: 0;
    margin-bottom: 40px;
}
.biro-widget-title {
    color: var(--premium-blue);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--premium-blue);
    display: inline-block;
}
.biro-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.biro-widget li {
    padding: 12px 0;
    border-bottom: 1px dashed #cbd5e1;
}
.biro-widget li:last-child {
    border-bottom: none;
}
.biro-widget a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
}
.biro-widget a svg {
    color: var(--premium-red);
    transition: 0.3s;
    margin-top: 4px;
    flex-shrink: 0;
}
.biro-widget a:hover {
    color: var(--premium-blue);
    transform: translateX(5px);
}
.biro-widget a:hover svg {
    color: var(--premium-gold);
}
/* Single Post Specific Styles */
.single-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.related-news-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}
.related-news-title {
    font-size: 1.5rem;
    color: var(--premium-blue);
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.related-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.related-content {
    padding: 15px;
}
.related-title {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.related-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ==========================================
   SLIDER SECTION
   ========================================== */
.slider-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-color);
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.2) 100%);
    display: flex;
    align-items: center;
}
.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--white);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    width: 100%;
}
.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}
.premium-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--accent-color);
}
.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
    max-width: 800px;
}
.slide-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.85);
}
.btn-premium {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--text-main);
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition-fast);
}
.btn-premium:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}
.slider-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .slide-title { font-size: 2.2rem; }
    .slide-desc { font-size: 1rem; }
}

/* Dokumen Cards Slider */
.doc-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.doc-cards-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.doc-cards-grid::-webkit-scrollbar {
    display: none;
}
.doc-card {
    flex: 0 0 calc(25% - 18px);
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 40px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
}

/* Document Navigation Arrows (Global) */
.doc-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
    z-index: 10;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.doc-nav:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}
.doc-nav.prev {
    left: -20px;
}
.doc-nav.next {
    right: -20px;
}
.doc-nav svg {
    width: 24px;
    height: 24px;
}
.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}
.doc-card:hover .btn-unduh {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.doc-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.doc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}
.doc-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
    flex-grow: 1;
}
.btn-unduh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
}
.btn-unduh:hover {
    background: #e2e8f0;
    color: #334155;
}
.btn-unduh.dark {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.btn-unduh.dark:hover {
    background: #1e293b;
    color: #ffffff;
}



/* ==========================================
   PORTAL LAYANAN (LAYANAN TERKAIT)
   ========================================== */
.layanan-slider-wrapper {
    position: relative;
    padding: 20px 60px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.layanan-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.layanan-slider::-webkit-scrollbar {
    display: none;
}

.layanan-card {
    flex: 0 0 calc(25% - 18px);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 71, 161, 0.1);
    border-radius: 24px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.layanan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.layanan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.12);
    border-color: rgba(13, 71, 161, 0.3);
}

.layanan-card:hover::before {
    opacity: 1;
}

.layanan-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.layanan-card:hover .layanan-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.layanan-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.layanan-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.layanan-card:hover .layanan-arrow {
    background: #e11d48;
    color: #ffffff;
    transform: translateX(5px);
}

.layanan-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 10;
    transition: all 0.3s ease;
}

.layanan-nav:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.layanan-nav.prev {
    left: 0;
}

.layanan-nav.next {
    right: 0;
}



/* ==========================================
   MISSING PREMIUM STYLES FOR FRONT-PAGE
   ========================================== */

/* 1. Hero Slider Staggered Animations & Elements */
.slide-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide.active .slide-content .premium-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.slide.active .slide-content .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
.slide.active .slide-content .slide-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}
.slide.active .slide-content .btn-premium {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.0s;
}
.slide-content {
    opacity: 1 !important; 
    transform: none !important;
}
.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* 2. Berita Terbaru (Split Grid) */
.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}
.section-label.centered { text-align: center; }
.section-label.dark-mode { color: #38bdf8; }

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}
.section-heading.centered { text-align: center; }
.section-heading.dark-mode { color: #ffffff; }

.split-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.big-news-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%; /* Fill the grid row */
    aspect-ratio: 1 / 1; /* PERFECTLY PROPORTIONAL (Square) */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.big-news-img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
    transition: transform 0.6s ease;
}
.big-news-card:hover .big-news-img {
    transform: scale(1.05);
}
.big-news-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.cat-badge {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.85), rgba(190, 18, 60, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.cat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}
.news-date.dark { color: #64748b; }
.big-news-title {
    font-size: 1.6rem; /* Slightly smaller for elegance */
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Changed from 3 to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.big-news-title a { color: #ffffff; }
.big-news-title a:hover { color: #38bdf8; }

.small-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%; /* Exactly follow the left card's height */
    max-height: 100%;
}
.small-news-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 14px; /* Slightly tighter so it fits nicely */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Stronger shadow to stand out */
    transition: all 0.3s ease;
    align-items: center;
    flex: 1 1 0; /* Force it to divide available space equally */
    min-height: 0; /* Prevent overflow */
}
.small-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}
.small-news-img-wrap {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.small-news-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.small-news-item:hover .small-news-img-wrap img {
    transform: scale(1.1);
}
.small-news-content { flex-grow: 1; }
.cat-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 1.5px;
    position: relative;
    padding-left: 12px;
}
.cat-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1976d2;
    box-shadow: 0 0 6px rgba(25, 118, 210, 0.5);
}
.small-news-title {
    font-size: 1rem; /* Standard, clean reading size */
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Changed from 3 to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.small-news-title a { color: #0f172a; }
.small-news-title a:hover { color: var(--primary-color); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* 3. Galeri Kegiatan */
.premium-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.gallery-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover img {
    transform: scale(1.1) rotate(1deg);
}
.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, transparent 100%);
    color: #ffffff;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}
.gallery-overlay h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}



/* ==========================================
   HAMBURGER MENU (Hidden on Desktop)
   ========================================== */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Animate to X when active */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE STYLES
   All breakpoints consolidated here.
   ========================================== */

/* === TABLET LANDSCAPE (max-width: 1024px) === */
@media (max-width: 1024px) {
    /* Header */
    .header-container {
        padding: 0 15px;
    }
    .site-branding h1 {
        font-size: 1.4rem;
    }
    .site-branding p {
        font-size: 0.75rem;
    }

    /* Menu */
    .main-navigation div > ul,
    .main-navigation ul {
        gap: 6px;
    }
    .main-navigation a {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    /* All Sections - tighter padding */
    .preface-section, .news-section, .gallery-section,
    .dokumen-section, .links-section {
        padding: 60px 15px !important;
    }

    /* Premium Container */
    .premium-container {
        gap: 40px !important;
    }

    /* News Grid */
    .split-news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .big-news-card {
        height: auto;
        aspect-ratio: 3 / 4;
    }
    .small-news-list {
        height: auto;
        max-height: none;
    }
    .small-news-item {
        flex: none;
    }

    /* Gallery */
    .premium-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Preface */
    .preface-img-wrapper {
        width: 100%;
        max-width: 280px;
    }
    .img-backdrop {
        display: none;
    }

    /* Doc Cards */
    .doc-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Layanan */
    .layanan-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

/* === TABLET PORTRAIT (max-width: 768px) === */
@media (max-width: 768px) {
    /* Top Bar - hide on mobile */
    .top-bar {
        display: none;
    }

    /* Header */
    .site-header {
        padding: 10px 0;
    }
    .header-container {
        flex-wrap: wrap;
    }
    .site-branding {
        flex: 1;
    }
    .site-branding h1 {
        font-size: 1.1rem;
    }
    .site-branding p {
        display: none;
    }

    /* Hamburger - show on mobile */
    .menu-toggle {
        display: flex;
        align-self: center;
    }

    /* Menu - full width dropdown below header row */
    .main-navigation {
        display: none !important;
        width: 100%;
        flex-basis: 100%;
        order: 3;
        border-top: 1px solid #e2e8f0;
        margin-top: 10px;
        padding-top: 5px;
    }
    .main-navigation.mobile-open {
        display: block !important;
    }
    .main-navigation > div,
    .main-navigation > ul {
        width: 100%;
    }
    .main-navigation div > ul,
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    .main-navigation li {
        width: 100%;
    }
    .main-navigation a {
        display: block;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-radius: 0;
        white-space: normal;
        background: none;
    }
    .main-navigation a:hover,
    .main-navigation li.current-menu-item a {
        background: #f1f5f9;
    }
    .main-navigation ul.sub-menu {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none;
        border-top: none;
        padding-left: 15px;
        min-width: auto;
        background: #f8fafc;
    }
    .main-navigation ul.sub-menu.sub-open {
        display: flex !important;
        flex-direction: column;
    }
    .main-navigation ul.sub-menu a {
        font-size: 0.85rem;
        padding: 10px 20px;
        color: #475569;
    }

    /* Slider */
    .slider-section {
        height: 50vh;
        min-height: 350px;
    }
    .slide-title {
        font-size: 1.6rem !important;
    }
    .slide-desc {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .premium-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
    .btn-premium {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    /* Headings */
    .section-heading {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    .section-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    /* All Sections - even tighter */
    .preface-section, .news-section, .gallery-section,
    .dokumen-section, .links-section {
        padding: 40px 15px !important;
    }

    /* Preface */
    .preface-container {
        flex-direction: column;
        gap: 30px;
    }
    .preface-content, .preface-image {
        width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }
    .preface-content {
        text-align: center;
    }
    .preface-quote {
        text-align: justify;
        font-size: 0.95rem;
        padding-left: 15px;
    }
    .preface-name {
        font-size: 1.2rem;
    }
    .preface-img-wrapper {
        width: 220px;
        height: 300px;
        margin: 0 auto;
    }

    /* News Grid - stack vertically */
    .split-news-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    .big-news-card {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: auto !important;
    }
    .big-news-overlay {
        padding: 20px 15px;
    }
    .big-news-title {
        font-size: 1.2rem !important;
    }
    .big-news-title a {
        font-size: 1.2rem !important;
    }
    .small-news-list {
        height: auto !important;
        max-height: none !important;
    }
    .small-news-item {
        flex: none !important;
        padding-bottom: 12px !important;
        gap: 12px;
    }
    .small-news-img-wrap {
        width: 80px !important;
        height: 65px !important;
    }
    .small-news-title {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
    .small-news-title a {
        font-size: 0.9rem !important;
    }
    .cat-text {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    .news-date {
        font-size: 0.75rem;
    }

    /* Gallery - Swipeable CSS Slider on Mobile */
    .premium-gallery-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        /* Hide scrollbar */
        scrollbar-width: none;
    }
    .premium-gallery-grid::-webkit-scrollbar {
        display: none;
    }
    .gallery-card {
        flex: 0 0 85% !important; /* Show 85% so next card peeks */
        scroll-snap-align: center;
        aspect-ratio: 4/3;
    }
    /* Always show overlay on mobile (no hover needed) */
    .gallery-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 30px 15px 15px !important;
        background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 50%, transparent 100%) !important;
    }
    .gallery-overlay h4 {
        font-size: 0.95rem !important;
    }

    /* Gallery Navigation Arrows (Mobile Overrides) */
    .gallery-nav {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
    }
    .gallery-nav.prev {
        left: -10px;
    }
    .gallery-nav.next {
        right: -10px;
    }
    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }

    /* Doc Cards - Swipeable CSS Slider on Mobile */
    .doc-cards-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        /* Hide scrollbar */
        scrollbar-width: none;
    }
    .doc-cards-grid::-webkit-scrollbar {
        display: none;
    }
    .doc-card {
        flex: 0 0 85% !important; /* Peek next card */
        scroll-snap-align: center;
        padding: 20px 15px !important;
    }
    .doc-icon-wrap {
        width: 50px !important;
        height: 50px !important;
    }
    .doc-title {
        font-size: 0.95rem !important;
    }
    .doc-desc {
        font-size: 0.8rem !important;
    }

    /* Doc Navigation Arrows (Mobile Overrides) */
    .doc-nav {
        width: 40px;
        height: 40px;
        border: none;
    }
    .doc-nav.prev {
        left: -10px;
    }
    .doc-nav.next {
        right: -10px;
    }
    .doc-nav svg {
        width: 20px;
        height: 20px;
    }

    /* Layanan */
    .layanan-slider-wrapper {
        padding: 10px 0 !important;
    }
    .layanan-nav {
        display: flex; /* Keep arrows visible */
    }
    .layanan-card {
        flex: 0 0 calc(50% - 12px);
        padding: 20px 15px;
    }
    .layanan-icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 15px;
    }
    .layanan-icon-wrap svg {
        width: 22px;
        height: 22px;
    }
    .layanan-title {
        font-size: 0.9rem;
    }
    .layanan-arrow {
        width: 30px;
        height: 30px;
    }

    /* Buttons */
    .btn-outline {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Inner Pages */
    .inner-content-wrapper {
        flex-direction: column;
    }
    .sidebar-area {
        width: 100%;
    }
    .main-content-area {
        padding: 30px 20px;
    }
    .page-header {
        padding: 70px 15px 50px;
    }
    .page-title {
        font-size: 2rem;
    }
    .single-post-container {
        padding: 30px 20px;
        margin-top: 100px;
    }
    .single-title {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

/* === MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    /* Slider */
    .slider-section {
        height: 45vh;
        min-height: 280px;
    }
    .slide-title {
        font-size: 1.2rem !important;
    }
    .slide-desc {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .premium-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .btn-premium {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    /* Headings */
    .section-heading {
        font-size: 1.3rem !important;
    }

    /* Preface */
    .preface-img-wrapper {
        width: 180px;
        height: 250px;
    }
    .preface-quote {
        font-size: 0.85rem;
    }

    /* News */
    .big-news-card {
        aspect-ratio: 4 / 3 !important;
    }
    .big-news-title, .big-news-title a {
        font-size: 1.05rem !important;
    }
    .small-news-img-wrap {
        width: 65px !important;
        height: 55px !important;
        border-radius: 8px !important;
    }
    .small-news-title, .small-news-title a {
        font-size: 0.85rem !important;
    }



    /* Doc Cards */
    .doc-cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Layanan */
    .layanan-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        padding: 30px 20px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Inner Pages */
    .main-content-area {
        padding: 20px 15px;
    }
    .single-post-container {
        padding: 20px 15px;
        margin-top: 80px;
    }
    .single-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   DIREKTORI PEGAWAI (CUSTOM POST TYPE)
   ========================================== */
.pegawai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.pegawai-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}
.pegawai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.pegawai-photo {
    width: 100%;
    height: 250px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pegawai-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* focus on faces */
    transition: transform 0.5s ease;
}
.pegawai-card:hover .pegawai-photo img {
    transform: scale(1.05);
}
.pegawai-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.pegawai-info {
    padding: 25px 20px;
    text-align: center;
}
.pegawai-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.3;
}
.pegawai-table {
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    color: #475569;
    border-collapse: collapse;
}
.pegawai-table td {
    padding: 6px 4px;
    vertical-align: top;
    border-bottom: 1px dashed #e2e8f0;
}
.pegawai-table tr:last-child td {
    border-bottom: none;
}
.pegawai-table td:first-child {
    width: 35%;
    font-weight: 600;
    color: #64748b;
}
.pegawai-table td:nth-child(2) {
    width: 5%;
    text-align: center;
}
.pegawai-table td:last-child {
    width: 60%;
    color: #0f172a;
}
.pegawai-table strong {
    color: #2563eb;
}

/* Responsive Overrides for Pegawai */
@media (max-width: 768px) {
    .pegawai-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Sembunyikan Watermark Widget (Elfsight dkk) */
a[href*="elfsight.com"],
.eapps-link,
[class*="elfsight-app"] > div > a {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================
   OFFICIAL COMPOUND LOGO (HEADER)
   ========================================== */
.official-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.prov-logo {
    width: 45px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-text-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.3px;
    font-family: 'Inter', sans-serif;
}
.logo-text-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
}
@media (max-width: 768px) {
    .prov-logo {
        width: 38px;
    }
    .logo-text-main {
        font-size: 1.1rem;
    }
    .logo-text-sub {
        font-size: 0.75rem;
    }
}

/* ==========================================
   WP CUSTOM LOGO FIX (Mencegah logo raksasa)
   ========================================== */
.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}
.site-branding .custom-logo {
    max-height: 85px; /* Diperbesar agar tulisan dan perisai lebih jelas */
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply !important; /* Otomatis menghapus background putih bawaan gambar */
}
@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 45px;
    }
}
