@import './fonts/fonts.css';

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --c-primary:        #3a7751;
    --c-primary-light:  #4d9469;
    --c-primary-dark:   #2d5c3e;
    --c-primary-pale:   #e8f3ec;
    --c-accent:         #c8a96e;
    --c-accent-pale:    #f7f0e3;
    --c-bg:             #fafaf7;
    --c-bg-alt:         #f3efe6;
    --c-text:           #1c2820;
    --c-text-muted:     #6b7c71;
    --c-border:         #dde8e0;
    --c-white:          #ffffff;
    --c-footer-bg:      #1e3328;

    --font-heading: 'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, serif;
    --font-body:    'Nunito Sans', 'Nunito Sans Fallback', 'Helvetica Neue', Arial, sans-serif;

    --header-h:     72px;
    --radius:       10px;
    --radius-sm:    5px;
    --radius-lg:    16px;
    --shadow-xs:    0 1px 3px rgba(0,0,0,.05);
    --shadow-sm:    0 2px 10px rgba(0,0,0,.07);
    --shadow-md:    0 6px 28px rgba(0,0,0,.10);
    --shadow-lg:    0 12px 48px rgba(0,0,0,.14);
    --t:            0.22s ease;
}

/* ============================================================
   BASE RESET / TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--c-text);
    margin-top: 0;
    margin-bottom: .75rem;
}

p { margin-top: 0; margin-bottom: 1rem; }

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--t);
}
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   SITE WRAPPER (body-top-extra / body-bottom-extra)
   ============================================================ */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-left: 0;
    padding-right: 0;
}

/* Override Bootstrap container-fluid padding */
.container-fluid { padding-left: 0 !important; padding-right: 0 !important; }

.site-main {
    flex: 1;
    padding-top: 0;
    padding-bottom: 3rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--c-white);
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--c-primary);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--t);
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header > .container { width: 100%; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: var(--header-h);
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    width: 160px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--c-primary);
    white-space: nowrap;
}

/* Desktop Nav */
.site-header__nav { display: flex; align-items: center; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem 1rem;
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color var(--t);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .5rem;
    list-style: none;
    margin: 0;
    z-index: 200;
}

.nav-item--has-children:hover .nav-dropdown { display: block; }

.nav-dropdown__link {
    display: block;
    padding: .55rem .875rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--c-text);
    border-radius: var(--radius-sm);
    transition: background var(--t), color var(--t);
}
.nav-dropdown__link:hover,
.nav-dropdown__link.active {
    background: var(--c-primary-pale);
    color: var(--c-primary);
}

/* Mobile toggle */
.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.site-header__toggle span {
    display: block;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.site-header__toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.site-breadcrumb {
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    padding: .6rem 0;
    font-size: .8rem;
    color: var(--c-text-muted);
}

.site-breadcrumb a {
    color: var(--c-text-muted);
    transition: color var(--t);
}
.site-breadcrumb a:hover { color: var(--c-primary); }

/* breadcrumb generated markup */
.site-breadcrumb span { color: var(--c-text-muted); }

/* ============================================================
   HERO SECTION  (home page only)
   ============================================================ */
.hero-section {
    background: var(--c-bg-alt);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Diagonal hatch lines — editorial texture, fades left */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-image: repeating-linear-gradient(
        -52deg,
        transparent 0px,
        transparent 13px,
        rgba(58,119,81,.09) 13px,
        rgba(58,119,81,.09) 14px
    );
    -webkit-mask-image: linear-gradient(to left, black 0%, transparent 88%);
    mask-image:         linear-gradient(to left, black 0%, transparent 88%);
    pointer-events: none;
}

/* Thin brand rule at bottom-left */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 0 3px 3px 0;
    pointer-events: none;
}

/* Rotated square (diamond) outline — geometric anchor, top-right */
.hero-ornament {
    position: absolute;
    top: -70px;
    right: -70px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(58,119,81,.18);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 1.25rem;
}

.hero-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    font-style: italic;
    color: var(--c-text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -.01em;
}

.hero-body {
    font-size: 1.075rem;
    color: var(--c-text-muted);
    line-height: 1.85;
    max-width: 560px;
}
.hero-body p:last-child { margin-bottom: 0; }

