/*
Theme Name: MK Europe
Theme URI: https://pbdy.net
Author: Peabody
Author URI: https://pbdy.net
Description: Profesionalna WordPress tema za novinski sajt srpske dijaspore u Evropi. Čist, moderan dizajn sa naprednim opcijama u kustomajzeru.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: mkeurope
Tags: news, blog, custom-logo, custom-menu, featured-images, full-width-template, two-columns, right-sidebar, rtl-language-support, translation-ready
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #222222;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #121D3D;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #C8272F;
}

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

ul, ol {
    list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: #121D3D;
    line-height: 1.25;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER — TOP BAR
   ============================================================ */
#top-bar {
    background-color: #121D3D;
    padding: 8px 0;
    text-align: center;
}

#top-bar .top-bar-text {
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* ============================================================
   HEADER — LOGO & DATE BAR
   ============================================================ */
#header-main {
    background-color: #ffffff;
    padding: 18px 0 14px;
}

#header-main .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header-main .site-logo img {
    max-height: 80px;
    width: auto;
}

#header-main .site-logo .site-title-text {
    font-size: 2rem;
    font-weight: 700;
    color: #121D3D;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.header-date {
    text-align: right;
    color: #121D3D;
    font-family: 'Arial', sans-serif;
}

.header-date .date-main {
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
}

.header-date .date-day {
    font-size: 0.88rem;
    font-weight: 400;
    display: block;
    color: #555;
    text-transform: capitalize;
}

/* ============================================================
   HEADER — SERBIAN FLAG STRIPES SEPARATOR
   ============================================================ */
.flag-stripes {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0;
}

.flag-stripes .stripe-red {
    background-color: #C8272F;
    height: 4px;
}

.flag-stripes .stripe-blue {
    background-color: #003893;
    height: 4px;
}

.flag-stripes .stripe-white {
    background-color: #ffffff;
    height: 4px;
    border-top: 1px solid #003893;
    border-bottom: 1px solid #003893;
}

/* ============================================================
   HEADER — NAVIGATION
   ============================================================ */
#header-nav {
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: relative;
}

#header-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Primary navigation */
#primary-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#primary-menu li {
    position: relative;
}

#primary-menu li a {
    display: block;
    padding: 14px 16px;
    color: #121D3D;
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
}

#primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #C49344;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

#primary-menu li a:hover {
    color: #C8272F;
}

#primary-menu li a:hover::after {
    transform: scaleX(1);
}

#primary-menu li.current-menu-item > a,
#primary-menu li.current-menu-ancestor > a {
    color: #C8272F;
}

#primary-menu li.current-menu-item > a::after,
#primary-menu li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Dropdown submenus */
#primary-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    z-index: 999;
    display: none;
    border-top: 3px solid #C8272F;
}

#primary-menu li:hover > ul {
    display: block;
}

#primary-menu li ul li a {
    padding: 10px 16px;
    font-size: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

#primary-menu li ul li a::after {
    display: none;
}

/* Search toggle in nav */
.nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    color: #121D3D;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-search-toggle:hover {
    color: #C8272F;
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #121D3D;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HOMEPAGE — FEATURED HERO BLOCK
   ============================================================ */
#homepage-hero {
    padding: 30px 0 20px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Big featured post */
.hero-featured-post {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hero-featured-post a {
    display: block;
    position: relative;
}

.hero-featured-post img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-featured-post:hover img {
    transform: scale(1.02);
}

/* White gradient overlay from left */
.hero-featured-post .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 65%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 60%, transparent 100%);
    z-index: 1;
}

.hero-featured-post .post-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 24px 24px;
    z-index: 2;
    max-width: 58%;
}

.hero-featured-post .post-category {
    display: inline-block;
    background-color: #C8272F;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.hero-featured-post .post-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #121D3D;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.hero-featured-post .post-title a {
    color: #121D3D;
}

.hero-featured-post .post-title a:hover {
    color: #C8272F;
}

