/* ============================================================
   UniGreet Theme – style.css
   Based on SmartMag design language
   Primary: #d6043c | Header: rgba(12,0,4,0.84) | Font: Assistant
   ============================================================ */

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Assistant', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: #d6043c; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 0.5em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }

/* ---- Layout ------------------------------------------------ */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.ts-contain { width: 100%; }
.row.cf::after { content: ''; display: table; clear: both; }
.cf::after { content: ''; display: table; clear: both; }

.col-4 { width: 33.333%; float: left; padding: 0 15px; }
.col-8 { width: 66.666%; float: left; padding: 0 15px; }
.col-6 { width: 50%; float: left; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }

.main-wrap { min-height: 60vh; }
.main-content-wrap { overflow: hidden; }

/* ---- Off-canvas backdrop ---------------------------------- */
.off-canvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.off-canvas-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}
body.off-canvas-active { overflow: hidden; }

/* ---- Off-canvas menu --------------------------------------- */
.off-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: #1a1a1a;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.off-canvas.is-open {
  transform: translateX(0);
}
.off-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.off-canvas-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.offcanvas-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.offcanvas-close:hover { color: #d6043c; }
.off-canvas-nav { padding: 12px 0; }
.off-canvas-nav ul li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s;
}
.off-canvas-nav ul li a:hover {
  background: rgba(214,4,60,0.15);
  color: #d6043c;
}

