/*
Theme Name: Reputation Today
Theme URI: https://example.com/
Author: Avignyata Inc.
Description: Dynamic WordPress theme converted from the Reputation Today HTML homepage.
Version: 1.0.0
Text Domain: reputation-today
*/
:root {
  --font-heading: "Khand", sans-serif;
  --font-body: "Cambo", serif;
  --orange: #e9781c;
  --text: #6a6a6a;
  --dark: #242424;
  --line: #d9d9d9;
  --soft: #f6f6f6;
  --container: 1200px;
  --gap: clamp(22px, 3.4vw, 40px);
  --sidebar: clamp(280px, 30vw, 360px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input {
  font: inherit;
}

/* Typography: Khand for UI/headings, Cambo for content paragraphs */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.title-row > a,
.main-nav a,
.start-btn,
.read,
.cat,
.catline,
.catline span,
.recent-list span,
.panel h3,
.topic-text span,
.topic-text em,
.topic-text strong,
button,
input,
.site-header .search input {
  font-family: var(--font-heading);
}

p,
.excerpt,
.cards3 p,
.view-item p,
.quote-card p,
.site-footer p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
}
.container {
  width: min(var(--container), calc(100% - 52px));
  margin-inline: auto;
}

/* Top banner */
.top-head {
  height: 72px;
  border-bottom: 1px solid #eee;
  transition:
    height 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
  overflow: hidden;
}
.top-head.is-closed {
  height: 0 !important;
  opacity: 0;
  visibility: hidden;
  border: 0;
}
.head-grid {
  height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(110px, 200px) auto !important;
  gap: 18px;
  align-items: center;
}
.rt-mark img {
  width: 54px;
  margin-inline: auto;
}
.topic-img {
  display: block !important;
  width: 200px !important;
  height: 52px !important;
  max-width: none !important;
  object-fit: cover;
  flex: 0 0 160px;
}
.topic-text {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}
.topic-content {
  min-width: 0;
  flex: 1;
}
.topic-text span {
  font: 600 14px var(--font-heading);
  color: var(--orange);
  display: inline-block;
  margin-right: 7px;
}
.topic-text em {
  font-style: normal;
  color: #bbb;
  font-size: 14px;
}
.topic-text strong {
  display: block;
  font: 600 clamp(14px, 1.35vw, 18px)/1.2 var(--font-heading);
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.start-btn {
  background: #e58b26;
  color: white;
  border-radius: 22px;
  width: 100%;
  max-width: 118px;
  justify-self: end;
  padding: 10px 24px 6px;
  font: 600 16px var(--font-heading);
  text-align: center;
  white-space: nowrap;
  line-height: normal;
}
.close-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  background: white;
  color: #999;
  font-size: 17px;
  line-height: 18px;
  padding: 0;
}

/* Brand + nav */

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  width: 156px;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .search {
  display: flex;
  align-items: center;
  width: 190px;
  gap: 8px;
}

.site-header .search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.site-header .search-field {
  flex: 1;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 4px;
}

.site-header .search input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  color: #7c7c7c;
  line-height: 1;
}

.site-header .search input::placeholder {
  color: #9b9b9b;
  opacity: 1;
}
.main-nav {
  background: #111;
}
.nav-inner {
  position: relative;
}
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 10px;
}
.main-nav a {
  font: 500 16px var(--font-heading);
  color: white;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

/* Common */
.section {
  padding: 27px 0;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--gap);
  align-items: start;
}
.section-title {
  font: 600 clamp(24px, 2.4vw, 36px)/1 var(--font-heading);
  color: #000;
  margin: 0 0 25px;
  padding-bottom: 11px;
  border-bottom: 1px solid #ccc;
  text-transform: uppercase;
}
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.title-row .section-title {
  flex: 1;
}
.title-row > a {
  color: var(--orange);
  font: 500 17px var(--font-heading);
  margin-top: 5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
h1 {
  font: 700 clamp(25px, 2.6vw, 32px)/1.25 var(--font-heading);
  color: #3a3a3c;
  margin: 0 0 10px;
}
h3 {
  font: 500 clamp(18px, 1.8vw, 21px)/1.22 var(--font-heading);
  color: #3b3b3b;
  margin: 0 0 7px;
}
.catline,
.cat {
  font: 300 14px var(--font-heading);
  color: #6a6a6a;
  letter-spacing: 0.4px;
  margin: 13px 0 8px;
  text-transform: uppercase;
}
.catline span,
.cat {
  color: var(--orange);
  font-weight: 500 !important;
}
.excerpt {
  color: #6a6a6a;
  margin: 0 0 9px;
}
.read {
  font: 500 17px var(--font-heading);
  color: var(--orange);
  margin-right: 10px;
}
.time {
  color: #999;
}
.panel {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 15px;
}
.panel h3 {
  font: 500 24px var(--font-heading);
  letter-spacing: 0.5px;
  margin-bottom: 17px;
}
.read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font:
    500 16px "Khand",
    sans-serif;
}

.icon-read {
  width: 12px !important;
  height: 12px !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 0px !important;
}

.recent-list em,
.view-item em,
.cards3 em,
.popular-grid em {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  color: #6a6a6a;
  font-size: 14px;
}