/* ============================================================
   HOME WRAPPER
   ============================================================ */
.home-wrapper {
    padding: 3.5rem 0 1rem;
}

.home-category-section {
    margin-bottom: 4.5rem;
    padding-bottom: 4.5rem;
    border-bottom: 1px solid var(--c-border);
}

.home-category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ============================================================
   INNER WRAPPER (base layout compatible)
   ============================================================ */
.inner-wrapper {
    padding: 2.5rem 0 1rem;
}

.intro { margin-bottom: 2.5rem; }
.intro h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-style: italic;
    margin-bottom: .75rem;
}
.intro p { color: var(--c-text-muted); max-width: 600px; }

/* ============================================================
   ARTICLE LIST PARTIAL
   ============================================================ */
.article-list { margin-bottom: 0; }

/* Section header (home page, show_header=true) */
.article-list__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .75rem 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--c-border);
    position: relative;
}

.article-list__header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 3px;
}

.article-list__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.article-list__title a {
    color: var(--c-text);
    text-decoration: none;
    transition: color var(--t);
}
.article-list__title a:hover { color: var(--c-primary); }

.article-list__subtitle {
    width: 100%;
    order: 3;
    color: var(--c-text-muted);
    font-size: .9rem;
    margin: .25rem 0 0;
}

.article-list__more-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-primary);
    border: 1.5px solid var(--c-primary);
    border-radius: 100px;
    white-space: nowrap;
    transition: background var(--t), color var(--t);
    flex-shrink: 0;
}
.article-list__more-link:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

/* Grid row with gutters */
.article-list .row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }

/* Equal-height columns */
.article-list .row [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.article-card {
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--c-primary-pale);
}

.article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.article-card__link:hover { color: inherit; }

/* Image: aspect-ratio reserves space before image loads — prevents CLS */
.article-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--c-bg-alt);
    flex-shrink: 0;
    position: relative;
}

.article-card__image--placeholder {
    background: linear-gradient(135deg, var(--c-primary-pale) 0%, var(--c-bg-alt) 100%);
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.06);
}

/* Card top accent bar on hover */
.article-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
    z-index: 1;
}

.article-card:hover .article-card__image::after {
    transform: scaleX(1);
}

.article-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__date {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: .5rem;
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .75rem;
    color: var(--c-text);
    transition: color var(--t);
}
.article-card:hover .article-card__title { color: var(--c-primary); }

.article-card__excerpt {
    font-size: .875rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-top: auto;
    transition: gap var(--t);
}
.article-card:hover .article-card__readmore { gap: .55rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}

.sidebar-widget {
    background: var(--c-white);
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.sidebar-widget__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: .02em;
    color: var(--c-white);
    background: var(--c-primary);
    padding: .875rem 1.25rem;
    margin: 0;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li { border-bottom: 1px solid var(--c-border); }
.sidebar-categories li:last-child { border-bottom: none; }

.sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-text);
    transition: background var(--t), color var(--t), padding-left var(--t);
}

.sidebar-categories a::after {
    content: '›';
    color: var(--c-primary);
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--t), transform var(--t);
}

.sidebar-categories a:hover,
.sidebar-categories a.active {
    background: var(--c-primary-pale);
    color: var(--c-primary);
    padding-left: 1.5rem;
}

.sidebar-categories a:hover::after,
.sidebar-categories a.active::after {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   ARTICLE PAGE  (single article)
   ============================================================ */
.col-lg-9 > h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.col-lg-9 .date {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 1.5rem;
}
.col-lg-9 .date::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.col-lg-9 .image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.col-lg-9 .image img {
    width: 100%;
    height: auto;
    display: block;
}

.col-lg-9 .content {
    font-size: 1.05rem;
    line-height: 1.85;
}

.col-lg-9 .content h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-style: italic;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
}
.col-lg-9 .content h2:first-child { border-top: none; padding-top: 0; }

.col-lg-9 .content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: .875rem;
}

.col-lg-9 .content p { margin-bottom: 1.35rem; }

.col-lg-9 .content ul,
.col-lg-9 .content ol {
    list-style: initial;
    padding-left: 1.5rem;
    margin-bottom: 1.35rem;
}