/* ---- Header ----------------------------------------------- */
.smart-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.smart-head.is-sticky .smart-head-mid {
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.smart-head-mid.s-dark {
  background: rgba(12,0,4,0.84);
  backdrop-filter: blur(8px);
}
.smart-head-mid .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.items-left { display: flex; align-items: center; gap: 12px; }
.items-center { display: flex; align-items: center; }
.items-right { display: flex; align-items: center; flex: 1; justify-content: flex-end; }

/* Hamburger button */
.offcanvas-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.2s;
}
.offcanvas-toggle:hover .hamburger-bar { background: #d6043c; }

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-text { color: #fff; }

/* Main navigation */
.navigation-main { display: flex; align-items: center; }
.navigation-main ul.menu {
  display: flex;
  gap: 0;
  align-items: center;
}
.navigation-main ul.menu .menu-item a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.navigation-main ul.menu .menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #d6043c;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.navigation-main ul.menu .menu-item a:hover { color: #fff; }
.navigation-main ul.menu .menu-item a:hover::after { transform: scaleX(1); }

/* ---- Breadcrumb ------------------------------------------- */
.breadcrumbs {
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 0;
  font-size: 0.8125rem;
}
.breadcrumbs .trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.breadcrumbs .trail li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs .trail li a { color: #555; }
.breadcrumbs .trail li a:hover { color: #d6043c; }
.breadcrumbs .trail li.trail-end span { color: #888; }
.breadcrumbs .sep { color: #aaa; font-size: 0.75rem; }

/* ---- Block heads ------------------------------------------ */
.block-head {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.block-head.has-style .heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #222;
  position: relative;
  padding-left: 12px;
}
.block-head.has-style .heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #d6043c;
  border-radius: 2px;
}
.block-head .heading a { color: inherit; }
.block-head .heading a:hover { color: #d6043c; }
.view-all-link {
  font-size: 0.8125rem;
  color: #d6043c;
  font-weight: 600;
  transition: opacity 0.2s;
}
.view-all-link:hover { opacity: 0.8; color: #d6043c; }

/* ---- Category badge --------------------------------------- */
.cat-labels {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cat-labels a {
  background: #d6043c;
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 2px;
  transition: background 0.2s;
}
.cat-labels a:hover { background: #b5032f; color: #fff !important; }

/* ---- Post title shared ------------------------------------ */
.post-title a { color: inherit; }
.post-title a:hover { color: #d6043c; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #888;
  align-items: center;
}
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Grid overlay card (featured / category sections) ----- */
.l-post.grid-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}
.l-post.grid-overlay .media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.l-post.grid-overlay .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.l-post.grid-overlay:hover .media img { transform: scale(1.04); }
.l-post.grid-overlay .overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.l-post.grid-overlay .post-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 4px 0 6px;
  line-height: 1.35;
}
.l-post.grid-overlay .post-title a { color: #fff; }
.l-post.grid-overlay .post-title a:hover { color: #f8c8d0; }
.l-post.grid-overlay .post-meta { color: rgba(255,255,255,0.7); font-size: 0.75rem; }

/* ---- Featured grid ---------------------------------------- */
.featured-section { padding: 24px 0 8px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---- Latest news grid ------------------------------------- */
.latest-news-section { padding: 28px 0; background: #fff; }
.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.mt-20 { margin-top: 20px; }

/* ---- Cat posts grid --------------------------------------- */
.cat-section { padding: 28px 0; border-top: 1px solid #e8e8e8; }
.cat-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ---- Related posts grid ----------------------------------- */
.related-posts { margin-top: 36px; padding-top: 24px; border-top: 2px solid #e8e8e8; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---- Two-col section -------------------------------------- */
.two-col-section { padding: 28px 0; }
.s-light { background: #f8f8f8; }

/* ---- List post (article-list) ----------------------------- */
.loop.loop-list { }
.l-post.loop-list-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
}
.l-post.loop-list-item:last-child { border-bottom: none; }
.l-post.loop-list-item .media {
  flex: 0 0 200px;
  width: 200px;
  overflow: hidden;
  border-radius: 3px;
}
.l-post.loop-list-item .media img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform 0.3s;
}
.l-post.loop-list-item:hover .media img { transform: scale(1.04); }
.l-post.loop-list-item .content { flex: 1; min-width: 0; }
.l-post.loop-list-item .post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 6px 0 8px;
  line-height: 1.4;
}
.l-post.loop-list-item .post-summary {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 8px;
}

/* ---- Small post (sidebar / footer) ------------------------ */
.loop.loop-small { }
.l-post.loop-small-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.l-post.loop-small-item:last-child { border-bottom: none; }
.l-post.loop-small-item .media {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 2px;
}
.l-post.loop-small-item .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.l-post.loop-small-item:hover .media img { transform: scale(1.06); }
.l-post.loop-small-item .content { flex: 1; min-width: 0; }
.l-post.loop-small-item .post-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.l-post.loop-small-item .post-meta { font-size: 0.75rem; color: #999; }

/* ---- Sidebar ---------------------------------------------- */
.main-sidebar {
  position: sticky;
  top: 80px;
}
.widget { margin-bottom: 28px; }
.widget-title.block-head { }

/* ---- Single post ------------------------------------------ */
.single-post-wrap { padding: 28px 0 40px; }
.single-post-col { }
.sidebar-col { }

.single-post { }
.above-title { margin-bottom: 10px; }
.single-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #111;
}
.single-meta {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}
.single-meta .post-author { font-weight: 600; color: #555; }
.post-featured-image {
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
}
.post-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.post-content.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}
.post-content.entry-content h2 { font-size: 1.4rem; margin: 1.5em 0 0.5em; }
.post-content.entry-content h3 { font-size: 1.2rem; margin: 1.3em 0 0.4em; }
.post-content.entry-content p { margin-bottom: 1.1em; }
.post-content.entry-content ul,
.post-content.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.post-content.entry-content ul { list-style: disc; }
.post-content.entry-content ol { list-style: decimal; }
.post-content.entry-content blockquote {
  border-left: 4px solid #d6043c;
  margin: 1.5em 0;
  padding: 12px 20px;
  background: #f8f8f8;
  color: #555;
  font-style: italic;
}
.post-content.entry-content img { border-radius: 3px; margin: 1em auto; }
.post-content.entry-content a { color: #d6043c; text-decoration: underline; }
.post-content.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}
.post-content.entry-content table th,
.post-content.entry-content table td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}
.post-content.entry-content table th {
  background: #f4f4f4;
  font-weight: 700;
  color: #111;
}
.post-content.entry-content table tr:nth-child(even) td { background: #fafafa; }
.post-content.entry-content table tr:hover td { background: #f0f0f0; }

/* ---- Category page ---------------------------------------- */
.category-page { padding: 28px 0 40px; }
.page-header.category-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #e8e8e8; }
.page-title { font-size: 1.8rem; font-weight: 800; color: #111; }
.category-description { color: #666; font-size: 0.9375rem; margin-top: 8px; margin-bottom: 0; }
.no-posts { color: #888; padding: 40px 0; text-align: center; }

/* ---- Static page ------------------------------------------ */
.page-wrap { padding: 28px 0 40px; }
.page-content-full { max-width: 860px; }
.static-page .page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid #e8e8e8; }
.page-content.entry-content { font-size: 1rem; line-height: 1.8; }

/* ---- 404 page --------------------------------------------- */
.error-404-wrap {
  padding: 80px 20px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.error-code {
  font-size: 120px;
  font-weight: 800;
  color: #d6043c;
  line-height: 1;
  margin-bottom: 10px;
}
.error-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}
.error-desc {
  color: #666;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.error-categories { margin-top: 40px; }
.error-cats-heading { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: #333; }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: #d6043c;
  color: #fff;
  border: none;
}
.btn-primary:hover { background: #b5032f; color: #fff; }

/* ---- Tag cloud -------------------------------------------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-link {
  display: inline-block;
  padding: 5px 14px;
  background: #f0f0f0;
  color: #444;
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.tag-link:hover { background: #d6043c; color: #fff; }

/* ---- Pagination ------------------------------------------- */
.pagination-wrap {
  margin: 32px 0;
  display: flex;
  justify-content: center;
}
.pagination-wrap nav { display: flex; gap: 4px; align-items: center; }
.pagination-wrap .page-link,
.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  font-size: 0.875rem;
  color: #555;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination-wrap a:hover { background: #d6043c; color: #fff; border-color: #d6043c; }
.pagination-wrap .active span,
.pagination-wrap span[aria-current="page"] {
  background: #d6043c;
  color: #fff;
  border-color: #d6043c;
}

/* ---- Footer ----------------------------------------------- */
.main-footer.s-dark {
  background: #161616;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
}
.upper-footer {
  padding: 44px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.upper-footer .col-4,
.upper-footer .col-6 { padding: 0 20px; }
.upper-footer .col-4:first-child,
.upper-footer .col-6:first-child { padding-left: 15px; }
.upper-footer .col-4:last-child,
.upper-footer .col-6:last-child { padding-right: 15px; }

.widget-title.block-head {
  border-bottom-color: rgba(255,255,255,0.1);
  margin-bottom: 16px;
  padding-bottom: 10px;
}
.main-footer .block-head.has-style .heading {
  color: #fff;
}
.main-footer .block-head.has-style .heading::before {
  background: #d6043c;
}

.footer-about-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  transition: color 0.2s;
}
.footer-links li a:hover { color: #d6043c; }

.main-footer .l-post.loop-small-item { border-bottom-color: rgba(255,255,255,0.08); }
.main-footer .post-title a { color: rgba(255,255,255,0.85); }
.main-footer .post-title a:hover { color: #d6043c; }
.main-footer .post-meta { color: rgba(255,255,255,0.4); }

.main-footer .tag-link { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.main-footer .tag-link:hover { background: #d6043c; color: #fff; }

.lower-footer {
  background: #f0f0f0;
  padding: 14px 0;
}
.lower-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
}
.copyright { font-size: 0.8125rem; color: #555; }

/* ---- Sections general ------------------------------------- */
section.block-wrap { padding: 28px 0; }
section.block-wrap + section.block-wrap { border-top: 1px solid #f0f0f0; }

/* ---- Utility ---------------------------------------------- */
.is-full-width { width: 100%; }
.is-left { justify-content: flex-start; }
.has-style { }
.block-head-h { }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .cat-posts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Reduce side padding on mobile */
  .wrap { padding: 0 12px; }

  /* Hide desktop nav, show hamburger */
  .navigation-main { display: none; }
  .offcanvas-toggle { display: flex; }

  /* Stack columns */
  .col-4, .col-8, .col-6, .col-12 {
    width: 100%;
    float: none;
    padding: 0;
  }
  .row.cf { display: flex; flex-direction: column; gap: 0; }

  /* Grids */
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .latest-news-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-posts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* List posts */
  .l-post.loop-list-item .media { flex: 0 0 130px; width: 130px; }
  .l-post.loop-list-item .media img { height: 90px; }

  /* Sidebar unsticks on mobile */
  .main-sidebar { position: static; }
  .sidebar-col { margin-top: 28px; }

  /* Footer */
  .upper-footer .col-4,
  .upper-footer .col-6 { padding: 0; margin-bottom: 28px; }
  .upper-footer { padding: 28px 0 16px; }

  /* Single post */
  .single-post-wrap .row.cf { gap: 0; }
}

@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
  .latest-news-grid { grid-template-columns: 1fr; }
  .cat-posts-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .l-post.loop-list-item { flex-direction: column; }
  .l-post.loop-list-item .media { width: 100%; flex: none; }
  .l-post.loop-list-item .media img { height: 200px; }

  .error-code { font-size: 80px; }
  .lower-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Header item containers (updated naming) -------------- */
.head-items-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.head-items-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.head-items-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 60px;
}

/* ---- Breadcrumb (actual class names used) ----------------- */
.breadcrumbs .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: #666;
}
.breadcrumbs .label {
  color: #999;
  font-weight: 500;
  margin-right: 4px;
}
.breadcrumbs .current { color: #888; }
.breadcrumbs .delim { color: #aaa; }
.breadcrumbs a { color: #555; }
.breadcrumbs a:hover { color: #d6043c; }

/* ---- Feat grid container ---------------------------------- */
.feat-grid.feat-grid-b { }
.feat-grid .slides .items-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}
.feat-grid .item.item-large { grid-row: span 2; }
.feat-grid .item.item-medium { }

/* ---- Article list (SmartMag source class names) ----------- */
.loop.loop-list { }
.l-post.list-post {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
}
.l-post.list-post:last-child { border-bottom: none; }
.l-post.list-post .media {
  flex: 0 0 220px;
  width: 220px;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 3/2;
}
.l-post.list-post .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.l-post.list-post:hover .media img { transform: scale(1.04); }
.l-post.list-post .content { flex: 1; min-width: 0; }
.l-post.list-post .is-title.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 6px 0 8px;
  line-height: 1.4;
}
.l-post.list-post .excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-top: 8px;
}
.l-post.list-post .post-meta-a .post-meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #888;
}
.l-post.list-post .post-meta-a .post-meta-items.meta-below {
  flex-wrap: nowrap;
  align-items: center;
}
.l-post.list-post .post-meta-a .post-meta-items.meta-below .meta-item.date {
  white-space: nowrap;
}
.l-post.list-post .by { font-weight: 500; margin-right: 2px; }
.l-post.list-post .author-name { color: #555; font-weight: 600; }

/* ---- Small post (SmartMag class names) -------------------- */
.l-post.small-post.small-a-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.l-post.small-post.small-a-post:last-child { border-bottom: none; }
.l-post.small-post .media {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 2px;
}
.l-post.small-post .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.l-post.small-post:hover .media img { transform: scale(1.06); }
.l-post.small-post .content { flex: 1; min-width: 0; }
.l-post.small-post .is-title.post-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.l-post.small-post .post-meta-a { }
.l-post.small-post .post-meta-items { display: flex; gap: 6px; font-size: 0.75rem; color: #999; }

/* ---- Main content area ------------------------------------ */
.main.ts-contain { width: 100%; }
.main.no-sidebar .ts-row { }
.main.no-sidebar .col-12 { width: 100%; float: none; padding: 0; }
.main.right-sidebar { padding: 28px 0; }
.main.no-sidebar { padding: 0 0 40px; }

/* ---- Archive heading (category page) ---------------------- */
.archive-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  padding: 20px 0 16px;
  margin-bottom: 16px;
  border-bottom: 3px solid #e8e8e8;
}
.archive-heading span { color: #d6043c; }

/* ---- Single post article ---------------------------------- */
.the-post { }
.the-post-header { margin-bottom: 20px; }
.the-post-header .meta-above { margin-bottom: 10px; }
.the-post-header .is-title.post-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #111;
}
.the-post-header .post-meta-items.meta-below {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #888;
  padding: 12px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin-top: 10px;
}
.the-post-header .updated-on { color: #999; }
.the-post-header .meta-item.date .post-date {
  display: block;
}
.the-post-header .by { margin-right: 3px; }
.the-post-header .author-name { font-weight: 600; color: #555; }
.the-post-header .filed-under a { color: #d6043c; }
.s-post-contain { }

/* ---- FAQ section ------------------------------------------ */
.post-faq { margin-top: 36px; padding-top: 24px; border-top: 2px solid #e8e8e8; }
.faq-heading { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; color: #111; }
.faq-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e8e8e8; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 8px; }
.faq-answer { font-size: 0.9375rem; color: #555; line-height: 1.7; }

/* ---- Site H1 (visually de-emphasized on home) ------------- */
.site-h1-wrap { padding: 16px 20px 4px 0; }
.site-h1 {
  font-size: 0.9rem;
  font-weight: 400;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- 404 page (updated selectors) ------------------------- */
.error-404-page {
  padding: 80px 20px;
  text-align: center;
}
.error-404-inner {
  max-width: 620px;
  margin: 0 auto;
}
.error-code-display {
  font-size: 120px;
  font-weight: 800;
  color: #d6043c;
  line-height: 1;
  margin-bottom: 10px;
}
.error-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}
.error-home-btn { margin: 20px 0; }

/* ---- Block head variant (red heading color) --------------- */
.block-head-f .heading { color: #d6043c !important; }
.block-head-f.has-style .heading::before { background: #d6043c; }

/* ---- Cat post col in grid --------------------------------- */
.cat-post-col { }
.cat-posts-grid .l-post.grid-overlay { height: 100%; }
.cat-posts-grid .l-post.grid-overlay .media { aspect-ratio: 4/3; }

/* ---- Featured grid item sizes ----------------------------- */
.feat-grid .item.item-large .l-post.grid-overlay .media { aspect-ratio: 3/2; min-height: 280px; }
.feat-grid .item.item-medium .l-post.grid-overlay .media { aspect-ratio: 3/2; min-height: 130px; }

/* ---- Global link focus visibility ------------------------- */
a:focus, button:focus { outline: 2px solid #d6043c; outline-offset: 2px; }

/* ---- Footer widget (sidebar class names in footer) -------- */
.main-footer .l-post.small-post { border-bottom-color: rgba(255,255,255,0.08); }
.main-footer .l-post.small-post .post-title a { color: rgba(255,255,255,0.85); }
.main-footer .l-post.small-post .post-title a:hover { color: #d6043c; }
.main-footer .l-post.small-post .post-meta-items { color: rgba(255,255,255,0.4); }

/* ---- Mobile nav (responsive updates) ---------------------- */
@media (max-width: 768px) {
  .navigation-main { display: none !important; }
  .offcanvas-toggle { display: flex; }
  .head-items-center { flex: 1; justify-content: center; }
  .l-post.list-post .media { flex: 0 0 130px; width: 130px; }
  .feat-grid .slides .items-wrap { grid-template-columns: 1fr; }
  .feat-grid .item.item-large { grid-row: auto; }
  .main.no-sidebar .col-12.main-content { padding: 0 12px; }
  .main.right-sidebar .ts-row { display: flex; flex-direction: column; }
  .main.right-sidebar .col-8,
  .main.right-sidebar .col-4 { width: 100%; float: none; padding: 0 16px; }
  .main-sidebar { margin-top: 28px; position: static; }
}

@media (max-width: 480px) {
  .l-post.list-post { flex-direction: column; }
  .l-post.list-post .media { width: 100%; flex: none; aspect-ratio: 16/9; height: auto; }
  .archive-heading { font-size: 1.2rem; }
}

/* ---- Pagination (page-numbers) ---------------------------- */
.main-pagination { margin: 32px 0; }
.pagination-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  font-size: 0.875rem;
  color: #555;
  background: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-weight: 600;
}
.page-numbers:hover { background: #d6043c; color: #fff; border-color: #d6043c; }
.page-numbers.current {
  background: #d6043c;
  color: #fff;
  border-color: #d6043c;
}
.page-numbers.disabled {
  color: #ccc;
  cursor: default;
  pointer-events: none;
}
.prev-page, .next-page { font-weight: 700; }