.icon-clock {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}
/* Top story */
.feature-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 7px;
}
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-list li {
  padding: 0 0 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.recent-list li:last-child {
  border: 0;
  margin: 0;
}
.recent-list span {
  display: block;
  color: var(--orange);
  font: 500 14px var(--font-heading);
  letter-spacing: 1px;
}
.recent-list a {
  display: block;
  font: 400 16px/1.35 var(--font-heading);
  color: #3a3a3c;
}
.recent-list em,
.cards3 em,
.popular-grid em,
.view-item em {
  font-style: normal;
  color: #6a6a6a;
  font-size: 14px;
  font-weight: 500;
}

/* Insights */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cards3 img {
  height: 150px;
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.cards3 p {
  margin: 0 0 7px;
  color: #6a6a6a;
  font-size: 16px;
}
.cards3 .cat {
  margin-top: 13px;
  font-size: 14px;
  color: var(--orange);
  font-family: var(--font-heading);
  letter-spacing: 3%;
  font-weight: 500 !important;
}
.cards3 em {
  font-family: var(--font-heading);
  letter-spacing: 3%;
  font-size: 14px;
  color: #6a6a6a;
  font-weight: 300 !important;
}
.cards3 .read {
  display: inline-flex;
  margin-top: 10px;
}
.img-panel {
  margin-top: 40px;
  padding: 13px;
}
.img-panel img {
  width: 100%;
  height: auto;
  border-radius: 17px;
  object-fit: cover;
  border: 1px solid #cccccc;
}

/* Most popular */
.popular-wrap {
  background: #f7f7f7;
  padding: 50px 0;
}
.popular-wrap .section-title {
  margin-bottom: 21px;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
  row-gap: 26px;
}
.popular-grid article {
  display: grid;
  grid-template-columns: minmax(110px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.popular-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}
.popular-grid h3 {
  font-size: 22px;
}
.popular-grid p{
  margin: 0 0 5px;
}

.popular-grid .cat {
margin-bottom: 1px;
}

.post-date {
  font-family: var(--font-heading);
  color: #6a6a6a;
  font-size: 14px;
  font-weight: 300 !important;
  letter-spacing: 4%;
  margin-bottom: 5px;
}

/* Views */
.views {
  padding-top: 47px;
  padding-bottom: 47px;
}
.view-item {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 24px);
  padding: 23px 0;
  border-bottom: 1px solid #ddd;
  align-items: center;
}
.view-item:first-of-type {
  padding-top: 0;
}
.view-item.split {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
}
.view-item p {
  margin: 0 0 5px;
  color: #777;
}
.view-photo {
  width: 100%;
  height: 172px;
  object-fit: cover;
  border-radius: 7px;
}
.quote-card {
  position: relative;
  min-height: 172px;
  border-radius: clamp(14px, 2.2vw, 28px);
  padding: clamp(18px, 2.1vw, 26px);
  padding-right: 35%;
  overflow: hidden;
  color: #fff;
}
.quote-card p {
  font: 400 clamp(14px, 1.25vw, 16px)/1.65 var(--font-body);
  margin: 0 0 4px;
  color: #fff;
}
.quote-card strong {
  display: block;
  text-align: right;
  font: 400 16px var(--font-heading);
}
.quote-card img {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(6deg);
  width: 31%;
  aspect-ratio: 1/1.1;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.small-quote {
  padding: 18px 22px 18px 86px;
  border-radius: 8px;
  min-height: 120px;
}
.small-quote p {
  font-size: 10px;
  line-height: 1.55;
}
.small-quote strong {
  font-size: 10px;
}
.small-quote img {
  left: 14px;
  right: auto;
  width: 58px;
  height: 74px;
  transform: translateY(-50%) rotate(-3deg);
}
.quote-image {
  width: 100%;
}

.quote-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}
.side-stack {
  padding-top: 11px;
}
.sidecard {
  padding: 12px;
  margin-bottom: 17px;
}
.sidecard h3 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 15px;
  font: 500 24px var(--font-heading);
  color: #000;
  text-transform: uppercase;
}

.sidecard h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfcfcf;
}
.sidecard img {
  margin: auto;
  border-radius: 2px;
}

