/* ===============================
   HERO BASE
================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    color: var(--hero-ink);
    --hero-ink: #0f172a;
    --hero-muted: #475569;
    --hero-surface: rgba(255, 255, 255, 0.96);
    --hero-surface-strong: rgba(255, 255, 255, 1);
    --hero-border: rgba(15, 23, 42, 0.12);
    --hero-accent: #1fa2a6;
    --hero-accent-strong: #148b8f;
    --hero-shadow: 0 1px 26px rgba(15, 23, 42, 0.1);
    --hero-blur: blur(8px);
    --hero-video-fallback: #96e2f3;
    background: linear-gradient(180deg,
            #a8e9f4 0%,
            #c9f1ec 45%,
            #eef6e9 100%);
}

[data-bs-theme="dark"] .hero {
    --hero-ink: #e2e8f0;
    --hero-muted: #9fb2c7;
    --hero-surface: rgba(10, 16, 24, 0.92);
    --hero-surface-strong: rgba(10, 16, 24, 0.98);
    --hero-border: rgba(148, 163, 184, 0.22);
    --hero-accent: #1fa2a6;
    --hero-accent-strong: #19b0b4;
    --hero-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
    --hero-blur: blur(10px);
    --hero-video-fallback: #000415;
}

/* ===============================
   VIDEO BACKGROUND
================================ */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: var(--hero-video-fallback);
    object-fit: cover;
    object-position: center bottom;
    z-index: 0;
}

/* fallback kalau video gagal load */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            #a8e9f4 0%,
            #c9f1ec 45%,
            #eef6e9 100%);
    z-index: -1;
}

/* ===============================
   OVERLAY (OPTIONAL)
================================ */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ===============================
   CONTENT WRAPPER
================================ */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 0 2rem;
}

/* ===============================
   TOP BAR
================================ */
.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 25px;
}

.hero-logo {
    height: 42px;
    width: auto;
}

.hero-logos {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.hero-logo-secondary {
    width: auto;
    object-fit: contain;
}

.hero-top-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===============================
   BADGES & BUTTONS
================================ */
.hero-badge,
.hero-theme-toggle,
.hero-weather-chip {
    background: var(--hero-surface);
    backdrop-filter: var(--hero-blur);
    -webkit-backdrop-filter: var(--hero-blur);
    border-radius: 999px;
    border: 1px solid var(--hero-border);
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--hero-ink);
}

.hero-social {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.hero-social-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-surface);
    border: 1px solid var(--hero-border);
    color: var(--hero-accent);
    font-size: 0.9rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.hero-social-link:hover {
    transform: translateY(-1px);
    background: var(--hero-surface-strong);
    color: var(--hero-accent-strong);
}

.hero-theme-toggle {
    cursor: pointer;
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.hero-theme-toggle:hover {
    transform: translateY(-1px);
    background: var(--hero-surface-strong);
}

.hero-theme-toggle i {
    font-size: 0.95rem;
    color: #1fa2a6;
}

.hero-weather-chip i {
    color: #1fa2a6;
}

.hero-theme-icon {
    display: none;
}

[data-bs-theme="dark"] .hero-theme-icon--dark {
    display: inline-block;
}

[data-bs-theme="light"] .hero-theme-icon--light {
    display: inline-block;
}

/* ===============================
   CENTER CONTENT
================================ */
.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
}

.hero-logo-main {
    max-width: min(620px, 95vw);
    height: auto;
}

/* ===============================
   SEARCH BAR
================================ */
.hero-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.45rem 0.55rem;
    width: min(920px, 94vw);
    border: 1px solid var(--hero-border);
    box-shadow: var(--hero-shadow);
    /* backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); */
}

.hero-search i {
    color: var(--hero-muted);
}

.hero-search input {
    border: 0;
    outline: none;
    flex: 1;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--hero-ink);
}

.hero-search input::placeholder {
    color: color-mix(in srgb, var(--hero-muted) 80%, transparent);
}

