/*
Theme Name: DeHomeDecor
Theme URI: https://example.com/dehomedecor
Author: DeHomeDecor
Author URI: https://example.com
Description: A clean, modern WordPress theme for blog and articles. Orange accent, Bootstrap, focus on readability.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dehomedecor
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, theme-options
*/

/* ==========================================================================
   Variables & base – Orange theme
   ========================================================================== */
:root {
  --color-primary: #e67e22;
  --color-primary-dark: #d35400;
  --color-accent: #f39c12;
  --color-text: #2c2c2c;
  --color-text-muted: #666;
  --color-bg: #fffaf5;
  --color-border: #f0e6dc;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(230, 126, 34, 0.08);
  --shadow-md: 0 6px 20px rgba(230, 126, 34, 0.12);
  --radius: 10px;
  --radius-pill: 2rem;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.blog-page .article-title a,
.single-article .entry-title,
.archive-page .entry-title a,
.page-content .entry-title {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-page .article-title a:hover,
.archive-page .entry-title a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Header / Navbar – Orange theme, pill menu
   ========================================================================== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(230, 126, 34, 0.1);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.header-top {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: rgba(255,255,255,0.95);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-tagline {
  margin: 0;
  opacity: 0.98;
}

.header-tagline-link {
  color: inherit;
  text-decoration: none;
}

.header-tagline-link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header .navbar {
  padding: 0.85rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary) !important;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.site-brand:hover {
  color: var(--color-primary-dark) !important;
}

.site-name {
  display: inline-block;
}

.site-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

/* Menu: pill style */
.navbar .navbar-nav {
  gap: 0.35rem;
}

.navbar .navbar-nav .nav-item {
  margin-left: 0;
}

.navbar .nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar .nav-link:hover {
  color: #fff !important;
  background: var(--color-primary);
}

.navbar .nav-item.current-menu-item .nav-link {
  color: #fff !important;
  background: var(--color-primary);
}

@media (max-width: 991.98px) {
  .header-top { display: none; }
  .site-header .navbar { padding: 0.6rem 0; }
  .site-brand { font-size: 1.25rem; }
  .site-logo img { max-height: 40px; }
  .navbar .navbar-collapse {
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }
  .navbar .navbar-nav { gap: 0.25rem; }
  .navbar .navbar-nav .nav-item { margin-left: 0; }
  .navbar .nav-link {
    padding: 0.65rem 1rem !important;
    border-radius: var(--radius);
    border-bottom: none;
  }
  .navbar .nav-link:hover,
  .navbar .nav-item.current-menu-item .nav-link {
    background: rgba(230, 126, 34, 0.12);
    color: var(--color-primary) !important;
  }
}

/* ==========================================================================
   Main content area
   ========================================================================== */
main {
  padding: 2.5rem 0 3rem;
  min-height: 50vh;
}

.blog-page .page-title,
.archive-page .archive-title,
.page-content .entry-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

/* ==========================================================================
   Blog listing cards (home.php)
   ========================================================================== */
.blog-page .post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  height: 100%;
  border: 1px solid var(--color-border);
}

.blog-page .post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-page .post-card .card-img-top {
  height: 220px;
  object-fit: cover;
  background: var(--color-border);
}

.blog-page .post-card .card-body {
  padding: 1.25rem 1.5rem;
}

.blog-page .post-card .article-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-page .post-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.blog-page .post-meta a {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-page .card-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Blog category filter nav (home.php) */
.blog-category-nav {
  margin-bottom: 1.5rem;
}

.blog-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-cat-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-cat-link:hover,
.blog-cat-link.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.blog-page .card-img-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border);
}

.blog-page .card-img-placeholder .placeholder-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (min-width: 576px) {
  .blog-page .card-img-placeholder { height: 220px; }
}

/* ==========================================================================
   Single article (single.php)
   ========================================================================== */
.single-article .entry-header {
  margin-bottom: 2rem;
}

.single-article .entry-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.single-article .entry-meta {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.single-article .entry-meta a {
  color: var(--color-primary);
  text-decoration: none;
}

.single-article .post-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.single-article .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.single-article .entry-content {
  font-size: 1.0625rem;
  max-width: 72ch;
}

.single-article .entry-content p {
  margin-bottom: 1.25rem;
}

.single-article .entry-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.single-article .entry-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.single-article .entry-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Single: right sidebar – other articles */
.single-sidebar {
  order: 2;
}

.other-articles-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.other-articles-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-accent);
  letter-spacing: 0.01em;
}