.col-lg-9 .content li { margin-bottom: .5rem; }

.col-lg-9 .content blockquote {
    border-left: 4px solid var(--c-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--c-primary-pale);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--c-primary-dark);
}

.col-lg-9 .content strong { font-weight: 700; color: var(--c-text); }

.col-lg-9 .content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Related articles section */
.related-articles {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--c-border);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav { margin-top: 3rem; }

.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .375rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .875rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--t), border-color var(--t), color var(--t);
    background: var(--c-white);
}

.pagination-link:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: var(--c-primary-pale);
}

.pagination-item--active .pagination-link {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
}

.pagination-item--disabled .pagination-link {
    opacity: .4;
    pointer-events: none;
    cursor: default;
}

.pagination-item--ellipsis span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: var(--c-text-muted);
    font-size: 1rem;
}

.pagination-link--prev,
.pagination-link--next {
    min-width: auto;
    padding: 0 1.125rem;
    font-size: .8rem;
    letter-spacing: .04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--c-footer-bg);
    color: rgba(255,255,255,.75);
    padding: 4rem 0 0;
    margin-top: auto;
}

.site-footer a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color var(--t);
}
.site-footer a:hover { color: #fff; }

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
    width: 140px;
    height: auto;
    display: block;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    opacity: .85;
}

.site-footer__slogan {
    font-size: .875rem;
    color: rgba(255,255,255,.45);
    line-height: 1.65;
    margin: 0;
}

.site-footer__col-title {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1.1rem;
}

.site-footer__links-list { list-style: none; padding: 0; margin: 0; }
.site-footer__links-list li + li { margin-top: .6rem; }
.site-footer__links-list a { font-size: .875rem; }

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.footer-nav a { font-size: .875rem; }

.site-footer__bar {
    padding: 1.25rem 0;
    text-align: center;
}
.site-footer__bar p {
    margin: 0;
    font-size: .78rem;
    color: rgba(255,255,255,.3);
}

/* ============================================================
   COOKIE ICON OVERRIDE (base theme compatible)
   ============================================================ */
.cookieicon {
    background-color: var(--c-primary) !important;
    opacity: .85;
    transition: opacity var(--t);
}
.cookieicon:hover { opacity: 1; }

/* ============================================================
   PAGE LAYOUT (page.php)
   ============================================================ */
/* .inner-wrapper .col-lg-9 > * { max-width: 720px; } */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .site-header__toggle { display: flex; }

    .site-header__nav {
        position: absolute;
        top: calc(100% + 2px);
        left: 0;
        right: 0;
        background: var(--c-white);
        border-bottom: 2px solid var(--c-primary);
        box-shadow: var(--shadow-md);
        padding: .75rem 0;
        display: none;
        z-index: 999;
    }

    .site-header__nav.open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 1.25rem;
    }

    .nav-item + .nav-item { border-top: 1px solid var(--c-border); }

    .nav-link {
        padding: .75rem 0;
        border-radius: 0;
        justify-content: space-between;
    }
    .nav-link::after { display: none; }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--c-primary-pale);
        padding: .25rem 0 .25rem .75rem;
    }
    .nav-item--has-children:hover .nav-dropdown { display: none; }
    .nav-item--has-children.open .nav-dropdown { display: block; }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .site-footer__inner > :first-child {
        grid-column: 1 / -1;
    }

    .site-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    :root { --header-h: 64px; }

    .logo-img { width: 140px; height: 38px; }

    .hero-section { padding: 3rem 0 2.5rem; }

    .hero-title { letter-spacing: -.005em; }

    .home-wrapper { padding: 2.5rem 0 1rem; }

    .home-category-section {
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }

    .article-card__body { padding: 1rem 1.25rem 1.25rem; }

    .article-list__title { font-size: 1.6rem; }

    .site-footer { padding: 3rem 0 0; }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 575.98px) {
    :root { --header-h: 60px; }

    .logo-img { width: 120px; height: 33px; }

    .hero-title { font-size: 2rem; }

    .hero-section { padding: 2.5rem 0 2rem; }

    .pagination-link--prev span,
    .pagination-link--next span { display: none; }
}
