/* ============================================================
   Landing Page Styles (public/css/landing.css)
   Extracted from inline Blade <style> blocks for HTTP caching
   and unified light/dark theme token support.
   ============================================================ */

.section-accent-bar {
    width: 6rem;
    height: 0.25rem;
    margin-inline: auto;
    border-radius: 999px;
    background-color: var(--primary-color, #1a73e8);
}

.map-surface-card {
    background-color: var(--card-bg, #ffffff);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--border-color, #e2e8f0);
}

/* ── Hero ── */
.hero-bg {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    min-height: 60dvh;
    display: flex;
    align-items: center;
    background-color: #0f172a;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-section {
    position: relative;
    z-index: 2;
}

.hero-headline {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-accent {
    color: #86efac;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-lead {
    color: rgba(248, 250, 252, 0.94);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Partner Slider ── */
.slider-swiper {
    padding: 20px 0;
    overflow: hidden;
}

.slider-swiper .swiper-slide {
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    height: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slider-swiper .swiper-slide:hover {
    border-color: var(--primary-color, #1a73e8);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.slider-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.slider-card-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.slider-swiper .swiper-button-next,
.slider-swiper .swiper-button-prev,
.video-swiper .swiper-button-next,
.video-swiper .swiper-button-prev {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    color: var(--text-primary, #0f172a);
    margin-top: -20px;
    transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.slider-swiper .swiper-button-next:hover,
.slider-swiper .swiper-button-prev:hover,
.video-swiper .swiper-button-next:hover,
.video-swiper .swiper-button-prev:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    color: var(--primary-color, #1a73e8);
}

.slider-swiper .swiper-button-next::after,
.slider-swiper .swiper-button-prev::after,
.video-swiper .swiper-button-next::after,
.video-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

/* ── Visualization Frame (prevents CLS before async images load) ── */
.viz-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    background: var(--card-bg-alt, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 0;
}

/* ── Services Grid (Layanan & Data) ── */
.service-card {
    display: block;
    text-decoration: none;
    color: var(--text-primary, #0f172a);
    background-color: var(--card-bg, #ffffff);
}

.service-card:hover {
    color: var(--text-primary, #0f172a);
    border-color: var(--primary-color, #1a73e8);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

/* ── News Cards ── */
.news-featured-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
}

.news-thumb-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

/* ── Video Gallery ── */
.video-swiper {
    padding: 20px 0;
    overflow: hidden;
}

.video-slide {
    height: auto;
}

.video-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14);
    border-color: var(--primary-color, #1a73e8);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
}

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.video-play-btn:hover {
    background: rgba(220, 38, 38, 0.88);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 3px;
}

.video-info {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 0.3rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.video-date {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

/* ── Video Modal ── */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 3000);
    align-items: center;
    justify-content: center;
}

.video-modal--open {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.15s ease;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(220, 38, 38, 0.8);
}

.video-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-modal-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    margin: 0;
    background: #111;
}

/* ── Earthquake Popup ── */
.earthquake-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-alert-modal, 3500);
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}

.earthquake-popup-overlay[hidden] {
    display: none;
}

.earthquake-popup-card {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border-radius: 22px;
    background: var(--card-bg, #fff);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.38);
    color: var(--text-primary, #172033);
}

.earthquake-popup-close {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.earthquake-popup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 58px 22px 24px;
    color: #fff;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
}

.earthquake-popup-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 24px;
    color: #fff;
}

.earthquake-popup-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.earthquake-popup-header h2 {
    margin: 4px 0 0;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.earthquake-popup-body {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    padding: 22px;
}

.earthquake-popup-visual {
    display: grid;
    place-items: center;
    min-height: 250px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card-bg-alt, #f1f5f9);
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.earthquake-popup-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.earthquake-popup-data {
    display: grid;
    align-content: start;
    gap: 0;
}

.earthquake-data-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 13px;
}

.earthquake-data-row span:first-child {
    color: var(--text-muted, #64748b);
}

.earthquake-data-row span:last-child {
    text-align: right;
    font-weight: 700;
}

.earthquake-magnitude {
    margin-bottom: 10px;
    color: #dc2626;
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
}

.earthquake-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: var(--card-bg-alt, #f8fafc);
    color: var(--text-muted, #64748b);
    font-size: 12px;
}

.earthquake-popup-footer button {
    border: 0;
    border-radius: 8px;
    padding: 8px 18px;
    background: #991b1b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* ── Homepage Announcement Popup (GAWBKT Base Token Harmonized) ── */
body.homepage-popup-open {
    overflow: hidden;
}

.homepage-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 3000);
    display: grid;
    place-items: center;
    padding: clamp(0.85rem, 3vw, 2rem);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.24s ease, visibility 0s 0.24s;
}

.homepage-popup-overlay.is-visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.24s ease, visibility 0s 0s;
}

.homepage-popup-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    grid-template-rows: minmax(0, 1fr);
    width: min(920px, 100%);
    height: min(560px, calc(100dvh - 2rem));
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 1.15rem;
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #334155);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.34), 0 2px 8px rgba(15, 23, 42, 0.12);
    transform: translateY(12px) scale(0.985);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .homepage-popup-shell {
    border-color: var(--border-color, #334155);
    box-shadow: 0 28px 72px rgba(2, 6, 23, 0.68);
}

.homepage-popup-overlay.is-visible .homepage-popup-shell {
    transform: translateY(0) scale(1);
}

/* Full-image mode: single column fitted cleanly to image aspect ratio */
.homepage-popup-shell.is-full-image {
    grid-template-columns: 1fr;
    width: auto;
    max-width: min(920px, calc(100vw - 2rem));
    height: auto;
    max-height: calc(100dvh - 2rem);
    min-height: 0;
}

.homepage-popup-shell.is-full-image .homepage-popup-content {
    display: none;
}

.homepage-popup-shell.is-full-image .homepage-popup-visual {
    min-height: 0;
    background: #0f172a;
}

.homepage-popup-shell.is-full-image .homepage-popup-slide {
    display: none;
    position: relative;
    inset: auto;
    opacity: 1;
}

.homepage-popup-shell.is-full-image .homepage-popup-slide.is-active {
    display: block;
}

.homepage-popup-shell.is-full-image .homepage-popup-slide-figure,
.homepage-popup-shell.is-full-image .homepage-popup-slide-figure img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 2.25rem);
    margin: 0 auto;
}

.homepage-popup-shell.is-full-image .homepage-popup-slide-figure img {
    object-fit: contain;
}

.homepage-popup-close {
    position: absolute;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    z-index: 8;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    color: var(--text-primary, #0f172a);
    background: color-mix(in srgb, var(--card-bg, #ffffff) 92%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.homepage-popup-close:hover {
    background: var(--secondary-color, #f1f5f9);
    border-color: var(--primary-color, #1a73e8);
    color: var(--primary-color, #1a73e8);
}

.homepage-popup-close:active {
    transform: scale(0.95);
}

.homepage-popup-shell.is-full-image .homepage-popup-close {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.homepage-popup-shell.is-full-image .homepage-popup-close:hover {
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
}

.homepage-popup-close:focus-visible {
    outline: 3px solid var(--primary-color, #1a73e8);
    outline-offset: 2px;
}

.homepage-popup-visual {
    position: relative;
    min-height: 0;
    background:
        radial-gradient(circle at 20% 22%, rgba(96, 165, 250, 0.28), transparent 44%),
        linear-gradient(145deg, #0f172a 0%, #173a6e 56%, var(--primary-color, #1a73e8) 100%);
    overflow: hidden;
}

.homepage-popup-slide,
.homepage-popup-slide-figure,
.homepage-popup-slide-figure img {
    width: 100%;
    height: 100%;
    margin: 0;
}

.homepage-popup-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.homepage-popup-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.homepage-popup-slide-figure img {
    display: block;
    object-fit: cover;
}

.homepage-popup-announcement {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: #f8fafc;
    text-align: center;
}

.homepage-popup-brand-mark {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.homepage-popup-kicker {
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #ffffff;
}

.homepage-popup-visual-note {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(241, 245, 249, 0.86);
    font-weight: 500;
}

.homepage-popup-orbit {
    position: absolute;
    width: min(360px, 76%);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.homepage-popup-orbit span {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.homepage-popup-orbit span:nth-child(1) { inset: 15%; }
.homepage-popup-orbit span:nth-child(2) { inset: 32%; }
.homepage-popup-orbit span:nth-child(3) { inset: 48%; }

.homepage-popup-navigation {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    max-width: calc(100% - 1.5rem);
    transform: translateX(-50%);
}

.homepage-popup-nav-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.homepage-popup-nav-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
}

.homepage-popup-nav-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.homepage-popup-close svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.homepage-popup-nav-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.homepage-popup-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.homepage-popup-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding-inline: 0.25rem;
}

.homepage-popup-dots button {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.homepage-popup-dots button.is-active {
    width: 1.4rem;
    background: #ffffff;
}

.homepage-popup-dots button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Right Content Pane: Fixed Header + Scrollable Body + Pinned Footer (zero top-clip) */
.homepage-popup-content {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: var(--card-bg, #ffffff);
}

.homepage-popup-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.85rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.homepage-popup-text.is-active {
    opacity: 1;
    pointer-events: auto;
}

.homepage-popup-meta-row {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-right: 2.75rem;
    margin-bottom: 0.85rem;
}

.homepage-popup-eyebrow {
    color: var(--primary-color, #1a73e8);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-popup-counter {
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    color: var(--text-muted, #64748b);
    background: var(--secondary-color, #f1f5f9);
}

.homepage-popup-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.25rem;
}

.homepage-popup-content h2 {
    margin: 0 0 0.75rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--text-primary, #0f172a);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
}

.homepage-popup-body {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--text-color, #334155);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.homepage-popup-body p {
    margin: 0 0 0.75rem;
}

.homepage-popup-body ul,
.homepage-popup-body ol {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.homepage-popup-body a {
    color: var(--primary-color, #1a73e8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.homepage-popup-body > :last-child {
    margin-bottom: 0;
}

.homepage-popup-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.homepage-popup-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.homepage-popup-cta,
.homepage-popup-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.homepage-popup-cta {
    border: 1px solid var(--primary-color, #1a73e8);
    color: #ffffff;
    background: var(--primary-color, #1a73e8);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color, #1a73e8) 28%, transparent);
}

.homepage-popup-cta:hover {
    color: #ffffff;
    filter: brightness(0.94);
}

.homepage-popup-secondary {
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-color, #334155);
    background: var(--card-bg-alt, #f8fafc);
}

.homepage-popup-secondary:hover {
    background: var(--secondary-color, #f1f5f9);
    border-color: var(--text-muted, #94a3b8);
}

[data-theme="dark"] .homepage-popup-cta {
    color: #0f172a;
}

[data-theme="dark"] .homepage-popup-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color, #e2e8f0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .homepage-popup-shell {
        grid-template-columns: 1fr;
        grid-template-rows: clamp(170px, 32dvh, 250px) minmax(0, 1fr);
        width: min(100%, 500px);
        height: min(680px, calc(100dvh - 1.75rem));
        border-radius: 1rem;
    }

    .homepage-popup-text {
        padding: 1.25rem 1.25rem 1.1rem;
    }

    .homepage-popup-meta-row {
        padding-right: 0;
        margin-bottom: 0.6rem;
    }

    .homepage-popup-content h2 {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
    }

    .homepage-popup-body {
        font-size: 0.885rem;
        line-height: 1.6;
    }

    .homepage-popup-actions {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }

    .homepage-popup-cta,
    .homepage-popup-secondary {
        flex: 1 1 140px;
    }

    .homepage-popup-close {
        top: max(0.6rem, env(safe-area-inset-top));
        right: max(0.6rem, env(safe-area-inset-right));
        color: #f8fafc;
        border-color: rgba(255, 255, 255, 0.26);
        background: rgba(15, 23, 42, 0.72);
    }

    .homepage-popup-shell.is-full-image {
        grid-template-rows: 1fr;
        width: auto;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-popup-overlay,
    .homepage-popup-shell,
    .homepage-popup-slide,
    .homepage-popup-text,
    .homepage-popup-dots button {
        transition: none !important;
    }
}

@media (max-width: 767.98px) {
    .earthquake-popup-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 14px;
    }

    .earthquake-popup-visual {
        min-height: 170px;
    }

    .earthquake-popup-header {
        padding: 20px 52px 18px 18px;
    }

    .earthquake-popup-footer {
        padding: 12px 16px;
    }
}

@media (max-width: 575.98px) {
    .slider-swiper .swiper-slide {
        height: 180px;
        padding: 16px;
    }

    .video-swiper {
        padding: 12px 0;
    }

    .video-play-btn {
        width: 48px;
        height: 48px;
    }

    .video-play-btn svg {
        width: 28px;
        height: 28px;
    }

    .video-modal-content {
        width: 100%;
        border-radius: 0;
        max-width: none;
    }

    .homepage-popup-overlay {
        padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right))
            max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
    }

    .homepage-popup-shell {
        grid-template-rows: minmax(145px, 30dvh) minmax(0, 1fr);
        height: calc(100dvh - max(1rem, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 1rem));
        max-height: 760px;
    }

    .homepage-popup-announcement {
        padding: 1rem;
    }

    .homepage-popup-shell.is-full-image {
        grid-template-rows: 1fr;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-play-btn,
    .video-modal-content,
    .homepage-popup-overlay,
    .homepage-popup-shell,
    .homepage-popup-slide,
    .homepage-popup-text {
        transition: none;
        animation: none;
    }
}
