/* ═══════════════════════════════════════════════════
   TARIKH THEME — main.css
   Historical archive theme for history.dilmun.bh
   RTL-first, Arabic typography, heritage palette
   ═══════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Colors — Heritage palette */
    --burgundy: #8B1A2B;
    --burgundy-light: #A52A3A;
    --burgundy-dark: #6B1020;
    --gold: #B8860B;
    --gold-light: #D4A843;
    --gold-muted: rgba(184, 134, 11, 0.15);

    /* Neutrals */
    --parchment: #FAF8F3;
    --parchment-dark: #F0EDE5;
    --cream: #F5F2EB;
    --sand: #E8E2D6;
    --fg: #2C1810;
    --fg-secondary: #5C4A3A;
    --fg-muted: #8B7B6B;
    --border: #DDD5C8;
    --border-light: #EBE6DD;

    /* Typography */
    --font-heading: 'Noto Naskh Arabic', serif;
    --font-body: 'IBM Plex Sans Arabic', sans-serif;

    /* Spacing */
    --section-gap: clamp(3rem, 6vw, 5rem);
    --container-max: 1200px;
    --container-narrow: 780px;

    /* Misc */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(44,24,16,0.06);
    --shadow-md: 0 4px 16px rgba(44,24,16,0.08);
    --shadow-lg: 0 8px 32px rgba(44,24,16,0.10);
    --transition: 0.25s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--parchment);
    color: var(--fg);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--burgundy-light); }
ul, ol { list-style: none; }

/* ─── Layout ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
    padding: var(--section-gap) 0;
}
.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.section__subtitle {
    color: var(--fg-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}
.section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.section__more {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--burgundy);
}
.section__more:hover { color: var(--gold); }

/* ─── Geometric Pattern ─── */
.geo-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background-image:
        linear-gradient(var(--burgundy) 1px, transparent 1px),
        linear-gradient(90deg, var(--burgundy) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

/* ─── Reading Progress Bar ─── */
.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    z-index: 1001;
    background: transparent;
}
.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2rem;
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--fg);
    flex-shrink: 0;
}
.site-header__logo:hover { color: var(--burgundy); }
.site-header__icon { color: var(--burgundy); }
.site-header__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Desktop Nav */
.site-nav { flex: 1; }
.site-nav__list {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.site-nav__link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.site-nav__link:hover {
    color: var(--burgundy);
    background: var(--gold-muted);
}
.site-nav__link.is-active {
    color: var(--burgundy);
    background: var(--gold-muted);
    font-weight: 600;
}

/* Header Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--fg-secondary);
    transition: all var(--transition);
}
.site-header__search-btn:hover {
    background: var(--gold-muted);
    color: var(--burgundy);
}

/* Hamburger */
.site-header__menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 8px;
}
.site-header__menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all var(--transition);
}
.site-header__menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.site-header__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    top: 64px;
    z-index: 999;
    background: rgba(250, 248, 243, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav__inner {
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}
.mobile-nav__list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--fg);
    font-size: 1rem;
    font-weight: 500;
}
.mobile-nav__list li a:hover { color: var(--burgundy); }
.mobile-nav__count {
    font-size: 0.8rem;
    color: var(--fg-muted);
    background: var(--sand);
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
}
.mobile-nav__search {
    margin-top: 1.5rem;
}
.mobile-nav__search input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-family: var(--font-body);
    font-size: 1rem;
    direction: rtl;
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */

.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
    text-align: center;
    background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border-light);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--burgundy-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.hero__tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--fg-secondary);
    margin-bottom: 2rem;
}
.hero__stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2.5rem;
}
.hero__stat { text-align: center; }
.hero__stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.hero__stat-label {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* Hero Search */
.hero__search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}
.hero__search input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    direction: rtl;
    background: transparent;
}
.hero__search input:focus { outline: none; }
.hero__search button {
    padding: 0.875rem 1.5rem;
    background: var(--burgundy);
    color: white;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition);
}
.hero__search button:hover { background: var(--burgundy-light); }

/* ═══════════════════════════════════════════════════
   CATEGORY GRID
   ═══════════════════════════════════════════════════ */

.categories-section { background: var(--parchment); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    color: var(--fg);
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gold-light);
    color: var(--fg);
}
.category-card__img {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--sand);
}
.category-card__img--placeholder {
    background: linear-gradient(135deg, var(--sand), var(--parchment-dark));
}
.category-card__body {
    padding: 1rem 1.25rem;
}
.category-card__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.category-card__count {
    font-size: 0.8rem;
    color: var(--fg-muted);
}

/* ═══════════════════════════════════════════════════
   ARTICLE CARDS
   ═══════════════════════════════════════════════════ */

.latest-section { background: var(--cream); }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.articles-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.article-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.article-card__link {
    display: block;
    color: var(--fg);
}
.article-card__link:hover { color: var(--fg); }
.article-card__img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--sand);
}
.article-card__body {
    padding: 1.25rem;
}
.article-card__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--burgundy);
    background: var(--gold-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}
