﻿/* Portal Disdukcapil Paluta - SIDESAKU-inspired visual language */
:root {
    --portal-primary: #0b4f2e;
    --portal-primary-light: #14764a;
    --portal-gold: #c9a227;
    --portal-gold-soft: #fbf4da;
    --portal-ink: #1f2937;
    --portal-muted: #6b7280;
    --portal-border: #e3e8e4;
    --portal-bg: #f3f6f4;
    --portal-radius: 16px;
    --portal-shadow: 0 10px 30px rgba(16, 24, 40, .08);
}

body.portal {
    background: var(--portal-bg);
    color: var(--portal-ink);
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--portal-border);
    backdrop-filter: blur(10px);
}

.portal-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--portal-ink);
    flex: 0 0 auto;
}

.portal-brand:hover { text-decoration: none; color: var(--portal-primary); }
.portal-brand img { width: 44px; height: 44px; object-fit: contain; }
.portal-brand strong { display: block; font-size: 15px; letter-spacing: .4px; line-height: 1.15; }
.portal-brand span { display: block; font-size: 10.5px; color: var(--portal-muted); letter-spacing: .2px; }

.portal-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
}

.portal-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.portal-nav a:hover,
.portal-nav a.active {
    background: #eef5f0;
    color: var(--portal-primary);
    text-decoration: none;
}

.portal-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.portal-nav-dropdown > a {
    padding-right: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.portal-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 7px 8px 2px;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: transparent;
    color: #4b5563;
    font-family: inherit;
    cursor: pointer;
}

.portal-nav-dropdown-toggle:hover,
.portal-nav-dropdown-toggle.active,
.portal-nav-dropdown.open > a,
.portal-nav-dropdown.open .portal-nav-dropdown-toggle {
    background: #eef5f0;
    color: var(--portal-primary);
}

.portal-nav-dropdown-toggle svg {
    transition: transform .18s ease;
}

.portal-nav-dropdown.open .portal-nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.portal-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 70;
    min-width: 170px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease;
}

.portal-nav-dropdown.open .portal-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 761px) {
    .portal-nav-dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -7px;
        height: 7px;
    }
}

.portal-nav-dropdown-menu a {
    display: flex;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.portal-nav-dropdown-menu a:hover,
.portal-nav-dropdown-menu a.active {
    background: #eef5f0;
    color: var(--portal-primary);
}

.portal-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 10px;
    background: var(--portal-primary);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.portal-login:hover { background: #083d27; color: #fff; text-decoration: none; }

.portal-main { min-height: 60vh; }

.portal-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #083d27 0%, #0b4f2e 55%, #14764a 100%);
}

.portal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 162, 39, .28), transparent 30%),
        radial-gradient(circle at 8% 88%, rgba(255, 255, 255, .08), transparent 34%);
    pointer-events: none;
}

.portal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 18px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 34px;
    align-items: center;
}

.portal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #ffe9a8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.portal-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.5px;
}