.hero-search-btn {
    border: 0;
    background: var(--hero-accent);
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.hero-search-btn:hover {
    transform: translateY(-1px);
    background: var(--hero-accent-strong);
    box-shadow: 0 16px 28px rgba(10, 166, 180, 0.4);
}

[data-bs-theme="dark"] .hero-search {
    background: rgba(10, 16, 24, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
    /* backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); */
}

[data-bs-theme="dark"] .hero-search i {
    color: #9fb2c7;
}

[data-bs-theme="dark"] .hero-search input {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hero-search input::placeholder {
    color: rgba(159, 178, 199, 0.78);
}

[data-bs-theme="dark"] .hero-search-btn {
    background: rgba(31, 162, 166, 0.92);
}

[data-bs-theme="dark"] .hero-search-btn:hover {
    background: rgba(25, 176, 180, 0.95);
    box-shadow: 0 10px 24px rgba(10, 166, 180, 0.35);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .hero-logo {
        height: 40px;
    }

    .hero-logo-main {
        max-width: 85vw;
    }
}

@media (max-width: 576px) {
    .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-top-right {
        align-self: flex-end;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .hero-search i {
        align-self: center;
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-search-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
}

.weather-popover {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.weather-popover-title {
    font-weight: 700;
    color: var(--front-deep);
}

.weather-popover-row {
    color: var(--front-muted);
}

.weather-popover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    font-size: 0.8rem;
    color: var(--front-muted);
}

[data-bs-theme="dark"] .hero-weather-chip {
    background: rgba(15, 23, 32, 0.92);
    border-color: rgba(148, 163, 184, 0.2);
    color: #a7f3f3;
}

[data-bs-theme="dark"] .hero-weather-chip-temp,
[data-bs-theme="dark"] .weather-popover-title {
    color: #e6eef5;
}

[data-bs-theme="dark"] .weather-popover-row,
[data-bs-theme="dark"] .weather-popover-meta {
    color: #9fb1c7;
}

.floating-menu {
    margin: 1rem auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: var(--front-shadow);
    backdrop-filter: blur(2px);
    transition: all 0.4s ease;
}

.floating-menu-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1055;
    transition: opacity 0.25s ease;
}

.floating-menu-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.floating-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.22);
}

[data-bs-theme="dark"] .floating-menu-overlay {
    background: rgba(8, 12, 18, 0.5);
}

.floating-menu-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 780px);
    padding: 2.5rem 2.25rem 2.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 28px 60px rgba(12, 47, 66, 0.2);
    max-height: calc(100vh - 140px);
    overflow: hidden;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transform-origin: center bottom;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.floating-menu-modal.is-open .floating-menu-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.floating-menu-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-menu-panel-actions .floating-menu-back {
    margin-right: auto;
}

.floating-menu-panel-actions .floating-menu-close {
    margin-left: auto;
}

.floating-menu-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--front-ink);
}

.floating-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(31, 162, 166, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--front-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(15, 41, 64, 0.12);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.floating-menu-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(31, 162, 166, 0.2);
    background: var(--front-primary);
    color: #fff;
}

.floating-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 1rem 1.5rem;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 0.35rem;
}

.floating-menu-grid .menu-item {
    width: 100%;
    text-align: center;
}

.floating-menu-grid .menu-label {
    text-align: center;
    width: 100%;
    line-height: 1.25;
}

body.floating-menu-open {
    overflow: hidden;
}

[data-bs-theme="dark"] .floating-menu {
    background: rgba(18, 26, 36, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .floating-menu-panel {
    background: rgba(14, 21, 30, 0.84);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

[data-bs-theme="dark"] .floating-menu-title {
    color: #f8fafc;
}

[data-bs-theme="dark"] .floating-menu-close {
    background: rgba(15, 23, 32, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
    color: #f8fafc;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.menu-item {
    width: 86px;
    text-decoration: none;
    color: var(--front-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

[data-bs-theme="dark"] .menu-item {
    color: #e2e8f0;
}

.menu-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(31, 162, 166, 0.15);
    box-shadow: 0 12px 20px rgba(31, 42, 68, 0.16);
    margin-inline-end: 0.1rem;
}

[data-bs-theme="dark"] .menu-icon {
    /* background: rgba(15, 23, 32, 0.1);
    border-color: rgba(148, 163, 184, 0.2); */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scroll {
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: var(--front-light);
    font-size: 1.5rem;
    animation: bounce 1.8s infinite;
}

.has-scrolled .floating-menu {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: auto;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
    box-shadow: var(--front-shadow);
    width: fit-content;
    max-width: 100%;
    margin: 1rem auto 0;
}

.has-scrolled .menu-item {
    width: 86px;
    font-size: 0.85rem;
}

.has-scrolled .menu-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

/* === Section Hero END === */

.section {
    padding: 1rem 0;
}

[data-bs-theme="dark"] .section-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .section-eyebrow {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .section-link {
    color: #a7f3d0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--front-primary);
}

.section-title {
    font-family: var(--front-font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-top: 0.5rem;
}

.section-link {
    color: var(--front-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-hero-slider {
    padding-top: 1.5rem;
}

.nature-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 162, 166, 0.16);
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.94),
            rgba(31, 162, 166, 0.08),
            rgba(120, 140, 255, 0.08));
    box-shadow: 0 18px 36px rgba(15, 41, 64, 0.12);
    backdrop-filter: blur(16px);
}

.nature-panel-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nature-panel-item--center {
    align-items: center;
    text-align: center;
}

.nature-panel-location {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.nature-thumb {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(31, 162, 166, 0.2);
    box-shadow: 0 12px 24px rgba(31, 42, 68, 0.14);
    flex-shrink: 0;
}

.nature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nature-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--front-muted);
}

.nature-place {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--front-ink);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nature-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--front-muted);
}

.nature-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--front-ink);
}

.nature-value span {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.2rem;
    color: var(--front-muted);
}

.nature-sub {
    font-size: 0.85rem;
    color: var(--front-muted);
}

.nature-weather {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.nature-weather-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 162, 166, 0.16);
    color: var(--front-primary);
    font-size: 1.4rem;
}

