/* -------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   ------------------------------------------------------------------------- */
:root {
  --tb-primary: #02897a;
  --tb-primary-hover: #026d62;
  --tb-primary-light: #e6f4f2;
  --tb-orange: #ff7800;
  --tb-orange-hover: #e06a00;
  --tb-ink: #203a3d;
  --tb-heading: #132426;
  --tb-muted: #647579;
  --tb-line: #e4ebea;
  --tb-line-light: #f0f4f3;
  --tb-soft: #f7faf9;
  --tb-white: #ffffff;
  --tb-green: #278553;
  --tb-danger: #d9383a;

  --tb-radius-sm: 6px;
  --tb-radius: 10px;
  --tb-radius-lg: 16px;
  --tb-radius-full: 9999px;

  --tb-shadow-sm: 0 2px 8px rgba(22, 49, 45, 0.05);
  --tb-shadow: 0 8px 24px rgba(22, 49, 45, 0.08);
  --tb-shadow-lg: 0 16px 36px rgba(22, 49, 45, 0.12);

  --tb-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --tb-font-system:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

/* -------------------------------------------------------------------------
   2. Base & Modern Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--tb-ink);
  font-family: var(--tb-font-system);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--tb-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--tb-primary);
  text-decoration: none;
  transition: var(--tb-transition);
}

a:hover {
  color: var(--tb-orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--tb-heading);
  line-height: 1.25;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1.2em;
}

/* -------------------------------------------------------------------------
   3. Accessibility & Utilities
   ------------------------------------------------------------------------- */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--tb-primary);
  border-radius: var(--tb-radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 10px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 10px;
  width: auto;
  z-index: 100000;
}

:focus-visible {
  outline: 2px solid var(--tb-primary);
  outline-offset: 3px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow {
  width: min(840px, calc(100% - 40px));
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--tb-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--tb-primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

/* -------------------------------------------------------------------------
   4. Buttons & Form Controls
   ------------------------------------------------------------------------- */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--tb-radius);
  background: var(--tb-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: var(--tb-transition);
}

button:hover,
.button:hover,
.wp-block-button__link:hover {
  background: var(--tb-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  color: var(--tb-ink);
  border-color: var(--tb-line);
}

.button-outline:hover {
  background: var(--tb-soft);
  color: var(--tb-primary);
  border-color: var(--tb-primary);
  transform: translateY(-1px);
}

.button-orange {
  background: var(--tb-orange);
  color: #ffffff;
}

.button-orange:hover {
  background: var(--tb-orange-hover);
  color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 12px 16px;
  background-color: var(--tb-white);
  transition: var(--tb-transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 3px rgba(2, 137, 122, 0.15);
  outline: none;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tb-heading);
}

/* -------------------------------------------------------------------------
   6. Hero & Search Banner
   ------------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 8vw, 84px) 0 clamp(36px, 6vw, 60px);
  background: linear-gradient(180deg, #f3faf8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tb-line-light);
}

.hero .container {
  padding-top: 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 12px 0 16px;
}

.hero-intro {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--tb-muted);
  max-width: 680px;
  margin-bottom: 28px;
}

.search-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
}

.search-filter input[type="search"] {
  flex: 1 1 280px;
  background-color: var(--tb-white);
  box-shadow: var(--tb-shadow-sm);
}

.search-filter select {
  flex: 0 1 200px;
  background-color: var(--tb-white);
  box-shadow: var(--tb-shadow-sm);
}

.search-filter button {
  flex: 0 0 auto;
  padding: 12px 24px;
}

/* -------------------------------------------------------------------------
   7. Layout Grids (Modern CSS Grid)
   ------------------------------------------------------------------------- */
.section {
  padding: clamp(40px, 6vw, 68px) 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--tb-line);
  padding-bottom: 16px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 6px;
}

.section-heading p {
  color: var(--tb-muted);
  font-size: 16px;
  margin-bottom: 0;
}

.view-all-link {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.heading-popular {
  margin-top: 48px;
}

/* -------------------------------------------------------------------------
   8. Post Card Component (Modern Micro-interactions)
   ------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--tb-white);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  overflow: hidden;
  transition: var(--tb-transition);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tb-shadow);
  border-color: rgba(2, 137, 122, 0.3);
}

.post-card .thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--tb-soft);
}

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

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

.tb-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4f2 0%, #f7faf9 100%);
  color: var(--tb-primary);
  font-weight: 700;
  font-size: 18px;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.post-category a {
  color: inherit;
}

.post-card-title {
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.post-card-title a {
  color: var(--tb-heading);
}

.post-card-title a:hover {
  color: var(--tb-primary);
}

.post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tb-muted);
}

.meta-separator {
  opacity: 0.5;
}

/* -------------------------------------------------------------------------
   9. Sidebar & Widgets
   ------------------------------------------------------------------------- */
.blog-sidebar,
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  visibility: visible;
  position: relative;
  height: auto;
  width: auto;
}

.sidebar-block {
  background: var(--tb-soft);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 20px;
}

/* Sidebar brand panel (replaces author/follow in single post sidebar) */
.sidebar-brand-panel {
  text-align: center;
  background: var(--tb-soft);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sidebar-brand-logo {
  max-width: 190px;
  width: auto;
  height: auto;
  max-height: 44px;
  display: block;
  object-fit: contain;
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tb-heading);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tb-line);
}

