/*
 * layout.css — PPID Portal
 * Hanya berisi: positioning, grid, spacing, structure
 * TIDAK mengubah warna atau variabel tema yang sudah ada
 * Referensi struktur: kemenag.go.id
 */

/* ─────────────────────────────────────────
   1. TOP BAR AKSESIBILITAS
───────────────────────────────────────── */
.topbar-accessibility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 1.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 60;
}

.topbar-accessibility .topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-accessibility .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-skip-link {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: underline;
    opacity: 0.8;
}

.topbar-skip-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    opacity: 1;
}

.topbar-announcement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.topbar-announcement-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .topbar-accessibility {
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }
    .topbar-right {
        display: none !important;
    }
}

/* ─────────────────────────────────────────
   2. HEADER — ADJUSTED TOP OFFSET
───────────────────────────────────────── */
/* Header ditambah tinggi topbar (~36px) */
.site-header {
    top: 0;
}

/* Main content diberi offset agar tidak tertutup header + topbar */
.main-content-offset {
    padding-top: 5rem; /* Reduced from 8rem */
}

@media (min-width: 1024px) {
    .main-content-offset {
        padding-top: 6.5rem; /* Reduced from 10rem */
    }
}

/* ─────────────────────────────────────────
   3. HERO / BANNER SECTION — Full-width slider
───────────────────────────────────────── */
.hero-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    min-height: 260px;
    max-height: 520px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-carousel-wrapper {
        aspect-ratio: 16 / 9;
        min-height: 200px;
    }
}

.hero-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.2) 50%, transparent 100%);
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
}

@media (max-width: 767px) {
    .hero-slide-content {
        padding: 1.25rem 1rem;
    }
}

.hero-carousel-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-carousel-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.hero-dot.active {
    width: 1.5rem;
}

/* ─────────────────────────────────────────
   4. RUNNING TEXT / TICKER
───────────────────────────────────────── */
.news-ticker-bar {
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 0;
    height: 2.5rem;
}

.news-ticker-label {
    flex-shrink: 0;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    gap: 3rem;
}

.news-ticker-inner:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   5. MAIN CONTENT — 2-COLUMN LAYOUT (70/30)
───────────────────────────────────────── */
.kemenag-layout-container {
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.kemenag-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .kemenag-main-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 3rem;
    }
}

/* Left column: Berita Terkini */
.kemenag-col-main {
    min-width: 0; /* prevent grid blowout */
}

/* Right column: Sidebar */
.kemenag-col-sidebar {
    min-width: 0;
}

@media (min-width: 1024px) {
    .kemenag-col-sidebar {
        position: sticky;
        top: 7rem;
        width: 300px;
        height: 600px;
        overflow: hidden;
        border-radius: 1.5rem;
        background: white;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        scrollbar-width: thin;
        scrollbar-color: rgba(15,118,110,0.2) transparent;
    }
    .kemenag-col-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    .kemenag-col-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    .kemenag-col-sidebar::-webkit-scrollbar-thumb {
        background-color: rgba(15,118,110,0.2);
        border-radius: 9999px;
    }
}

/* ─────────────────────────────────────────
   6. SECTION HEADERS (Kemenag-style)
───────────────────────────────────────── */
.kemenag-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.kemenag-section-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.625rem;
    margin-bottom: -0.625rem;
}

.kemenag-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    /* warna mengikuti var primary dari tema */
    background: currentColor;
}

.kemenag-section-more {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

/* ─────────────────────────────────────────
   7. BERITA GRID (Left Column)
───────────────────────────────────────── */

/* Hero news: 1 besar + list kecil */
.news-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .news-hero-grid {
        grid-template-columns: 3fr 2fr;
        gap: 1.25rem;
    }
}

.news-hero-main {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.news-hero-main-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.7s;
}

.news-hero-main:hover .news-hero-main-img {
    transform: scale(1.04);
}

.news-hero-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.news-hero-list-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #f1f5f9;
}

