   :root {
    --primary: #007bff;
    --primary-hover: #0056b3;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.03);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --line-color: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 18px 40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.topbar--scrolled {
    opacity: 0;
    transform: translateY(-100%);
    visibility: hidden;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    align-items: center;
}

.nav-btn:hover {
    background-color: #f1f5f9;
    color: var(--text-dark);
}

.nav-btn.active {
    background-color: var(--primary);
    color: #ffffff;
}

.site-footer {
    background-color: #0f172a;
    color: var(--text-light);
    padding: 60px 40px 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section.socials {
    display: flex;
    flex-direction: column;
}

.footer-section.socials a {
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section.socials a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #334155;
    font-size: 14px;
    color: #64748b;
}

.subpage-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 40px;
    text-align: center;
}

.subpage-banner h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.subpage-banner p {
    color: #94a3b8;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    z-index: 4;
}

.hero-title { font-size: 52px; font-weight: 800; margin-bottom: 15px; line-height: 1.15; }
.hero-subtitle { font-size: 20px; color: #cbd5e1; }

.quote-section {
    max-width: 1000px;
    width: calc(100% - 40px);
    margin: 80px auto 40px auto;
    text-align: center;
}

.quote-tagline {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.quote-text {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.4;
    font-style: italic;
}

.about-section {
    background-color: var(--bg-card);
    width: 100%;
    padding: 70px 40px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 60px;
}

.about-container { max-width: 900px; margin: 0 auto; text-align: center; }
.about-container h2 { font-size: 32px; margin-bottom: 20px; font-weight: 800; }
.about-container p { font-size: 17px; color: var(--text-muted); line-height: 1.8; }

.news-section { max-width: 1200px; width: calc(100% - 40px); margin: 0 auto 80px auto; }

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

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

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

.news-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-image-wrapper { width: 100%; height: 200px; overflow: hidden; background-color: #e2e8f0; }
.news-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-image { transform: scale(1.05); }
.news-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; font-weight: 700; text-transform: uppercase; }
.news-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.news-excerpt { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.news-link { font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 700; margin-top: auto; }
.news-link:hover { text-decoration: underline; }

.about-grid {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 60px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-graphics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.graphic-box {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    height: 200px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.graphic-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.graphic-box.tall { grid-row: span 2; height: 420px; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #ffffff; font-size: 24px; }
.about-text-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.about-text-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }

.stats-bar {
    background-color: var(--bg-card);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 { font-size: 42px; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.stat-item p { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

.pillars-section { max-width: 1200px; width: calc(100% - 40px); margin: 60px auto; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.pillar-card { background: var(--bg-card); padding: 35px; border-radius: var(--radius); box-shadow: var(--shadow-md); transition: var(--transition); }
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-icon { width: 50px; height: 50px; background: #eff6ff; border-radius: 10px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 800; font-size: 20px; }
.pillar-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 700; }
.pillar-card p { color: var(--text-muted); font-size: 15px; }

.proker-container { max-width: 900px; width: calc(100% - 40px); margin: 60px auto; }
.sekbid-accordion { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 20px; overflow: hidden; border: 1px solid #e2e8f0; }

.accordion-toggle { display: none; }
.accordion-header {
    padding: 24px 30px;
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    user-select: none;
}

.accordion-header:hover { background-color: #f8fafc; }
.accordion-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--text-muted); transition: transform 0.3s ease; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); background-color: #f8fafc; padding: 0 30px; }
.accordion-toggle:checked ~ .accordion-content { max-height: 2000px; padding: 30px; border-top: 1px solid #e2e8f0; }
.accordion-toggle:checked ~ .accordion-header .accordion-icon { transform: rotate(135deg); color: var(--primary); }

.proker-item-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.proker-item-card:last-child { margin-bottom: 0; }
.proker-meta { display: flex; gap: 15px; margin-bottom: 10px; flex-wrap: wrap; }
.badge { background: #f1f5f9; color: var(--text-dark); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge.status-running { background: #dcfce7; color: #15803d; }
.proker-item-card h4 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.proker-item-card p { color: var(--text-muted); font-size: 14px; }

.structure-wrapper {
    max-width: 1400px;
    width: calc(100% - 40px);
    margin: 60px auto;
    overflow-x: auto;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 900px;
}

.org-node {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-width: 200px;
}

.org-node:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.org-node__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.org-node__role {
    font-size: 12px;
    color: var(--text-muted);
}

.org-node--main {
    border-top: 3px solid var(--primary);
    min-width: 240px;
}

.org-node--wing {
    background: #f0f7ff;
    border-color: #bfdbfe;
    min-width: 180px;
}

.org-node--sekbid {
    border-top: 3px solid #10b981;
    min-width: 170px;
    font-size: 13px;
}

.org-col--spine {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-connector {
    width: 2px;
    height: 30px;
    background: var(--line-color);
    margin: 0 auto;
}

.org-row--mid {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 0 40px;
    align-items: start;
    width: 100%;
    position: relative;
    margin-top: 0;
}

.org-row--mid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; right: 0;
    height: 2px;
    background: var(--line-color);
    display: none;
}

.org-col--wing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 30px;
}

.org-col--center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-row--sekbid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.org-col--sekbid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.org-dept {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
    width: 100%;
    font-size: 12px;
}

.org-dept__name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 12px;
}

.org-dept__members {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.contact-grid {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 60px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-panel { display: flex; flex-direction: column; gap: 30px; }
.info-card-modern { background: var(--bg-card); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid #e2e8f0; }
.info-card-modern h3 { font-size: 20px; margin-bottom: 20px; font-weight: 800; }
.info-row { display: flex; gap: 15px; margin-bottom: 15px; font-size: 15px; }
.info-row:last-child { margin-bottom: 0; }
.info-label { font-weight: 700; color: var(--text-dark); min-width: 100px; }
.info-val { color: var(--text-muted); }

.map-embed-container { background-color: #cbd5e1; height: 300px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.map-embed-container iframe { width: 100%; height: 100%; border: 0; }

.contact-form-panel { background: var(--bg-card); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid #e2e8f0; }
.contact-form-panel h3 { font-size: 22px; font-weight: 800; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; color: var(--text-dark); background-color: #f8fafc; transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--primary); background-color: #ffffff; box-shadow: 0 0 0 3px rgba(0,123,255,0.15); }
textarea.form-input { resize: vertical; min-height: 120px; }

.submit-btn { width: 100%; background-color: var(--primary); color: #ffffff; border: none; padding: 14px; font-size: 16px; font-weight: 700; border-radius: 8px; cursor: pointer; transition: var(--transition); }
.submit-btn:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.news-portal-layout {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.news-main-feed { display: flex; flex-direction: column; gap: 40px; }

.feed-subtitle {
    font-size: 22px;
    font-weight: 800;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    color: var(--text-dark);
}

.featured-news-hero-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.featured-news-hero-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.featured-hero-img-box { width: 100%; height: 100%; min-height: 280px; overflow: hidden; }
.featured-hero-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.featured-news-hero-card:hover .featured-hero-img-box img { transform: scale(1.04); }

.featured-hero-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-hero-body h2 { font-size: 26px; font-weight: 800; margin: 12px 0; line-height: 1.3; color: var(--text-dark); }
.featured-hero-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 25px; }

.featured-read-btn {
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
    align-self: flex-start;
}
.featured-read-btn:hover { background-color: var(--primary-hover); }

.news-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 25px; }
.sidebar-widget { background: var(--bg-card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0; }
.sidebar-widget h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; }
.widget-list { list-style: none; }
.widget-list li { margin-bottom: 8px; }
.widget-list li:last-child { margin-bottom: 0; }
.widget-list li a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; transition: var(--transition); }
.widget-list li a:hover, .widget-list li a.active { background-color: #eff6ff; color: var(--primary); }
.widget-list li a span { background-color: #e2e8f0; padding: 2px 8px; border-radius: 12px; font-size: 11px; color: #333; }

.single-reading-view { max-width: 860px; width: calc(100% - 40px); margin: 50px auto 80px; }
.reading-content-wrapper { background-color: var(--bg-card); padding: 60px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid #e2e8f0; }

.back-to-feed-link { color: var(--primary); font-size: 15px; font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 40px; transition: var(--transition); }
.back-to-feed-link:hover { transform: translateX(-4px); }

.article-header { margin-bottom: 40px; text-align: center; }
.article-category { display: inline-block; background-color: #e0f2fe; color: #0284c7; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.article-header h1 { font-size: 40px; font-weight: 800; line-height: 1.25; margin-bottom: 25px; color: var(--text-dark); }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 15px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.meta-details { display: flex; flex-direction: column; text-align: left; }
.author-name { font-weight: 700; font-size: 15px; color: var(--text-dark); }
.publish-date { font-size: 13px; color: var(--text-muted); }

.article-featured-image { margin: 0 0 40px 0; }
.article-featured-image img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: var(--radius); }
.article-featured-image img,
.graphic-box img {
    aspect-ratio: 16 / 10; /* Adjust to match your image ratios */
    background-color: #e2e8f0; /* Placeholder color while loading */
    object-fit: cover;
}
.article-featured-image figcaption, .article-inline-image figcaption { text-align: center; font-size: 13px; color: #64748b; margin-top: 10px; font-style: italic; }

.article-inline-image { margin: 36px 0; }
.article-inline-image img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

.article-content { max-width: 700px; margin: 0 auto; }
.article-content p:first-child { font-size: 19px; color: #334155; line-height: 1.8; font-weight: 500; }
.article-content h2 { font-size: 26px; font-weight: 800; margin: 40px 0 18px; color: var(--text-dark); line-height: 1.3; }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 14px; color: var(--text-dark); }
.article-content p { font-size: 17px; color: #334155; line-height: 1.85; margin-bottom: 22px; }
.article-content ul, .article-content ol { margin: 0 0 24px 28px; color: #334155; font-size: 17px; line-height: 1.85; }
.article-content li { margin-bottom: 10px; }
.article-content li strong { color: var(--text-dark); }
.article-content blockquote { border-left: 4px solid var(--primary); background-color: #f0f7ff; padding: 22px 28px; font-size: 19px; font-style: italic; color: #475569; margin: 36px 0; border-radius: 0 8px 8px 0; line-height: 1.6; }
.article-content hr { border: none; border-top: 2px solid #e2e8f0; margin: 40px 0; }
.article-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 14px; font-family: 'Courier New', monospace; }

@media (max-width: 1024px) {
    .org-row--mid {
        grid-template-columns: 1fr;
    }
    .org-col--wing {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0;
    }
    .org-row--sekbid {
        flex-wrap: wrap;
    }
}

@media (max-width: 968px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-graphics { order: 2; }
    .featured-news-hero-card { grid-template-columns: 1fr; }
    .featured-hero-img-box { min-height: 220px; }
    .news-portal-layout { grid-template-columns: 1fr; }
    .news-sidebar { position: static; }
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: center; /* ✅ Changed from flex-start to center */
        justify-content: center;
        padding: 15px 20px;
        gap: 12px;
        text-align: center;
    }
    .topbar .logo {
        width: 100%;
        text-align: center; /* ✅ Ensures logo text stays centered */
    }
    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        justify-content: flex-start; /* Keep buttons left-aligned for easy scrolling */
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-btn { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 14px; }

    .hero-container { height: 50vh; min-height: 300px; }
    .hero-content { padding: 0 24px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .quote-text { font-size: 24px; }

    .structure-wrapper { padding: 10px; }
    .org-chart { min-width: auto; }
    .org-row--mid { grid-template-columns: 1fr; gap: 20px; }
    .org-row--sekbid { gap: 12px; }
    .org-col--sekbid { min-width: 130px; }

    .reading-content-wrapper { padding: 30px 20px; }
    .article-header h1 { font-size: 28px; }
    .article-content p:first-child { font-size: 17px; }
}

#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: visible;
    opacity: 1;
  }
  
  #preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .preloader-content {
    text-align: center;
    animation: pulse 1.8s ease-in-out infinite;
  }
  
  .preloader-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    /* Optional: subtle bounce */
    animation: float 2.5s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.95; }
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  
  body.preloader-active {
    overflow: hidden;
  }


  @media (max-width: 768px) {
    .contact-grid {
        width: 100%;
        padding: 0 16px;
        margin: 40px auto;
        box-sizing: border-box;
    }
    .contact-info-panel,
    .contact-form-panel {
        padding: 20px;
    }
    .info-row {
        flex-direction: column;
        gap: 6px;
    }
    .info-label {
        min-width: auto;
        font-weight: 700;
    }
    .map-embed-container {
        height: 240px;
    }
    .form-input,
    .submit-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===== DARK MODE ===== */
:root[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-dark: #f1f5f9;
    --text-muted: #dddee1;
    --text-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
    --line-color: #334155;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .site-footer {
    background-color: #1e293b;
}

:root[data-theme="dark"] .nav-btn:hover {
    background-color: #334155;
}

:root[data-theme="dark"] .accordion-header:hover {
    background-color: #334155;
}

:root[data-theme="dark"] .accordion-content {
    background-color: #0f172a;
}

:root[data-theme="dark"] .proker-item-card,
:root[data-theme="dark"] .sekbid-accordion,
:root[data-theme="dark"] .sidebar-widget,
:root[data-theme="dark"] .pillar-card,
:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .featured-news-hero-card,
:root[data-theme="dark"] .reading-content-wrapper,
:root[data-theme="dark"] .contact-form-panel,
:root[data-theme="dark"] .info-card-modern {
    background-color: #1e293b;
    border-color: #334155;
}

:root[data-theme="dark"] .form-input {
    background-color: #0f172a;
    border-color: #334155;
    color: var(--text-dark);
}

:root[data-theme="dark"] .form-input:focus {
    background-color: #1e293b;
    border-color: var(--primary);
}

:root[data-theme="dark"] .org-node--wing {
    background: #1e293b;
    border-color: #334155;
}

:root[data-theme="dark"] .org-dept {
    background: #0f172a;
    border-color: #334155;
}

:root[data-theme="dark"] .widget-list li a:hover,
:root[data-theme="dark"] .widget-list li a.active {
    background-color: #1e293b;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
    transition: var(--transition);
    margin-left: 10px;

}

.theme-toggle:hover {
    background-color: #f1f5f9;
}

:root[data-theme="dark"] .theme-toggle:hover {
    background-color: #334155;
}

/* Fix for Article Paragraphs and Lists in Dark Mode */
:root[data-theme="dark"] .article-content p:first-child {
    color: var(--text-dark);
}

:root[data-theme="dark"] .article-content p,
:root[data-theme="dark"] .article-content ul,
:root[data-theme="dark"] .article-content ol {
    color: var(--text-muted);
}

:root[data-theme="dark"] .article-content blockquote {
    background-color: #334155;
    color: var(--text-muted);
}

/* Fix for Program Kerja Badges in Dark Mode */
:root[data-theme="dark"] .badge {
    background-color: #334155;
    color: var(--text-dark);
}

:root[data-theme="dark"] .badge.status-running {
    background-color: #064e3b; /* Dark green background */
    color: #34d399; /* Light green text */
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* ===== SKELETON LOADERS ===== */
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }

}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        #e2e8f0 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

:root[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        #334155 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* News Card Skeleton */
.news-card-skeleton {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    padding: 0;
}

.news-card-skeleton .skeleton-image {
    margin: 0;
    border-radius: 0;
}

.news-card-skeleton .skeleton-body {
    padding: 20px;
}

/* Featured Card Skeleton */
.featured-card-skeleton {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.featured-card-skeleton .skeleton-image {
    height: 280px;
    margin: 0;
}

.featured-card-skeleton .skeleton-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Article Skeleton */
.article-skeleton .skeleton-title {
    height: 40px;
    width: 80%;
    margin: 20px auto;
}

.article-skeleton .skeleton-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px auto;
    justify-content: center;
}

/* ===== ARTICLE SEARCH ===== */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

:root[data-theme="dark"] .search-input {
    background-color: #0f172a;
    border-color: #334155;
    color: var(--text-dark);
}

:root[data-theme="dark"] .search-input:focus {
    background-color: #1e293b;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .featured-card-skeleton {
        grid-template-columns: 1fr;
    }
    
    .featured-card-skeleton .skeleton-image {
        height: 200px;
    }
}
.page-transition {
    animation: pageFadeIn 0.4s ease-out;
}

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

.page-transition-out {
    animation: pageFadeOut 0.2s ease-in;
    pointer-events: none;
}

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

.content-loading {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-loaded {
    opacity: 1;
    transform: translateY(0);
}