:root {
    color-scheme: light;
    --brand-blue: #1d50b8;
    --brand-red: #b91c1c;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --paper: #fff;
    --canvas: #f8fafc;
    font-family: 'Mukta', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'Mukta', sans-serif; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.header-container, .footer-container { width: min(calc(100% - 32px), 1100px); margin-inline: auto; }
.site-header.has-masthead-ad .masthead { width: min(calc(100% - 32px), 1100px); height: auto; min-height: 0; justify-content: flex-start; gap: 16px; padding-block: 12px; }
.site-header.has-masthead-ad .site-brand { margin-left: 0; }
.site-header.has-masthead-ad .site-brand { flex: 0 0 auto; }
.masthead-ad { display: flex; min-width: 0; flex: 0 1 790px; justify-content: flex-start; }
.masthead-ad a { display: block; width: min(790px, 100%); max-width: 100%; }
.masthead-ad > img, .masthead-ad a > img { display: block; width: min(790px, 100%); height: auto; max-height: 200px; max-width: 100%; object-fit: contain; }
.header-top-ad-row { width: min(calc(100% - 32px), 1100px); margin: 0 auto; padding: 8px 0; display: flex; justify-content: center; }
.header-top-ad-row a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.header-top-ad-row > img, .header-top-ad-row a > img { display: block; width: auto; max-width: 100%; max-height: 140px; margin-inline: auto; object-fit: contain; }

.top-strip { background: #f1f5f9; color: #64748b; font-size: 13px; }
.top-strip > .header-container, .top-strip .header-container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.top-strip i { color: var(--brand-red); margin-right: 6px; }
.top-strip-links { display: flex; align-items: center; gap: 18px; }
.top-strip .header-search { width: min(245px, 25vw); height: 32px; background: #fff; }
.top-strip .header-search button { flex: 0 0 38px; width: 38px; }
.top-strip-links a:hover { color: var(--brand-red); }
.theme-toggle { border: 0; background: transparent; color: #64748b; cursor: pointer; }
.site-header { background: var(--paper); border-bottom: 1px solid #eef2f7; }
.masthead { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.site-brand-copy { min-width: 0; }
.site-brand-copy strong { overflow-wrap: anywhere; }
.site-brand-copy small { display: -webkit-box; max-width: 420px; overflow: hidden; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.site-brand .site-logo-image { display: block; width: auto; max-width: min(300px, 32vw); max-height: 76px; object-fit: contain; }
.header-banner-row { display: flex; justify-content: center; padding: 0 0 16px; }
.header-banner-row a { display: block; max-width: 100%; }
.header-banner-row > img, .header-banner-row a > img { display: block; width: auto; max-width: 100%; max-height: 110px; margin-inline: auto; object-fit: contain; }
.site-brand strong { display: block; color: #111827; font-size: clamp(24px, 4vw, 38px); line-height: 1.05; font-weight: 900; letter-spacing: -.04em; }
.site-brand small { display: block; color: #64748b; font-size: 13px; margin-top: 4px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--brand-red); border-radius: 12px; font-size: 25px; box-shadow: 0 6px 18px #b91c1c30; }
.masthead-tools { display: flex; align-items: center; gap: 12px; }
.masthead-tools > .staff-link, .masthead-tools .logout-form { display: none; }
.mobile-theme-toggle { display: none; }
.header-search { display: flex; align-items: center; width: min(285px, 30vw); height: 42px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.header-search input { width: 100%; min-width: 0; padding: 0 12px; border: 0; outline: 0; color: #334155; }
.header-search button { display: grid; width: 44px; height: 100%; flex: 0 0 44px; place-items: center; border: 0; color: #fff; background: var(--brand-red); cursor: pointer; }
.header-search button svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.staff-link { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: #475569; font-size: 14px; font-weight: 700; cursor: pointer; }
.staff-link:hover { color: var(--brand-red); }
.logout-form { margin: 0; }
.mobile-menu-toggle { display: none; border: 0; background: transparent; color: #334155; font-size: 23px; }
.primary-nav { position: sticky; top: 0; z-index: 50; background: var(--brand-blue); box-shadow: 0 4px 12px #0f172a20; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 49px; }
.nav-list { display: flex; align-items: center; gap: 20px; padding: 0; margin: 0; list-style: none; }
.nav-list a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 2px; color: #fff; font-family: 'Teko', sans-serif; font-size: 21px; line-height: 1; white-space: nowrap; transition: color .2s ease; }
.nav-list a:hover { color: #fecaca; }
.nav-list a i { display: none; }
.nav-live { display: inline-flex; align-items: center; gap: 8px; color: white; font-size: 13px; font-weight: 800; white-space: nowrap; }
.nav-live span { width: 8px; height: 8px; border-radius: 50%; background: #facc15; box-shadow: 0 0 0 4px #facc1530; }
.mobile-staff-link { display: none; }
.mobile-nav-backdrop, .mobile-drawer-heading { display: none; }

.homepage-main { min-height: 70vh; background: #f8fafc; }
.homepage-content { width: min(calc(100% - 32px), 1100px); margin-inline: auto; padding: 12px 0 36px; }
.homepage-content > .home-section { box-sizing: border-box; width: 100%; padding: 18px 16px 20px; }
.homepage-content > .image-ad { box-sizing: border-box; width: 100%; max-width: none; padding-inline: 16px; }
.home-container { width: min(calc(100% - 24px), 1024px); margin: 0 auto; padding: 14px 0 36px; }
.home-hero { padding: 20px 18px 24px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.home-category-pill, .archive-card-category { display: inline-flex; align-items: center; padding: 4px 12px; color: #fff; background: #dc2626; border-radius: 20px; font-size: 12px; font-weight: 800; }
.home-hero h1 { max-width: 1000px; margin: 14px auto; color: #111827; font-size: clamp(34px, 6vw, 62px); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; }
.home-hero h1 a:hover { color: var(--brand-red); }
.home-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 10px 0 18px; color: #64748b; font-size: 14px; font-weight: 600; }
.home-meta i { margin-right: 5px; color: var(--brand-red); }
.home-hero-image { display: block; max-width: 800px; max-height: 450px; margin: 0 auto 16px; overflow: hidden; border-radius: 6px; background: #e2e8f0; }
.home-hero-image img { display: block; width: 100%; max-height: 450px; object-fit: cover; }
.home-hero-summary { max-width: 800px; margin: 0 auto; color: #64748b; font-size: 18px; line-height: 1.8; }
.home-empty { padding: 70px 20px; text-align: center; }
.home-empty h1 { font-size: 40px; }
.home-section { padding: 18px 0 20px; border-bottom: 1px solid #e2e8f0; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-heading > span { height: 2px; flex: 1; background: #b91c1cbb; }
.section-heading h2 { margin: 0; color: #111827; font-size: 27px; line-height: 1.2; font-weight: 900; text-align: center; }
.section-heading h2 a:hover { color: var(--brand-red); }
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.latest-card, .category-post, .archive-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 2px 8px #0f172a08; transition: box-shadow .25s ease, transform .25s ease; }
.latest-card:hover, .category-post:hover, .archive-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px #0f172a16; }
.latest-card-image, .category-post-image, .archive-card-image { position: relative; display: block; height: 165px; overflow: hidden; background: #e2e8f0; }
.latest-card-image img, .category-post-image img, .archive-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.latest-card:hover img, .category-post:hover img, .archive-card:hover img { transform: scale(1.05); }
.latest-card-content { padding: 12px 14px 15px; text-align: center; }
.category-text { color: var(--brand-red); font-size: 12px; font-weight: 800; }
.latest-card h3, .category-post h3 { margin: 6px 0; font-size: 18px; line-height: 1.35; font-weight: 800; }
.latest-card h3 a:hover, .category-post h3 a:hover { color: var(--brand-red); }
.latest-card time, .update-item time { color: #94a3b8; font-size: 12px; }
.section-more { margin-top: 16px; text-align: center; }
.section-more a, .read-more { color: var(--brand-red); font-weight: 800; }
.category-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-post h3 { padding: 0 14px 14px; }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #94a3b8; font-size: 34px; background: #f1f5f9; }
.updates-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.update-item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.update-image { width: 104px; height: 72px; flex: 0 0 auto; overflow: hidden; border-radius: 6px; background: #e2e8f0; }
.update-image img { width: 100%; height: 100%; object-fit: cover; }
.update-item h3 { margin: 3px 0; font-size: 16px; line-height: 1.35; }
.update-item h3 a:hover { color: var(--brand-red); }
.empty-note { padding: 20px; color: #64748b; text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: 8px; }

.loop-layout { min-width: 0; }
.loop-post-grid, .loop-title-grid, .loop-complex-grid, .loop-newspaper-grid { display: grid; align-items: stretch; gap: 16px; }
.loop-post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loop-two-column-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
.loop-two-column-layout.has-sidebar-ad { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
.loop-two-column-layout.has-sidebar-ad .loop-post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.loop-two-column-layout .loop-post-grid--3 { grid-auto-rows: 1fr; }
.loop-post-card--two-column .loop-post-content { justify-content: flex-start; }
.loop-post-card--two-column .loop-post-title { min-height: 2.7em; }
.loop-two-column-ad { position: sticky; top: 72px; min-width: 0; margin: 0; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.loop-two-column-ad img { width: 100%; max-height: 600px; object-fit: contain; }
.loop-post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loop-three-column-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "left featured right"; grid-template-rows: repeat(4, minmax(58px, 1fr)); align-items: stretch; gap: 8px 12px; }
.loop-three-column-featured { grid-area: featured; grid-row: 1 / -1; min-width: 0; }
.loop-three-column-featured > .loop-post-card--three-column-lead { grid-row: 1 / -1; height: 100%; min-height: 0; }
.loop-three-column-side { display: grid; grid-template-rows: repeat(4, minmax(58px, 1fr)); gap: 8px; min-width: 0; }
.loop-three-column-left { grid-area: left; grid-row: 1 / -1; }
.loop-three-column-right { grid-area: right; grid-row: 1 / -1; }
.loop-post-card--three-column-lead { position: relative; min-width: 0; overflow: hidden; border: 0; border-radius: 0; background: #0f172a; }
.loop-post-card--three-column-lead .loop-post-image { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.loop-post-card--three-column-lead .loop-post-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #000c 100%); content: ""; }
.loop-post-card--three-column-lead .loop-post-image img { transition: none; }
.loop-post-card--three-column-lead:hover .loop-post-image img { transform: none; }
.loop-post-card--three-column-lead .loop-post-content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; flex: 0 0 auto; padding: 16px; }
.loop-post-card--three-column-lead .loop-post-title { min-height: 0; color: #fff; font-size: clamp(18px, 2vw, 26px); line-height: 1.2; text-shadow: 0 2px 4px #000c; -webkit-line-clamp: 2; line-clamp: 2; }
.loop-post-card.loop-post-card--three-column-side { min-height: 0; flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0; box-shadow: none; }
.loop-post-card.loop-post-card--three-column-side:hover { transform: none; box-shadow: none; }
.loop-post-card--three-column-side .loop-post-image { width: 72px; height: 54px; flex: 0 0 72px; aspect-ratio: auto; }
.loop-post-card--three-column-side .loop-post-content { justify-content: center; padding: 4px 0 4px 10px; }
.loop-post-card--three-column-side .loop-post-title { min-height: 0; font-size: 14px; line-height: 1.2; -webkit-line-clamp: 2; line-clamp: 2; }
.loop-complex-grid { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); grid-template-areas: "lead side" "bottom bottom"; align-items: stretch; gap: 12px 16px; }
.loop-post-card--complex-lead { grid-area: lead; }
.loop-complex-side { display: grid; grid-area: side; grid-template-rows: repeat(2, auto); align-content: start; gap: 8px; min-width: 0; }
.loop-post-card--complex-side { height: auto; min-height: 0; align-self: start; }
.loop-complex-bottom { display: grid; grid-area: bottom; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.loop-newspaper-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.loop-newspaper-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.loop-title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loop-title-only-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.loop-title-only-layout:not(.has-sidebar-ad) .loop-title-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loop-title-only-layout.has-sidebar-ad { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, 1fr); }
.loop-title-only-layout.has-sidebar-ad .loop-title-grid { grid-column: span 2; }
.loop-title-only-ad { position: sticky; top: 72px; min-width: 0; margin: 0; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.loop-title-only-ad img { width: 100%; max-height: 600px; object-fit: contain; }
.loop-post-card { display: flex; min-width: 0; height: 100%; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 2px 8px #0f172a08; transition: transform .25s ease, box-shadow .25s ease; }
.loop-post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #0f172a14; }
.loop-post-image { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #e2e8f0; }
.loop-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.loop-post-card:hover .loop-post-image img { transform: scale(1.04); }
.loop-post-content { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; padding: 12px 14px 14px; }
.loop-post-title { display: -webkit-box; min-height: 2.7em; margin: 0; overflow: hidden; color: #111827; font-size: 18px; font-weight: 800; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.loop-post-title a { overflow-wrap: anywhere; }
.loop-post-title a:hover { color: var(--brand-red); }
.loop-post-date { margin-top: auto; padding-top: 8px; color: #94a3b8; font-size: 12px; }
.loop-post-card--big .loop-post-content { padding: 16px 18px 18px; }
.loop-big-post-list { display: grid; gap: 20px; }
.loop-big-post-list > .loop-post-card--big + .loop-post-card--big { padding-top: 16px; border-top: 1px solid #e2e8f0; }
.loop-post-card--big { height: auto; align-items: center; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: none; }
.loop-post-card--big:hover { transform: none; box-shadow: none; }
.loop-post-card--big .loop-post-category-label { margin: 0 0 8px; padding: 3px 12px; color: #fff; background: var(--brand-red); border-radius: 20px; font-size: 13px; font-weight: 800; }
.loop-post-card--big .loop-post-content { width: 100%; align-items: center; padding: 0 0 5px; text-align: center; }
.loop-post-card--big .loop-post-title { display: block; min-height: 0; max-width: 1100px; overflow: visible; font-size: 72px; font-weight: 900; line-height: 1.08; -webkit-box-orient: initial; -webkit-line-clamp: unset; line-clamp: unset; }
.loop-post-card--big .loop-post-image { width: min(100%, 1000px); height: auto; aspect-ratio: auto; overflow: visible; background: transparent; }
.loop-post-card--big .loop-post-image img { width: 100%; height: auto; object-fit: contain; transition: none; }
.loop-post-card--big:hover .loop-post-image img { transform: none; }
.loop-post-author { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: #475569; font-size: 15px; font-weight: 700; }
.loop-post-author img, .loop-post-author-placeholder { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: var(--brand-blue); }
.loop-post-author img { object-fit: cover; }
.loop-post-excerpt { width: min(100%, 1000px); margin: 6px auto 0; color: #64748b; font-size: 15px; line-height: 1.7; text-align: center; }
.loop-post-card--newspaper-lead .loop-post-image { aspect-ratio: 16 / 9; }
.loop-post-card--newspaper-lead .loop-post-content { align-items: center; padding: 10px 14px 14px; text-align: center; }
.loop-post-card--newspaper-lead .loop-post-title { font-size: 42px; line-height: 1.12; }
.loop-post-author--newspaper-lead { justify-content: center; margin-top: 6px; }
.loop-post-excerpt--newspaper-lead { margin-top: 5px; line-height: 1.45; }
.loop-post-card--newspaper-side .loop-post-image { aspect-ratio: 16 / 9; }
.loop-post-card--newspaper-side .loop-post-content { padding: 9px 10px 11px; }
.loop-post-card--newspaper-side .loop-post-title { font-size: 15px; }
.loop-post-card--complex-lead .loop-post-image { aspect-ratio: 16 / 9; }
.loop-post-card--complex-lead .loop-post-content { flex: 0 0 auto; align-items: center; padding: 8px 12px 10px; text-align: center; }
.loop-post-card--complex-lead .loop-post-title { min-height: 0; font-size: 42px; line-height: 1.12; }
.loop-post-author--complex { justify-content: center; margin: 5px 0 0; }
.loop-post-excerpt--complex { margin: 4px auto 0; line-height: 1.45; }
.loop-post-card--complex-side .loop-post-content, .loop-post-card--complex-bottom .loop-post-content { padding: 8px 10px 10px; }
.loop-post-card--complex-side .loop-post-title, .loop-post-card--complex-bottom .loop-post-title { font-size: 15px; }
.loop-post-card--complex-bottom { min-height: 0; }
.loop-post-card--list { min-height: 112px; flex-direction: row; align-items: stretch; border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0; box-shadow: none; }
.loop-post-card--list .loop-post-image { width: 160px; flex: 0 0 160px; aspect-ratio: 16 / 9; border-radius: 6px; }
.loop-post-card--list .loop-post-content { justify-content: center; padding: 10px 14px; }
.loop-post-card--list .loop-post-date { margin-top: 5px; padding-top: 0; }
.loop-list-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; }
.loop-list-layout.has-sidebar-ad { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, .85fr); }
.loop-list-layout .loop-post-list { display: grid; align-content: start; row-gap: 14px; }
.loop-list-ad { position: sticky; top: 72px; min-width: 0; margin: 0; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.loop-list-ad img { width: 100%; max-height: 600px; object-fit: contain; }
.loop-title-grid .loop-post-card { min-height: 72px; justify-content: center; }
.loop-post-card--title .loop-post-content { justify-content: center; padding: 12px 14px; }
.loop-post-card--title .loop-post-title { font-size: 16px; }
.dark .loop-post-card { color: #e2e8f0; background: #1e293b; border-color: #334155; }
.dark .loop-post-title { color: #f8fafc; }
.dark .loop-post-card--list { border-color: #334155; }

.archive-page { min-height: 72vh; padding-bottom: 48px; background: #f8fafc; }
.archive-banner { position: relative; padding: 34px 16px; text-align: center; border-bottom: 1px solid #e2e8f0; background: #fff; }
.archive-banner > span { display: inline-block; margin-bottom: 6px; color: var(--brand-red); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.archive-banner h1 { margin: 0; color: #111827; font-size: clamp(34px, 6vw, 58px); font-weight: 900; line-height: 1.12; }
.archive-search { display: flex; width: min(420px, 100%); margin: 18px auto 0; }
.archive-search input { min-width: 0; flex: 1; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 6px 0 0 6px; }
.archive-search button { width: 50px; border: 0; border-radius: 0 6px 6px 0; color: #fff; background: var(--brand-red); }
.archive-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 28px; width: min(calc(100% - 32px), 1100px); margin: 28px auto 0; }
.archive-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #e2e8f0; }
.archive-title-row > span { width: 7px; height: 34px; border-radius: 6px; background: var(--brand-red); }
.archive-title-row h2 { margin: 0; font-size: 28px; font-weight: 900; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.archive-card-image { height: 220px; }
.archive-card-category-list { position: absolute; top: 13px; left: 13px; display: flex; flex-wrap: wrap; gap: 5px; max-width: calc(100% - 26px); }
.archive-card-category-list .archive-card-category { position: static; top: auto; left: auto; }
.archive-card-category { position: absolute; top: 13px; left: 13px; box-shadow: 0 3px 10px #0002; }
.archive-card-content { display: flex; flex-direction: column; padding: 17px 18px; }
.archive-card-content h2 { margin: 0 0 9px; font-size: 22px; line-height: 1.3; font-weight: 900; }
.archive-card-content h2 a:hover { color: var(--brand-red); }
.archive-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #64748b; font-size: 12px; font-weight: 700; }
.archive-meta i { margin-right: 4px; color: var(--brand-red); }
.archive-card-content p { margin: 12px 0 16px; color: #64748b; line-height: 1.65; }
.read-more { margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f5f9; font-size: 13px; }
.archive-sidebar { align-self: start; position: sticky; top: 80px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.sidebar-heading { margin-bottom: 10px; padding-bottom: 9px; border-bottom: 2px solid var(--brand-red); font-size: 18px; font-weight: 900; }
.sidebar-story { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; line-height: 1.35; font-weight: 700; }
.sidebar-story:hover { color: var(--brand-red); }
.sidebar-story img { width: 68px; height: 52px; flex: 0 0 auto; object-fit: cover; border-radius: 5px; }
.archive-pagination { margin-top: 25px; }
.archive-pagination .pager { display: flex; justify-content: center; gap: 8px; }
.archive-pagination a, .archive-pagination strong { display: inline-block; padding: 8px 13px; color: #334155; background: white; border: 1px solid #e2e8f0; border-radius: 7px; }
.archive-pagination strong { color: white; background: var(--brand-red); border-color: var(--brand-red); }
.category-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; }
.category-pagination .pagination-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.category-pagination a, .category-pagination span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 8px 12px; color: #334155; background: #fff; border: 1px solid #dbe2ea; border-radius: 8px; font-weight: 800; text-decoration: none; }
.category-pagination .pagination-direction { gap: 8px; padding-inline: 14px; }
.category-pagination .pagination-pages .is-current { color: #fff; background: var(--brand-red); border-color: var(--brand-red); }
.category-pagination .pagination-direction:hover, .category-pagination .pagination-pages a:hover { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
.category-pagination .pagination-direction.is-disabled { color: #94a3b8; background: #f1f5f9; border-color: #e2e8f0; }
.post-category-links { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.home-category-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.home-hero .home-category-pill { margin: 0; }
.post-category-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.post-category-labels .post-category-label { margin: 0; }
.no-results { padding: 56px 18px; text-align: center; color: #64748b; background: #fff; border: 1px dashed #cbd5e1; border-radius: 20px; }
.no-results > i { color: #cbd5e1; font-size: 40px; }
.no-results h2 { color: #334155; }
.admin-shell { min-height: 100vh; background: #f8fafc; }

.single-post-page { min-height: 72vh; padding: 16px 0 36px; background: #f8fafc; }
.post-page-container { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; width: min(calc(100% - 32px), 1100px); margin: 0 auto; }
.post-page-container > .image-ad.home-banner-ad,
.post-page-container > .image-ad.home-middle-ad { grid-column: 1 / -1; box-sizing: border-box; width: 100%; max-width: none; }
.post-page-container > .image-ad.home-banner-ad { margin: 0 auto 4px; padding: 0; }
.post-page-container > .image-ad.home-middle-ad { margin: 4px auto 8px; padding: 0; }
.post-article { min-width: 0; }
.post-category-label { display: inline-block; margin-bottom: 8px; padding: 4px 12px; color: white; background: #0784df; border-radius: 3px; font-size: 14px; font-weight: 800; }
.post-title { margin: 0 0 12px; color: #111827; font-size: clamp(36px, 5.5vw, 62px); line-height: 1.2; font-weight: 900; overflow-wrap: anywhere; }
.post-subtitle { margin: 0 0 15px; color: var(--brand-red); font-size: 20px; font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; padding: 10px 0; color: #64748b; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; font-size: 13px; }
.post-meta i { color: var(--brand-red); margin-right: 4px; }
.reading-post-title { position: sticky; top: 52px; z-index: 40; max-height: 0; margin: 0; padding: 0 10px; overflow: hidden; color: #1f2937; background: #ffffffed; border-radius: 4px; box-shadow: 0 2px 8px #00000012; font-size: 18px; font-weight: 900; opacity: 0; visibility: hidden; transition: all .2s ease; }
.reading-post-title.is-visible { max-height: 38px; margin-bottom: 8px; padding-block: 6px; opacity: 1; visibility: visible; }
.share-link { display: inline-flex; align-items: center; gap: 7px; margin: 0 7px 8px 0; padding: 7px 12px; color: #fff; border-radius: 6px; font-size: 13px; font-weight: 800; }
.share-facebook { background: #1877f2; }
.share-x { background: #111827; }
.post-share-box { min-height: 25px; margin: 10px 0; }
.post-share-top { min-height: 0; margin: 0 0 8px; padding: 0; border: 0; }
.post-featured-image { margin: 0 0 16px; overflow: hidden; border-radius: 6px; }
.post-featured-image img { display: block; width: 100%; height: auto; }
.post-content { color: #334155; font-size: 20px; line-height: 1.9; overflow-wrap: anywhere; text-align: justify; text-justify: inter-word; }
.post-content p { margin: 0 0 1.35em; }
.post-content img { max-width: 100%; height: auto; }
.news-image-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.news-image-gallery figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.news-image-gallery img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.news-image-gallery figcaption { padding: 7px 10px; color: #64748b; font-size: 12px; text-align: center; }
.post-content blockquote { position: relative; width: calc(100% - 28px); max-width: 760px; margin: 30px auto; padding: 26px 34px; border: 2px solid #2449b5; border-radius: 5px; background: #f1f1f1; color: #64748b; text-align: center; font-style: italic; font-weight: 700; }
.post-content blockquote::before, .post-content blockquote::after { position: absolute; display: grid; width: 44px; height: 44px; place-items: center; color: #164e81; background: #dff3fa; font-family: Georgia, serif; font-size: 58px; font-style: normal; font-weight: 900; line-height: 1; }
.post-content blockquote::before { top: -18px; left: -14px; content: "“"; }
.post-content blockquote::after { right: -14px; bottom: -22px; content: "”"; }
.post-inline-ad { max-width: 760px; margin: 5px auto; padding: 0; clear: both; }
.post-reaction-box, .related-news-section { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e5e7eb; }
.related-news-section h2 { font-size: 24px; }
.related-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-story { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid #e5e7eb; }
.related-story:hover { color: var(--brand-red); }
.related-story img { width: 82px; height: 62px; flex: 0 0 auto; object-fit: cover; border-radius: 5px; }
.post-sidebar { align-self: start; overflow: hidden; background: white; border: 1px solid #e5e7eb; border-radius: 10px; }
.post-sidebar-heading { padding: 12px 16px; color: #fff; background: var(--brand-red); border-bottom: 4px solid #facc15; font-weight: 900; }
.post-sidebar-tab-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #f1f5f9; }
.post-sidebar-tab-list [role="tab"] { min-height: 44px; padding: 9px 12px; color: #475569; background: transparent; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 800; cursor: pointer; }
.post-sidebar-tab-list [role="tab"].is-active { color: var(--brand-red); background: #fff; border-bottom-color: var(--brand-red); }
.post-sidebar-tab-list [role="tab"]:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -3px; }
.post-sidebar-tabpanel[hidden] { display: none; }
.post-sidebar-list { display: grid; align-content: start; }
.post-sidebar .loop-post-card--list { min-height: 76px; }
.post-sidebar .loop-post-card--list .loop-post-image { width: 88px; flex-basis: 88px; align-self: center; margin-left: 10px; }
.post-sidebar .loop-post-card--list .loop-post-content { padding: 8px 10px; }
.post-sidebar .loop-post-card--list .loop-post-title { min-height: 0; font-size: 14px; line-height: 1.3; }
.post-sidebar-empty { margin: 0; padding: 14px; color: #64748b; font-size: 14px; }

.login-page { display: grid; min-height: 72vh; place-items: center; padding: 44px 16px; background: radial-gradient(circle at 15% 15%, #dbeafe, transparent 32%), #f1f5f9; }
.login-card { width: min(100%, 460px); padding: 38px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 24px 60px #0f172a1c; }
.login-emblem { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 12px; color: #fff; background: var(--brand-blue); border-radius: 18px; font-size: 26px; box-shadow: 0 10px 20px #1d50b830; }
.login-kicker { margin: 0; text-align: center; color: var(--brand-red); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.login-card h1 { margin: 4px 0; text-align: center; font-size: 30px; font-weight: 900; }
.login-intro { margin: 0 0 22px; color: #64748b; text-align: center; }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 8px; color: #334155; font-weight: 800; }
.login-input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.login-input-wrap:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px #1d50b81a; }
.login-input-wrap i { color: #94a3b8; }
.login-input-wrap input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; }
.login-form button { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; padding: 13px 16px; color: #fff; background: var(--brand-red); border: 0; border-radius: 8px; font-weight: 900; cursor: pointer; }
.login-form button:hover { background: #991b1b; }
.login-form button:disabled { cursor: not-allowed; opacity: .55; }
.login-home-link { display: block; margin-top: 18px; color: #64748b; text-align: center; font-size: 14px; }
.login-home-link:hover { color: var(--brand-red); }
.form-alert { margin: 12px 0; padding: 10px 12px; border-radius: 7px; font-size: 14px; }
.form-alert-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.form-alert-success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }

.admin-page { min-height: 72vh; padding: 34px 16px 54px; background: #f8fafc; }
.admin-container { width: min(100%, 1100px); margin: auto; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-heading h1 { margin: 0; font-size: 34px; font-weight: 900; }
.admin-heading p { margin: 3px 0 0; color: #64748b; }
.admin-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; color: white; background: var(--brand-red); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.admin-button:hover { background: #991b1b; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-stat { padding: 20px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; }
.admin-stat span { display: block; color: #64748b; font-size: 13px; font-weight: 700; }
.admin-stat strong { display: block; margin-top: 3px; color: #111827; font-size: 30px; }
.blogger-dashboard { min-height: 75vh; padding: 24px 20px 52px; }
.blogger-dashboard .admin-container { width: min(100%, 1400px); }
.dashboard-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 26px; }
.dashboard-sidebar { position: sticky; top: 18px; display: flex; min-height: calc(100vh - 36px); flex-direction: column; padding: 18px 12px 12px; background: #fff; border: 1px solid #e5eaf1; border-radius: 14px; box-shadow: 0 5px 18px #0f172a08; }
.dashboard-site-name { display: flex; align-items: center; gap: 10px; margin: 0 5px 20px; color: #172033; font-weight: 900; }
.dashboard-site-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: #fff; background: #f97316; border-radius: 10px; }
.dashboard-new-post { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; margin: 0 4px 22px; color: #fff; background: #bd1e24; border-radius: 9px; font-weight: 900; box-shadow: 0 4px 10px #bd1e2424; }
.dashboard-new-post:hover { color: #fff; background: #a8171d; }
.dashboard-nav-label { margin: 4px 10px 7px; color: #94a3b8; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-nav { display: grid; gap: 3px; margin-bottom: 18px; }
.dashboard-nav a { display: flex; min-height: 41px; align-items: center; gap: 12px; padding: 8px 11px; color: #475569; border-radius: 8px; font-size: 14px; font-weight: 700; transition: color .15s ease, background .15s ease; }
.dashboard-nav a > i { width: 18px; color: #64748b; text-align: center; }
.dashboard-nav a > span:nth-of-type(1) { min-width: 0; }
.dashboard-nav a:hover { color: #1d50b8; background: #eff6ff; }
.dashboard-nav a.is-active { color: #bd1e24; background: #fff1f2; }
.dashboard-nav a.is-active > i { color: #bd1e24; }
.dashboard-nav-count { min-width: 22px; margin-left: auto; padding: 2px 6px; color: #fff; background: #bd1e24; border-radius: 20px; text-align: center; font-size: 11px; }
.dashboard-sidebar-bottom { display: grid; gap: 8px; margin-top: auto; padding: 15px 5px 0; border-top: 1px solid #eef2f7; }
.dashboard-sidebar-bottom > span, .dashboard-sidebar-bottom button { display: flex; align-items: center; gap: 9px; color: #64748b; font-size: 13px; font-weight: 700; }
.dashboard-sidebar-bottom form { margin: 0; }
.dashboard-sidebar-bottom button { padding: 6px 0; border: 0; background: none; cursor: pointer; }
.dashboard-sidebar-bottom button:hover { color: #bd1e24; }
.dashboard-content { min-width: 0; }
.dashboard-heading { align-items: center; margin: 5px 0 22px; padding-bottom: 17px; border-bottom: 1px solid #e2e8f0; }
.dashboard-heading h1 { color: #172033; font-size: 30px; }
.dashboard-heading .dashboard-eyebrow { margin: 0 0 2px; color: #bd1e24; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-heading > div > p:last-child { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.dashboard-content .admin-stats { gap: 12px; }
.dashboard-content .admin-stat { padding: 16px 18px; border-radius: 10px; box-shadow: 0 3px 12px #0f172a06; }
.dashboard-content .admin-stat strong { font-size: 27px; }
.dashboard-content .admin-comments { margin-bottom: 20px; padding: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 11px; }
.dashboard-content .admin-comments-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-content .admin-comments-heading h2 { margin: 0; color: #172033; font-size: 17px; font-weight: 900; }
.dashboard-content .admin-comments-heading > span { color: #64748b; font-size: 12px; font-weight: 700; }
.dashboard-content .admin-comments > p { margin: 0; color: #64748b; font-size: 13px; }
.dashboard-content .admin-comments .admin-table-wrap { box-shadow: none; }
.dashboard-content > .admin-table-wrap { box-shadow: 0 3px 14px #0f172a08; }
.dashboard-content .admin-table th { white-space: nowrap; }
.dashboard-content .admin-table td { max-width: 280px; }
.dark .dashboard-sidebar, .dark .dashboard-content .admin-comments { color: #e2e8f0; background: #1e293b; border-color: #334155; }
.dark .dashboard-site-name, .dark .dashboard-heading h1, .dark .dashboard-content .admin-comments-heading h2 { color: #f8fafc; }
.dark .dashboard-sidebar-bottom { border-color: #334155; }
.dark .dashboard-nav a { color: #cbd5e1; }
.dark .dashboard-nav a:hover { color: #bfdbfe; background: #334155; }
.dark .dashboard-nav a.is-active { color: #fecaca; background: #451a1a; }
.dark .dashboard-content .admin-comments > p, .dark .dashboard-heading > div > p:last-child { color: #94a3b8; }
.dark .dashboard-heading { border-color: #334155; }
.admin-table-wrap { overflow: auto; background: white; border: 1px solid #e2e8f0; border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 13px 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table th { color: #475569; background: #f8fafc; font-size: 13px; }
.admin-table td { font-size: 14px; }
.admin-table img { width: 62px; height: 46px; object-fit: cover; border-radius: 5px; }
.admin-story-cell { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.admin-story-cell a { font-weight: 800; }
.admin-story-cell a:hover { color: var(--brand-red); }
.status-badge { display: inline-block; padding: 4px 8px; border-radius: 20px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-badge.is-published { color: #166534; background: #dcfce7; }
.status-badge.is-draft { color: #854d0e; background: #fef3c7; }
.admin-table-actions { display: flex; align-items: center; gap: 10px; }
.admin-table-actions form { margin: 0; }
.admin-table-actions button { padding: 6px 9px; color: #b91c1c; border: 1px solid #fecaca; border-radius: 6px; background: #fff; cursor: pointer; }
.admin-table-actions a { color: var(--brand-blue); font-weight: 700; }
.admin-button-secondary { background: #334155; }
.admin-current-image { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 7px; }
.admin-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.admin-panel { padding: 20px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; }
.admin-panel h2 { margin: 0 0 14px; font-size: 19px; }
.admin-field { display: grid; gap: 6px; margin-bottom: 16px; }
.admin-field label { color: #334155; font-weight: 800; }
.admin-field input, .admin-field select, .admin-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.admin-field textarea { min-height: 260px; }
.admin-status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-status-actions button { flex: 1; min-width: 120px; }
.notice { padding: 10px 12px; margin-bottom: 14px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 7px; }
.notice[role="alert"] { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.ad-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ad-admin-card { min-width: 0; padding: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.ad-admin-card h2 { margin: 0 0 12px; font-size: 19px; font-weight: 900; }
.ad-admin-preview { display: block; width: 100%; max-height: 220px; margin-bottom: 14px; object-fit: contain; background: #f1f5f9; border-radius: 7px; }
.ad-admin-empty { display: grid; min-height: 110px; margin: 0 0 14px; place-items: center; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 7px; }
.ad-admin-form { display: grid; gap: 12px; }
.ad-admin-form > label:not(.ad-active-toggle) { display: grid; gap: 6px; color: #334155; font-size: 14px; font-weight: 800; }
.ad-admin-form input[type="text"], .ad-admin-form input[type="url"] { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 7px; }
.ad-admin-form input[type="file"] { max-width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 7px; background: #f8fafc; }
.ad-active-toggle { display: flex; align-items: center; gap: 8px; }
.ad-admin-form button, .ad-admin-card > form button { width: 100%; padding: 10px 14px; color: #fff; background: var(--brand-red); border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; }
.ad-admin-card > form { margin-top: 8px; }
.ad-admin-card > form .ad-delete-button { color: #b91c1c; background: #fff; border: 1px solid #fecaca; }
.image-ad { width: 100%; margin: 8px auto; display: flex; align-items: center; justify-content: center; text-align: center; }
.image-ad > a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.image-ad > img, .image-ad > a > img { display: block; width: auto; max-width: 100%; max-height: 260px; margin-inline: auto; object-fit: contain; }
.home-banner-ad, .home-middle-ad, .footer-banner-ad { max-width: 1100px; }
.post-sidebar-ad { margin: 0; padding: 6px 8px; border-bottom: 1px solid #f1f5f9; }
.post-sidebar-ad img { max-height: 220px; border-radius: 5px; }
.site-footer > .footer-banner-ad { width: min(calc(100% - 32px), 1100px); max-width: none; margin-inline: auto; padding: 0; }
.site-footer > .footer-banner-ad img { max-height: 180px; }

.site-footer { margin-top: 48px; padding: 28px 0 0; color: #64748b; background: #fff; border-top: 1px solid #e2e8f0; }
.admin-copyright { padding: 12px 16px; color: #64748b; text-align: center; font-size: 12px; }
.footer-grid.compact-footer-grid { display: grid; grid-template-columns: 1.35fr .85fr .9fr 1.2fr; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.compact-footer-grid > .compact-footer-column { min-width: 0; min-height: 235px; padding: 22px 22px 24px; }
.compact-footer-grid > .compact-footer-column:first-child { padding-left: 0; }
.compact-footer-grid > .compact-footer-column:last-child { padding-right: 0; }
.compact-footer-grid > .compact-footer-column + .compact-footer-column { border-left: 1px solid #e5e7eb; }
.compact-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.compact-footer-logo { display: block; width: 180px; height: 78px; object-fit: contain; object-position: left center; }
.compact-footer-site-name { display: block; margin-bottom: 0; color: #111827; font-size: 21px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.compact-footer-info { margin: 0; color: #334155; font-size: 14.5px; line-height: 1.7; font-weight: 600; }
.compact-footer-social { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.compact-footer-social a, .compact-footer-social span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 2px solid #e2e8f0; border-radius: 50%; background: #f8fafc; text-decoration: none; transition: all .3s ease; box-shadow: 0 2px 5px #0000000d; }
.compact-footer-social .social-fb { color: #1877f2; border-color: #bfdbfe; background: #eff6ff; }
.compact-footer-social .social-wa { color: #25d366; border-color: #bbf7d0; background: #f0fdf4; }
.compact-footer-social .social-yt { color: #f00; border-color: #fecaca; background: #fef2f2; }
.compact-footer-social .social-tiktok { color: #000; border-color: #cbd5e1; background: #f1f5f9; }
.compact-footer-social a:hover { transform: translateY(-3px); box-shadow: 0 4px 12px #00000026; }
.compact-footer-social a.social-fb:hover { color: #fff; border-color: #1877f2; background: #1877f2; }
.compact-footer-social a.social-wa:hover { color: #fff; border-color: #25d366; background: #25d366; }
.compact-footer-social a.social-yt:hover { color: #fff; border-color: #f00; background: #f00; }
.compact-footer-social a.social-tiktok:hover { color: #fff; border-color: #000; background: #000; }
.compact-footer-heading { margin: 0 0 16px; color: var(--brand-red); font-size: 19px; line-height: 1.1; font-weight: 900; }
.compact-footer-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.compact-footer-list a { color: #64748b; font-size: 14px; line-height: 1.35; text-decoration: none; transition: color .2s ease; }
.compact-footer-list a:hover, .compact-footer-bottom a:hover { color: var(--brand-red); }
.compact-footer-team { display: grid; gap: 16px; }
.compact-footer-role { display: block; color: #64748b; font-size: 13.5px; line-height: 1.3; font-weight: 600; }
.compact-footer-name { display: block; margin-top: 2px; color: #0f172a; font-size: 16px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.compact-footer-name a { color: inherit; }
.compact-footer-contact { display: grid; gap: 14px; }
.compact-footer-contact p { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: #334155; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.compact-footer-contact p i, .compact-footer-contact-link i { flex: 0 0 16px; margin-top: 4px; color: var(--brand-red); }
.compact-footer-contact-link { display: inline-flex; align-items: center; gap: 9px; color: #334155; font-size: 14px; }
.compact-footer-contact-link:hover { color: var(--brand-red); }
.footer-bottom.compact-footer-bottom { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 8px 0; color: #64748b; font-family: Arial, sans-serif; font-size: 12px; line-height: 1.4; text-align: center; }
.compact-footer-bottom a { color: #111827; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 48px; min-height: 48px; padding: 10px 14px; color: #fff; background: var(--brand-blue); border: 0; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 5px 18px #0f172a35; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, background-color .2s ease, visibility .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-red); }

.dark body, .dark .homepage-main, .dark .archive-page, .dark .single-post-page, .dark .admin-page { color: #e2e8f0; background: #0f172a; }
.dark .site-header, .dark .home-section, .dark .latest-card, .dark .category-post, .dark .archive-card, .dark .archive-sidebar, .dark .post-sidebar, .dark .login-card, .dark .admin-panel, .dark .admin-stat, .dark .admin-table-wrap, .dark .empty-note, .dark .no-results { color: #e2e8f0; background: #1e293b; border-color: #334155; }
.dark .site-brand strong, .dark .home-hero h1, .dark .section-heading h2, .dark .archive-banner h1, .dark .archive-title-row h2, .dark .post-title, .dark .login-card h1, .dark .admin-heading h1, .dark .admin-stat strong { color: #f8fafc; }
.dark .archive-banner, .dark .top-strip { color: #cbd5e1; background: #111827; border-color: #334155; }
.dark .site-footer { color: #cbd5e1; background: #020617; border-color: #1e293b; }
.dark .footer-grid, .dark .footer-grid > section + section, .dark .footer-bottom { border-color: #1e293b; }
.dark .compact-footer-site-name, .dark .compact-footer-name, .dark .compact-footer-bottom a { color: #f8fafc; }
.dark .compact-footer-info, .dark .compact-footer-contact p, .dark .compact-footer-contact-link { color: #e2e8f0; }
.dark .compact-footer-role, .dark .compact-footer-list a, .dark .compact-footer-bottom { color: #94a3b8; }
.dark .compact-footer-list a:hover { color: #f87171; }
.dark .compact-footer-social a, .dark .compact-footer-social span { border-color: #334155; background: #0f172a; }
.dark .compact-footer-social .social-tiktok { color: #fff; border-color: #334155; background: #0f172a; }
.dark .compact-footer-social a.social-tiktok:hover { color: #000; border-color: #fff; background: #fff; }
.dark .compact-footer-social a.social-fb:hover, .dark .compact-footer-social a.social-wa:hover, .dark .compact-footer-social a.social-yt:hover { color: #fff; }
.dark .post-content { color: #cbd5e1; }
.dark .ad-admin-card { color: #e2e8f0; background: #1e293b; border-color: #334155; }
.dark .ad-admin-form > label:not(.ad-active-toggle) { color: #cbd5e1; }
.dark .ad-admin-form input[type="text"], .dark .ad-admin-form input[type="url"] { color: #e2e8f0; background: #0f172a; border-color: #475569; }
.dark .ad-admin-empty { color: #94a3b8; background: #0f172a; border-color: #475569; }
.dark .ad-admin-preview { background: #0f172a; }
.dark .post-sidebar-ad { border-color: #334155; }
.dark .post-sidebar-tab-list { background: #0f172a; }
.dark .post-sidebar-tab-list [role="tab"] { color: #cbd5e1; }
.dark .post-sidebar-tab-list [role="tab"].is-active { color: #fecaca; background: #1e293b; }
.dark .post-related-section { color: #e2e8f0; background: #1e293b; border-color: #334155; }
.dark .post-related-section > h2 { color: #f8fafc; }
.dark .post-content blockquote { color: #e2e8f0; background: #1e293b; border-color: #60a5fa; }
.dark .post-content blockquote::before, .dark .post-content blockquote::after { color: #bfdbfe; background: #0f172a; }
.dark .news-image-gallery figure { background: #1e293b; border-color: #334155; }
.dark .news-image-gallery figcaption { color: #94a3b8; }
.dark .archive-card-content p, .dark .home-hero-summary { color: #cbd5e1; }
.dark .archive-meta, .dark .post-meta, .dark .home-meta { color: #94a3b8; }

@media (max-width: 900px) {
    .loop-post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .loop-three-column-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); }
    .loop-three-column-side .loop-post-card--three-column-side .loop-post-image { width: 58px; flex-basis: 58px; }
    .loop-three-column-side .loop-post-card--three-column-side .loop-post-title { font-size: 13px; }
    .loop-newspaper-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid.compact-footer-grid { grid-template-columns: 1.2fr .8fr; }
    .compact-footer-grid > .compact-footer-column { min-height: 215px; padding: 22px 20px; }
    .compact-footer-grid > .compact-footer-column:first-child { padding-left: 0; }
    .compact-footer-grid > .compact-footer-column:nth-child(3) { border-top: 1px solid #e5e7eb; border-left: 0; }
    .compact-footer-grid > .compact-footer-column:nth-child(4) { border-top: 1px solid #e5e7eb; }
    .dark .compact-footer-grid > .compact-footer-column:nth-child(3), .dark .compact-footer-grid > .compact-footer-column:nth-child(4) { border-color: #1e293b; }
    .masthead { min-height: 94px; }
    .nav-list { gap: 14px; }
    .nav-list a { font-size: 19px; }
    .dashboard-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 16px; }
    .blogger-dashboard { padding-inline: 12px; }
    .archive-layout { grid-template-columns: minmax(0, 1fr); }
    .archive-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
    .sidebar-heading { grid-column: 1 / -1; }
    .post-page-container { grid-template-columns: minmax(0, 1fr); }
    .post-sidebar { position: static; }
    .ad-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .reading-post-title { top: 72px; }
    .loop-post-grid--2, .loop-post-grid--3, .loop-title-grid, .loop-newspaper-side { grid-template-columns: minmax(0, 1fr); }
    .loop-three-column-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; grid-template-areas: "featured featured"; gap: 8px 10px; }
    .loop-three-column-featured { grid-row: 1; grid-column: 1 / -1; }
    .loop-three-column-featured > .loop-post-card--three-column-lead { height: auto; overflow: visible; background: transparent; }
    .loop-three-column-layout .loop-post-card--three-column-lead .loop-post-image { position: relative; inset: auto; height: auto; aspect-ratio: 2 / 1; }
    .loop-three-column-layout .loop-post-card--three-column-lead .loop-post-image::after { display: none; }
    .loop-three-column-layout .loop-post-card--three-column-lead .loop-post-content { position: static; padding: 5px 4px 8px; text-align: center; }
    .loop-three-column-layout .loop-post-card--three-column-lead .loop-post-title { color: var(--ink); font-size: 19px; line-height: 1.25; text-shadow: none; }
    .dark .loop-three-column-layout .loop-post-card--three-column-lead .loop-post-title { color: #f8fafc; }
    .loop-three-column-left, .loop-three-column-right { display: contents; }
    .loop-three-column-left .loop-post-card--three-column-side:first-child { grid-column: 1; grid-row: 2; }
    .loop-three-column-right .loop-post-card--three-column-side:first-child { grid-column: 2; grid-row: 2; }
    .loop-three-column-left .loop-post-card--three-column-side:nth-child(2) { grid-column: 1 / -1; grid-row: 3; }
    .loop-three-column-right .loop-post-card--three-column-side:nth-child(2) { grid-column: 1 / -1; grid-row: 4; }
    .loop-three-column-left .loop-post-card--three-column-side:nth-child(3) { grid-column: 1 / -1; grid-row: 5; }
    .loop-three-column-right .loop-post-card--three-column-side:nth-child(3) { grid-column: 1 / -1; grid-row: 6; }
    .loop-three-column-left .loop-post-card--three-column-side:nth-child(4) { grid-column: 1 / -1; grid-row: 7; }
    .loop-three-column-right .loop-post-card--three-column-side:nth-child(4) { grid-column: 1 / -1; grid-row: 8; }
    .loop-three-column-side .loop-post-card--three-column-side { min-height: 0; }
    .loop-three-column-side .loop-post-card--three-column-side:first-child { flex-direction: column; align-items: stretch; border: 0; }
    .loop-three-column-side .loop-post-card--three-column-side:first-child .loop-post-image { width: 100%; height: auto; flex: 0 0 auto; aspect-ratio: 3 / 2; }
    .loop-three-column-side .loop-post-card--three-column-side:first-child .loop-post-content { padding: 4px 2px; }
    .loop-three-column-side .loop-post-card--three-column-side:first-child .loop-post-title { font-size: 15px; line-height: 1.2; }
    .loop-three-column-side .loop-post-card--three-column-side:not(:first-child) { min-height: 76px; flex-direction: row; }
    .loop-three-column-side .loop-post-card--three-column-side:not(:first-child) .loop-post-image { width: 38%; height: auto; flex: 0 0 38%; aspect-ratio: 3 / 2; }
    .loop-three-column-side .loop-post-card--three-column-side:not(:first-child) .loop-post-content { padding: 6px 10px; }
    .loop-three-column-side .loop-post-card--three-column-side:not(:first-child) .loop-post-title { font-size: 15px; line-height: 1.25; }
    .loop-two-column-layout, .loop-two-column-layout.has-sidebar-ad { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .loop-two-column-layout .loop-post-grid--2, .loop-two-column-layout .loop-post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
    .loop-post-card--two-column .loop-post-title { font-size: 15px; }
    .loop-two-column-ad { position: static; }
    .loop-list-layout, .loop-list-layout.has-sidebar-ad { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .loop-list-ad { position: static; }
    .loop-title-only-layout, .loop-title-only-layout.has-sidebar-ad { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .loop-title-only-layout:not(.has-sidebar-ad) .loop-title-grid,
    .loop-title-only-layout.has-sidebar-ad .loop-title-grid { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .loop-title-only-ad { position: static; }
    .loop-complex-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "side" "bottom"; gap: 14px; }
    .loop-complex-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
    .loop-complex-bottom { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .loop-post-card--complex-lead .loop-post-image { aspect-ratio: 16 / 9; }
    .loop-post-card--complex-lead .loop-post-title { font-size: 18px; line-height: 1.35; }
    .loop-post-author--complex, .loop-post-excerpt--complex { display: none; }
    .loop-post-card--complex-side .loop-post-title, .loop-post-card--complex-bottom .loop-post-title { font-size: 15px; }
    .loop-post-card--complex-bottom { min-height: 96px; flex-direction: row; align-items: stretch; border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0; box-shadow: none; }
    .loop-post-card--complex-bottom .loop-post-image { width: 128px; flex: 0 0 128px; aspect-ratio: 16 / 10; border-radius: 6px; }
    .loop-post-card--complex-bottom .loop-post-content { justify-content: center; padding: 8px 12px; }
    .loop-newspaper-grid { grid-template-columns: minmax(0, 1fr); }
    .loop-newspaper-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .loop-post-card--newspaper-lead .loop-post-title { font-size: 22px; line-height: 1.3; }
    .loop-post-author--newspaper-lead, .loop-post-excerpt--newspaper-lead { display: none; }
    .loop-post-card--newspaper-side .loop-post-content { padding: 7px 8px 9px; }
    .loop-post-card--newspaper-side .loop-post-title { font-size: 14px; }
    .loop-post-card--big .loop-post-image { aspect-ratio: auto; }
    .loop-post-card--big .loop-post-title { font-size: 42px; line-height: 1.12; }
    .loop-post-card--big .loop-post-content { padding-bottom: 10px; }
    .loop-post-card--big .loop-post-excerpt { font-size: 14px; }
    .loop-big-post-list { gap: 16px; }
    .loop-big-post-list > .loop-post-card--big + .loop-post-card--big { padding-top: 14px; }
    .homepage-content > .home-section { padding: 14px 8px 16px; }
    .loop-post-grid, .loop-title-grid, .loop-complex-grid, .loop-newspaper-grid, .loop-newspaper-side { gap: 12px; }
    .loop-section-heading { gap: 9px; margin-bottom: 14px; }
    .loop-section-heading h2 { max-width: 75%; font-size: clamp(19px, 5vw, 24px); }
    .loop-post-card--list .loop-post-image { width: 104px; flex-basis: 104px; }
    .loop-post-card--list .loop-post-content { padding: 8px 10px; }
    .loop-post-card--list .loop-post-title { font-size: 16px; }
    .header-container, .footer-container { width: min(calc(100% - 24px), 1100px); }
    .site-footer { margin-top: 32px; padding-top: 20px; }
    .footer-grid.compact-footer-grid { display: block; }
    .compact-footer-grid > .compact-footer-column, .compact-footer-grid > .compact-footer-column:first-child, .compact-footer-grid > .compact-footer-column:last-child { min-height: auto; padding: 22px 0; }
    .compact-footer-grid > .compact-footer-column + .compact-footer-column, .compact-footer-grid > .compact-footer-column:nth-child(3), .compact-footer-grid > .compact-footer-column:nth-child(4) { border-top: 1px solid #e5e7eb; border-left: 0; }
    .dark .compact-footer-grid > .compact-footer-column + .compact-footer-column, .dark .compact-footer-grid > .compact-footer-column:nth-child(3), .dark .compact-footer-grid > .compact-footer-column:nth-child(4) { border-color: #1e293b; }
    .compact-footer-logo { width: 165px; height: 72px; }
    .compact-footer-site-name { font-size: 24px; }
    .compact-footer-heading { margin-bottom: 13px; font-size: 18px; }
    .footer-bottom.compact-footer-bottom { flex-direction: column; gap: 4px; padding: 12px 0; }
    .compact-footer-separator { display: none; }
    .header-top-ad-row { width: min(calc(100% - 24px), 1100px); padding: 6px 0; }
    .header-top-ad-row img { max-height: 80px; }
    .site-footer > .footer-banner-ad { width: min(calc(100% - 24px), 1100px); }
    .back-to-top { right: 14px; bottom: 14px; }
    .top-strip > .header-container { min-height: 30px; }
    .public-site .top-strip { position: static; }
    .top-strip-links { gap: 12px; }
    .top-strip-links > a { display: none; }
    .top-strip-links { flex: 1; justify-content: flex-end; gap: 8px; }
    .top-strip .header-search { width: min(210px, calc(100vw - 170px)); min-width: 120px; height: 30px; }
    .top-strip .header-search input { position: static; width: 100%; height: 100%; flex: 1; clip: auto; overflow: visible; padding: 0 7px; font-size: 12px; }
    .top-strip .header-search button { flex: 0 0 32px; width: 32px; color: #fff; background: var(--brand-red); }
    .top-strip .theme-toggle { display: none; }
    .public-site .site-header { position: sticky; top: 0; z-index: 90; }
    .masthead, .site-header.has-masthead-ad .masthead { position: relative; width: min(calc(100% - 24px), 1100px); min-height: 64px; justify-content: center; gap: 0; padding-block: 6px; }
    .mobile-menu-toggle { position: absolute; left: 0; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #1d50b8; background: transparent; font-size: 22px; cursor: pointer; }
    .mobile-menu-toggle:hover { background: #eff6ff; }
    .brand-mark { width: 42px; height: 42px; font-size: 20px; border-radius: 9px; }
    .site-brand { max-width: calc(100% - 100px); justify-content: center; gap: 8px; margin-left: 0 !important; }
    .site-brand .site-logo-image { max-width: min(100px, 24vw); max-height: 50px; }
    .site-brand strong { font-size: 23px; }
    .site-brand small { font-size: 11px; }
    .masthead-tools { position: absolute; right: 0; display: flex; margin-left: 0; }
    .masthead-tools > .staff-link, .logout-form, .desktop-theme-toggle { display: none; }
    .masthead-tools .mobile-theme-toggle { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #1d50b8; background: transparent; font-size: 19px; cursor: pointer; }
    .masthead-ad { display: none; }
    .primary-nav { position: static; z-index: auto; background: transparent; box-shadow: none; }
    .nav-inner { position: static; display: block; min-height: 0; padding: 0; }
    .nav-live { display: none; }
    .mobile-nav-backdrop { position: fixed; inset: 0; z-index: 100; display: block; width: 100%; height: 100%; padding: 0; background: #0f172a80; border: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
    #mobile-nav-container { position: fixed; top: 0; bottom: 0; left: 0; z-index: 101; display: block; width: min(84vw, 340px); height: 100dvh; overflow-y: auto; padding: 0 16px 24px; background: #fff; box-shadow: 12px 0 32px #0f172a30; transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; }
    .dark #mobile-nav-container { color: #e2e8f0; background: #1e293b; }
    body.mobile-menu-open { overflow: hidden; }
    body.mobile-menu-open .mobile-nav-backdrop { opacity: 1; visibility: visible; }
    body.mobile-menu-open #mobile-nav-container { transform: translateX(0); visibility: visible; }
    .mobile-drawer-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 58px; margin: 0 -16px 8px; padding: 0 16px; color: #fff; background: var(--brand-blue); font-size: 18px; font-weight: 900; }
    .mobile-nav-close { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: #ffffff20; border: 0; border-radius: 8px; font-size: 20px; cursor: pointer; }
    .nav-list { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; margin: 0; }
    .nav-list li { list-style: none; }
    .nav-list a { display: flex; align-items: center; min-height: 46px; padding: 10px 6px; color: #1e293b; border-bottom: 1px solid #e2e8f0; font: 700 16px/1.3 'Mukta', sans-serif; white-space: normal; }
    .nav-list a:hover { color: var(--brand-blue); background: #eff6ff; }
    .dark .nav-list a { color: #e2e8f0; border-color: #334155; }
    .dark .nav-list a:hover { background: #0f172a; }
    .nav-list a i { display: inline-block; width: 28px; flex: 0 0 28px; color: #1d50b8; font-size: 15px; text-align: center; }
    .mobile-staff-link { display: block; }
    .mobile-staff-link a { color: #b91c1c; }
    .mobile-staff-link { display: block; }
    .home-container { width: calc(100% - 16px); padding-top: 8px; }
    .home-hero { padding: 16px 4px 18px; }
    .home-hero h1 { font-size: clamp(32px, 9vw, 44px); }
    .home-hero-image img { max-height: 320px; }
    .home-meta { gap: 10px; font-size: 12px; }
    .home-hero-summary { font-size: 16px; }
    .section-heading { gap: 9px; margin-bottom: 13px; }
    .section-heading h2 { font-size: 22px; }
    .latest-grid, .category-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .latest-card-image, .category-post-image { height: 130px; }
    .latest-card h3, .category-post h3 { font-size: 16px; }
    .latest-card-content { padding: 10px; }
    .category-post h3 { padding: 0 10px 12px; }
    .updates-list { grid-template-columns: 1fr; }
    .archive-layout { width: calc(100% - 24px); margin-top: 20px; }
    .category-pagination { gap: 6px; }
    .category-pagination .pagination-pages { gap: 4px; }
    .category-pagination a, .category-pagination span { min-width: 36px; min-height: 36px; padding: 7px 9px; font-size: 13px; }
    .category-pagination .pagination-direction { padding-inline: 10px; }
    .archive-grid { grid-template-columns: 1fr; gap: 15px; }
    .archive-card-image { height: 210px; }
    .archive-banner { padding: 26px 12px; }
    .archive-sidebar { grid-template-columns: 1fr; }
    .archive-title-row h2 { font-size: 24px; }
    .post-page-container { width: calc(100% - 20px); gap: 18px; }
    .post-title { font-size: 39px; }
    .post-content { font-size: 18px; }
    .news-image-gallery { grid-template-columns: 1fr; }
    .header-banner-row { padding-bottom: 10px; }
    .header-banner-row img { max-height: 72px; }
    .related-news-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 22px; }
    .admin-heading { align-items: flex-start; flex-direction: column; }
    .admin-heading h1 { font-size: 28px; }
    .admin-stats { grid-template-columns: 1fr; gap: 10px; }
    .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
    .dashboard-sidebar { position: static; min-height: 0; }
    .dashboard-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-sidebar-bottom { grid-template-columns: 1fr auto; align-items: center; }
    .dashboard-heading { align-items: flex-start; }
    .dashboard-content .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-form-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid > section { padding: 17px 12px; }
    .footer-grid > section:first-child { padding-left: 12px; }
    .footer-grid > section + section { border-left: 0; }
    .footer-grid > section:nth-child(even) { border-left: 1px solid #e5e7eb; }
    .dark .footer-grid > section:nth-child(even) { border-left-color: #334155; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 390px) {
    .site-brand strong { font-size: 19px; }
    .site-brand small { font-size: 10px; }
    .brand-mark { width: 36px; height: 36px; font-size: 17px; }
    .mobile-menu-toggle { width: 38px; height: 38px; font-size: 20px; }
    .latest-grid, .category-post-grid { gap: 8px; }
    .latest-card-image, .category-post-image { height: 112px; }
    .latest-card h3, .category-post h3 { font-size: 15px; }
    .dashboard-content .admin-stats { grid-template-columns: 1fr; }
    .dashboard-content .admin-comments-heading { align-items: flex-start; flex-direction: column; }
}