.other-articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.other-article-item {
  border-bottom: 1px solid var(--color-border);
}

.other-article-item:first-child {
  padding-top: 0;
}

.other-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.other-article-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 6px;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.other-article-link:hover {
  color: var(--color-primary);
}

.other-article-link:hover .other-article-text {
  color: var(--color-primary);
}

.other-article-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-border);
}

.other-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.other-article-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
  padding: 2px;
}

.other-article-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.other-article-text {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.other-article-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Single: bottom – related articles (3 cards, spacing and design) */
.related-articles {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.related-articles-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  letter-spacing: 0.01em;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .related-articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.related-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(44, 95, 79, 0.2);
}

.related-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-card-img-wrap {
  display: block;
  overflow: hidden;
  background: var(--color-border);
}

.related-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.related-card:hover .related-card-img {
  transform: scale(1.04);
}

.related-card-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  background: var(--color-border);
}

.related-card-body {
  padding: 1.125rem 1.25rem;
}

.related-card-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-card-link:hover .related-card-title {
  color: var(--color-primary);
}

.related-card-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ==========================================================================
   Archive page
   ========================================================================== */
.archive-header-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  min-height: 200px;
}

.archive-header-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.archive-header-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
}

.archive-header-overlay .archive-title {
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  border: none;
  padding: 0;
}

.archive-header-overlay .archive-description {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 0.9375rem;
}