/* Footer */
.site-footer {
  background: #2d2d2c;
  color: #d2d2d2;
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr 0.65fr 0.8fr;
  gap: 50px;
}
.foot-logo {
  width: 180px;
  margin-bottom: 17px;
}
.site-footer p {
  max-width: 300px;
  color: #eee;
  margin: 0;
}
.site-footer h4 {
  color: var(--orange);
  font: 400 20px var(--font-body);
  margin: 0 0 20px;
}
.site-footer a {
  display: block;
  margin-bottom: 15px;
  font: 400 17px var(--font-body);
  color: #ffffff;
}
.social {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px;
  height: 36px;
  margin-right: 8px !important;
  border-radius: 50% !important;
  background: #696969 !important;
  color: #fff !important;
  font-size: 16px !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social:hover {
  background: var(--orange);
  color: #fff;
}
.copyright {
  border-top: 1px solid #555;
  margin-top: 30px;
  padding: 16px 0 18px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 1050px) {
  .head-grid {
    grid-template-columns: 44px 1fr 28px;
    height: auto;
    min-height: 72px;
    gap: 10px;
    padding-block: 9px;
  }
  .start-btn {
    padding: 10px 18px;
  }
  .main-nav ul {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav ul::-webkit-scrollbar {
    display: none;
  }
  .feature-card img {
    height: clamp(300px, 43vw, 450px);
  }
  .popular-grid article {
    grid-template-columns: 140px 1fr;
  }
  .view-item,
  .view-item.split {
    grid-template-columns: 1fr;
  }
  .view-item.split .quote-card {
    order: -1;
  }
  .quote-card {
    max-width: 560px;
  }
  .side-stack {
    padding-top: 0;
  }
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .top-panel,
  .img-panel {
    margin-top: 0;
  }
  .side-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .sidecard {
    margin: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 30px);
  }
  .top-head {
    height: auto;
  }
  .head-grid {
    height: auto;
    min-height: 72px;
    grid-template-columns: 44px minmax(90px, 1fr) 28px;
    gap: 10px;
    padding-block: 9px;
  }
  .rt-mark img {
    width: 42px;
  }
  .topic-img {
    display: block;
    max-width: 180px;
    justify-self: start;
    width: 110px !important;
    height: 42px !important;
    flex: 0 0 110px;
  }
  .topic-text {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
  }
  .topic-text strong {
    white-space: normal;
    font-size: 12px;
  }
  .start-btn {
    grid-column: 1 / 3;
    justify-self: end;
    width: 100%;
    max-width: 200px;
    padding: 8px 16px;
  }
  .close-btn {
    grid-column: 3;
    grid-row: 1;
  }
  .brand-search {
    height: auto;
    padding: 14px 0;
  }
  .brand-row {
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(145px, 1fr);
    align-items: center;
    gap: 16px;
  }
  .wordmark {
    width: 130px;
  }
  .site-header .search {
    width: 100%;
    max-width: 190px;
    justify-self: end;
  }
  .main-nav {
    padding: 0;
  }
  .main-nav ul {
    display: none;
    min-height: 0;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    overflow: visible;
  }
  .main-nav ul.is-open {
    display: flex;
  }
  .main-nav li {
    width: 100%;
  }
  .main-nav a {
    display: block;
    padding: 7px 0;
  }
  .nav-toggle {
    display: flex;
  }
  .cards3 {
    grid-template-columns: 1fr;
  }
  .popular-grid {
    grid-template-columns: 1fr;
  }
  .popular-grid article {
    grid-template-columns: 120px 1fr;
  }
  .quote-card {
    padding-right: 34%;
    min-height: 190px;
  }
  .quote-card img {
    width: 30%;
  }
  .small-quote {
    padding-left: 92px;
    min-height: 130px;
  }
  .side-stack {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer p {
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .section {
    padding: 22px 0;
  }
  .section-title {
    margin-bottom: 18px;
  }
  .feature-card img {
    height: auto;
  }
  .popular-grid article {
    grid-template-columns: 1fr;
  }
  .popular-grid img {
    height: auto;
  }
  .view-item {
    gap: 14px;
  }
  .quote-card {
    padding: 18px;
    min-height: 0;
  }
  .quote-card img {
    position: static;
    transform: none;
    width: 92px;
    height: 110px;
    float: right;
    margin-left: 16px;
    margin-bottom: 8px;
  }
  .quote-card strong {
    text-align: left;
  }
  .small-quote {
    padding: 18px;
  }
  .brand-row {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding-block: 10px;
  }
  .brand-search {
    height: auto;
  }
  .site-header .search {
    width: 100%;
  }
  .site-header .search input {
    width: 100%;
  }
}

/* =========================================================
   Meta/icon classes: clock.jpg + read.jpg
   Keeps existing colors and font settings; only fixes classes/layout.
========================================================= */
.post-date,
.post-time {
  font-style: normal;
  color: #6a6a6a;
  font-size: 14px;
  font-weight: 500;
}

.cards3 .post-date {
  font-family: var(--font-heading);
  letter-spacing: 3%;
  font-size: 14px;
  color: #6a6a6a;
  font-weight: 300 !important;
}

.post-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more,
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  display: inline-block !important;
  flex: 0 0 auto;
  object-fit: contain !important;
  border-radius: 0 !important;
  max-width: none !important;
}

.meta-icon--clock {
  width: 14px !important;
  height: 14px !important;
}

.meta-icon--read,
.meta-icon--view {
  width: 12px !important;
  height: 12px !important;
}

.recent-list .post-time,
.view-item .post-date,
.cards3 .post-date,
.popular-grid .post-date {
  display: flex;
  align-items: center;
}

/* =========================================================
   RESPONSIVE FIXES - place at END of style.css
   Keeps existing colors and font settings.
========================================================= */

/* Base safety */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

.container {
  max-width: var(--container);
}

/* Make desktop nav safer before tablet */
.main-nav ul {
  flex-wrap: nowrap;
}

.brand-row {
  min-height: 48px;
}

/* Top banner: responsive but desktop remains same visual */
.topic-img {
  flex: 0 0 200px !important;
  object-fit: cover;
}

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

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .container {
    width: calc(100% - 40px);
  }

  .head-grid {
    grid-template-columns: auto minmax(0, 1fr) minmax(100px, 160px) auto !important;
    gap: 14px;
  }

  .topic-img {
    width: 170px !important;
    flex-basis: 170px !important;
  }

  .topic-text strong {
    font-size: 16px;
  }

  .start-btn {
    max-width: 118px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-nav ul {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav ul::-webkit-scrollbar {
    display: none;
  }

  .cards3 {
    gap: 18px;
  }

  .popular-grid {
    column-gap: 28px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  :root {
    --sidebar: 320px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .top-head {
    height: auto;
  }

  .head-grid {
    height: auto;
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    padding-block: 10px;
    gap: 12px;
  }

  .rt-mark img {
    width: 48px;
  }

  .topic-text {
    gap: 12px;
    overflow: hidden;
  }

  .topic-img {
    width: 140px !important;
    height: 46px !important;
    flex-basis: 140px !important;
  }

  .topic-text strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .brand-row {
    padding-block: 12px;
  }

  .wordmark {
    width: 150px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .top-panel,
  .img-panel {
    margin-top: 0;
  }

  .feature-card img {
    height: clamp(300px, 52vw, 450px);
  }

  .cards3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .popular-grid article {
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  }

  .view-item,
  .view-item.split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .view-item.split .quote-image,
  .view-item.split .quote-card {
    order: -1;
  }

  .view-photo {
    height: auto;
  }

  .quote-image {
    max-width: 100%;
  }

  .side-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 0;
  }

  .sidecard {
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .site-footer {
    padding-top: 56px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .container {
    width: calc(100% - 30px);
  }

  .section {
    padding: 24px 0;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .top-head {
    height: auto;
  }

  .top-head.is-closed {
    height: 0 !important;
  }

  .head-grid {
    height: auto;
    min-height: 72px;
    grid-template-columns: 42px minmax(0, 1fr) 28px !important;
    gap: 10px;
    padding-block: 10px;
  }

  .rt-mark {
    grid-column: 1;
    grid-row: 1;
  }

  .rt-mark img {
    width: 42px;
  }

  .close-btn {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .topic-text {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
  }

  .topic-img {
    width: 110px !important;
    height: 42px !important;
    flex: 0 0 110px !important;
  }

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

  .topic-text span,
  .topic-text em {
    font-size: 13px;
  }

  .topic-text strong {
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .start-btn {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
    max-width: 118px;
    width: auto;
    padding: 8px 18px 5px;
  }

  .brand-row {
    min-height: auto;
    padding-block: 14px;
    gap: 14px;
  }

  .wordmark {
    width: 132px;
  }

  .site-header .search {
    width: 170px;
    flex-shrink: 0;
  }

  .site-header .search-icon {
    width: 16px;
    height: 16px;
  }

  .site-header .search input {
    font-size: 15px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 4px;
  }

  .nav-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    padding: 12px 0 6px;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    z-index: 99;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .main-nav ul.is-open {
    display: flex;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    padding: 10px 4px;
    font-size: 17px;
  }

  h1 {
    font-size: 28px;
  }

  .feature-card img {
    height: auto;
  }

  .cards3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cards3 img {
    height: auto;
  }

  .popular-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .popular-grid article {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 15px;
  }

  .popular-grid img {
    height: 90px;
  }

  .popular-grid h3 {
    font-size: 20px;
  }

  .view-item {
    gap: 16px;
    padding: 20px 0;
  }

  .quote-image img {
    width: 100%;
    height: auto;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding-top: 44px;
  }

  .site-footer p {
    max-width: 100%;
  }
}

/* Small mobile */
@media (max-width: 575px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .head-grid {
    grid-template-columns: 40px minmax(0, 1fr) 28px !important;
  }

  .topic-img {
    width: 92px !important;
    height: 36px !important;
    flex-basis: 92px !important;
  }

  .topic-text {
    gap: 8px;
  }

  .topic-text span,
  .topic-text em {
    font-size: 12px;
  }

  .topic-text strong {
    font-size: 13px;
  }

  .start-btn {
    font-size: 14px;
    max-width: 104px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .search {
    width: 100%;
  }

  .site-header .search-field {
    width: 100%;
  }

  .main-nav a {
    padding: 9px 20px;
  }

  .title-row {
    align-items: center;
    gap: 12px;
  }

  .title-row > a {
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .popular-grid article {
    grid-template-columns: 1fr;
  }

  .popular-grid img {
    height: auto;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* =========================================================
   Updated static HTML header: logo/ad row + hot topics/search row
   Added after original CSS to override old header rules.
========================================================= */
.site-header {
  background: #fff;
  border-top: 1px solid #eee;
}

.header-top {
  background: #fff;
  padding: 12px 0 9px;
  border-bottom: 1px solid #f0f0f0;
}

.header-top-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.site-logo .wordmark {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.header-banner {
  width: 100%;
  max-width: 1000px;
  height: 72px;
  overflow: hidden;
  background: #f7d9c1;
  align-items: end;
}

.header-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hot-topic-bar {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}

.hot-topic-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 18px;
}

.hot-label {
  font-family: var(--font-heading);
  color: var(--orange);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hot-topic-content {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
}

.hot-topic-content .topic-date {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 14px;
  font-weight: 300;
  color: #6a6a6a;
  white-space: nowrap;
}

.hot-topic-content strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.hot-topic-row .site-header .search {
  width: 190px;
  justify-self: end;
}

.nav-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
}

.main-nav ul {
  width: 100%;
}

@media (max-width: 1050px) {
  .header-top-row {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }

  .header-banner {
    height: 62px;
  }

  .hot-topic-row {
    grid-template-columns: 120px minmax(0, 1fr) 170px;
    gap: 14px;
  }

  .main-nav ul {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav ul::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 30px);
  }

  .header-top {
    padding: 12px 0;
  }

  .header-top-row {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
  }

  .site-logo .wordmark {
    width: 130px;
  }

  .header-banner {
    height: 45px;
  }

  .hot-topic-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hot-label {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .hot-topic-content {
    min-width: 0;
  }

  .hot-topic-content .topic-date {
    font-size: 13px;
  }

  .hot-topic-content strong {
    font-size: 14px;
  }

  .hot-topic-row .site-header .search {
    width: 150px;
    justify-self: end;
  }

  .site-header .search-icon {
    width: 16px;
    height: 16px;
  }

  .site-header .search input {
    font-size: 15px;
  }

  .main-nav {
    padding: 0;
  }

  .nav-inner {
    min-height: auto;
    display: block;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 4px;
    background: #111;
    color: #fff;
    border: 0;
    font-size: 22px;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    min-height: 0;
    height: auto;
    padding: 12px 0 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    overflow: visible;
  }

  .main-nav ul.is-open {
    display: flex;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 10px 4px;
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .header-top-row {
    grid-template-columns: 1fr;
  }

  .header-banner {
    max-width: 100%;
  }

  .hot-topic-row {
    grid-template-columns: 1fr;
  }

  .hot-topic-row .site-header .search {
    display: none;
    width: 100%;
    max-width: 230px;
    justify-self: start;
  }
}

/* WordPress dynamic additions */
.site-logo .custom-logo {
  display: block;
  max-width: 156px;
  height: auto;
}
.site-logo {
  display: inline-block;
}
.header-banner img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}
.hot-topic-content a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hot-topic-content strong {
  color: #111;
}
.main-nav .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 10px;
}
.main-nav .menu li {
  position: relative;
}
.main-nav .menu a {
  display: block;
}
.main-nav .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 190px;
  background: #111;
  z-index: 99;
  display: none;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.main-nav li:hover > .sub-menu {
  display: block;
}
.main-nav .sub-menu a {
  padding: 8px 14px;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.site-header .search-form {
  margin: 0;
}
.site-header .search input[type="search"]::-webkit-search-decoration,
.site-header .search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}
.feature-card > a:first-child {
  display: block;
}
.feature-card .wp-post-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 7px;
}
.cards3 article > a:first-child,
.popular-grid article > a:first-child {
  display: block;
}
.cards3 .wp-post-image {
  height: 150px;
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.popular-grid .wp-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.view-item .quote-image .wp-post-image,
.view-item .view-photo {
  width: 100%;
  height: auto;
  border-radius: 15px;
}
.read-time {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #6a6a6a;
}
.sidecard .widget {
  margin: 0;
}
.sidecard .widget-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 15px;
  font: 500 24px var(--font-heading);
  color: #000;
  text-transform: uppercase;
}
.sidecard .widget-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfcfcf;
}
.sidecard a {
  display: block;
}
.sidecard iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  display: block;
}
.tags-panel {
  padding: 12px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
}
.tag-cloud a {
  font-family: var(--font-body);
  font-size: 14px !important;
  color: #6a6a6a;
  text-decoration: underline;
  line-height: 1.35;
}
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li {
  margin: 0;
}
.footer-menu a {
  display: block;
}
.footer-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hot-topic-rotator {
  height: 22px;
  overflow: hidden;
  display: block;
}
.hot-topic-track {
  display: flex;
  flex-direction: column;
  animation: rtHotTopic 14s infinite;
}
.hot-topic-item {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
}
.hot-topic-item em {
  font-style: normal;
  color: #999;
  font-weight: 300;
}
@keyframes rtHotTopic {
  0%,
  22% {
    transform: translateY(0);
  }
  28%,
  50% {
    transform: translateY(-22px);
  }
  56%,
  78% {
    transform: translateY(-44px);
  }
  84%,
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .header-top-row {
    gap: 24px;
  }
  .header-banner img {
    height: 64px;
  }
  .main-nav .menu {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: #1a1a1a;
  }
  .main-nav li:hover > .sub-menu {
    display: none;
  }
  .main-nav .menu li:hover > .sub-menu {
    display: none;
  }
  .main-nav .menu li:focus-within > .sub-menu {
    display: block;
  }
  .feature-card .wp-post-image {
    height: clamp(300px, 43vw, 450px);
  }
}
@media (max-width: 760px) {
  .header-top-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .header-banner img {
    height: auto;
    max-height: 70px;
  }
  .hot-topic-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .hot-topic-content {
    width: 100%;
    min-width: 0;
  }
  .hot-topic-rotator {
    height: auto;
  }
  .hot-topic-track {
    animation: none;
  }
  .hot-topic-item {
    height: auto;
    min-height: 22px;
  }
  .brand-row,
  .header-top-row {
    display: grid;
  }
  .site-header .search {
    width: 100%;
    max-width: 190px;
  }
  .nav-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-nav .menu {
    display: none;
    min-height: 0;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    overflow: visible;
  }
  .main-nav .menu.is-open {
    display: flex;
  }
  .main-nav .menu li {
    width: 100%;
  }
  .main-nav .menu a {
    padding: 10px 4px;
    font-size: 17px;
  }
  .main-nav .sub-menu {
    position: static;
    display: block;
    width: 100%;
    padding-left: 14px;
    background: transparent;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .feature-card .wp-post-image {
    height: auto;
  }
  .side-stack {
    display: grid;
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer widget columns + clickable category fixes */
.cat a,
.catline a,
.recent-cat,
.cat-link {
  color: var(--orange);
  text-decoration: none;
}
.cat a:hover,
.catline a:hover,
.recent-cat:hover,
.cat-link:hover {
  text-decoration: underline;
}
.recent-list .recent-cat {
  display: block;
  color: var(--orange);
  font: 500 14px var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-widget-grid {
  grid-template-columns: 1.15fr 0.65fr 0.65fr 1fr;
  align-items: start;
}
.footer-col .widget {
  margin: 0 0 22px;
}
.footer-col .widget-title,
.site-footer .footer-col h4 {
  color: var(--orange);
  font: 400 20px var(--font-body);
  margin: 0 0 20px;
}
.footer-col ul,
.footer-col .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin: 0;
}
.footer-col img {
  max-width: 100%;
  height: auto;
}
.footer-col .custom-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin-bottom: 17px;
}
.footer-placeholder {
  width: 100%;
  min-height: 190px;
  background: #505050;
}
.footer-col-4 .widget,
.footer-col-4 iframe,
.footer-col-4 img {
  max-width: 100%;
}
.footer-col-4 iframe {
  width: 100%;
  min-height: 190px;
  border: 0;
}
@media (max-width: 900px) {
  .footer-widget-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .footer-widget-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-placeholder {
    min-height: 150px;
  }
}

/* =========================================================
   Category archive page
========================================================= */
.category-archive {
  padding: 50px 0 50px;
  background: #fff;
}
.archive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font: 400 12px var(--font-heading);
  color: #6a6a6a;
}
.archive-breadcrumb a {
  color: #111;
}
.archive-breadcrumb span:last-child {
  color: var(--orange);
}
.archive-title {
  font: 600 clamp(24px, 2.4vw, 36px)/1 var(--font-heading);
  color: #000;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.archive-hero-grid {
  display: grid;
  /*grid-template-columns: minmax(0, 1fr) var(--sidebar);*/
  gap: var(--gap);
  align-items: start;
  margin-bottom: 28px;
}
.archive-feature-card {
  border-bottom: 1px solid #ddd;
  padding-bottom: 24px;
}
.archive-feature-img,
.archive-feature-img img {
  display: block;
  width: 100%;
}
.archive-feature-img img {
  height: 330px;
  object-fit: cover;
  border-radius: 0;
}
.archive-feature-card h2 {
  font: 600 clamp(24px, 2.3vw, 32px)/1.15 var(--font-heading);
  color: #3a3a3c;
  margin: 0 0 9px;
}
.archive-tags-panel {
  padding: 14px 16px 16px;
  border-radius: 10px;
}
.archive-tags-panel h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font: 500 20px var(--font-heading);
  color: #000;
  text-transform: uppercase;
}
.archive-tags-panel h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #cfcfcf;
}
.archive-tags-list {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}
.archive-tags-list a {
  color: #6a6a6a;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-right: 4px;
}
.archive-tags-list a:hover {
  color: var(--orange);
}
.archive-grid-wrap {
  margin-top: 10px;
}
.archive-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 22px;
}
.archive-post-card {
  min-width: 0;
}
.archive-card-img,
.archive-card-img img {
  display: block;
  width: 100%;
}
.archive-card-img img {
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
}
.archive-post-card .cat {
  margin-top: 12px;
}
.archive-post-card h3 {
  font: 500 clamp(18px, 1.6vw, 22px)/1.18 var(--font-heading);
  color: #3a3a3c;
  margin: 0 0 7px;
}
.archive-post-card p:not(.cat) {
  margin: 0 0 7px;
  color: #6a6a6a;
  font-size: 16px;
}
.archive-post-card .post-date {
  display: flex;
  align-items: center;
}
.archive-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 34px;
  font: 400 14px var(--font-heading);
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #e1e1e1;
  color: #6a6a6a;
  background: #fff;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.archive-pagination .prev,
.archive-pagination .next {
  width: auto;
}

@media (max-width: 1050px) {
  .archive-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .archive-feature-img img {
    height: clamp(260px, 34vw, 330px);
  }
}
@media (max-width: 900px) {
  .archive-hero-grid {
    grid-template-columns: 1fr;
  }
  .archive-tags-panel {
    max-width: none;
  }
  .archive-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .category-archive {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .archive-breadcrumb {
    margin-bottom: 14px;
  }
  .archive-title {
    margin-bottom: 18px;
  }
  .archive-feature-img img {
    height: auto;
    border-width: 3px;
  }
  .archive-post-grid {
    gap: 28px 18px;
  }
  .archive-pagination {
    justify-content: center;
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .archive-post-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Single Post Template
========================================================= */
.single-template {
  padding: 18px 0 55px;
}
.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  font: 400 13px var(--font-heading);
  color: #6a6a6a;
}
.single-breadcrumb a {
  color: var(--orange);
}
.single-breadcrumb i {
  color: #6a6a6a;
  font-size: 12px;
}
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--gap);
  align-items: start;
}
.single-title {
  margin: 0 0 15px;
  font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--font-heading);
  color: #3a3a3c;
}
.single-featured-img {
  margin-bottom: 10px;
}
.single-featured-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.single-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  font: 500 14px var(--font-heading);
  color: #6a6a6a;
  text-transform: uppercase;
}
.single-meta-line span,
.single-meta-line a {
  color: var(--orange);
}
.single-meta-line em {
  font-style: normal;
  color: #6a6a6a;
  text-transform: none;
  font-weight: 300;
}
.single-entry-content {
  color: #6a6a6a;
  font-family: var(--font-body);
}
.single-entry-content p {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: #6a6a6a;
}
.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
  font-family: var(--font-heading);
  color: #3a3a3c;
  margin: 24px 0 10px;
}
.single-entry-content h2 {
  font-size: 26px;
  font-weight: 500;
}
.single-entry-content h3 {
  font-size: 22px;
  font-weight: 500;
}
.single-share-block {
  margin: 28px 0 34px;
}
.single-share-block h4 {
  margin: 0 0 9px;
  font: 500 14px var(--font-heading);
  color: #3a3a3c;
  text-transform: uppercase;
}
.single-share-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.single-share-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  color: #6a6a6a;
  background: #fff;
  font-size: 12px;
  transition: all 0.2s ease;
}
.single-share-icons a:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}
.single-disclaimer {
  margin: 0 0 24px;
  padding-top: 24px;
  border-top: 1px solid #d9d9d9;
  font: 500 20px/1.45 var(--font-heading);
  color: #3a3a3c;
  max-width: 760px;
}
.single-author-box {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 0 0 28px;
}
.author-avatar img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}
.author-info h3 {
  margin: 0 0 5px;
  font: 500 22px var(--font-heading);
  color: #3a3a3c;
}
.author-info p {
  margin: 0 0 10px;
  color: #6a6a6a;
  font: 400 15px/1.6 var(--font-body);
}
.single-post-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 6px;
  font: 500 14px var(--font-heading);
  color: #3a3a3c;
}
.single-post-nav a:hover {
  color: var(--orange);
}
.single-sidebar {
  padding-top: 48px;
}
.single-tags-panel {
  position: sticky;
  top: 20px;
}

@media (max-width: 900px) {
  .single-layout {
    grid-template-columns: 1fr;
  }
  .single-sidebar {
    padding-top: 0;
  }
  .single-tags-panel {
    position: static;
  }
}
@media (max-width: 760px) {
  .single-template {
    padding: 18px 0 40px;
  }
  .single-breadcrumb {
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .single-featured-img img {
    border-width: 3px;
  }
  .single-entry-content p {
    font-size: 15px;
    line-height: 1.7;
  }
  .single-disclaimer {
    font-size: 18px;
  }
  .single-author-box {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 15px;
  }
  .author-avatar img {
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 520px) {
  .single-author-box {
    grid-template-columns: 1fr;
  }
  .author-avatar img {
    width: 120px;
    height: 120px;
  }
  .single-post-nav {
    justify-content: space-between;
    gap: 12px;
  }
}

/* =========================================================
   Normal page template
========================================================= */
.page-template {
  padding: 22px 0 55px;
}
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--gap);
  align-items: start;
  padding:50px 0;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font: 400 13px var(--font-heading);
  color: #6a6a6a;
}
.page-breadcrumb a:hover {
  color: var(--orange);
}
.page-title {
  font: 600 clamp(26px, 3vw, 36px)/1.15 var(--font-heading);
  color: #3a3a3c;
  margin: 0 0 18px;
}
.page-featured-img {
  margin-bottom: 22px;
}
.page-featured-img img {
  width: 100%;
  height: auto;
  border-radius: 7px;
}
.page-entry-content {
  color: #6a6a6a;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
}
.page-entry-content p {
  margin: 0 0 18px;
}
.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4,
.page-entry-content h5,
.page-entry-content h6 {
  color: #3a3a3c;
  margin: 24px 0 12px;
  font-family: var(--font-heading);
  line-height: 1.2;
}
.page-entry-content h2 {
  font-size: 30px;
}
.page-entry-content h3 {
  font-size: 24px;
}
.page-entry-content ul,
.page-entry-content ol {
  margin: 0 0 20px 22px;
  padding: 0;
}
.page-entry-content li {
  margin-bottom: 8px;
}
.page-entry-content a {
  color: var(--orange);
  text-decoration: underline;
}
.page-entry-content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--orange);
  background: #f7f7f7;
  color: #3a3a3c;
}
.page-entry-content img {
  height: auto;
  border-radius: 7px;
}
.page-sidebar {
  padding-top: 48px;
}
.author-info h3 a:hover,
.single-meta-line a:hover {
  color: var(--orange);
}
/* ===================================
   Button
=================================== */