.news-hero-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-hero-list-thumb {
    width: 5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

/* Secondary news grid (small cards) */
.news-secondary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .news-secondary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card-small {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.news-card-small:last-child {
    border-bottom: none;
}

.news-card-small-thumb {
    width: 4.5rem;
    height: 3.25rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.5s;
}

.news-card-small:hover .news-card-small-thumb {
    transform: scale(1.06);
}

/* ─────────────────────────────────────────
   8. SIDEBAR WIDGETS
───────────────────────────────────────── */
.sidebar-widget {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Terpopuler — numbered list */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.popular-rank {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
    text-align: right;
    opacity: 0.18;
    transition: opacity 0.2s;
}

.popular-item:hover .popular-rank {
    opacity: 0.5;
}

.popular-item-body {
    flex: 1;
    min-width: 0;
}

/* Informasi — dokumen list */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.doc-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.doc-list-item:hover {
    background: #f8fafc;
}

.doc-icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Jadwal Sholat widget */
.sholat-widget {
    border-radius: 0.75rem;
    overflow: hidden;
}

.sholat-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sholat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e2e8f0;
}

.sholat-item {
    padding: 0.625rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.sholat-name {
    font-size: 0.7rem;
    font-weight: 600;
}

.sholat-time {
    font-size: 0.75rem;
    font-weight: 800;
}

/* Mimbar Keagamaan — tab filter */
.mimbar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.mimbar-tab {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    background: white;
}

.mimbar-tab.active,
.mimbar-tab:hover {
    border-color: transparent;
}

.mimbar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mimbar-item {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.mimbar-item:last-child {
    border-bottom: none;
}

.mimbar-thumb {
    width: 3.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    object-fit: cover;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   9. INFOGRAFIS CAROUSEL SECTION
      (restruktur menjadi setelah main 2-col)
───────────────────────────────────────── */
.infografis-section {
    padding: 2.5rem 0;
}

.infografis-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.infografis-carousel-outer {
    position: relative;
    overflow: hidden;
}

.infografis-carousel-inner {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}

.infografis-carousel-inner::-webkit-scrollbar {
    display: none;
}

.infografis-card {
    flex: 0 0 auto;
    width: 14rem;
    scroll-snap-align: start;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

@media (min-width: 640px) {
    .infografis-card {
        width: 16rem;
    }
}

@media (min-width: 1024px) {
    .infografis-card {
        width: 18rem;
    }
}

.infografis-card-img-wrap {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.infografis-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.infografis-card:hover .infografis-card-img-wrap img {
    transform: scale(1.08);
}

/* ─────────────────────────────────────────
   10. VIDEO SECTION GRID
───────────────────────────────────────── */
.video-section {
    padding: 2rem 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─────────────────────────────────────────
   11. SURVEY SECTION
───────────────────────────────────────── */
.survey-section {
    padding: 3rem 0;
}

.survey-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .survey-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* ─────────────────────────────────────────
   12. FOOTER — Multi-column
───────────────────────────────────────── */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ─────────────────────────────────────────
   13. UTILITY OVERRIDES (layout only)
───────────────────────────────────────── */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Snap scroll container */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-start {
    scroll-snap-align: start;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* aspect-video for cards */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* ─────────────────────────────────────────
   14. RESPONSIVE STACKING RULES
───────────────────────────────────────── */
@media (max-width: 767px) {
    .kemenag-col-sidebar {
        /* Sidebar goes below main content on mobile */
        order: 2;
    }
    .kemenag-col-main {
        order: 1;
    }
    .news-hero-grid {
        grid-template-columns: 1fr;
    }
    .sholat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet: full width, stacked */
    .kemenag-main-grid {
        grid-template-columns: 1fr;
    }
    .news-hero-grid {
        grid-template-columns: 3fr 2fr;
    }
    .kemenag-col-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ═══════════════════════════════════════════
   15. MOBILE-FIRST COMPREHENSIVE RESPONSIVE
   Strategi: Mobile First, Progressive Enhancement
   Breakpoints: 480px (xs) | 768px (md)
═══════════════════════════════════════════ */

/* ── 15.1 Jadwal Sholat Widget ── */
.sholat-widget-container {
    width: 100%;
    padding: 1.5rem 1rem;
}

/* Grid 4-col on mobile → 8-col on desktop */
.sholat-times-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (min-width: 640px) {
    .sholat-times-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
    }
    .sholat-widget-container {
        padding: 2rem 2.5rem;
    }
}

/* ── 15.2 Global Container Safety ── */
.kemenag-layout-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .kemenag-layout-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .kemenag-layout-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ── 15.3 Touch-Friendly Interactive Elements ──
   WCAG 2.5.5: Minimum 44×44 CSS pixels tap target */
@media (max-width: 767px) {
    /* Nav buttons & actions */
    .hero-carousel-btn,
    button[aria-label],
    a[href].flex.items-center {
        min-height: 44px;
        min-width: 44px;
    }

    /* Carousel nav arrows hidden on mobile (swipe instead) */
    #info-prev,
    #info-next {
        display: none !important;
    }

    /* Infografis card: wider on mobile for easy swipe */
    .carousel-item {
        min-width: 180px !important;
        width: 72% !important;
    }

    /* News hero list thumbnail: slightly larger tap area */
    .news-hero-list-item {
        padding: 0.75rem 0;
    }

    /* Sholat widget header: stack vertically */
    .sholat-widget-container > .relative.z-10 .flex.items-end.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .sholat-widget-container > .relative.z-10 .flex.items-center.gap-4:last-child {
        width: 100%;
        justify-content: space-between;
    }

    /* Featured card: reduce oversized padding */
    .bg-white.rounded-\[2rem\] .p-10 {
        padding: 1.25rem !important;
    }

    /* Typography scale down */
    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    .text-3xl.font-black {
        font-size: 1.5rem;
        line-height: 1.15;
    }
    .text-4xl.font-black {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    .text-5xl.font-black {
        font-size: 2rem;
        line-height: 1.1;
    }

    /* Survey section: remove large negative decorative blobs */
    .absolute.-bottom-10.-right-10 {
        display: none;
    }

    /* Survey card padding: reduce on mobile */
    .bg-white.p-12.rounded-\[3\.5rem\] {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    /* Video grid: 1-col on mobile → handled by video-grid class above */

    /* Footer safety */
    footer.bg-slate-900 {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    footer .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── 15.4 Extra-Small (480px and below) ── */
@media (max-width: 480px) {
    /* Header logo: reduce size to fit hamburger */
    header .h-12 {
        height: 2.25rem;
    }
    header .text-2xl {
        font-size: 1.1rem;
    }
    header .text-\[10px\] {
        display: none;
    }

    /* Permohonan button: shorten text on XS */
    header a[href="permohonan.php"] {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
        font-size: 9px;
    }

    /* News ticker: reduce font-size */
    .news-ticker-inner {
        gap: 1.5rem;
    }
    .news-ticker-label {
        padding: 0 0.625rem;
        font-size: 0.6rem;
    }

    /* Section headers: tighter */
    .kemenag-section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Sholat times: 2×4 on XS */
    .sholat-times-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .sholat-times-grid > div {
        padding: 0.5rem 0.25rem;
        border-radius: 0.75rem;
    }
    .sholat-times-grid .text-lg {
        font-size: 0.875rem;
    }

    /* Banner slider: taller aspect on XS phones */
    [style*="aspect-ratio: 16 / 5"] {
        aspect-ratio: 16 / 8 !important;
    }

    /* Document cards: tighter */
    a.group.relative.flex.items-center.gap-5 {
        padding: 0.875rem;
        border-radius: 1.25rem;
    }

    /* Service category grid: optimized for mobile */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    /* If it's the services specific grid */
    .layanan-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

/* ── 15.5 Prevent Horizontal Scroll (Global) ── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent any fixed-width elements from causing scroll */
* {
    box-sizing: border-box;
}

/* Images always responsive */
img {
    max-width: 100%;
    height: auto;
}

/* ── 15.6 Safe Area / Notch Support (iOS) ── */
@supports (padding: env(safe-area-inset-left)) {
    .kemenag-layout-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    @media (min-width: 640px) {
        .kemenag-layout-container {
            padding-left: max(1.5rem, env(safe-area-inset-left));
            padding-right: max(1.5rem, env(safe-area-inset-right));
        }
    }
}

/* ── 15.7 Lazy-Load Placeholder (prevent CLS) ── */
img[loading="lazy"] {
    background-color: #f1f5f9;
}

/* ── 15.8 Footer Responsive Fix ── */
@media (max-width: 767px) {
    footer.bg-slate-900 {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    .footer-grid {
        gap: 2.5rem;
    }
    footer .pt-6.border-t {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* Copyright row: always stacked on mobile */
    footer .flex.flex-col.sm\:flex-row {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ── 15.9 Mobile Drawer Scroll Lock ── */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

