/*
Theme Name: Typography WP
Theme URI: https://templatiraf.blogspot.com/
Author: Arif Mumit (original design) — WordPress conversion
Author URI: https://templatiraf.blogspot.com/
Description: A red-accent, magazine-style WordPress theme converted from the original "Typography" Blogger template. Built-in widget areas for Adsterra (or any) ad codes, a modern dark footer, search overlay, and a clean single-post layout with related posts and social share buttons.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: typography-wp
Tags: blog, news, one-column, custom-menu, custom-logo, featured-images, footer-widgets, threaded-comments, translation-ready

Typography WP is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 2 of the License, or (at your
option) any later version.
*/

/* =========================================================
   Global Reset
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Merriweather', serif;
  background-color: #e5e5e5;
  color: #333;
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #333; text-decoration: none; transition: all 0.25s ease-in-out; }
a:hover { color: #c6233d; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
.skip-link {
  position: absolute; top: -999px; left: 0; background: #c6233d; color: #fff;
  padding: 12px 20px; z-index: 100000; font-family: 'Montserrat', sans-serif;
  font-size: 12px; text-transform: uppercase;
}
.skip-link:focus { top: 0; }

/* WordPress core alignment / caption / gallery helpers */
.alignleft { float: left; margin: 0 20px 15px 0; }
.alignright { float: right; margin: 0 0 15px 20px; }
.aligncenter { display: block; margin: 0 auto 15px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #888; text-align: center; margin-top: 6px; font-family: 'Montserrat', sans-serif; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.gallery-item { flex: 1 1 30%; }
.sticky { }
.bypostauthor { }

/* Prevent layout shift */
.main-wrapper, .header-wrapper { will-change: auto; }

/* =========================================================
   Top Bar Header Layout
   ========================================================= */
.top-bar-nav { background: rgba(0,0,0,0.1); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.top-bar-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: center; }
.top-bar-nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.top-bar-nav ul li a { color: #fff; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.top-bar-nav ul li a:hover { opacity: 1; text-decoration: underline; }

/* =========================================================
   Main Header Area
   ========================================================= */
.header-wrapper { background-color: #c6233d; color: #fff; padding-bottom: 120px; position: relative; }
.header-container { max-width: 1100px; margin: 0 auto; padding: 35px 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }

.site-title { font-family: 'Montserrat', sans-serif; font-size: 38px; font-weight: 900; letter-spacing: -0.5px; }
.site-title a { color: #fff; text-decoration: none; }
.site-title img.custom-logo { max-height: 60px; width: auto; }
.site-description { font-family: 'Montserrat', sans-serif; font-size: 12px; opacity: 0.85; margin-top: 4px; }

/* Navigation Menu */
.nav-menu-wrapper { display: flex; align-items: center; gap: 15px; }
.nav-menu-wrapper ul#main-menu-nav { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-menu-wrapper ul#main-menu-nav > li { margin-left: 20px; position: relative; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.nav-menu-wrapper ul#main-menu-nav > li > a { color: #fff; padding: 10px 0; display: block; }
.nav-menu-wrapper ul#main-menu-nav li.menu-item-has-children > a::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: 5px; font-size: 10px; }
.nav-menu-wrapper ul#main-menu-nav li ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.12); min-width: 190px; text-align: left; z-index: 1000; padding: 8px 0; list-style: none; }
.nav-menu-wrapper ul#main-menu-nav li:hover > ul.sub-menu,
.nav-menu-wrapper ul#main-menu-nav li.focus-within > ul.sub-menu { display: block; }
.nav-menu-wrapper ul#main-menu-nav li ul.sub-menu li { margin-left: 0; }
.nav-menu-wrapper ul#main-menu-nav li ul.sub-menu li a { color: #222; padding: 9px 18px; font-size: 11px; display: block; }
.nav-menu-wrapper ul#main-menu-nav li ul.sub-menu li a:hover { background: #f8f8f8; color: #c6233d; }
.nav-menu-wrapper ul#main-menu-nav li ul.sub-menu li ul.sub-menu { top: 0; left: 100%; }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 18px; margin-left: 15px; }

.search-btn { cursor: pointer; margin-left: 15px; color: #fff; font-size: 14px; background: none; border: none; }
.search-overlay {
  display: none;
  background: #f5f5f5;
  padding: 22px 20px;
  border: 2px solid #ffffff;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  width: 90%;
  max-width: 880px;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  border-radius: 2px;
}
.search-overlay.active { display: block; }
.search-input {
  width: 100%;
  max-width: 620px;
  border: 1px solid #e0e0e0;
  outline: none;
  font-size: 16px;
  font-style: normal;
  padding: 14px 22px;
  background: #ffffff;
  color: #444;
  font-family: 'Montserrat', sans-serif;
  border-radius: 4px;
}
.search-input::placeholder { color: #555; opacity: 1; }

/* =========================================================
   Main Container Card
   ========================================================= */
.main-wrapper { max-width: 880px; margin: -80px auto 50px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; z-index: 10; padding: 55px 75px 70px; min-height: 500px; clear: both; }

.section-title-wrapper { text-align: center; margin-bottom: 55px; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #222; display: inline-block; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 35px; height: 1px; background-color: #e0e0e0; }

/* =========================================================
   Post Feed Items (index / archive / search)
   ========================================================= */
.post-item { margin-bottom: 60px; display: flex; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px dotted #eaeaea; }
.post-item:last-child { border-bottom: none; }
.post-date-badge { width: 120px; flex-shrink: 0; text-align: right; padding-right: 30px; font-family: 'Montserrat', sans-serif; }
.post-date-badge .day-group { display: flex; align-items: center; justify-content: flex-end; line-height: 0.9; }
.post-date-badge .day { font-size: 46px; font-weight: 600; color: #c6233d; }
.post-date-badge .dot { font-size: 24px; color: #c6233d; margin-left: 6px; }
.post-date-badge .month-year { font-size: 10px; text-transform: uppercase; font-weight: 700; color: #222; letter-spacing: 1.2px; margin-top: 8px; }
.post-content-right { flex: 1; min-width: 0; }
.post-title { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; line-height: 1.3; }
.post-title a { color: #222; }
.post-meta { font-family: 'Montserrat', sans-serif; font-size: 11px; color: #a0a0a0; margin-bottom: 20px; }
.post-meta a { color: #a0a0a0; }
.post-meta a:hover { color: #c6233d; }

/* Strictly 5-line snippet clamp */
.post-snippet { font-family: 'Merriweather', serif; font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 25px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; max-height: 9em; }
.post-snippet p { display: inline; }

.post-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 12px 28px; display: inline-block; border: 1px solid transparent; }
.btn-read-more { background: #c6233d; color: #fff; }
.btn-read-more:hover { background: #a81c33; color: #fff; }
.btn-add-comment { background: #fff; color: #333; border: 1px solid #e2e2e2; }
.btn-add-comment:hover { border-color: #c6233d; color: #c6233d; }

/* No posts found */
.no-posts-found { text-align: center; padding: 40px 0; }
.no-posts-found .search-form { margin-top: 20px; }
.no-posts-found input[type="search"] { padding: 12px 16px; border: 1px solid #e0e0e0; width: 70%; max-width: 400px; }
.no-posts-found input[type="submit"] { padding: 12px 20px; background: #c6233d; color: #fff; border: none; text-transform: uppercase; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; }

/* =========================================================
   Single Post Full Layout
   ========================================================= */
.single-post-container { width: 100%; display: block; clear: both; }
.breadcrumbs { font-family: 'Montserrat', sans-serif; font-size: 11px; color: #999; margin-bottom: 20px; text-transform: uppercase; }
.breadcrumbs a { color: #999; }
.breadcrumbs a:hover { color: #c6233d; }
.single-post-title { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 700; text-transform: uppercase; line-height: 1.35; margin-bottom: 12px; }
.post-body { font-size: 15px; line-height: 1.85; color: #444; margin: 25px 0; clear: both; }
.post-body p { margin-bottom: 20px; }
.post-body h2, .post-body h3, .post-body h4 { font-family: 'Montserrat', sans-serif; margin: 30px 0 15px; color: #222; line-height: 1.4; }
.post-body blockquote { border-left: 4px solid #c6233d; padding: 10px 20px; margin: 20px 0; background: #faf7f7; font-style: italic; color: #555; }
.post-body ul, .post-body ol { margin: 0 0 20px 22px; list-style: revert; }
.post-body a { color: #c6233d; text-decoration: underline; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.post-body table th, .post-body table td { border: 1px solid #eee; padding: 8px 12px; }
.page-title.single-post-title { margin-bottom: 12px; }

/* Ad placement slots inside single post */
.post-ad-slot { margin: 20px 0; text-align: center; width: 100%; clear: both; }
.post-ad-slot:empty { display: none; }

/* Tags */
.post-tags-container { clear: both; margin: 35px 0 25px; font-family: 'Montserrat', sans-serif; font-size: 12px; display: block; }
.post-tags-container span { color: #888; margin-right: 10px; font-weight: 600; }
.post-tags-container a { background: #111; color: #fff; padding: 6px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; display: inline-block; margin-right: 5px; margin-bottom: 5px; }
.post-tags-container a:hover { background: #c6233d; color: #fff; }

/* Social Share Buttons */
.share-buttons-container { display: flex; width: 100%; margin: 30px 0 50px; font-family: 'Montserrat', sans-serif; clear: both; flex-wrap: wrap; }
.share-btn { flex: 1; text-align: center; color: #fff; padding: 14px 5px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: capitalize; min-width: 100px; }
.share-btn:hover { opacity: 0.9; color: #fff; }
.share-facebook { background-color: #0d47a1; }
.share-twitter { background-color: #000000; }
.share-whatsapp { background-color: #25D366; }
.share-linkedin { background-color: #0077b5; }
.share-pinterest { background-color: #d50000; }

/* Related Posts */
.related-posts-section { margin-top: 50px; padding-top: 20px; clear: both; width: 100%; display: block; }
.related-title { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 35px; color: #111; width: 100%; display: block; }
.related-grid { display: flex; gap: 20px; justify-content: space-between; width: 100%; flex-wrap: wrap; }
.related-card { flex: 1; min-width: 150px; text-align: left; }
.related-card a { display: block; }
.related-thumb { width: 100%; height: 140px; background: #e2e2e2; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 30px; margin-bottom: 15px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card-title { font-family: 'Merriweather', serif; font-size: 13px; line-height: 1.5; font-weight: 400; color: #333; }
.related-card-title:hover { color: #c6233d; }

/* Prev / Next single post navigation */
.post-nav-links { display: flex; justify-content: space-between; padding: 25px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 40px 0; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; clear: both; gap: 15px; flex-wrap: wrap; }
.post-nav-links a { color: #333; }
.post-nav-links a:hover { color: #c6233d; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; font-family: 'Montserrat', sans-serif; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 10px 18px; font-size: 11px; font-weight: 700; border: 1px solid #e2e2e2; background: #fff; color: #333; }
.pagination a:hover { border-color: #c6233d; color: #c6233d; }
.pagination .current { background: #c6233d; color: #fff; border-color: #c6233d; }

/* =========================================================
   Comments
   ========================================================= */
.comments-area { margin-top: 50px; clear: both; font-family: 'Montserrat', sans-serif; }
.comments-title, .comment-reply-title { font-size: 18px; font-weight: 700; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 0.5px; }
.comment-list { list-style: none; }
.comment-list .comment { border-bottom: 1px dotted #eaeaea; padding: 20px 0; }
.comment-list .children { list-style: none; margin-left: 40px; }
.comment-author-name { font-weight: 700; font-size: 13px; text-transform: uppercase; }
.comment-meta { font-size: 11px; color: #999; margin: 4px 0 10px; }
.comment-meta a { color: #999; }
.comment-content { font-family: 'Merriweather', serif; font-size: 14px; color: #555; }
.comment-content p { margin-bottom: 10px; }
.comment-reply-link { font-size: 10px; color: #c6233d; border: 1px solid #c6233d; padding: 4px 12px; display: inline-block; margin-top: 8px; text-transform: uppercase; }
.comment-reply-link:hover { background: #c6233d; color: #fff; }
.comment-form p { margin-bottom: 15px; }
.comment-form label { display: block; font-size: 11px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid #e0e0e0; padding: 12px 14px; font-family: 'Merriweather', serif; font-size: 14px; outline: none;
}
.comment-form textarea { min-height: 130px; }
.comment-form .form-submit input[type="submit"] {
  background: #c6233d; color: #fff; border: none; padding: 12px 30px; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.comment-form .form-submit input[type="submit"]:hover { background: #a81c33; }
.comment-navigation { display: flex; justify-content: space-between; margin: 20px 0; font-size: 12px; }
.no-comments { font-style: italic; color: #999; }

/* =========================================================
   Modern Dark Footer
   ========================================================= */
.site-footer-modern { background-color: #111111; color: #ffffff; font-family: 'Montserrat', sans-serif; padding: 60px 0 20px; font-size: 13px; border-top: 4px solid #d62828; margin-top: 50px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 180px; }
.footer-col-about { flex: 1.5; min-width: 240px; }

.footer-title-wrap { display: inline-block; margin-bottom: 20px; position: relative; }
.footer-title { color: #ffffff; font-size: 16px; font-weight: 700; display: inline-block; text-transform: uppercase; margin: 0; padding-bottom: 8px; }
.footer-title-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: #d62828; }

.footer-col p { color: #ffffff !important; line-height: 1.7; font-size: 12px; margin-bottom: 20px; font-family: 'Merriweather', serif; }
.footer-about-banner { margin-bottom: 4px; }
.footer-about-banner img { width: 100%; max-width: 240px; height: auto; border-radius: 6px; margin-bottom: 14px; display: block; }
.footer-about-banner p { color: #ffffff !important; line-height: 1.7; font-size: 12px; margin-bottom: 20px; font-family: 'Merriweather', serif; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: #d62828; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: transform 0.3s; }
.footer-socials a:hover { transform: translateY(-3px); background: #f02d2d; color: #fff; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #ffffff !important; font-size: 12px; font-weight: 500; transition: color 0.2s, padding-left 0.2s; display: inline-flex; align-items: center; }
.footer-col ul li a::before { content: '>'; color: #d62828; margin-right: 8px; font-weight: 800; font-size: 13px; }
.footer-col ul li a:hover { color: #d62828 !important; padding-left: 4px; }

.contact-item { display: flex; gap: 12px; margin-bottom: 15px; align-items: flex-start; }
.contact-icon { width: 32px; height: 32px; background: rgba(214, 40, 40, 0.2); border: 1px solid #d62828; color: #d62828; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.contact-text label { display: block; font-size: 10px; text-transform: uppercase; color: #cccccc; font-weight: 700; }
.contact-text span, .contact-text a { color: #ffffff !important; font-size: 12px; font-weight: 600; }

.newsletter-card { background: #ffffff; border-radius: 6px; padding: 20px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); flex-wrap: wrap; }
.newsletter-title { color: #111; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.newsletter-form { display: flex; flex: 1; max-width: 600px; gap: 0; min-width: 260px; }
.newsletter-input { width: 100%; border: 1px solid #e0e0e0; background: #f4f6f9; padding: 12px 15px; font-size: 12px; outline: none; border-radius: 4px 0 0 4px; }
.newsletter-btn { background: #d62828; color: #ffffff; border: none; padding: 12px 30px; font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; border-radius: 0 4px 4px 0; transition: background 0.3s; white-space: nowrap; min-width: 110px; display: inline-block; text-align: center; }
.newsletter-btn:hover { background: #b01e1e; }

.footer-bottom { text-align: center; border-top: 1px solid #222222; padding-top: 20px; font-size: 12px; color: #ffffff; }
.footer-bottom a.blog-link { color: #007bff; font-weight: 700; text-decoration: none; transition: color 0.3s ease; }
.footer-bottom a.blog-link:hover { color: #28a745; }
.footer-bottom a.credit-link { color: #007bff; font-weight: 700; text-decoration: none; transition: color 0.3s ease; }
.footer-bottom a.credit-link:hover { color: #d62828; }

.scroll-top { position: fixed; bottom: 30px; right: 30px; background: #d62828; color: #fff; width: 34px; height: 34px; line-height: 34px; text-align: center; cursor: pointer; font-size: 12px; z-index: 100; border-radius: 4px; display: none; }
.scroll-top.is-visible { display: block; }

/* =========================================================
   ADSTERRA / GENERIC AD SLOTS
   ========================================================= */
.fixed-ad-left, .fixed-ad-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.fixed-ad-left { left: 10px; align-items: flex-start; }
.fixed-ad-right { right: 10px; align-items: flex-end; }
.ad-slot { overflow: hidden; pointer-events: auto; }
.ad-slot:empty { display: none; }
.ad-slot-160x300 { width: 160px; min-height: 300px; }
.ad-slot-300x250 { width: 300px; min-height: 250px; }
.ad-slot-160x600 { width: 160px; min-height: 600px; }
.ad-slot .widget-content { display: flex; justify-content: center; align-items: center; overflow: hidden; }

.fixed-ad-bottom {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 600;
  width: 728px;
  max-width: calc(100% - 20px);
  overflow: visible;
}
.ad-slot-728x90 {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-close-btn {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d62828;
  color: #fff;
  border: 3px solid #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  z-index: 601;
  padding: 0;
}
.ad-close-btn:hover { background: #a81f1f; }

@media (max-width: 1366px) {
  .fixed-ad-left, .fixed-ad-right { display: none; }
}
@media (max-width: 480px) {
  .fixed-ad-bottom { bottom: 6px; max-width: calc(100% - 12px); }
  .ad-close-btn { top: -11px; right: -11px; width: 24px; height: 24px; font-size: 12px; }
}

/* =========================================================
   Responsive — Tablet & below
   ========================================================= */
@media (max-width: 820px) {
  .main-wrapper { margin: -50px 15px 30px; padding: 35px 22px; }
  .header-wrapper { padding-bottom: 90px; }
  .header-container, .top-bar-container { padding: 0 15px; }
  .header-container { flex-direction: column; gap: 18px; text-align: center; padding-top: 25px; }
  .site-title { font-size: 32px; }
  .nav-menu-wrapper { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .nav-menu-wrapper ul#main-menu-nav > li { margin-left: 12px; margin-right: 12px; }
  .top-bar-nav ul { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
  .post-item { flex-direction: column; }
  .post-date-badge { width: 100%; text-align: left; padding: 0; margin-bottom: 12px; }
  .post-date-badge .day-group { justify-content: flex-start; }
  .post-title { font-size: 19px; }
  .related-grid { flex-direction: column; }
  .share-buttons-container { flex-wrap: wrap; }
  .share-btn { flex: 1 1 30%; }
  .footer-columns { flex-direction: column; gap: 25px; }
  .newsletter-card { flex-direction: column; align-items: stretch; }
  .newsletter-btn { width: 100%; border-radius: 4px; margin-top: 8px; }
  .newsletter-input { border-radius: 4px; }
  .search-overlay { bottom: 20px; width: 92%; padding: 16px 12px; }
  .search-input { font-size: 15px; padding: 12px 16px; }
}

/* =========================================================
   Responsive — Mobile
   ========================================================= */
@media (max-width: 480px) {
  .header-wrapper { padding-bottom: 80px; }
  .site-title { font-size: 28px; }
  .main-wrapper { margin: -40px 10px 25px; padding: 28px 16px; }
  .post-date-badge .day { font-size: 36px; }
  .post-title { font-size: 17px; }
  .btn { padding: 10px 18px; font-size: 9px; }
  .top-bar-nav { padding: 10px 0; }
  .top-bar-nav ul li a { font-size: 10px; letter-spacing: 0.5px; }
  .nav-menu-wrapper ul#main-menu-nav > li { margin-left: 8px; margin-right: 8px; font-size: 10px; }
  .section-title { font-size: 10px; }
  .footer-col { min-width: 100%; }
  .scroll-top { bottom: 20px; right: 15px; width: 32px; height: 32px; line-height: 32px; }
  .search-overlay { bottom: 15px; width: 94%; }
}