.mb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  padding: 12px 24px;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mb-button:hover,
.mb-button:focus {
  background: #c96d0d;
  border-color: #c96d0d;
  color: #fff;
}

.mb-button:active {
  transform: translateY(1px);
}

.mb-button i,
.mb-button img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.mb-button:disabled,
.mb-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-sidebar {
    padding-top: 0;
  }
}
@media (max-width: 760px) {
  .page-template {
    padding: 18px 0 40px;
  }
  .page-entry-content {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* =========================================================
   Mobile fixes: Hot Topics one-by-one + cleaner nav spacing
========================================================= */
.hot-topic-rotator {
  position: relative;
  height: 24px;
  overflow: hidden;
}
.hot-topic-track {
  display: block;
  animation: none !important;
  transform: none !important;
}
.hot-topic-item {
  display: none !important;
  align-items: center;
  gap: 6px;
  height: 24px;
  line-height: 24px;
  overflow: hidden;
  color: #111;
}
.hot-topic-item.is-active {
  display: flex !important;
}
.hot-topic-item em,
.hot-topic-item strong {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-topic-item em {
  flex: 0 0 auto;
}
.hot-topic-item strong {
  min-width: 0;
}

@media (max-width: 760px) {
  @media (max-width: 760px) {
    .site-header {
      display: flex;
      flex-direction: column;
    }

    .header-top {
      order: 1;
      padding: 12px 0 8px;
    }

    .hot-topic-bar {
      order: 2;
      padding: 8px 0;
    }

    .main-nav {
      order: 3;
    }

    .header-banner-wrap,
    .header-banner {
      order: 4;
    }

    .header-top-row {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 14px;
    }

    .site-logo img,
    .wordmark {
      width: 105px;
    }

    .header-top .site-header .search,
    .brand-row .site-header .search {
      display: none;
      width: 100%;
      max-width: 145px;
      justify-self: end;
    }

    .header-top .site-header .search input,
    .brand-row .site-header .search input {
      font-size: 14px;
    }

    .hot-topic-row {
      display: block;
    }

    .hot-label {
      display: block;
      margin-bottom: 4px;
      font-size: 14px;
    }

    .hot-topic-content {
      display: block;
      width: 100%;
    }

    .hot-topic-content strong {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    .nav-inner {
      padding: 8px 0;
    }

    .nav-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 38px;
      margin-left: auto;
    }

    .main-nav ul {
      display: none;
      padding: 12px 0;
    }

    .main-nav ul.is-open {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .main-nav li {
      width: 100%;
    }

    .main-nav a {
      display: block;
      padding: 10px 0;
      font-size: 16px;
    }

    .header-banner {
      margin-top: 8px;
      width: 100%;
    }

    .header-banner img {
      width: 100%;
      height: auto;
    }
  }

  .hot-topic-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .hot-label {
    display: block;
    width: 100%;
  }
  .hot-topic-content,
  .hot-topic-rotator {
    width: 100%;
    height: 26px !important;
    overflow: hidden !important;
  }
  .hot-topic-item {
    height: 26px;
    line-height: 26px;
    width: 100%;
    max-width: 100%;
  }
  .hot-topic-item em {
    font-size: 13px;
  }
  .hot-topic-item strong {
    font-size: 14px;
  }
  .nav-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav-toggle {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  .main-nav .menu {
    padding: 12px 0 8px;
    margin-top: 10px;
  }
  .main-nav .menu a {
    padding: 11px 6px;
  }
  .main-nav .sub-menu {
    padding: 0 0 4px 16px;
  }
  .main-nav .sub-menu a {
    font-size: 15px;
    padding: 8px 6px;
  }
}

/* =========================================================
   Mobile menu accordion final override
   Keeps desktop hover dropdowns, makes mobile submenus closed
   until the user taps the + / - button.
========================================================= */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .main-nav .nav-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .main-nav .menu,
  .main-nav ul#primaryMenu {
    display: none !important;
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 8px 0 0;
    padding: 10px 0;
    list-style: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .main-nav .menu.is-open,
  .main-nav ul#primaryMenu.is-open {
    display: flex !important;
  }

  .main-nav .menu > li,
  .main-nav ul#primaryMenu > li,
  .main-nav li.menu-item-has-children {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav .menu > li:last-child,
  .main-nav ul#primaryMenu > li:last-child {
    border-bottom: 0;
  }

  .main-nav .menu a,
  .main-nav ul#primaryMenu a {
    display: block;
    width: 100%;
    padding: 12px 48px 12px 14px;
    font-size: 17px;
    line-height: 1.2;
    color: #fff;
    white-space: normal;
  }

  .main-nav .sub-menu,
  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu {
    position: static !important;
    left: auto;
    top: auto;
    display: none !important;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #1b1b1b;
    box-shadow: none;
  }

  .main-nav li.submenu-open > .sub-menu {
    display: block !important;
  }

  .main-nav .sub-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
  }

  .main-nav .sub-menu a {
    padding: 10px 48px 10px 28px;
    font-size: 15px;
  }

  .submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .submenu-toggle::before {
    content: "+";
    display: block;
    transform: translateY(-1px);
  }

  .main-nav li.submenu-open > .submenu-toggle::before {
    content: "−";
  }

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
  }
}