.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.article-card__excerpt {
    font-size: 0.875rem;
    color: var(--fg-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.article-card__date {
    font-size: 0.8rem;
    color: var(--fg-muted);
}

/* ═══════════════════════════════════════════════════
   PHOTO STRIP
   ═══════════════════════════════════════════════════ */

.photos-section {
    background: var(--fg);
    padding-bottom: calc(var(--section-gap) + 0.5rem);
}
.photos-section .section__title { color: var(--parchment); }
.photos-section .section__more { color: var(--gold-light); }

.photos-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.5rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--fg-muted) transparent;
}
.photo-card {
    flex-shrink: 0;
    width: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}
.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card__title {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2.5rem 0.75rem 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   VILLAGES HIGHLIGHT
   ═══════════════════════════════════════════════════ */

.villages-section { background: var(--parchment); }

.villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.village-card a {
    display: block;
    color: var(--fg);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.village-card a:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gold-light);
}
.village-card__img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--sand);
}
.village-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.25rem 0.25rem;
}
.village-card__excerpt {
    font-size: 0.85rem;
    color: var(--fg-secondary);
    padding: 0 1.25rem 1rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   TOPIC CHIPS
   ═══════════════════════════════════════════════════ */

.topics-section {
    background: var(--cream);
    text-align: center;
}
.topics-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: white;
    color: var(--fg);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.topic-chip:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
    background: var(--gold-muted);
}
.topic-chip__count {
    font-size: 0.75rem;
    color: var(--fg-muted);
    background: var(--sand);
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
}

/* ═══════════════════════════════════════════════════
   ARCHIVE HEADER
   ═══════════════════════════════════════════════════ */

.archive-header {
    padding: clamp(2rem, 5vw, 3.5rem) 0 2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border-light);
}
.archive-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--burgundy-dark);
    margin-bottom: 0.5rem;
}
.archive-header__desc {
    color: var(--fg-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    max-width: 600px;
}
.archive-header__count {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* ═══════════════════════════════════════════════════
   SINGLE ARTICLE
   ═══════════════════════════════════════════════════ */

.single-article {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.single-article__header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.single-article__cat {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--burgundy);
    background: var(--gold-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 1rem;
}
.single-article__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--fg);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.single-article__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--fg-muted);
}
.single-article__sep { opacity: 0.5; }

/* Prose — optimized for long Arabic reading */
.prose {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--fg);
}
.prose p {
    margin-bottom: 1.5rem;
}
.prose h2, .prose h3, .prose h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-right: 1rem;
    border-right: 3px solid var(--gold);
    color: var(--burgundy-dark);
}
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.1rem; }
.prose img {
    border-radius: var(--radius-sm);
    margin: 2rem auto;
    box-shadow: var(--shadow-md);
    max-width: 100%;
}
.prose a {
    color: var(--burgundy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-right: 4px solid var(--gold);
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--fg-secondary);
}
.prose ul, .prose ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.prose th, .prose td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: right;
}
.prose th {
    background: var(--cream);
    font-weight: 600;
}

/* Article Footer */
.single-article__footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}
.single-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Related */
.related-section {
    background: var(--cream);
    border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════ */

.breadcrumbs {
    margin-bottom: 1.5rem;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--fg-muted);
}
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.4rem;
    opacity: 0.4;
}
.breadcrumbs a {
    color: var(--fg-muted);
}
.breadcrumbs a:hover { color: var(--burgundy); }

/* ═══════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════ */

.pagination {
    margin-top: 3rem;
    text-align: center;
}
.pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--fg-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pagination li a:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}
.pagination li .current {
    background: var(--burgundy);
    color: white;
    border-color: var(--burgundy);
}

/* ═══════════════════════════════════════════════════
   BUTTON
   ═══════════════════════════════════════════════════ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--burgundy);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--transition);
}
.btn:hover { background: var(--burgundy-light); color: white; }

/* ═══════════════════════════════════════════════════
   NO RESULTS
   ═══════════════════════════════════════════════════ */

.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--fg-muted);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.site-footer {
    background: var(--fg);
    color: var(--parchment);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}
.site-footer__desc {
    font-size: 0.9rem;
    color: rgba(250,248,243,0.6);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.site-footer__stats {
    font-size: 0.85rem;
    color: var(--gold-light);
}
.site-footer__links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--parchment);
}
.site-footer__links ul li {
    margin-bottom: 0.4rem;
}
.site-footer__links a {
    color: rgba(250,248,243,0.6);
    font-size: 0.875rem;
    transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--gold-light); }

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(250,248,243,0.4);
}
.site-footer__powered a {
    color: var(--gold-light);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-header__menu-btn { display: flex; }

    .hero__stats { gap: 1.5rem; }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .category-card__img { height: 100px; }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .site-footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .photo-card { width: 200px; }
    .photo-card img { height: 160px; }

    .villages-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .villages-grid {
        grid-template-columns: 1fr;
    }
    .hero__search {
        flex-direction: column;
    }
    .hero__search input,
    .hero__search button {
        width: 100%;
    }
}
