/* ==========================================================================
   HK Baoxian — Modern Theme Stylesheet
   Clean Light + Navy Design System
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --navy: #1B365D;
  --navy-dark: #0F1F38;
  --navy-light: #2A4A7A;
  --teal: #2E7D8C;
  --teal-light: #E8F4F7;
  --teal-hover: #237080;
  --text: #2D3748;
  --text-light: #4A5568;
  --muted: #718096;
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  --gold: #B8860B;
  --shadow-sm: 0 1px 3px rgba(27,54,93,0.06), 0 1px 2px rgba(27,54,93,0.04);
  --shadow-md: 0 4px 14px rgba(27,54,93,0.08), 0 2px 6px rgba(27,54,93,0.04);
  --shadow-lg: 0 10px 30px rgba(27,54,93,0.10), 0 4px 10px rgba(27,54,93,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
}

/* --- 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);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.clearfix::after { content: ''; display: table; clear: both; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-brand:hover { color: var(--navy); }

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.brand-tagline {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0; }

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--navy);
  background: var(--bg);
}

/* Dropdown */
.site-nav li { position: relative; }
.site-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 200;
}
.site-nav li:hover > ul { display: block; }
.site-nav li ul a {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   HERO / BANNER
   ========================================================================== */
.hero-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,31,56,0.2) 0%, rgba(15,31,56,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.25rem;
}
.hero-content h1 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.content-area { min-width: 0; }

/* ==========================================================================
   TABS — Latest Posts Widget
   ========================================================================== */
.tabs-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 2rem;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.tabs-nav button {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}
.tabs-nav button:hover { color: var(--text); background: rgba(255,255,255,0.5); }
.tabs-nav button.active {
  color: var(--navy);
  background: var(--surface);
}
.tabs-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
}

.tabs-content { padding: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.post-list { padding: 0; }
.post-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.post-list li:last-child { border-bottom: none; }
.post-list li:hover { background: var(--bg); }

.post-list .post-date {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  min-width: 5.5em;
}
.post-list .post-link {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  transition: color var(--transition);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list .post-link:hover { color: var(--teal); }

/* ==========================================================================
   CATEGORY CARDS GRID
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
}
.category-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.category-card-header h3 a {
  color: var(--navy);
  transition: color var(--transition);
}
.category-card-header h3 a:hover { color: var(--teal); }

.category-more {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.category-more:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--teal-light);
}

.category-card .post-list li { padding: 0.55rem 1.25rem; }
.category-card .post-list .post-date { font-size: 0.72rem; min-width: 3.2em; }
.category-card .post-list .post-link { font-size: 0.85rem; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.site-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-widget h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 1.25rem;
  margin: 0;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  letter-spacing: 0.04em;
  text-transform: none;
}

.sidebar-widget ul { padding: 0.5rem 0; }
.sidebar-widget ul li {
  padding: 0.4rem 1.25rem;
}
.sidebar-widget ul li a {
  font-size: 0.85rem;
  color: var(--text-light);
  display: block;
  padding: 0.2rem 0;
  transition: all var(--transition);
}
.sidebar-widget ul li a:hover {
  color: var(--teal);
  padding-left: 0.35rem;
}

/* Contact card */
.sidebar-contact {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.25rem;
}
.sidebar-contact h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.04em;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-light);
}
.contact-item .label {
  color: var(--muted);
  font-size: 0.78rem;
  min-width: 3.5em;
  flex-shrink: 0;
}
.contact-item .value {
  word-break: break-all;
}

.sidebar-contact .qr-code {
  margin-top: 1rem;
  text-align: center;
}
.sidebar-contact .qr-code img {
  max-width: 140px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}
.sidebar-contact .qr-code p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  margin-bottom: 0;
}

/* Calendar widget */
.sidebar-widget table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.sidebar-widget table caption {
  font-weight: 700;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--navy);
}
.sidebar-widget table th {
  padding: 0.4rem;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
}
.sidebar-widget table td {
  padding: 0.4rem;
  text-align: center;
  color: var(--text-light);
}
.sidebar-widget table td a {
  font-weight: 700;
  color: var(--teal);
}
.sidebar-widget table td#today {
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--teal);
}