/* =========================================================
   Desktop menu fix after mobile accordion
   Hide mobile submenu toggles and keep desktop menu horizontal.
========================================================= */
@media (min-width: 769px) {
  .submenu-toggle {
    display: none !important;
  }

  .main-nav .menu,
  .main-nav ul#primaryMenu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0;
    min-height: 46px;
    width: 100%;
    overflow: visible;
  }

  .main-nav .menu > li,
  .main-nav ul#primaryMenu > li {
    width: auto;
    border-bottom: 0;
    position: relative;
  }

  .main-nav .menu > li > a,
  .main-nav ul#primaryMenu > li > a {
    display: block;
    padding: 0;
    white-space: nowrap;
  }

  .main-nav .sub-menu {
    display: none;
  }

  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu {
    display: block;
  }
}

/* Desktop hover dropdown fix */
@media (min-width: 769px) {
  .main-nav ul,
  .main-nav .menu {
    display: flex;
    align-items: center;
    overflow: visible;
  }
  .main-nav li {
    position: relative;
  }
  .main-nav li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #242424;
    padding: 0;
    margin: 0;
    z-index: 9999;
  }
  .main-nav li:hover > .sub-menu {
    display: block;
  }
  .main-nav .sub-menu li {
    width: 100%;
  }
  .main-nav .sub-menu a {
    display: block;
    padding: 14px 18px;
    white-space: nowrap;
  }
  .main-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }
  .submenu-toggle {
    display: none !important;
  }
}
/* Mobile accordion */
@media (max-width: 768px) {
  .main-nav .sub-menu {
    display: none;
    position: static;
    min-width: 100%;
  }
  .main-nav li.submenu-open > .sub-menu {
    display: block;
  }
}