.nature-weather-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.nature-weather-text strong {
    font-size: 1.05rem;
    color: var(--front-ink);
}

[data-bs-theme="dark"] .nature-panel {
    background: linear-gradient(120deg,
            rgba(15, 23, 32, 0.96),
            rgba(31, 162, 166, 0.14),
            rgba(44, 82, 130, 0.18));
    border-color: rgba(31, 162, 166, 0.2);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .nature-date,
[data-bs-theme="dark"] .nature-label,
[data-bs-theme="dark"] .nature-sub {
    color: rgba(226, 232, 240, 0.7);
}

[data-bs-theme="dark"] .nature-place,
[data-bs-theme="dark"] .nature-value,
[data-bs-theme="dark"] .nature-weather-text strong {
    color: #f8fafc;
}

[data-bs-theme="dark"] .nature-weather-icon {
    background: rgba(31, 162, 166, 0.25);
    color: #a7f3d0;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.08);
    }
}

@keyframes liveBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

@media (max-width: 992px) {
    .hero-top {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.65rem;
    }

    .hero-top-right {
        justify-content: center;
        align-self: center;
        width: 100%;
    }

    .floating-menu {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.6rem;
        width: min(100%, 520px);
        border-radius: 26px;
        padding: 0.8rem;
    }

    .menu-item {
        width: auto;
        font-size: 0.78rem;
    }

    .menu-label {
        font-size: 0.72rem;
    }

    .menu-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .nature-panel {
        grid-template-columns: 1fr 1fr;
    }

    .nature-panel-location {
        grid-column: span 2;
    }

    .nature-panel-item--center {
        align-items: flex-start;
        text-align: left;
    }

    .nature-weather-text {
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
    }

    .hero-search-btn {
        width: 100%;
    }

    .floating-menu {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: calc(100% - 2rem);
        margin-inline: 1rem;
    }

    .has-scrolled .floating-menu {
        width: calc(100% - 2rem);
        bottom: 1rem;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .nature-panel {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .nature-panel-location {
        flex-direction: column;
        align-items: flex-start;
    }

    .nature-value {
        font-size: 1.75rem;
    }

    .menu-item {
        width: auto;
        font-size: 0.7rem;
    }

    .menu-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .menu-label {
        font-size: 0.68rem;
    }

    .floating-menu {
        width: calc(100% - 2rem);
        margin-inline: 1rem;
    }
}

/* === Section Layanan Publik START === */
.section-layanan-publik {
    padding: 2.5rem 0 1rem 0;
}

.layanan-publik-slider {
    width: 100%;
    overflow: hidden;
}

.layanan-publik-slider .swiper-slide {
    height: auto;
    display: flex;
}

.layanan-publik-card {
    height: 100%;
    width: 100%;
}

.layanan-publik-media {
    height: auto;
    aspect-ratio: 16 / 9;
}

.layanan-publik-body p a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.layanan-publik-body {
    padding: 1rem 1.1rem 1.25rem;
}

.layanan-publik-card {
    min-height: 100%;
}

.layanan-publik-desc {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.layanan-publik-slider .swiper-pagination {
    position: static;
    margin-top: 0.1rem;
}

@media (max-width: 991.98px) {
    .section-layanan-publik {
        padding: 2rem 0 0.75rem 0;
    }

    .layanan-publik-body {
        padding: 0.95rem 1rem 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .section-layanan-publik .card-body {
        padding: 1.25rem;
    }

    .layanan-publik-body p {
        font-size: 0.95rem;
    }
}

[data-bs-theme="dark"] .layanan-publik-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* === Section Layanan Publik END === */

/* === Section BKB START === */
/* Berita show home slider */
.berita-home-slider {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    min-height: 320px;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 620px;
    position: relative;
}

.berita-home-slider .swiper-wrapper {
    align-items: stretch;
    height: 100%;
}

.berita-home-slider .swiper-slide {
    height: 100%;
    display: flex;
}

.berita-home-slide {
    display: block;
    position: relative;
    height: 100%;
    min-height: 320px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    border-radius: 10px;
    flex: 1;
}

.berita-home-slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.berita-home-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.berita-home-slide-overlay {
    position: absolute;
    inset: 0;
    background: none;
    z-index: 1;
}

.berita-home-slide-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.2rem 1.75rem 1.5rem;
    z-index: 2;
    color: #fff;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0) 0%,
            rgba(15, 23, 42, 0.35) 35%,
            rgba(15, 23, 42, 0.62) 100%);
}

.berita-home-slide-content p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    writing-mode: horizontal-tb;
    white-space: normal;
    color: #fff;
}

.berita-home-slide-date {
    font-size: 0.85rem;
    opacity: 0.85;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.berita-home-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.berita-home-slider .swiper-pagination-bullet-active {
    background: #1fa2a6;
}

@media (max-width: 768px) {
    .berita-home-slide {
        min-height: 240px;
    }

    .berita-home-slide-content {
        padding: 1.5rem;
    }

    .berita-home-slide-content h3 {
        font-size: 1.1rem;
    }

    .berita-home-slider {
        aspect-ratio: 4 / 3;
        max-height: 420px;
    }
}

/* Section BKB layout */
.section-bkb {
    --bkb-gap: 1rem;
    --bkb-gpr-min: 380px;
    --bkb-bahan-min: 220px;
    --bkb-stack-height: 600px;
}

.section-bkb .bkb-stack {
    height: auto;
    max-height: none;
}

.section-bkb .bkb-card--half {
    overflow: hidden;
}

.section-bkb .bkb-card--gpr {
    min-height: var(--bkb-gpr-min);
    overflow: hidden;
}

.section-bkb .bkb-card--bahan {
    min-height: var(--bkb-bahan-min);
    overflow: hidden;
    border: 4px solid #1fa2a6;
}

.section-bkb #gpr-kominfo-widget-container {
    overflow: hidden;
    min-height: var(--bkb-gpr-min);
}

.section-bkb #gpr-kominfo-widget-container iframe,
.section-bkb #gpr-kominfo-widget-container embed,
.section-bkb #gpr-kominfo-widget-container object {
    width: 100% !important;
    height: 100% !important;
    min-height: var(--bkb-gpr-min) !important;
}

