/*
Theme Name: VEGA BPBD News
Theme URI: https://vegaindonesia.com
Description: Native WordPress theme untuk Website BPBD Kota Magelang dengan fokus portal berita dan informasi kebencanaan.
Author: Kristali Vega
Author URI: https://kristalivega.com
Template: twentytwentyfive
Version: 1.0.0
Text Domain: vega-bpbd-news
*/

/* SEPUTAR BPBD */
.vega-seputar-bpbd {
    width: 100%;
    box-sizing: border-box;
    padding: 48px 5vw;
}

.vega-seputar-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.vega-seputar-title {
    margin: 0 0 28px;
    text-align: center;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.vega-seputar-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.vega-seputar-grid > section {
    min-width: 0;
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    background: #fff;
}

.vega-seputar-grid h3 {
    margin: 0 0 18px;
    font-size: 22px;
}

.vega-berita-utama .wp-block-post-featured-image {
    margin: 0 0 18px;
}

.vega-berita-utama .wp-block-post-featured-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.vega-berita-utama .wp-block-post-title {
    margin: 8px 0;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
}

.vega-berita-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,.12);
}

.vega-berita-tabs strong {
    border-bottom: 3px solid currentColor;
    padding-bottom: 9px;
}

.vega-berita-list-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,.10);
}

.vega-berita-list-item .wp-block-post-title {
    margin: 5px 0;
    font-size: 18px;
    line-height: 1.3;
}

.vega-agenda-dates {
    margin: 18px 0;
    padding: 12px 8px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,.10);
    border-bottom: 1px solid rgba(0,0,0,.10);
}

.vega-agenda-calendar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin: 20px 0;
    border: 1px dashed rgba(0,0,0,.18);
    border-radius: 8px;
    font-size: 42px;
}


/* SEPUTAR BPBD - FORCE GRID */
body.home.page-id-2730 .vega-seputar-bpbd .vega-seputar-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 24px !important;
}

body.home.page-id-2730 .vega-seputar-bpbd .vega-seputar-grid > section {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
}


/* HOMEPAGE - FULL WIDTH CONTENT WRAPPER */
.home .entry-content.wp-block-post-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .entry-content.wp-block-post-content > * {
    max-width: none !important;
}


/* HOMEPAGE - RELEASE MAIN CONSTRAINT */
.home main.wp-block-group.is-layout-constrained {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* HOMEPAGE - REMOVE GLOBAL PADDING AND CONSTRAINT */
.home main.wp-block-group.has-global-padding.is-layout-constrained {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.home main.wp-block-group.has-global-padding.is-layout-constrained > .wp-block-group.alignfull {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}




/* HERO CONTROLS */
.vega-bpbd-hero-controls .vega-bpbd-prev {
    order: 1 !important;
}

.vega-bpbd-hero-controls .vega-bpbd-next {
    order: 2 !important;
}

.vega-bpbd-hero-controls .vega-bpbd-progress {
    order: 3 !important;
}

.vega-bpbd-hero-controls .vega-bpbd-counter {
    order: 4 !important;
}

.vega-bpbd-hero-controls {
    margin-top: 1vw !important;
}

@media (min-width: 768px) {
    .vega-bpbd-hero-controls {
        margin-top: 2.5vw !important;
    }
}

/* HERO IDENTITY - BPBD + SITE TAGLINE */
.vega-bpbd-hero-identity {
    position: relative;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
    padding: 0 20px 5vw !important;
}

.vega-bpbd-hero-identity-title {
    font-size: clamp(32px, 4vw, 60px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-shadow: 0 2px 8px rgba(0,0,0,.65);
}

.vega-bpbd-hero-identity-tagline {
    margin-top: 8px;
    font-size: clamp(20px, 2.2vw, 32px) !important;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0,0,0,.65);
}

/* HERO IDENTITY - MOBILE VISIBILITY */

/* HOMEPAGE - REMOVE GAP BETWEEN HEADER AND HERO */
body.home.page-id-2730 main#wp--skip-link--target {
    margin-top: 0 !important;
}


/* =========================================================
   VEGA BPBD NEWS — BERITA TERBARU
   ========================================================= */

.home .vega-featured-news {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 40px 5vw !important;
    box-sizing: border-box !important;
    background: #efefef !important;
}

.home .vega-featured-news-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.home .vega-featured-news-inner > h2 {
    margin: 0 0 28px !important;
    text-align: center !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

.home .vega-featured-news-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    margin: 0 !important;
}

.home .vega-featured-news-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}