/* =========================================================
   FINAL DESKTOP DROPDOWN FIX
   Reduced dropdown padding + wrap long submenu text.
   Add/keep this at the very end of style.css.
========================================================= */
@media (min-width: 769px) {
  .main-nav,
  .nav-inner {
    overflow: visible !important;
  }

  .main-nav .menu,
  .main-nav ul#primaryMenu {
    overflow: visible !important;
  }

  .main-nav .menu > li,
  .main-nav ul#primaryMenu > li {
    position: relative;
  }

  .main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    min-width: 240px;
    max-width: 280px;
    padding: 0;
    margin: 0;
    list-style: none;
    background: #242424;
    z-index: 9999;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
    overflow: visible;
  }

  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu {
    display: block;
  }

  .main-nav .sub-menu li {
    width: 100%;
    position: relative;
  }

  .main-nav .sub-menu a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    color: #fff;
    background: #242424;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .main-nav .sub-menu a:hover,
  .main-nav .sub-menu li:hover > a {
    background: #0f5f98;
    color: #fff;
  }

  .main-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }

  .submenu-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .main-nav .sub-menu a {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}



/* =========================================================
   SEARCH PAGE FIX + HEADER SEARCH SCOPING
   WordPress adds body.search on search result pages. The old global .search
   selector was styling the full body and made the search page look broken.
========================================================= */
body.search,
body.search-results,
body.search-no-results{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  height:auto !important;
  gap:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  overflow-x:hidden !important;
}