.portal-hero h1 span { color: #ffe9a8; }
.portal-hero p { margin: 0; max-width: 650px; color: #d6e6dc; font-size: 14.5px; line-height: 1.7; }

.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.portal-btn:hover { text-decoration: none; transform: translateY(-1px); }
.portal-btn-primary { background: var(--portal-gold); color: #3c2c05; }
.portal-btn-primary:hover { background: #a97c15; color: #fff; }
.portal-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.portal-btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.portal-btn-green { background: var(--portal-primary); color: #fff; }
.portal-btn-green:hover { background: #083d27; color: #fff; }
.portal-btn-light { background: #fff; color: var(--portal-primary); border-color: var(--portal-border); }
.portal-btn-light:hover { background: #eef5f0; color: var(--portal-primary); }

.portal-hero-leaders {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

.portal-hero-leaders img {
    width: clamp(130px, 12vw, 150px);
    max-width: calc(50% - 5px);
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .32);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
    background: rgba(255, 255, 255, .08);
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: -26px;
    position: relative;
    z-index: 2;
}

.portal-stat {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    box-shadow: var(--portal-shadow);
}
.portal-stat .icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5f0;
    color: var(--portal-primary);
    flex: 0 0 38px;
}
.portal-stat strong { display: block; font-size: 20px; line-height: 1.1; color: var(--portal-ink); }
.portal-stat span { display: block; font-size: 10.5px; color: var(--portal-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; margin-top: 2px; }

.portal-section { padding: 42px 0; }
.portal-section.tight { padding: 26px 0; }
.portal-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.portal-eyebrow { color: var(--portal-gold); font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.portal-section-head h2 { margin: 4px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.portal-section-head p { margin: 4px 0 0; color: var(--portal-muted); font-size: 12.5px; }
.portal-section-head .link { color: var(--portal-primary); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.portal-section-head .link:hover { text-decoration: underline; }

.portal-grid { display: grid; gap: 16px; }
.portal-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.portal-card {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    box-shadow: 0 3px 12px rgba(16, 24, 40, .04);
    overflow: hidden;
    height: 100%;
}
.portal-card-body { padding: 16px; }
.portal-card h3 { margin: 0 0 6px; font-size: 14px; line-height: 1.35; font-weight: 700; }
.portal-card p { margin: 0; color: var(--portal-muted); font-size: 12px; line-height: 1.55; }
.portal-card .thumb { display: block; width: 100%; height: 170px; object-fit: cover; background: #e8efe9; }
.portal-card .meta { display: flex; align-items: center; gap: 10px; color: var(--portal-muted); font-size: 10.5px; margin-top: 10px; }
.portal-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.portal-card:hover { box-shadow: 0 14px 32px rgba(16, 24, 40, .10); transform: translateY(-2px); transition: .2s ease; }

.portal-service {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    padding: 16px;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.portal-service:hover { border-color: #b9d4c5; box-shadow: 0 10px 24px rgba(16, 24, 40, .07); text-decoration: none; color: inherit; }
.portal-service .icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--portal-gold-soft);
    color: var(--portal-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}
.portal-service h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.portal-service p { margin: 0; color: var(--portal-muted); font-size: 11.5px; line-height: 1.5; }

.portal-page-head {
    background: linear-gradient(120deg, #083d27 0%, #0b4f2e 60%, #14764a 100%);
    color: #fff;
    padding: 34px 0 30px;
}
.portal-page-head .crumbs { display: flex; gap: 7px; align-items: center; color: #b9d4c5; font-size: 11.5px; margin-top: 10px; }
.portal-page-head .crumbs a { color: #d6e6dc; text-decoration: none; }
.portal-page-head .crumbs a:hover { color: #ffe9a8; }
.portal-page-head h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; }
.portal-page-head p { margin: 8px 0 0; color: #d6e6dc; font-size: 13px; max-width: 760px; line-height: 1.6; }

.portal-prose { color: #374151; font-size: 13.5px; line-height: 1.8; }
.portal-prose p { margin: 0 0 12px; }
.portal-prose h2, .portal-prose h3, .portal-prose h4 { color: var(--portal-primary); margin: 20px 0 8px; font-weight: 800; }
.portal-prose ul, .portal-prose ol { margin: 0 0 14px; padding-left: 20px; }
.portal-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.portal-prose a { color: var(--portal-primary); text-decoration: underline; }

.portal-empty {
    text-align: center;
    padding: 38px 18px;
    color: var(--portal-muted);
    background: #fff;
    border: 1px dashed var(--portal-border);
    border-radius: 14px;
}
.portal-empty .icon { font-size: 28px; color: #b9c8be; margin-bottom: 8px; }
.portal-empty p { margin: 0; font-size: 12.5px; }

.portal-footer {
    background: #083d27;
    color: #cfe3d7;
    margin-top: 30px;
}
.portal-footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 18px 24px;
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr 1fr;
    gap: 28px;
}
.portal-footer h4 { margin: 0 0 10px; color: #fff; font-size: 13px; font-weight: 700; }
.portal-footer p, .portal-footer a, .portal-footer li { font-size: 11.5px; line-height: 1.7; color: #b9d4c5; }
.portal-footer a { display: block; text-decoration: none; margin-bottom: 4px; }
.portal-footer a:hover { color: #ffe9a8; }
.portal-footer .footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.portal-footer .footer-brand img { width: 40px; height: 40px; object-fit: contain; background: transparent; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.portal-footer .footer-brand strong { display: block; color: #fff; font-size: 13px; }
.portal-footer .footer-brand span { display: block; color: #9fc1ac; font-size: 10.5px; }
.portal-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    padding: 13px 18px;
    color: #9fc1ac;
    font-size: 10.5px;
}

.portal-article img { border-radius: 12px; }
.portal-article .article-head { margin-bottom: 18px; }
.portal-article .article-head h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.portal-article .article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--portal-muted); font-size: 11px; }
.portal-article .article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.portal-article .featured { width: 100%; max-height: 430px; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }

.portal-sidebar-card { background: #fff; border: 1px solid var(--portal-border); border-radius: 14px; padding: 16px; }
.portal-sidebar-card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; }
.portal-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--portal-border); color: #4b5563; font-size: 12px; text-decoration: none; }
.portal-cat-link:last-child { border-bottom: 0; }
.portal-cat-link:hover { color: var(--portal-primary); text-decoration: none; }
.portal-cat-link .count { background: #eef5f0; color: var(--portal-primary); border-radius: 999px; padding: 1px 8px; font-size: 10px; font-weight: 700; }

.portal-agenda-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    height: 100%;
}
.portal-agenda-date {
    width: 54px;
    flex: 0 0 54px;
    border-radius: 10px;
    background: var(--portal-gold-soft);
    color: #8a6410;
    text-align: center;
    padding: 6px 4px;
    align-self: flex-start;
}
.portal-agenda-date strong { display: block; font-size: 18px; line-height: 1; }
.portal-agenda-date span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.portal-agenda-item h3 { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; }
.portal-agenda-item p { margin: 0; font-size: 10.5px; color: var(--portal-muted); }
.portal-agenda-item .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 10px; color: var(--portal-muted); }
.portal-agenda-item .meta span { display: inline-flex; align-items: center; gap: 3px; }

.portal-download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    padding: 15px;
    height: 100%;
}
.portal-download-item .icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    background: #eef5f0;
    color: var(--portal-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.portal-download-item h3 { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.portal-download-item p { margin: 0 0 8px; color: var(--portal-muted); font-size: 10.5px; line-height: 1.4; }

.portal-gallery-item { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #e8efe9; }
.portal-gallery-item img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .25s ease; }
.portal-gallery-item:hover img { transform: scale(1.04); }
.portal-gallery-item .caption { position: absolute; inset: auto 0 0; padding: 20px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.68)); color: #fff; font-size: 11.5px; font-weight: 600; }

.portal-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.portal-filter a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--portal-border); background: #fff; color: #4b5563; font-size: 11.5px; font-weight: 600; text-decoration: none; }
.portal-filter a:hover, .portal-filter a.active { background: var(--portal-primary); border-color: var(--portal-primary); color: #fff; text-decoration: none; }

.portal-input { width: 100%; border: 1px solid var(--portal-border); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--portal-ink); background: #fff; }
.portal-input:focus { outline: none; border-color: var(--portal-primary-light); box-shadow: 0 0 0 3px rgba(20, 118, 74, .12); }
.portal-label { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 5px; color: #374151; }

@media (max-width: 980px) {
    .portal-hero-inner { grid-template-columns: 1fr; padding-top: 42px; }
    .portal-hero-leaders { max-width: 520px; }
    .portal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .portal-header-inner { flex-wrap: wrap; gap: 8px; }
    .portal-nav { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
    .portal-nav a { padding: 7px 8px; font-size: 11.5px; }
    .portal-nav-dropdown { position: static; }
    .portal-nav-dropdown > a { padding-right: 3px; }
    .portal-nav-dropdown-toggle { padding: 7px 6px 7px 2px; }
    .portal-nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 0 2px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .portal-nav-dropdown.open .portal-nav-dropdown-menu { display: inline-flex; }
    .portal-nav-dropdown-menu a { padding: 7px 8px; font-size: 11.5px; background: #eef5f0; }
    .portal-login { margin-left: auto; }
    .portal-grid-2, .portal-grid-3, .portal-grid-4 { grid-template-columns: 1fr; }
    .portal-stats { grid-template-columns: 1fr; }
    .portal-section { padding: 30px 0; }
    .portal-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    .portal-footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .portal-hero-inner { padding: 32px 16px; }
    .portal-page-head { padding: 26px 0 22px; }
}