.archive-page .archive-description {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.archive-post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.archive-post-card:hover {
  box-shadow: var(--shadow-md);
}

.archive-post-thumbnail {
  display: block;
  overflow: hidden;
  background: var(--color-border);
}

.archive-post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.archive-post-card:hover .archive-post-img {
  transform: scale(1.02);
}

.archive-post-body {
  padding: 1.25rem 1.5rem;
}

.archive-post-body .entry-title {
  margin-bottom: 0.5rem;
}

.archive-post-body .entry-title a {
  color: var(--color-text);
  text-decoration: none;
}

.archive-post-body .entry-title a:hover {
  color: var(--color-primary);
}

.archive-post-body .post-meta {
  margin-bottom: 0.75rem;
}

.archive-post-body .entry-summary {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 576px) {
  .archive-header-image img { height: 280px; }
  .archive-header-overlay .archive-title { font-size: 1.75rem; }
}

@media (min-width: 768px) {
  .archive-header-image img { height: 320px; }
}

/* ==========================================================================
   Page template
   ========================================================================== */
.page-content .entry-content {
  font-size: 1.0625rem;
  max-width: 72ch;
}

.page-content .entry-content p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar .widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.sidebar .widget h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.sidebar .widget ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar .widget li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar .widget li:last-child {
  border-bottom: none;
}

.sidebar .widget a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar .widget a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Pagination (WordPress default nav-links)
   ========================================================================== */
.pagination-wrapper {
  margin-top: 2.5rem;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

.navigation.pagination .nav-links .page-numbers {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.4rem 0.65rem;
  text-align: center;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.navigation.pagination .nav-links .page-numbers:hover {
  background: rgba(44, 95, 79, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.navigation.pagination .nav-links .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.navigation.pagination .nav-links .prev,
.navigation.pagination .nav-links .next {
  padding: 0.4rem 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #c0392b 100%);
  color: rgba(255,255,255,0.92);
  margin-top: 3rem;
}

.footer-widgets {
  padding: 2.5rem 0 2rem;
}

.footer-brand-block {
  max-width: 280px;
}

.site-footer .footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.site-footer .footer-brand:hover {
  color: rgba(255,255,255,0.95) !important;
}

.footer-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.88;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.site-footer .menu-item a {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.site-footer .menu-item a:hover {
  color: rgba(255,255,255,0.95) !important;
  padding-left: 4px;
}

.footer-touch {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.88;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

@media (max-width: 767.98px) {
  .footer-widgets { padding: 1.75rem 0 1.5rem; }
  .footer-widgets .row {
    display: unset;
  }
  .footer-brand-block { max-width: none; }
  .footer-heading { margin-top: 1rem; }
  .footer-heading:first-child { margin-top: 0; }
}

@media (max-width: 575.98px) {
  .footer-widgets .row > [class*="col-"] {
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.comments-area .comments-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.comment-list {
  list-style: none;
  padding-left: 0;
}

.comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-author {
  font-weight: 600;
  color: var(--color-primary);
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   No posts / empty state
   ========================================================================== */
.no-posts {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
}

/* ==========================================================================
   Front page (front-page.php)
   ========================================================================== */
.front-page {
  padding: 0 0 2rem;
  min-height: auto;
}

.front-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin: 0 calc(-1 * var(--bs-gutter-x, 0.75rem)) 2rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.front-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.front-hero-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.front-hero-subtitle {
  font-size: 1rem;
  margin: 0;
  opacity: 0.92;
}

.front-category-section {
  margin-bottom: 2.5rem;
}

.front-category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.front-category-title {
  font-size: 1.375rem;
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.front-category-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.front-category-link:hover {
  text-decoration: underline;
}

.front-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.front-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.front-card-img-link {
  display: block;
  overflow: hidden;
  background: var(--color-border);
}

.front-card .card-img-top {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.front-card:hover .card-img-top {
  transform: scale(1.03);
}

.front-card-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  background: var(--color-border);
}

.front-card .card-body {
  padding: 0.875rem 1rem;
}

.front-card-title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.front-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.front-card-title a:hover {
  color: var(--color-primary);
}

.front-card-meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.front-no-categories {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.front-no-categories a {
  color: var(--color-primary);
}

/* Front page: featured / affiliate section */
/* Affiliate/featured section: 800×250 banners */
.front-featured-section {
  margin-bottom: 2.5rem;
}

.front-featured-section .front-category-title {
  margin-bottom: 1.25rem;
}

.front-featured-banners {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.front-featured-banner {
  display: block;
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 250px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: #fff;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.front-featured-banner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.front-featured-banner-img {
  position: absolute;
  inset: 0;
  background: var(--color-border);
}

.front-featured-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.front-featured-banner:hover .front-featured-banner-image {
  transform: scale(1.03);
}

.front-featured-banner-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  background: var(--color-border);
}

.front-featured-banner-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 839px) {
  .front-featured-banner {
    max-width: 100%;
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .front-featured-banner {
    height: 180px;
  }

  .front-featured-banner-title {
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }
}

.front-cta {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.front-cta-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.front-cta .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.front-cta .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Front page & blog responsive */
@media (max-width: 575.98px) {
  .front-page .front-card .card-img-top,
  .front-page .front-card-no-img {
    height: 200px;
  }
}

@media (min-width: 576px) {
  .front-hero {
    padding: 3rem 1.5rem 3rem;
    margin-bottom: 2.5rem;
  }

  .front-hero-title { font-size: 2rem; }
  .front-hero-subtitle { font-size: 1.125rem; }

  .front-card .card-img-top,
  .front-card-no-img { height: 180px; }
}

@media (min-width: 768px) {
  .front-hero {
    padding: 4rem 2rem;
    margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem));
    margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
    border-radius: var(--radius);
  }

  .front-hero-title { font-size: 2.25rem; }
  .front-card .card-img-top,
  .front-card-no-img { height: 200px; }
}

@media (min-width: 992px) {
  .front-hero-title { font-size: 2.5rem; }
}

/* ==========================================================================
   Utilities & responsive (global + blog)
   ========================================================================== */
@media (max-width: 991.98px) {
  .single-article .entry-title {
    font-size: 1.75rem;
  }

  .blog-page .post-card .card-img-top {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  main {
    padding: 1.25rem 0 1.75rem;
  }

  .blog-page .page-title,
  .archive-page .archive-title {
    font-size: 1.5rem;
  }

  .blog-page .post-card .card-img-top {
    height: 180px;
  }

  .blog-page .post-card .card-body {
    padding: 1rem 1.25rem;
  }

  .blog-page .article-title {
    font-size: 1.125rem;
  }

  .blog-category-list {
    gap: 0.4rem;
  }

  .blog-cat-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
  }
}