/* VELIKA PRIČA label */
.hero-featured-post .post-label {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #C49344;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* 3 smaller posts below big one */
.hero-small-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hero-small-post {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hero-small-post a.post-link-wrap {
    display: block;
}

.hero-small-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-small-post:hover img {
    transform: scale(1.04);
}

.hero-small-post .post-meta {
    padding: 10px 0 4px;
}

.hero-small-post .post-category {
    display: inline-block;
    background-color: #C8272F;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.hero-small-post .post-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #121D3D;
    line-height: 1.3;
}

.hero-small-post .post-title a {
    color: #121D3D;
}

.hero-small-post .post-title a:hover {
    color: #C8272F;
}

/* ============================================================
   NAJNOVIJE SIDEBAR (right of hero)
   ============================================================ */
.najnovije-block {
    background-color: #f8f8f8;
    padding: 0;
}

.najnovije-block .najnovije-header {
    background-color: #121D3D;
    padding: 10px 16px;
}

.najnovije-block .najnovije-header h3 {
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.najnovije-list {
    padding: 0;
}

.najnovije-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 16px;
    transition: background-color 0.2s;
}

.najnovije-item:hover {
    background-color: #f0f0f0;
}

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

.najnovije-item .item-content {
    flex: 1;
}

.najnovije-item .item-category {
    display: inline-block;
    color: #C8272F;
    font-family: 'Arial', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.najnovije-item .item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #121D3D;
    line-height: 1.3;
    margin-bottom: 4px;
}

.najnovije-item .item-title a {
    color: #121D3D;
}

.najnovije-item .item-title a:hover {
    color: #C8272F;
}

.najnovije-item .item-time {
    font-family: 'Arial', sans-serif;
    font-size: 0.68rem;
    color: #999;
}

/* ============================================================
   HOMEPAGE — LATEST POSTS GRID (4 columns)
   ============================================================ */
#latest-posts-section {
    padding: 30px 0 50px;
    border-top: 1px solid #e5e5e5;
    margin-top: 10px;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #121D3D;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 {
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #121D3D;
}

.posts-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card .card-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.post-card .card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.04);
}

.post-card .card-image a {
    display: block;
}

.post-card .card-category {
    display: inline-block;
    background-color: #C8272F;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.post-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #121D3D;
    line-height: 1.3;
    margin-bottom: 6px;
}

.post-card .card-title a {
    color: #121D3D;
}

.post-card .card-title a:hover {
    color: #C8272F;
}

.post-card .card-date {
    font-family: 'Arial', sans-serif;
    font-size: 0.7rem;
    color: #999;
    margin-top: auto;
}

/* Placeholder if no image */
.no-thumb-placeholder {
    width: 100%;
    height: 180px;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 2rem;
}

/* ============================================================
   LOAD MORE / PAGINATION
   ============================================================ */
.posts-pagination {
    margin-top: 30px;
    text-align: center;
}

.posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 3px;
    border: 1px solid #ddd;
    font-family: 'Arial', sans-serif;
    font-size: 0.82rem;
    color: #121D3D;
    transition: all 0.2s;
}

.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
    background-color: #121D3D;
    color: #ffffff;
    border-color: #121D3D;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
#single-post {
    padding: 30px 0 60px;
}

.single-layout {
    max-width: 820px;
    margin: 0 auto;
}

.single-breadcrumb {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 18px;
}

.single-breadcrumb a {
    color: #C8272F;
}

.single-breadcrumb a:hover {
    text-decoration: underline;
}

.single-category {
    display: inline-block;
    background-color: #C8272F;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 12px;
    margin-bottom: 14px;
}

.single-title {
    font-size: 2rem;
    font-weight: 700;
    color: #121D3D;
    line-height: 1.2;
    margin-bottom: 14px;
}

.single-meta {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    color: #999;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 22px;
}

.single-featured-image {
    margin-bottom: 28px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.single-content h2 {
    font-size: 1.4rem;
    margin: 24px 0 12px;
}

.single-content h3 {
    font-size: 1.15rem;
    margin: 20px 0 10px;
}

.single-content p {
    margin-bottom: 1.2rem;
}

.single-content blockquote {
    border-left: 4px solid #C49344;
    padding: 12px 20px;
    margin: 20px 0;
    background-color: #f9f5ee;
    font-style: italic;
    color: #555;
}

.single-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

.single-content a {
    color: #C8272F;
    text-decoration: underline;
}

/* Tags */
.single-tags {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.single-tags span {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    color: #777;
    margin-right: 6px;
}

.single-tags a {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: #555;
    margin: 3px 3px 3px 0;
    transition: all 0.2s;
}

.single-tags a:hover {
    border-color: #C8272F;
    color: #C8272F;
}

/* Related posts */
.related-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px solid #121D3D;
}

.related-posts h3 {
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.related-posts .posts-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
#archive-page {
    padding: 30px 0 60px;
}

.archive-title-bar {
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid #121D3D;
}

.archive-title-bar h1 {
    font-size: 1.8rem;
    color: #121D3D;
}

.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
#static-page {
    padding: 40px 0 60px;
}