/* Sidebar Search */
.sidebar-search-block,
.widget_search {
  padding-bottom: 20px;
}

.sidebar-search-form,
.tb-search-form,
.widget_search .search-form,
.widget_search form {
  position: relative;
  width: 100%;
}

.sidebar-search-input-wrap,
.tb-search-input-wrap,
.widget_search .search-form > label,
.widget_search form > div {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sidebar-search-input-wrap input[type="search"],
.tb-search-input-wrap input[type="search"],
.widget_search input[type="search"],
.widget_search .search-field {
  width: 100%;
  padding: 10px 44px 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: var(--tb-radius-sm);
  background: var(--tb-white);
  border: 1px solid var(--tb-line);
  color: var(--tb-heading);
}

.sidebar-search-input-wrap input[type="search"]:focus,
.tb-search-input-wrap input[type="search"]:focus,
.widget_search input[type="search"]:focus,
.widget_search .search-field:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 3px rgba(2, 137, 122, 0.15);
  outline: none;
}

.sidebar-search-btn,
.tb-search-submit,
.widget_search .search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--tb-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--tb-radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--tb-transition);
}

.sidebar-search-btn:hover,
.tb-search-submit:hover,
.widget_search .search-submit:hover {
  background: var(--tb-primary-hover);
  color: #ffffff;
}

.sidebar-search-btn svg,
.tb-search-submit svg {
  display: block;
}

.featured-list,
.related-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.featured-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.featured-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 78px;
  height: 58px;
  flex-shrink: 0;
  background: var(--tb-soft);
}

.featured-thumb img,
.featured-thumb .post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.featured-thumb:hover img {
  transform: scale(1.08);
}

.featured-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.featured-content .post-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-primary, #02897a);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.featured-content .post-category a {
  color: inherit;
  text-decoration: none;
}

.featured-content .post-category a:hover {
  text-decoration: underline;
}

.featured-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--tb-heading, #0f172a);
}

.featured-title a {
  color: var(--tb-heading, #0f172a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: var(--tb-primary, #02897a);
}

/* Feedback Card */
.feedback-card .field {
  margin-bottom: 16px;
}

.feedback-card .field:last-of-type {
  margin-bottom: 18px;
}

.feedback-card .field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-heading);
  margin-bottom: 8px;
}

.feedback-card input[type="text"],
.feedback-card input[type="email"],
.feedback-card textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--tb-heading);
  box-sizing: border-box;
  transition: var(--tb-transition);
}

.feedback-card input[type="text"]:focus,
.feedback-card input[type="email"]:focus,
.feedback-card textarea:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 3px rgba(2, 137, 122, 0.15);
  outline: none;
}

.feedback-card textarea {
  min-height: 90px;
  resize: vertical;
}

.feedback-card .button-orange {
  width: 100%;
  background: var(--tb-orange);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: var(--tb-transition);
}

.feedback-card .button-orange:hover {
  background: var(--tb-orange-hover);
  color: #ffffff;
}

.feedback-alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.feedback-alert-success {
  background: #e6f4f2;
  color: #026d62;
  border: 1px solid #b2dfdb;
}

.feedback-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.category-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li,
.footer-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--tb-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.category-list li:last-child,
.footer-links li:last-child {
  border-bottom: none;
}

.category-list a,
.footer-links a {
  color: var(--tb-ink);
}

.category-list a:hover,
.footer-links a:hover {
  color: var(--tb-primary);
}

/* -------------------------------------------------------------------------
   10. Single Article Template & Typography
   ------------------------------------------------------------------------- */