.home .vega-featured-news-image {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #dddddd !important;
}

.home .vega-featured-news-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform .3s ease !important;
}

.home .vega-featured-news-image:hover img {
    transform: scale(1.03) !important;
}

.home .vega-featured-news-card-body {
    padding: 18px 20px 22px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.home .vega-featured-news-date {
    margin: 0 0 8px !important;
    color: #555555 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.home .vega-featured-news-card h3 {
    margin: 0 !important;
    font-size: clamp(19px, 2vw, 24px) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.home .vega-featured-news-card h3 a {
    color: #0066cc !important;
    text-decoration: none !important;
}

.home .vega-featured-news-card h3 a:hover {
    color: #004f9e !important;
    text-decoration: underline !important;
}

.home .vega-latest-news-more {
    margin: 32px auto 0 !important;
    text-align: center !important;
}

.home .vega-latest-news-more a {
    display: inline-block !important;
    padding: 10px 22px !important;
    background: #0066cc !important;
    color: #ffffff !important;
    border: 1px solid #0066cc !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.home .vega-latest-news-more a:hover {
    background: #ffffff !important;
    color: #0066cc !important;
}

@media (max-width: 767px) {
    .home .vega-featured-news {
        padding: 32px 5vw !important;
    }

    .home .vega-featured-news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* PORTAL INFORMASI BENCANA — CARDS */
.home .vega-portal-bencana .wp-block-column {
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 8px !important;
    padding: 28px 24px !important;
    box-sizing: border-box !important;
    margin: 12px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}

.home .vega-portal-bencana .wp-block-column h3 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: #0066cc !important;
}

.home .vega-portal-bencana .wp-block-column p {
    margin-bottom: 12px !important;
}

.home .vega-portal-bencana .wp-block-column p:last-child {
    margin-bottom: 0 !important;
}

.home .vega-portal-bencana .wp-block-column a {
    display: inline-block !important;
    padding: 8px 16px !important;
    border: 1px solid #0066cc !important;
    background: #ffffff !important;
    color: #0066cc !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.home .vega-portal-bencana .wp-block-column a:hover {
    background: #0066cc !important;
    color: #ffffff !important;
}


.home .vega-portal-bencana .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}




/* INFO KEBENCANAAN — SMAL EMBED */
.home .vega-smal {
    background: #DCEEFF !important;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

.home .vega-smal .vega-app-embed,
.home .vega-kentongan .vega-app-embed {
    width: 100% !important;
    height: 500px !important;
    overflow: hidden !important;
}

.home .vega-smal .vega-app-embed iframe,
.home .vega-kentongan .vega-app-embed iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* SMAL — BUTTON */
.home .vega-smal > .wp-block-group > p:last-child a,
.home .vega-kentongan > .wp-block-group > p:last-child a,
.home .vega-portal-bencana .wp-block-column > p:last-child a {
    display: inline-block !important;
    padding: 10px 22px !important;
    background: #0066cc !important;
    color: #ffffff !important;
    border: 1px solid #0066cc !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

.home .vega-smal > .wp-block-group > p:last-child a:hover,
.home .vega-kentongan > .wp-block-group > p:last-child a:hover,
.home .vega-portal-bencana .wp-block-column > p:last-child a:hover {
    background: #ffffff !important;
    color: #0066cc !important;
}


/* PORTAL INFORMASI BENCANA — BACKGROUND */
.home .vega-portal-bencana {
    background: #efefef !important;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}


/* KENTONGAN — BACKGROUND & REMOVE TOP MARGIN */
.home .vega-kentongan {
    background: #FFE0B2 !important;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

.home .vega-kentongan .wp-block-columns {
    display: flex !important;
    width: 100% !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.home .vega-kentongan .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
}

.home .vega-kentongan .wp-block-column img {
    display: block !important;
    max-width: 260px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

.home .vega-kentongan .wp-block-column h3 {
    margin-top: 20px !important;
    margin-bottom: 12px !important;
}

.home .vega-kentongan .wp-block-column p {
    margin-bottom: 12px !important;
}


/* HOMEPAGE — EMPTY PARAGRAPH */
.home .entry-content > p:empty {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
}

/* LAYANAN BPBD — PREVENT BUTTON OVERLAP */
.home .wp-block-buttons.is-content-justification-center {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
}

.home .wp-block-buttons.is-content-justification-center > .wp-block-button {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: static !important;
}

.home .wp-block-buttons.is-content-justification-center > .wp-block-button > .wp-block-button__link {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    padding: 10px 22px !important;
    background: #0066cc !important;
    color: #ffffff !important;
    border: 1px solid #0066cc !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

.home .wp-block-buttons.is-content-justification-center > .wp-block-button > .wp-block-button__link:hover {
    background: #ffffff !important;
    color: #0066cc !important;
}


/* GLOBAL FOOTER */
footer.wp-block-template-part {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer.wp-block-template-part > .wp-block-group {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 40px 5vw 30px !important;
    box-sizing: border-box !important;
    background: #222222 !important;
    color: #ffffff !important;
}

footer.wp-block-template-part > .wp-block-group > .wp-block-group {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer.wp-block-template-part h2,
footer.wp-block-template-part p {
    margin: 0 !important;
    padding: 0 !important;
}

footer.wp-block-template-part hr {
    margin: 20px 0 !important;
}

footer.wp-block-template-part a {
    color: #b0b0b0 !important;
}

footer.wp-block-template-part a[href^="https://wa.me/"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: #25D366 !important;
    color: #ffffff !important;
    border: 1px solid #25D366 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

footer.wp-block-template-part a[href^="https://wa.me/"] .vega-wa-icon {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    vertical-align: middle !important;
    fill: currentColor !important;
}

footer.wp-block-template-part a[href^="https://wa.me/"]:hover {
    background: #1ebe5d !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

footer.wp-block-template-part a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

footer.wp-block-template-part a.vega-back-to-top {
    display: inline-block !important;
    padding: 10px 22px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

footer.wp-block-template-part a.vega-back-to-top:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

footer.wp-block-template-part p.has-text-align-center:last-child {
    color: #9e9e9e !important;
}

/* ACCESSIBILITY — PANEL */
.vega-a11y-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    padding: 10px 16px;
    background: #222222;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.vega-a11y-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vega-a11y-panel {
    position: fixed;
    right: 16px;
    bottom: 66px;
    z-index: 99999;
    width: min(320px, calc(100vw - 32px));
    padding: 20px;
    box-sizing: border-box;
    background: #ffffff;
    color: #111111;
    border: 2px solid #222222;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}

.vega-a11y-panel[hidden] {
    display: none;
}

.vega-a11y-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.vega-a11y-panel button {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 10px 12px;
    background: #f5f5f5;
    color: #111111;
    border: 1px solid #777777;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.vega-a11y-panel button:hover,
.vega-a11y-panel button:focus-visible {
    background: #222222;
    color: #ffffff;
}

.vega-a11y-panel .vega-a11y-close {
    margin-top: 12px;
}

body.vega-a11y-keyboard *:focus-visible {
    outline: 3px solid #ff6700 !important;
    outline-offset: 3px !important;
}

body.vega-a11y-underline a {
    text-decoration: underline !important;
}

body.vega-a11y-grayscale > *:not(.vega-a11y-ui) {
    filter: grayscale(100%);
}

body.vega-a11y-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

body.vega-a11y-contrast > *:not(.vega-a11y-ui) {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.vega-a11y-contrast > *:not(.vega-a11y-ui) a {
    color: #ffff00 !important;
}

body.vega-a11y-contrast > *:not(.vega-a11y-ui) button,
body.vega-a11y-contrast > *:not(.vega-a11y-ui) input,
body.vega-a11y-contrast > *:not(.vega-a11y-ui) select,
body.vega-a11y-contrast > *:not(.vega-a11y-ui) textarea {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 600px) {
    .vega-a11y-toggle {
        right: 12px;
        bottom: 12px;
        padding: 9px 12px;
        font-size: 14px;
        gap: 6px;
    }

    .vega-a11y-icon {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }

    .vega-a11y-panel {
        right: 12px;
        bottom: 62px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        padding: 16px;
    }
}


/* BERITA TERBARU — BUTTON LIHAT SEMUA BERITA */
.home .vega-latest-news-more a {
    display: inline-block !important;
    padding: 10px 22px !important;
    background: #0066cc !important;
    color: #ffffff !important;
    border: 1px solid #0066cc !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

.home .vega-latest-news-more a:hover {
    background: #ffffff !important;
    color: #0066cc !important;
}