.page-title {
    font-size: 2rem;
    color: #121D3D;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #121D3D;
}

.page-content {
    max-width: 820px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.page-content h2 { font-size: 1.4rem; margin: 24px 0 12px; }
.page-content h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.page-content p { margin-bottom: 1.2rem; }
.page-content a { color: #C8272F; text-decoration: underline; }

/* ============================================================
   404 PAGE
   ============================================================ */
#page-404 {
    padding: 80px 0;
    text-align: center;
}

.error-404-code {
    font-size: 8rem;
    font-weight: 700;
    color: #121D3D;
    line-height: 1;
    opacity: 0.12;
    display: block;
}

.error-404-title {
    font-size: 1.8rem;
    color: #121D3D;
    margin-bottom: 14px;
}

.error-404-text {
    color: #777;
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.btn-home {
    display: inline-block;
    background-color: #121D3D;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 30px;
    transition: background-color 0.2s;
}

.btn-home:hover {
    background-color: #C8272F;
    color: #ffffff;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background-color: #121D3D;
    padding: 30px 0 0;
}

.footer-nav-wrap {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

#footer-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

#footer-menu li a {
    display: block;
    padding: 6px 14px;
    color: rgba(255,255,255,0.7);
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

#footer-menu li a:hover {
    color: #C49344;
}

.footer-copyright {
    padding: 14px 0;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255,255,255,0.45);
    font-family: 'Arial', sans-serif;
    font-size: 0.72rem;
    margin: 0;
}

.footer-copyright a {
    color: #C49344;
}

.footer-copyright a:hover {
    color: #ffffff;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(18, 29, 61, 0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.search-overlay.active {
    display: flex;
}

.search-overlay form {
    display: flex;
    align-items: center;
    gap: 0;
    width: 90%;
    max-width: 600px;
}

.search-overlay input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background-color: #ffffff;
    color: #121D3D;
}

.search-overlay button[type="submit"] {
    background-color: #C8272F;
    border: none;
    color: #ffffff;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.search-overlay button[type="submit"]:hover {
    background-color: #a01f27;
}

.search-overlay-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr 240px;
        gap: 18px;
    }

    .posts-grid-4,
    .archive-posts-grid,
    .related-posts .posts-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-featured-post img {
        height: 340px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Top bar hide on mobile (controlled by customizer option) */
    body.hide-topbar-mobile #top-bar {
        display: none;
    }

    /* Logo */
    #header-main .site-logo img {
        max-height: 55px;
    }

    .header-date .date-main {
        font-size: 0.85rem;
    }

    /* Nav */
    .mobile-menu-toggle {
        display: flex;
    }

    #primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }

    #primary-menu.open {
        display: flex;
    }

    #primary-menu li {
        width: 100%;
    }

    #primary-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.82rem;
    }

    #primary-menu li a::after {
        display: none;
    }

    #primary-menu li ul {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f8f8f8;
        display: block;
    }

    #primary-menu li ul li a {
        padding-left: 36px;
    }

    .nav-inner {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    /* Hero */
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-featured-post img {
        height: 260px;
    }

    .hero-featured-post .post-info {
        max-width: 80%;
    }

    .hero-featured-post .post-title {
        font-size: 1.2rem;
    }

    .hero-small-posts {
        grid-template-columns: 1fr 1fr;
    }

    .najnovije-block {
        display: none; /* Hidden on mobile, shown via toggle or below */
    }

    /* Grid */
    .posts-grid-4,
    .archive-posts-grid,
    .related-posts .posts-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .single-title {
        font-size: 1.4rem;
    }

    .archive-title-bar h1 {
        font-size: 1.3rem;
    }

    #footer-menu {
        gap: 0;
    }

    #footer-menu li a {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-small-posts {
        grid-template-columns: 1fr;
    }

    .posts-grid-4,
    .archive-posts-grid,
    .related-posts .posts-grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-featured-post img {
        height: 220px;
    }

    .error-404-code {
        font-size: 5rem;
    }

    .single-title {
        font-size: 1.2rem;
    }
}