.single-wrap {
  padding: 32px 0 60px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--tb-muted);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  color: var(--tb-muted);
}

.breadcrumbs a:hover {
  color: var(--tb-primary);
}

.breadcrumbs .current {
  color: var(--tb-heading);
  font-weight: 500;
}

.single-grid {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 50px);
  align-items: start;
}

.single-title {
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 12px 0 24px;
}

.single-featured-wrap {
  margin-bottom: 32px;
  border-radius: var(--tb-radius-lg);
  overflow: hidden;
}

.single-featured {
  width: 100%;
  height: auto;
  border-radius: var(--tb-radius-lg);
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #273b3e;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 1.8em 0 0.6em;
}

.entry-content h3 {
  font-size: clamp(19px, 2.5vw, 24px);
  margin: 1.5em 0 0.5em;
}

.entry-content blockquote {
  border-left: 4px solid var(--tb-primary);
  padding: 12px 24px;
  margin: 2em 0;
  background-color: var(--tb-soft);
  border-radius: 0 var(--tb-radius) var(--tb-radius) 0;
  font-style: italic;
  font-size: 1.1em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 28px;
  margin-bottom: 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

/* -------------------------------------------------------------------------
   Table Formatting & Structure Retention
   ------------------------------------------------------------------------- */
.tb-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.8em 0;
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 15px;
  line-height: 1.6;
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  padding: 12px 16px;
  border: 1px solid var(--tb-line);
  vertical-align: top;
}

.entry-content th,
.wp-block-table th {
  background-color: var(--tb-soft);
  color: var(--tb-heading);
  font-weight: 700;
  text-align: left;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: var(--tb-soft);
}

.post-tags {
  margin: 32px 0 24px;
  font-size: 15px;
}

.tags-label {
  font-weight: 700;
  color: var(--tb-heading);
}

/* Author block — top of post (compact inline style) */
.post-author-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
}

.post-author-top .author-avatar {
  border-radius: var(--tb-radius-full);
  flex-shrink: 0;
}

.post-author-top .author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--tb-heading);
  line-height: 1.2;
}

.post-author-top .author-meta {
  font-size: 13px;
  color: var(--tb-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.author-avatar {
  border-radius: var(--tb-radius-full);
}

.post-end-divider {
  height: 1px;
  background: var(--tb-line);
  margin: 40px 0;
}

/* -------------------------------------------------------------------------
   11. Feedback Form & Dismissible Alerts
   ------------------------------------------------------------------------- */
.tb-alert {
  padding: 14px 20px;
  border-radius: var(--tb-radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.tb-alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.tb-alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tb-alert-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* -------------------------------------------------------------------------
   12. Comments & Form
   ------------------------------------------------------------------------- */
.comments-area {
  margin-top: 48px;
}

.comments-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.comment-list .comment {
  padding: 20px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  margin-bottom: 16px;
  background-color: var(--tb-soft);
}

.comment-list .children {
  list-style: none;
  padding-left: 24px;
  margin-top: 16px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author img {
  border-radius: var(--tb-radius-full);
}

.comment-metadata {
  font-size: 13px;
  color: var(--tb-muted);
  margin-bottom: 10px;
}

.comment-respond {
  background: var(--tb-soft);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 28px;
}

.comment-reply-title {
  font-size: 20px;
  margin-bottom: 16px;
}

/* Limit the default WordPress comment textarea to ~3 visible lines */
.comment-respond #comment {
  min-height: 80px;
  max-height: 120px;
  resize: vertical;
}

/* -------------------------------------------------------------------------
   13. Topic Section & Newsletter
   ------------------------------------------------------------------------- */
.topic-section {
  background-color: var(--tb-soft);
  border-top: 1px solid var(--tb-line);
}

.topic-section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.topic-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background-color: var(--tb-white);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow-sm);
}

.topic-tile-info strong {
  color: var(--tb-heading);
}

.topic-tile-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--tb-radius-full);
  background-color: var(--tb-primary-light);
  color: var(--tb-primary);
  font-weight: 700;
  font-size: 18px;
  transition: var(--tb-transition);
}

.topic-tile-arrow:hover {
  background-color: var(--tb-primary);
  color: #ffffff;
  transform: translateX(2px) translateY(-2px);
}