.section-bkb .bkb-card--half .bahan-pokok {
    max-height: 100%;
    overflow: auto;
}

@media (max-width: 991.98px) {
    .section-bkb {
        --bkb-gpr-min: 240px;
        --bkb-bahan-min: 200px;
        --bkb-stack-height: auto;
    }

    .section-bkb .bkb-stack,
    .section-bkb .bkb-card--half {
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .section-bkb {
        --bkb-gpr-min: 220px;
        --bkb-bahan-min: 180px;
        --bkb-stack-height: auto;
    }
}

@media (min-width: 992px) {
    .section-bkb .bkb-stack {
        height: var(--bkb-stack-height);
        max-height: var(--bkb-stack-height);
    }

    .section-bkb .bkb-card--gpr {
        min-height: calc(var(--bkb-stack-height) * 0.66);
    }

    .section-bkb .bkb-card--bahan {
        min-height: calc(var(--bkb-stack-height) * 0.34);
        border: 4px solid #1fa2a6;
    }

    .section-bkb .berita-home-slider,
    .section-bkb .berita-home-slider .swiper-wrapper {
        height: var(--bkb-stack-height);
        max-height: var(--bkb-stack-height);
        aspect-ratio: auto;
    }

    .section-bkb .berita-home-slide {
        min-height: 0;
    }
}

/* Layanan home grid */
.layanan-home-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
}

