﻿/* ===================================================
   DPRD Kota Kediri - Frontend CSS
   Menggunakan CSS variable dari sistem Colour Admin
   =================================================== */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text-main, #1a1a2e); background: var(--bg-main, #fff); }

/* ── Typography ── */
.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: .6rem;
    margin-bottom: 2rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 52px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }
.section-subtitle { color: var(--text-muted-theme, #6c757d); font-size: 1rem; margin-top: .3rem; }

/* ── Navbar ── */
.navbar-dprd {
    background: var(--primary) !important;
    padding: .9rem 0;
    transition: all .3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.navbar-dprd.scrolled { padding: .5rem 0; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.navbar-dprd .navbar-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.navbar-dprd .brand-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.navbar-dprd .brand-text { line-height: 1.1; }
.navbar-dprd .brand-text .title { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: .5px; }
.navbar-dprd .brand-text .subtitle { font-size: .7rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1.5px; }
.navbar-dprd .nav-link { color: rgba(255,255,255,.88) !important; font-size: .9rem; font-weight: 500; padding: .4rem .8rem !important; border-radius: 6px; transition: all .3s ease; }
.navbar-dprd .nav-link:hover,
.navbar-dprd .nav-link.active { color: #fff !important; background: rgba(255,255,255,.15); }
.navbar-dprd .dropdown-menu { border: none; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); min-width: 200px; padding: .5rem; margin-top: .5rem; }
.navbar-dprd .dropdown-item { border-radius: 8px; font-size: .9rem; padding: .5rem .9rem; transition: all .2s ease, color .2s ease; }
.navbar-dprd .dropdown-item:hover { background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); }
.navbar-dprd .dropdown-item:hover i.text-muted { color: var(--primary) !important; }
.navbar-dprd .dropdown-toggle::after { vertical-align: .15em; }
.navbar-toggler { border-color: rgba(255,255,255,.3) !important; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; }

/* ── Hero ── */
.hero-section { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.swiper-button-next, .swiper-button-prev { display: none; }
.hero-section .swiper-button-next, .hero-section .swiper-button-prev { display: flex; }
.hero-section .swiper-button-next, .hero-section .swiper-button-prev {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.18); transition: background .3s ease;
    top: 50%; transform: translateY(-50%);
}
.hero-section .swiper-button-next:hover, .hero-section .swiper-button-prev:hover { background: rgba(255,255,255,.32); }
.hero-section .swiper-button-next::after, .hero-section .swiper-button-prev::after { font-size: 1rem; font-weight: 900; color: #fff !important; }
.hero-swiper { width: 100%; height: 100%; }
.hero-slide { position: relative; width: 100%; height: 100%; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 40%, transparent) 0%, rgba(0,0,0,.5) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 8%; z-index: 2; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: .8rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-content p { font-size: clamp(.95rem, 2vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 2rem; }
.hero-logo { height: 160px; width: auto; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.hero-btn-primary { background: #fff; color: var(--primary); border: none; padding: .75rem 2rem; border-radius: 50px; font-weight: 700; font-size: .95rem; transition: all .3s ease; box-shadow: 0 4px 15px rgba(0,0,0,.2); }
.hero-btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.hero-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); padding: .75rem 2rem; border-radius: 50px; font-weight: 600; font-size: .95rem; transition: all .3s ease; }
.hero-btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: translateY(-2px); }
.hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,.5); width: 10px; height: 10px; }
.hero-swiper .swiper-pagination-bullet-active { background: #fff; width: 28px; border-radius: 5px; }

/* ── Cards ── */
.card-dprd { border: none; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: all .3s ease; overflow: hidden; }
.card-dprd:hover { transform: translateY(-5px); box-shadow: 0 8px 32px color-mix(in srgb, var(--primary) 15%, transparent); }

/* ── Section backgrounds ── */
.section-white { background: var(--bg-main, #fff); }
.section-light { background: var(--bg-section, #f8f9fa); }
.py-section { padding: 5rem 0; }
.py-section-sm { padding: 3.5rem 0; }

/* ── Buttons ── */
.btn-maroon { background: var(--btn-primary); color: #fff; border: none; border-radius: 50px; padding: .6rem 1.8rem; font-weight: 600; transition: all .3s ease; }
.btn-maroon:hover { background: var(--btn-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-outline-maroon { background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 50px; padding: .55rem 1.7rem; font-weight: 600; transition: all .3s ease; }
.btn-outline-maroon:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--accent); color: #fff; border: none; border-radius: 50px; padding: .6rem 1.8rem; font-weight: 600; transition: all .3s ease; }
.btn-gold:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); }

/* ── News cards ── */
.news-card { border: none; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column; height: 100%; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px color-mix(in srgb, var(--primary) 15%, transparent); }
.news-card .cover { width: 100%; height: 200px; object-fit: cover; display: block; flex-shrink: 0; }
.news-card .cover-placeholder { width: 100%; height: 200px; background: color-mix(in srgb, var(--primary) 8%, white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news-card .cover-placeholder i { font-size: 2.5rem; color: var(--primary); opacity: .4; }
.news-card .badge-cat { background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 20px; }
.news-card .p-4 { flex: 1; display: flex; flex-direction: column; }

/* ── Announcement cards ── */
.announcement-card { border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08); padding: 1.3rem 1.5rem; transition: all .3s ease; }
.announcement-card:hover { transform: translateX(4px); box-shadow: 0 8px 32px color-mix(in srgb, var(--primary) 15%, transparent); }
.announcement-card .ann-date { font-size: .78rem; color: var(--text-muted-theme, #6c757d); }
.announcement-card .ann-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin: .3rem 0; }
.announcement-card .ann-title a { color: inherit; text-decoration: none; }
.announcement-card .ann-title a:hover { color: var(--primary); }

/* ── Agenda timeline ── */
.agenda-item { display: flex; gap: 1.2rem; align-items: flex-start; background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); padding: 1.3rem 1.5rem; transition: all .3s ease; }
.agenda-item:hover { transform: translateY(-3px); box-shadow: 0 8px 32px color-mix(in srgb, var(--primary) 15%, transparent); }
.agenda-date-box { background: var(--primary); color: #fff; border-radius: 10px; min-width: 58px; text-align: center; padding: .6rem .4rem; flex-shrink: 0; }
.agenda-date-box .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.agenda-date-box .month { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.agenda-date-box .year { font-size: .65rem; opacity: .7; }
.agenda-info .agenda-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: .3rem; }
.agenda-info .agenda-meta { font-size: .8rem; color: var(--text-muted-theme, #6c757d); display: flex; flex-wrap: wrap; gap: .8rem; }
.agenda-info .agenda-meta i { color: var(--primary); margin-right: .25rem; }
.badge-active   { background: #d4edda; color: #155724; font-size: .72rem; padding: .3rem .7rem; border-radius: 20px; }
.badge-inactive { background: #e2e3e5; color: #383d41; font-size: .72rem; padding: .3rem .7rem; border-radius: 20px; }

/* ── Gallery grid ── */
.gallery-grid { columns: 3; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border-radius: 12px; cursor: pointer; }
.gallery-item img { width: 100%; display: block; border-radius: 12px; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay { position: relative; overflow: hidden; border-radius: 12px; }
.gallery-overlay::after { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 55%, transparent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; opacity: 0; transition: all .3s ease; border-radius: 12px; }
.gallery-overlay:hover::after { opacity: 1; }

/* ── CTA Card (Kritik & Saran) ── */
.cta-card { position: relative; overflow: hidden; background: #fff; border-radius: 20px; box-shadow: 0 8px 40px color-mix(in srgb, var(--primary) 12%, transparent); padding: 2.5rem 3rem; }
.cta-watermark { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 280px; opacity: .45; z-index: 0; pointer-events: none; user-select: none; animation: floatingBridge 6s ease-in-out infinite; transform-origin: right center; }
.cta-body { position: relative; z-index: 2; max-width: 600px; }
.cta-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.cta-icon { width: 52px; height: 52px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-icon i { font-size: 1.5rem; color: #fff; }
.cta-title { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: 0; }
.cta-desc { font-size: 1rem; color: #444; line-height: 1.75; margin-bottom: 1.8rem; max-width: 480px; }
.cta-btn { background: var(--btn-primary); color: #fff; border: none; border-radius: 50px; padding: .75rem 2.2rem; font-weight: 700; font-size: .97rem; display: inline-flex; align-items: center; transition: all .3s ease; box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 30%, transparent); }
.cta-btn:hover { background: var(--btn-hover); color: #fff; transform: translateY(-2px); }
@keyframes floatingBridge { 0% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 5px)); } 100% { transform: translateY(-50%); } }

/* ── Lokasi section ── */
.lokasi-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); padding: 2.5rem; height: 100%; }
.lokasi-card .contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border-theme, #dee2e6); }
.lokasi-card .contact-item:last-child { border-bottom: none; }
.lokasi-card .contact-icon { width: 40px; height: 40px; background: color-mix(in srgb, var(--primary) 10%, white); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.map-container { border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); height: 100%; min-height: 420px; display: flex; flex-direction: column; }
.map-container iframe { display: block; border: none; width: 100%; flex: 1; min-height: 420px; }
@media (max-width: 768px) { .lokasi-grid { grid-template-columns: 1fr !important; } }

/* ── Footer ── */
.footer-dprd { background: var(--footer-bg, #5a1520); color: rgba(255,255,255,.85); padding: 3.5rem 0 0; }
.footer-dprd .footer-brand .brand-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-dprd .footer-brand .brand-sub { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1.5px; }
.footer-dprd h6 { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; margin-bottom: 1rem; }
.footer-dprd ul { list-style: none; padding: 0; margin: 0; }
.footer-dprd ul li { margin-bottom: .4rem; }
.footer-dprd ul li a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; transition: all .3s ease; }
.footer-dprd ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-dprd .footer-contact p { font-size: .88rem; margin-bottom: .4rem; color: rgba(255,255,255,.75); }
.footer-dprd .footer-contact i { color: var(--accent); margin-right: .5rem; }
.footer-dprd .social-links { display: flex; gap: .6rem; margin-top: .8rem; }
.footer-dprd .social-links a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75); transition: all .3s ease; font-size: .9rem; }
.footer-dprd .social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-dprd .footer-divider { border-color: rgba(255,255,255,.15); margin: 2rem 0 0; }
.footer-dprd .footer-bottom { padding: 1.2rem 0; background: rgba(0,0,0,.2); }
.footer-dprd .footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.55); margin: 0; }

/* ── Breadcrumb ── */
.breadcrumb-section { background: var(--primary); padding: 2.5rem 0; }
.breadcrumb-section h1 { color: #fff; font-size: 1.8rem; font-weight: 700; margin-bottom: .3rem; }
.breadcrumb-dprd { background: transparent; padding: 0; margin: 0; }
.breadcrumb-dprd .breadcrumb-item { color: rgba(255,255,255,.7); font-size: .85rem; }
.breadcrumb-dprd .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-dprd .breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-dprd .breadcrumb-item.active { color: var(--accent); }
.breadcrumb-dprd .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── Detail pages ── */
.detail-content { font-size: 1rem; line-height: 1.8; color: #333; }
.detail-content h2, .detail-content h3 { color: var(--primary); margin-top: 1.5rem; }
.detail-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }
.detail-content p { margin-bottom: 1rem; }

/* ── Profile page ── */
.leader-card { border: none; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); overflow: hidden; text-align: center; transition: all .3s ease; }
.leader-card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px color-mix(in srgb, var(--primary) 15%, transparent); }
.leader-card .leader-photo { width: 100%; height: 260px; object-fit: cover; object-position: top; }
.leader-card .leader-photo-placeholder { width: 100%; height: 260px; background: color-mix(in srgb, var(--primary) 8%, white); display: flex; align-items: center; justify-content: center; }
.leader-card .leader-photo-placeholder i { font-size: 4rem; color: var(--primary); opacity: .3; }
.leader-card .card-body { padding: 1.2rem; }
.leader-card .leader-name { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: .25rem; }
.leader-card .leader-position { font-size: .82rem; color: var(--primary); font-weight: 600; }
.leader-card .leader-faction { font-size: .78rem; color: var(--text-muted-theme, #6c757d); }

/* ── Stats bar ── */
.stats-bar { background: var(--primary); padding: 2rem 0; }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,.2); }
.stat-item:last-child { border-right: none; }
.stat-item .stat-number { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-item .stat-label { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1px; margin-top: .3rem; }

/* ── Fraksi Card ── */
.fraksi-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.08); padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; border: 2px solid transparent; width: 100%; }
.fraksi-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px color-mix(in srgb, var(--primary) 18%, transparent); border-color: var(--primary); }
.fraksi-card:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.fraksi-logo { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.fraksi-icon-placeholder { width: 72px; height: 72px; background: color-mix(in srgb, var(--primary) 10%, white); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fraksi-icon-placeholder i { font-size: 1.8rem; color: var(--primary); opacity: .7; }
.fraksi-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.35; width: 100%; }
.fraksi-badge { background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: 20px; display: inline-block; }
.fraksi-count { font-size: .82rem; color: var(--text-muted-theme, #6c757d); }
.fraksi-cta { font-size: .82rem; font-weight: 600; color: var(--primary); opacity: 0; transition: opacity .3s ease; padding: .4rem 1rem; border: 1.5px solid var(--primary); border-radius: 20px; }
.fraksi-card:hover .fraksi-cta { opacity: 1; }

/* ── Komisi Card ── */
.komisi-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.08); padding: 1.8rem 1.5rem; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; height: 320px; display: flex; flex-direction: column; border: 2px solid transparent; border-left: 4px solid var(--primary); width: 100%; }
.komisi-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px color-mix(in srgb, var(--primary) 18%, transparent); border-color: var(--primary); }
.komisi-card:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.komisi-nama { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: .35rem; line-height: 1.2; }
.komisi-bidang { font-size: .82rem; font-weight: 600; color: var(--text-muted-theme, #6c757d); margin-bottom: .8rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .4px; }
.komisi-desc { font-size: .85rem; color: #555; line-height: 1.65; flex-grow: 1; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.komisi-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border-theme, #dee2e6); }
.komisi-count { font-size: .8rem; color: var(--text-muted-theme, #6c757d); }
.komisi-cta { font-size: .78rem; font-weight: 600; color: var(--primary); opacity: 0; transition: opacity .3s ease; padding: .25rem .8rem; border: 1.5px solid var(--primary); border-radius: 20px; white-space: nowrap; }
.komisi-card:hover .komisi-cta { opacity: 1; }

/* ── AKD Card ── */
.akd-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.08); padding: 1.8rem 1.5rem; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; height: 280px; display: flex; flex-direction: column; border: 2px solid transparent; border-top: 4px solid var(--primary); width: 100%; }
.akd-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px color-mix(in srgb, var(--primary) 18%, transparent); border-color: var(--primary); }
.akd-card:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.akd-singkatan { font-size: 1.5rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: .2rem; letter-spacing: .5px; }
.akd-nama { font-size: .78rem; font-weight: 600; color: var(--text-muted-theme, #6c757d); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .8rem; }
.akd-desc { font-size: .83rem; color: #555; line-height: 1.65; flex-grow: 1; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.akd-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border-theme, #dee2e6); }
.akd-count { font-size: .8rem; color: var(--text-muted-theme, #6c757d); }
.akd-cta { font-size: .78rem; font-weight: 600; color: var(--primary); opacity: 0; transition: opacity .3s ease; padding: .25rem .8rem; border: 1.5px solid var(--primary); border-radius: 20px; white-space: nowrap; }
.akd-card:hover .akd-cta { opacity: 1; }

/* ── Anggota DPRD Card ── */
.anggota-dprd-card { background: #fff; border-radius: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.07); padding: 1.4rem 1rem; text-align: center; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; border: 2px solid transparent; }
.anggota-dprd-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 15%, transparent); border-color: color-mix(in srgb, var(--primary) 15%, white); }

/* ── Member Card (popup) ── */
.member-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.07); padding: 1.2rem .8rem; text-align: center; transition: transform .3s ease, box-shadow .3s ease; }
.member-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 12%, transparent); }
.member-photo { width: 80px; height: 80px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 8%, white); display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; overflow: hidden; border: 3px solid var(--border-theme, #dee2e6); flex-shrink: 0; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; }
.member-photo i { font-size: 1.8rem; color: var(--primary); opacity: .4; }
.member-name { font-size: .85rem; font-weight: 700; color: #1a1a2e; line-height: 1.35; margin-bottom: .4rem; }
.member-jabatan { background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 20px; display: inline-block; }

/* ── Galeri publik ── */
.galeri-publik-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.galeri-publik-item { position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; aspect-ratio: 1 / 1; background: color-mix(in srgb, var(--primary) 8%, white); }
.galeri-publik-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.galeri-publik-item:hover img { transform: scale(1.08); }
.galeri-publik-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 45%, transparent); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; border-radius: 10px; }
.galeri-publik-overlay i { color: #fff; font-size: 1.6rem; }
.galeri-publik-item:hover .galeri-publik-overlay, .galeri-publik-item:focus .galeri-publik-overlay { opacity: 1; }

/* ── Pagination ── */
.pagination .page-link { color: var(--primary); border-color: var(--border-theme, #dee2e6); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-link:hover { background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); }

/* ── Lightbox ── */
#lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; display: none; align-items: center; justify-content: center; }
#lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
#lightbox-overlay .close-btn { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }

/* ── Scroll to top ── */
#scrollTop { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 40%, transparent); transition: all .3s ease; z-index: 999; font-size: 1rem; }
#scrollTop:hover { background: var(--primary-hover); transform: translateY(-3px); }
#scrollTop.show { display: flex; }

/* ── AOS ── */
[data-aos] { transition-duration: .7s !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section { height: 85vh; }
    .hero-content { padding: 0 5%; align-items: center; text-align: center; }
    .hero-content .d-flex { flex-direction: column; align-items: center; }
    .hero-logo { height: 90px !important; }
    .gallery-grid { columns: 2; }
    .py-section { padding: 3.5rem 0; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 1rem; margin-bottom: 1rem; }
    .stat-item:last-child { border-bottom: none; }
    .sambutan-inner { flex-direction: column !important; gap: 1rem !important; }
    .sambutan-judul { flex: unset !important; }
    @media (max-width: 576px) { .hero-logo { height: 70px !important; } }
}
@media (max-width: 576px) {
    .hero-logo { height: 70px !important; }
    .section-title { font-size: 1.5rem; }
    .gallery-grid { columns: 1; }
    .galeri-publik-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .cta-card { padding: 1.8rem 1.2rem; }
    .cta-watermark { display: none; }
}