/* -------------------------------------------------------------------------
   15. Pagination & Empty States
   ------------------------------------------------------------------------- */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--tb-radius);
  border: 1px solid var(--tb-line);
  color: var(--tb-ink);
  font-weight: 600;
  font-size: 14px;
  transition: var(--tb-transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #ffffff;
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  background-color: var(--tb-soft);
  border-radius: var(--tb-radius);
  border: 1px dashed var(--tb-line);
  margin: 32px 0;
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.empty-state h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--tb-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-404-wrap {
  padding: clamp(60px, 10vw, 120px) 0;
}

.error-title {
  font-size: clamp(32px, 5vw, 52px);
  margin: 12px 0 16px;
}

.error-lead {
  font-size: 18px;
  color: var(--tb-muted);
  max-width: 580px;
  margin: 0 auto 32px;
}

.search-404-form {
  max-width: 480px;
  margin: 0 auto 28px;
}

/* -------------------------------------------------------------------------
   16. Gutenberg Color Palette & Font Size Utilities
   ------------------------------------------------------------------------- */
.has-tenderbase-teal-color {
  color: #02897a;
}
.has-tenderbase-teal-background-color {
  background-color: #02897a;
}

.has-tenderbase-dark-teal-color {
  color: #026d62;
}
.has-tenderbase-dark-teal-background-color {
  background-color: #026d62;
}

.has-tenderbase-soft-teal-color {
  color: #02897a;
}
.has-tenderbase-soft-teal-background-color {
  background-color: #e6f4f2;
}

.has-tenderbase-orange-color {
  color: #ff7800;
}
.has-tenderbase-orange-background-color {
  background-color: #ff7800;
}

.has-tenderbase-dark-orange-color {
  color: #e06a00;
}
.has-tenderbase-dark-orange-background-color {
  background-color: #e06a00;
}

.has-tenderbase-soft-orange-color {
  color: #e06a00;
}
.has-tenderbase-soft-orange-background-color {
  background-color: #fff3e6;
}

.has-tenderbase-ink-color {
  color: #203a3d;
}
.has-tenderbase-ink-background-color {
  background-color: #203a3d;
}

.has-tenderbase-muted-color {
  color: #647579;
}
.has-tenderbase-muted-background-color {
  background-color: #647579;
}

.has-tenderbase-soft-color {
  color: #203a3d;
}
.has-tenderbase-soft-background-color {
  background-color: #f7faf9;
}

.has-white-color {
  color: #ffffff;
}
.has-white-background-color {
  background-color: #ffffff;
}

.has-small-font-size {
  font-size: 13px;
}
.has-normal-font-size {
  font-size: 16px;
}
.has-medium-font-size {
  font-size: 16px;
}
.has-large-font-size {
  font-size: 24px;
}
.has-x-large-font-size {
  font-size: 32px;
}
.has-huge-font-size {
  font-size: 42px;
}

/* -------------------------------------------------------------------------
   17. Responsive Media Queries
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .content-layout,
  .single-grid {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .post-sidebar {
    margin-top: 36px;
  }

  /* Move action buttons into the mobile nav drawer on all mobile/tablet viewports */
  .header-actions {
    display: none;
  }

  .nav-actions-mobile {
    display: flex;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--tb-line);
    margin-top: 12px;
  }

  .nav-actions-mobile .button {
    flex: 1;
    justify-content: center;
    font-size: 14px;
    padding: 10px 14px;
  }
}

@media (max-width: 768px) {
  .hero .container {
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 0 24px;
  }

  .hero .container {
    padding-top: 40px;
  }

  .hero-title {
    font-size: clamp(24px, 6.5vw, 32px);
    margin: 8px 0 12px;
  }

  .hero-intro {
    font-size: 15px;
    margin-bottom: 18px;
  }

  /* Compact 1-line space search and topic filter on mobile */
  .search-filter {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
  }

  .search-filter input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
    height: 40px;
    border-radius: var(--tb-radius);
  }

  .search-filter select {
    flex: 0 0 auto;
    width: auto;
    max-width: 110px;
    padding: 8px 6px;
    font-size: 12px;
    height: 40px;
    border-radius: var(--tb-radius);
    text-overflow: ellipsis;
  }

  .search-filter button {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
    height: 40px;
    border-radius: var(--tb-radius);
    white-space: nowrap;
  }
}

.single-post #entry-content p,
.single-post #entry-content p.has-medium-font-size {
  font-size: 16px !important;
}

.single-post #entry-content li,
.single-post #entry-content li.has-medium-font-size {
  font-size: 16px !important;
}

.single-post #entry-content td,
.single-post #entry-content td.has-medium-font-size {
  font-size: 16px !important;
}