.site-header .search,
.site-header .search-form{
  display:flex;
  align-items:center;
  width:190px;
  gap:8px;
  margin:0;
}

.site-header .search-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:block;
}

.site-header .search-field{
  flex:1;
  min-width:0;
  border-bottom:1px solid #d8d8d8;
  padding-bottom:4px;
}

.site-header .search input[type="search"]{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:0;
  margin:0;
  font-family:var(--font-heading);
  font-size:16px;
  font-weight:300;
  color:#7c7c7c;
  line-height:1;
  box-shadow:none;
  appearance:none;
}

.site-header .search input[type="search"]::placeholder{
  color:#9b9b9b;
  opacity:1;
}

@media(max-width:760px){
  .site-header .search,
  .site-header .search-form{
    width:100%;
    max-width:190px;
    justify-self:end;
  }
}


/* =========================================================
   Final fixes: header banner visible + content typography
   Notes:
   - Uses .header-banner instead of .header-ad because ad blockers can hide
     elements with "ad" in the class name.
   - Keeps theme fonts from :root.
========================================================= */

.header-banner{
  display:block !important;
  width:100% !important;
  max-width:1000px;
  height:auto !important;
  min-height:1px;
  overflow:visible !important;
  background:transparent !important;
  opacity:1 !important;
  visibility:visible !important;
}