.layanan-home-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--front-ink);
}

.layanan-home-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 41, 64, 0.12);
}

.layanan-home-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.layanan-home-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--front-ink);
}

[data-bs-theme="dark"] .layanan-home-item {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .layanan-home-icon {
    background: rgba(15, 23, 32, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1200px) {
    .layanan-home-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .layanan-home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }

    .layanan-home-icon {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 576px) {
    .layanan-home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .layanan-home-title {
        font-size: 0.9rem;
    }
}

/* Bahan pokok */
.bahan-pokok {
    display: grid;
    gap: 0.75rem;
}

.bahan-pokok-slider {
    width: 100%;
    overflow: hidden;
}

.bahan-pokok-slider .swiper-slide {
    display: flex;
}

.bahan-pokok-slider .swiper-pagination-bullet {
    background: rgba(31, 162, 166, 0.3);
    opacity: 1;
}

.bahan-pokok-slider .swiper-pagination-bullet-active {
    background: #1fa2a6;
}

.bahan-pokok-list {
    display: grid;
    gap: 0.75rem;
    width: 100%;
}

.bahan-pokok-item {
    border: 1px solid rgba(31, 162, 166, 0.28);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "pasar price"
        "title price";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    width: 100%;
}

.bahan-pokok-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    grid-area: title;
}

.bahan-pokok-pasar {
    font-weight: 500;
    font-size: 0.8rem;
    color: #111827;
    grid-area: pasar;
    text-transform: none;
}

.bahan-pokok-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.bahan-pokok-price {
    font-weight: 700;
    color: #0f766e;
    font-size: 1.05rem;
    grid-area: price;
    justify-self: end;
}

.bahan-pokok-state {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.bahan-pokok-empty {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

[data-bs-theme="dark"] .bahan-pokok-item {
    background: #0f1720;
    border-color: rgba(31, 162, 166, 0.38);
}

[data-bs-theme="dark"] .bahan-pokok-title {
    color: #f3f4f6;
}

[data-bs-theme="dark"] .bahan-pokok-pasar {
    color: #f3f4f6;
}

[data-bs-theme="dark"] .bahan-pokok-meta,
[data-bs-theme="dark"] .bahan-pokok-state,
[data-bs-theme="dark"] .bahan-pokok-empty {
    color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="dark"] .bahan-pokok-price {
    color: #5eead4;
}

/* === Section BKB END === */

/* === Section Berita START === */
/* Berita terbaru slider */
.berita-terbaru-slider {
    width: 100%;
    overflow: hidden;
    --berita-card-radius: 12px;
    --berita-card-gap: 0.6rem;
    --berita-body-pad: 1.1rem 1.25rem 1.4rem;
    --berita-title-size: 1rem;
    --berita-date-size: 0.85rem;
}

.swiper {
    background: transparent !important;
    box-shadow: 0 0 0 rgba(15, 41, 64, 0.0) !important;
}

.berita-terbaru-slider .swiper-slide {
    height: auto;
    display: flex;
}

.berita-terbaru-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--berita-card-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.berita-terbaru-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.berita-terbaru-media {
    display: block;
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.berita-terbaru-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.berita-terbaru-body {
    padding: var(--berita-body-pad);
    display: flex;
    flex-direction: column;
    gap: var(--berita-card-gap);
    flex: 1;
}

.berita-terbaru-date {
    font-size: var(--berita-date-size);
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.berita-terbaru-body h3 {
    font-size: var(--berita-title-size);
    font-weight: 550;
    margin: 0;
    line-height: 1.45;
}

.berita-terbaru-body h3 a {
    color: #1f2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .berita-terbaru-slider {
        --berita-card-radius: 10px;
        --berita-body-pad: 1rem 1.1rem 1.25rem;
        --berita-title-size: 0.98rem;
    }
}

@media (max-width: 991.98px) {
    .berita-terbaru-slider {
        --berita-card-radius: 10px;
        --berita-card-gap: 0.5rem;
        --berita-body-pad: 0.95rem 1rem 1.15rem;
        --berita-title-size: 0.95rem;
        --berita-date-size: 0.82rem;
    }

    .berita-terbaru-media {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 767.98px) {
    .berita-terbaru-slider {
        --berita-card-radius: 12px;
        --berita-body-pad: 0.9rem 0.95rem 1.05rem;
        --berita-title-size: 0.92rem;
        --berita-date-size: 0.8rem;
    }

    .berita-terbaru-body h3 a {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 575.98px) {
    .berita-terbaru-slider {
        --berita-card-radius: 12px;
        --berita-body-pad: 0.85rem 0.9rem 1rem;
        --berita-title-size: 0.9rem;
        --berita-date-size: 0.78rem;
    }

    .berita-terbaru-media {
        aspect-ratio: 3 / 2;
    }

    .berita-terbaru-slider .swiper-wrapper {
        padding-bottom: 1.75rem;
    }
}

.berita-terbaru-body h3 a:hover {
    color: #1fa2a6;
}

.berita-terbaru-slider .swiper-pagination-bullet {
    background: rgba(31, 162, 166, 0.3);
    opacity: 1;
}

.berita-terbaru-slider .swiper-pagination-bullet-active {
    background: #1fa2a6;
}

[data-bs-theme="dark"] .berita-terbaru-card {
    background: #17212d;
    border: 1px solid rgba(115, 115, 115, 0.1);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .berita-terbaru-date {
    color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="dark"] .berita-terbaru-body h3 a {
    color: #f3f4f6;
}

.berita-terbaru-slider .swiper-wrapper {
    align-items: stretch;
    padding-bottom: 2.2rem;
}

/* === Section Berita END === */

/* === Section PKI START === */
.section-pki {
    --pki-gap: 1rem;
    --pki-height: 520px;
}

.section-pki .pki-stack {
    height: auto;
}

.section-pki .pki-card--full,
.section-pki .pki-card--half {
    height: auto;
    max-height: none;
}

.section-pki .pki-card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-pki .pki-scroll {
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    flex: 1 1 auto;
    min-height: 0;
}

.section-pki .infografis-home-slider {
    flex: 1 1 auto;
    min-height: 0;
}

/* Agenda calendar */
.agenda-calendar {
    background: linear-gradient(180deg, rgba(31, 162, 166, 0.08), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 1rem 1rem 0.75rem;
    margin-bottom: 1rem;
    flex: 0 0 auto;
}

.agenda-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.agenda-month {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--front-ink);
}

.agenda-nav {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(31, 162, 166, 0.25);
    background: #fff;
    color: #1fa2a6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(31, 162, 166, 0.15);
}

.agenda-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.agenda-weekdays span {
    text-align: center;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.agenda-day {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.75);
    border: 1px solid transparent;
    background: transparent;
}

.agenda-day.is-empty {
    visibility: hidden;
}

.agenda-day.is-today {
    background: rgba(31, 162, 166, 0.18);
    color: #0f172a;
}

.agenda-day.has-event {
    border: 2px solid #1fa2a6;
    color: #1fa2a6;
}

.agenda-day.is-selected {
    background: #1fa2a6;
    color: #fff;
    border-color: #1fa2a6;
}

.agenda-list {
    display: grid;
    gap: 0.65rem;
    flex: 1 1 auto;
}

.agenda-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 251, 0.92));
    align-items: start;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.agenda-item-body {
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.agenda-item:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 162, 166, 0.25);
}

.agenda-item-date {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(31, 162, 166, 0.08);
    border: 1px solid rgba(31, 162, 166, 0.18);
    width: 100%;
    aspect-ratio: 4 / 3;
}

.agenda-item-date img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agenda-item-day {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.agenda-item-title {
    font-weight: 700;
    color: var(--front-ink);
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

.agenda-item-meta {
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.8rem;
}

[data-bs-theme="dark"] .agenda-calendar {
    background: linear-gradient(180deg, rgba(31, 162, 166, 0.18), rgba(8, 12, 18, 0.9));
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .agenda-month {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .agenda-weekdays {
    color: rgba(226, 232, 240, 0.6);
}

[data-bs-theme="dark"] .agenda-day {
    color: rgba(226, 232, 240, 0.8);
}

[data-bs-theme="dark"] .agenda-item {
    background: linear-gradient(180deg, rgba(14, 20, 30, 0.96), rgba(12, 18, 26, 0.9));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

[data-bs-theme="dark"] .agenda-item-date {
    background: rgba(31, 162, 166, 0.16);
    border-color: rgba(31, 162, 166, 0.28);
}

[data-bs-theme="dark"] .agenda-item-day {
    color: rgba(226, 232, 240, 0.7);
}

[data-bs-theme="dark"] .agenda-item-title {
    color: #f8fafc;
}

[data-bs-theme="dark"] .agenda-item-meta {
    color: rgba(226, 232, 240, 0.65);
}

@media (max-width: 768px) {
    .agenda-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .agenda-item-date {
        font-size: 0.9rem;
        justify-self: start;
    }
}

.section-pki .infografis-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
    color: #0f172a;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.section-pki .infografis-nav::after {
    font-size: 14px;
    font-weight: 700;
}

.section-pki .infografis-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(31, 162, 166, 0.25);
    color: #1fa2a6;
}

.section-pki .infografis-nav:active {
    transform: translateY(0);
}

.section-pki .infografis-nav.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

[data-bs-theme="dark"] .section-pki .infografis-nav {
    background: rgba(15, 23, 32, 0.5);
    border-color: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

[data-bs-theme="dark"] .section-pki .infografis-nav:hover {
    color: #1fa2a6;
}

/* PKI responsive height sync */
.section-pki .pki-stack,
.section-pki .pki-card--full,
.section-pki .pki-card--half {
    height: auto;
    max-height: none;
    min-height: 0;
}

.section-pki .infografis-home-slider,
.section-pki .infografis-home-slider .swiper-wrapper,
.section-pki .infografis-home-slider .swiper-slide,
.section-pki .infografis-home-slider article {
    height: auto;
}

.infografis-img,
.infografis-img.placeholder {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #f3f6f9;
}

.section-pki [data-pki-card="infografis"] .infografis-img,
.section-pki [data-pki-card="infografis"] .infografis-img.placeholder {
    max-height: clamp(320px, 52vh, 460px);
    margin-inline: auto;
}

[data-bs-theme="dark"] .infografis-img,
[data-bs-theme="dark"] .infografis-img.placeholder {
    background: rgba(15, 23, 32, 0.72);
}

@media (min-width: 992px) {
    .section-pki>.row {
        align-items: flex-start;
    }

    .section-pki .col-lg-4.d-flex {
        align-items: flex-start;
    }

    .section-pki .col-lg-4.d-flex>.card {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 991.98px) {

    .section-pki [data-pki-card="infografis"] .infografis-img,
    .section-pki [data-pki-card="infografis"] .infografis-img.placeholder {
        max-height: none;
    }
}

/* === Section PKI END === */

/* Weblink slider */
.weblink-slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 35px;
}

.weblink-slider .swiper-slide {
    height: auto;
    border-radius: 8px;
}

.weblink-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weblink-card--fixed {
    min-height: 150px;
}

.weblink-card--fixed .card-body {
    padding: 1rem 1.25rem;
}

.weblink-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.weblink-logo-wrap {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 162, 166, 0.1);
    margin-bottom: 0.75rem;
}

.weblink-logo-wrap img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.weblink-title {
    color: #0f172a;
}

[data-bs-theme="dark"] .weblink-card {
    background: #17212d;
    border-color: #24333d;
}

[data-bs-theme="dark"] .weblink-title {
    color: #f8fafc;
}

@media (max-width: 575.98px) {
    .weblink-logo-wrap {
        width: 64px;
        height: 64px;
    }

    .weblink-logo-wrap img {
        width: 44px;
        height: 44px;
    }
}

/* Section media */
.section-media .media-card {
    height: 535px;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

.section-media .media-card-body {
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-media .media-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0.75rem 0.75rem;
}

.section-media .media-card-video {
    width: 100%;
    height: 100%;
}

.section-media .media-quote-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.section-media .media-quote-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-media .media-quote-card .media-card-img {
    border-radius: 0;
}

.section-media .media-quote-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 20, 34, 0.18) 0%, rgba(11, 20, 34, 0.52) 48%, rgba(11, 20, 34, 0.86) 100%);
}

.section-media .media-quote-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 100%;
    padding: 1.1rem;
    gap: 0.9rem;
}

.section-media .media-quote-head {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 92%;
}

.section-media .media-quote-title {
    margin: 0;
    color: #e8fbff;
    font-size: clamp(1.15rem, 1.55vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
    text-align: center;
}

.section-media .media-quote-body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 247, 250, 0.2);
    background: linear-gradient(165deg, rgba(7, 20, 36, 0.48), rgba(7, 20, 36, 0.22));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.2s ease;
    will-change: transform;
}

.section-media .media-quote-text {
    margin: 0;
    color: #f8fdff;
    font-size: clamp(0.94rem, 1.1vw, 1.06rem);
    font-weight: 550;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
    display: block;
    overflow: visible;
}

.section-media .media-quote-card[data-kata-ready="1"] .media-quote-body {
    animation: kataReveal 0.7s ease both;
}

[data-bs-theme="dark"] .section-media .media-card {
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .section-media .media-quote-card {
    background: #17212d;
}

[data-bs-theme="dark"] .section-media .media-quote-overlay {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.14) 0%, rgba(2, 6, 23, 0.66) 52%, rgba(2, 6, 23, 0.9) 100%);
}

[data-bs-theme="dark"] .section-media .media-quote-title {
    color: #dcf8ff;
}

[data-bs-theme="dark"] .section-media .media-quote-body {
    border-color: rgba(156, 221, 236, 0.26);
    background: linear-gradient(165deg, rgba(5, 16, 30, 0.72), rgba(5, 16, 30, 0.36));
}

[data-bs-theme="dark"] .section-media .media-quote-text {
    color: #f1fbff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

@keyframes kataReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .section-media .media-card {
        height: auto;
    }

    .section-media .media-card-body {
        height: auto;
    }

    .section-media .media-card-video {
        height: auto;
    }

    .section-media .media-quote-card {
        min-height: 500px;
    }

    .section-media .media-quote-shell {
        height: 100%;
        min-height: 100%;
        padding: 1rem;
    }

    .section-media .media-quote-title {
        font-size: clamp(1.05rem, 2.6vw, 1.22rem);
    }

    .section-media .media-quote-text {
        font-size: clamp(0.9rem, 1.95vw, 1rem);
    }
}

@media (max-width: 767.98px) {
    .section-media .media-quote-card {
        min-height: 500px;
    }

    .section-media .media-quote-shell {
        height: 100%;
        min-height: 100%;
        padding: 0.9rem;
        gap: 0.75rem;
    }

    .section-media .media-quote-title {
        font-size: clamp(1rem, 4vw, 1.15rem);
    }

    .section-media .media-quote-body {
        padding: 0.85rem 0.9rem;
    }

    .section-media .media-quote-text {
        font-size: clamp(0.88rem, 3.4vw, 0.98rem);
        line-height: 1.45;
    }
}

@media (max-width: 575.98px) {
    .section-media .media-quote-card {
        min-height: 500px;
    }

    .section-media .media-quote-shell {
        height: 100%;
        min-height: 100%;
        padding: 0.8rem;
    }

    .section-media .media-quote-text {
        font-size: clamp(0.83rem, 4.1vw, 0.92rem);
    }
}

/* HERO POPUP */
.hero-popup .modal-dialog {
    max-width: min(92vw, 460px);
    position: relative;
}

.hero-popup .modal-content {
    border: 0;
    box-shadow: none !important;
    background: transparent !important;
    position: relative;
}

.hero-popup .modal-body {
    padding: 0;
}

.hero-popup .carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

.hero-popup .carousel-item {
    aspect-ratio: 4 / 5;
}

.hero-popup .carousel-item img,
.hero-popup .carousel-item iframe,
.hero-popup .carousel-item video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 84vh;
    object-fit: cover;
}

.hero-popup .carousel-item img {
    object-fit: cover;
}

.hero-popup .carousel-item iframe {
    border: 0;
}

.hero-popup .carousel-control-prev,
.hero-popup .carousel-control-next {
    display: none;
}

body.hero-popup-open .modal-backdrop.show {
    background: rgba(18, 32, 48, 0.22);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    opacity: 1;
}

body.hero-popup-open .modal-backdrop.show::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(31, 162, 166, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(31, 162, 166, 0.12), rgba(255, 255, 255, 0.04));
}

[data-bs-theme="dark"] body.hero-popup-open .modal-backdrop.show {
    background: rgba(8, 12, 18, 0.72);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

[data-bs-theme="dark"] body.hero-popup-open .modal-backdrop.show::before {
    background:
        radial-gradient(circle at top, rgba(31, 162, 166, 0.28), transparent 55%),
        linear-gradient(180deg, rgba(10, 16, 24, 0.65), rgba(10, 16, 24, 0.25));
}

.hero-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(31, 162, 166, 0.25);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(15, 41, 64, 0.18);
    z-index: 3;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(31, 162, 166, 0.22);
    background: #1fa2a6;
    color: #fff;
}