/* Search */
.sidebar-search {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.25rem;
}
.sidebar-search form {
  display: flex;
  gap: 0.5rem;
}
.sidebar-search input[type="text"] {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}
.sidebar-search input[type="text"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,125,140,0.1);
}
.sidebar-search button,
.sidebar-search input[type="submit"] {
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-body);
}
.sidebar-search button:hover,
.sidebar-search input[type="submit"]:hover {
  background: var(--navy-light);
}

/* Category list in sidebar */
.sidebar-widget .cat-item { list-style: none; }
.sidebar-widget .cat-item a { display: flex; align-items: center; gap: 0.4rem; }
.sidebar-widget .cat-item a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--transition);
}
.sidebar-widget .cat-item a:hover::before { background: var(--teal); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

.footer-section p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.55);
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-section a:hover { color: white; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.82rem;
  padding: 0.15rem 0;
  transition: all var(--transition);
}
.footer-links a:hover { padding-left: 0.25rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ==========================================================================
   SINGLE POST / PAGE
   ========================================================================== */
.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.article-header h1 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

.article-content {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 { margin: 2rem 0 1rem; font-size: 1.35rem; }
.article-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.15rem; }
.article-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.article-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--teal-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-light);
}
.article-content a { color: var(--teal); border-bottom: 1px solid transparent; }
.article-content a:hover { border-bottom-color: var(--teal); }

/* Post card wrapper for archive/single */
.post-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.post-nav a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all var(--transition);
}
.post-nav a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}
.post-nav .nav-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.post-nav .nav-next { text-align: right; }

/* Related posts */
.related-posts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.related-posts h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

/* ==========================================================================
   ARCHIVE / CATEGORY PAGE
   ========================================================================== */
.archive-header {
  margin-bottom: 1.5rem;
}
.archive-header h1 {
  font-size: 1.4rem;
  color: var(--navy);
}
.archive-header .desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.archive-list .post-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.archive-list .post-item:first-child { border-top: 1px solid var(--border-light); }
.archive-list .post-item:hover { background: var(--bg); }
.archive-list .post-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.archive-list .post-title a {
  font-size: 0.92rem;
  color: var(--text);
}
.archive-list .post-title a:hover { color: var(--teal); }
.archive-list .post-comments {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 2rem;
  padding: 1rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pagination a { color: var(--text-light); background: var(--surface); }
.pagination a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.pagination .current {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  font-weight: 600;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-area {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.comments-area h3 { font-size: 1rem; margin-bottom: 1.25rem; }

.comment-list { margin-bottom: 2rem; }
.comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.comment-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.comment-meta .comment-author { font-weight: 600; color: var(--text); }
.comment-body { font-size: 0.9rem; line-height: 1.7; }

.comment-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,125,140,0.1);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  padding: 0.7rem 1.5rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-body);
}
.comment-form .submit:hover { background: var(--navy-light); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .site-main { grid-template-columns: 1fr; }
  .site-sidebar { order: 2; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    z-index: 200;
  }
  .site-nav.open li ul {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .menu-toggle { display: flex; }

  .hero-banner { height: 200px; }
  .hero-content h1 { font-size: 1.4rem; }

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

  .post-nav { grid-template-columns: 1fr; }

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

  .post-card { padding: 1.25rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  .header-inner { height: 56px; }
  .brand-tagline { display: none; }
  .tabs-nav button { font-size: 0.78rem; padding: 0.7rem 0.5rem; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .site-footer, .site-sidebar, .site-nav, .hero-banner { display: none; }
  .site-main { display: block; }
  .post-card { box-shadow: none; border: none; padding: 0; }
  body { color: black; background: white; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-card {
  animation: fadeInUp 0.5s ease both;
}
.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.10s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.20s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.30s; }
.category-card:nth-child(7) { animation-delay: 0.35s; }

.tabs-widget { animation: fadeInUp 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