.header-banner a{
  display:block;
}

.header-banner img,
.header-banner .wp-post-image{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* Theme content typography */
body{
  font-family:var(--font-body);
}

.page-entry-content,
.single-entry-content,
.archive-post-card p:not(.cat),
.excerpt,
.entry-content{
  font-family:var(--font-body);
}

.page-entry-content p,
.single-entry-content p,
.entry-content p,
.archive-post-card p:not(.cat),
.excerpt,
.site-footer p{
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.3;
}

.page-entry-content h1,
.single-entry-content h1,
.entry-content h1{
  font-family:var(--font-heading);
  font-size:40px;
  line-height:1.15;
}

.page-entry-content h2,
.single-entry-content h2,
.entry-content h2{
  font-family:var(--font-heading);
  font-size:36px;
  line-height:1.18;
}

.page-entry-content h3,
.single-entry-content h3,
.entry-content h3{
  font-family:var(--font-heading);
  font-size:32px;
  line-height:1.2;
}

.page-entry-content h4,
.single-entry-content h4,
.entry-content h4{
  font-family:var(--font-heading);
  font-size:28px;
  line-height:1.22;
}

.page-entry-content h5,
.single-entry-content h5,
.entry-content h5{
  font-family:var(--font-heading);
  font-size:24px;
  line-height:1.25;
}

.page-entry-content h6,
.single-entry-content h6,
.entry-content h6{
  font-family:var(--font-heading);
  font-size:20px;
  line-height:1.25;
}

@media(max-width:760px){
  .header-top-row{
    grid-template-columns:1fr;
    gap:12px;
  }

  .header-banner{
    width:100% !important;
    max-width:100%;
    order:4;
  }

  .header-banner img,
  .header-banner .wp-post-image{
    width:100% !important;
    height:auto !important;
    max-height:none !important;
  }

  .page-entry-content p,
  .single-entry-content p,
  .entry-content p{
    font-size:16px;
  }

  .page-entry-content h1,
  .single-entry-content h1,
  .entry-content h1{
    font-size:34px;
  }

  .page-entry-content h2,
  .single-entry-content h2,
  .entry-content h2{
    font-size:30px;
  }

  .page-entry-content h3,
  .single-entry-content h3,
  .entry-content h3{
    font-size:26px;
  }
}
