/* ================== HEADER ================== */
.site-header,
.site-title-bar {
  background: #111;
  color: #fff;
  padding: 0.25rem 1rem; /* 4px 16px */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img,
.custom-logo {
  max-height: 2.5rem; /* 40px */
  width: auto;
  display: block;
}

.site-title a {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
  opacity: 0.8;
  outline: none;
}

.site-description {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0;
}

/* ================== SUB HEADER ================== */
.sub-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.subbar-right .follow-text {
  font-weight: 600;
  color: #fff;
}

.subbar-right img {
  width: 1.125rem; /* 18px */
  transition: transform 0.2s ease;
}

.subbar-right img:hover {
  transform: scale(1.1);
}

/* ================== POSTS & LINKS ================== */
.post-share {
  margin-top: 1.25rem;
  padding: 0.625rem;
  border-top: 1px solid #ddd;
  font-size: 0.875rem;
}

.post-share a {
  margin-right: 0.625rem;
  color: #0073aa;
  font-weight: bold;
  text-decoration: none;
}

.post-share a:hover,
.post-share a:focus {
  color: #005177;
  outline: none;
}
/* In-post social share icons size — hard lock */
.post-share .social-share img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain;
  vertical-align: middle;
}

/* Remove underline from links */
.posts-grid h2 a,
.posts-grid h3 a,
article h2 a,
article h3 a,
aside li a {
  text-decoration: none !important;
  color: inherit;
}

.posts-grid h2 a:hover,
.posts-grid h2 a:focus,
.posts-grid h3 a:hover,
.posts-grid h3 a:focus,
aside li a:hover,
aside li a:focus {
  color: #0073aa;
  outline: none;
}

/* ================== FOOTER ================== */
footer {
  background: #111;
  color: #ddd; /* improved contrast */
  padding: 1.25rem 0;
}

.footer-container {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  max-height: 2.5rem;
}

.footer-site-title a {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.footer-site-title a:hover,
.footer-site-title a:focus {
  opacity: 0.8;
  outline: none;
}

.footer-copy p {
  margin: 0;
  font-size: 0.9rem;
}

/* ================== BACK TO TOP ================== */
#back-to-top {
  position: fixed;
  bottom: 1.875rem; /* 30px */
  right: 1.875rem;
  width: 2.8rem; /* 45px */
  height: 2.8rem;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease, background 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover,
#back-to-top:focus {
  background: #0073aa;
  transform: scale(1.1);
  outline: none;
}

/* ================== ARCHIVE ================== */
.sidebar-archive,
.sidebar-article {
  background: #fff;
  padding: 1rem;
  border-radius: 0.625rem; /* 10px */
  margin-bottom: 1.25rem;
}

.sidebar-archive h2,
.sidebar-article h2 {
  font-size: 1.1rem;
  margin-bottom: 0.625rem;
}

.sidebar-archive ul,
.sidebar-article ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-archive li,
.sidebar-article li {
  margin-bottom: 0.625rem;
}

.sidebar-article li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}


/* ================== THUMBNAIL STYLES ================== */
.category-editorial .editorial-thumb,
.category-article .article-thumb {
  width: 100%;
  height: 12.5rem; /* 200px */
  object-fit: cover;
  border-radius: 0.375rem;
  display: block;
  margin-bottom: 0.625rem;
}

@media (max-width: 600px) {
  .category-editorial .editorial-thumb,
  .category-article .article-thumb {
    height: 9.375rem; /* 150px */
  }
}

/* ================== EDITORIAL PAGE ================== */
.editorial-layout {
  display: flex;
  gap: clamp(1rem, 3vw, 1.875rem); /* fluid spacing */
  align-items: flex-start;
}

.editorial-left {
  flex: 0 0 25rem; /* 400px */
}

.editorial-left .editorial-thumb {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  object-fit: cover;
}

.editorial-right {
  flex: 1;
}

.editorial-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.editorial-list .editorial-item {
  margin-bottom: 20px;       /* more gap between items */
  padding-bottom: 15px;      /* extra padding */
  border-bottom: 1px solid #e0e0e0;
}

/* Meta strip above headline */
.editorial-list .meta {
  display: inline-flex;
  margin-bottom: 0.375rem;
}

.editorial-list .meta .cat,
.editorial-list .meta .date {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  color: #fff;
}

.editorial-list .meta .cat {
  background: #000;
  border-radius: 0.25rem 0 0 0.25rem;
}

.editorial-list .meta .date {
  background: gray;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* Headline */
.editorial-list h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.editorial-list h3 a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.editorial-list h3 a:hover,
.editorial-list h3 a:focus {
  color: #0073aa;
  outline: none;
}

/* Navigation */
.editorial-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.editorial-navigation a {
  background: #111;
  color: #fff;
  padding: 0.5rem 1.125rem;
  border-radius: 50px; /* pill shape */
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.3s ease;
}

.editorial-navigation a:hover,
editorial-navigation a:focus {
  background: #0073aa;
  outline: none;
}

/* Responsive Editorial Layout */
@media (max-width: 768px) {
  .editorial-layout {
    flex-direction: column;
  }
  .editorial-left {
    width: 100%;
    margin-bottom: 1.25rem;
  }
}
.editorial-navigation .disabled {
  background: #666;
  color: #ccc;
  padding: 0.5rem 1.125rem;
  border-radius: 50px;
  font-size: 0.875rem;
  pointer-events: none;   /* 🔒 unclickable */
  opacity: 0.6;
}
 /* Make sure the whole page stretches full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content takes remaining space */
main {
  flex: 1;
}

/* Footer always at bottom */
footer {
  margin-top: auto;
}
.editorial-section {
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
}
.editorial-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
}
.editorial-section h3 {
  font-size: 16px;
  margin-top: 10px;
}
.editorial-section p {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
}
/* Editorial block — stronger selector and tighter spacing */
aside.sidebar .editorial-section,
.editorial-section {
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid #ddd;
}

/* Heading: black bg, white text, centered, no extra bottom gap */
aside.sidebar .editorial-section h2,
.editorial-section h2 {
  display: block;
  font-size: 20px;
  margin: 0 0 4px 0 !important;     /* small gap below heading */
  padding: 8px 12px;
  background-color: #000 !important;
  color: #fff !important;
  text-transform: uppercase;
  text-align: center !important;
  line-height: 1.1;
  border-bottom: none !important;   /* remove earlier border if present */
}

/* Post title under heading — remove extra top margin */
aside.sidebar .editorial-section h3,
editorial-section h3 {
  margin: 2px 0 0 0 !important;
  font-size: 16px;
  font-weight: 600;
}

/* Tighten excerpt spacing */
aside.sidebar .editorial-section p,
editorial-section p {
  margin: 6px 0 0 0;
  font-size: 14px;
  line-height: 1.4;
}
.entry-content img,
.post-featured img { max-width:100%; height:auto; display:block; }
/* Sidebar: separate widgets into card-like containers */
.sidebar .sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 16px; /* space between widget containers */
}

/* Each widget becomes a card */
.sidebar .sidebar-content .widget {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 14px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Widget title styling */
.sidebar .sidebar-content .widget .widget-title,
.sidebar .sidebar-content .widget h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

/* Optional: make lists inside widgets tidy */
.sidebar .sidebar-content .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar .sidebar-content .widget ul li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}

.sidebar .sidebar-content .widget ul li:last-child {
  border-bottom: none;
}

/* Small responsive tweak */
@media (max-width: 780px) {
  .sidebar .sidebar-content .widget {
    padding: 12px;
  }
}

/* === Sidebar search: consolidated, expanded input + icon button === */

/* hide textual label (block + classic) */
.sidebar .widget_search label,
.sidebar .wp-block-search__label {
  display: none !important;
}

/* wrapper */
.sidebar .widget_search form,
.sidebar .wp-block-search__inside-wrapper,
.sidebar form.wp-block-search {
  position: relative;
  width: 100%;
  margin: 0;
  max-width: 100%;
}

/* input: full width, room for icon on the right */
.sidebar .widget_search input[type="search"],
.sidebar .wp-block-search__input,
.sidebar input[type="search"].wp-block-search__input {
  width: 100% !important;
  padding: 8px 44px 8px 12px !important; /* right padding for icon */
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-clip: padding-box;
}

/* apply to button or input submit (some themes use input[type=submit]) */
.sidebar .widget_search button,
.sidebar .wp-block-search__button,
.sidebar button.wp-block-search__button,
.sidebar input[type="submit"].wp-block-search__button,
.sidebar input[type="submit"].search-submit {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 32px !important;
  width: 32px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  background-color: #0073aa !important;
  /* percent-encoded SVG — robust inside url() */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M15.5%2014h-.79l-.28-.27A6.471%206.471%200%200%200%2016%208.39%206.5%206.5%200%201%200%209.5%2015c1.61%200%203.07-.66%204.1-1.72l.27.28v.79L20%2019.88%2018.59%2021.29%2013.18%2015.88c-1.34%201.07-3.04%201.8-4.68%201.8A8%208%200%201%2015.5%2014zM9.5%2013C7.57%2013%206%2011.43%206%209.5S7.57%206%209.5%206%2013%207.57%2013%209.5%2011.43%2013%209.5%2013z%22/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  color: transparent !important;  /* hide text fallback */
  text-indent: -9999px !important;
}

/* hover state */
.sidebar .widget_search button:hover,
.sidebar .wp-block-search__button:hover,
.sidebar input[type="submit"].wp-block-search__button:hover,
.sidebar input[type="submit"].search-submit:hover {
  background-color: #005177 !important;
}

/* visually hide screen-reader text but keep accessible */
.sidebar .widget_search .screen-reader-text,
.sidebar .wp-block-search__button .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* === Sidebar widget titles with text background === */
.sidebar .sidebar-content .widget .widget-title,
.sidebar .sidebar-content .widget h2,
.sidebar .sidebar-content .widget h3 {
  background: #000;          /* black background */
  color: #fff;               /* white text */
  padding: 6px 10px;         /* space around text */
  border-radius: 4px;        /* rounded corners */
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px 0;        /* spacing below title */
  text-align: center;        /* center text */
  text-transform: uppercase; /* optional: ALL CAPS */
}

/* Recent posts enhanced styling */
.widget.enhanced-recent-posts .recent-posts-list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget.enhanced-recent-posts .recent-post-item{
  margin: 0 0 12px;
  padding: 6px;
  display: block;
  border-radius: 6px;
  transition: background .15s ease;
}

.widget.enhanced-recent-posts .recent-post-link{
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.widget.enhanced-recent-posts .recent-post-thumb-wrap{
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f3f3;
}

.widget.enhanced-recent-posts .recent-post-thumb{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.widget.enhanced-recent-posts .fallback-thumb{
  display:inline-block;
  width:100%;
  height:100%;
  background: linear-gradient(135deg,#eee,#ddd);
}

.widget.enhanced-recent-posts .recent-post-content{
  flex: 1 1 auto;
}

.widget.enhanced-recent-posts .recent-post-title{
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.widget.enhanced-recent-posts .recent-post-date{
  display:block;
  font-size: 12px;
  color:#777;
  margin-bottom:6px;
}

.widget.enhanced-recent-posts .recent-post-excerpt{
  margin: 0;
  font-size: 13px;
  color:#444;
}

/* Hover */
.widget.enhanced-recent-posts .recent-post-item:hover{
  background: rgba(0,0,0,0.02);
}

/* Main layout and editorial rules (kept intact) */

/* Make sure the whole page stretches full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content takes remaining space */
main {
  flex: 1;
}

/* Footer always at bottom */
footer {
  margin-top: auto;
}

/* Continued: editorial section and other helpers */
.editorial-section {
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
}
.editorial-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
}
.editorial-section h3 {
  font-size: 16px;
  margin-top: 10px;
}
.editorial-section p {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
}

/* Heading: black bg, white text, centered */
aside.sidebar .editorial-section h2,
.editorial-section h2 {
  display: block;
  font-size: 20px;
  margin: 0 0 4px 0 !important;
  padding: 8px 12px;
  background-color: #000 !important;
  color: #fff !important;
  text-transform: uppercase;
  text-align: center !important;
  line-height: 1.1;
  border-bottom: none !important;
}

/* Responsive rules */
@media (max-width: 768px) {
  .editorial-layout {
    flex-direction: column;
  }
  .editorial-left {
    width: 100%;
    margin-bottom: 1.25rem;
  }
  .sidebar .sidebar-content .widget {
    padding: 12px;
  }
}

/* Back to top, footer, logo helpers preserved */
.header-container .custom-logo img{ max-height:32px !important; }

/* Responsive small-screen tweaks retained */
@media (max-width:480px){
  .footer-social{ gap:8px; padding:0 12px; }
  .footer-social .social-text{ width:100%; text-align:center; }
  .footer-social a.social{ margin:6px 8px; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  article:hover { transform: none; }
}

/* Utility / optional tweaks */
/* Use .posts-grid.cols-2 / cols-1 to change listing width easily */
/* Remember to add aria-label="Back to top" on #back-to-top in HTML for accessibility */

/* Two-column contact (info left, form right) */
.contact-layout { display:flex; gap:2rem; align-items:flex-start; margin-top:1rem; }
.contact-info { flex:0 0 300px; }
.contact-form-block { flex:1; }

/* responsive */
@media (max-width:768px) {
  .contact-layout { display:block; }
  .contact-info, .contact-form-block { width:100%; margin-bottom:1rem; }
}

/* Temporary: force top menu visible on desktop while debugging */
@media (min-width: 769px) {
  .top-menu ul {
    display: flex !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .top-menu { visibility: visible !important; opacity: 1 !important; position: static !important; }
}

/* Optional: force always visible (use only if you don't want mobile hiding) */
/*
.top-menu ul {
  display: flex !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
*/
/* === Mobile hamburger toggle styles (khawzawl Times) === */
/* Basic hamburger visuals */
.khawzawl-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  margin: 0;
  cursor: pointer;
  align-items: center;
  color: inherit;
}
.khawzawl-menu-toggle:focus { outline: 2px solid var(--link-focus, #0073aa); outline-offset: 3px; }

/* Hamburger lines */
.khawzawl-hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-text, #fff);
  position: relative;
}
.khawzawl-hamburger::before,
.khawzawl-hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: inherit;
}
.khawzawl-hamburger::before { top: -6px; }
.khawzawl-hamburger::after  { top: 6px; }

/* Desktop: show menu inline */
@media (min-width: 769px) {
  .khawzawl-menu-toggle { display: none; }
  .top-menu ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
}

/* Mobile: show toggle and hide menu by default */
@media (max-width: 768px) {
  .khawzawl-menu-toggle { display: inline-flex; }
  .top-menu ul { display: none; flex-direction: column; gap: 12px; padding: 12px; margin: 0; list-style: none; }
  /* Show the menu when the nav has aria-expanded="true" (set by JS) */
  .top-menu[aria-expanded="true"] ul { display: flex; }
  /* Optional: style mobile menu container */
  .top-menu { background: transparent; }
  .top-menu ul li a { display: block; padding: 6px 4px; }
}
/* Make sure menu becomes visible when JS adds .is-open on the UL */
@media (max-width: 768px) {
  /* existing: .top-menu[aria-expanded="true"] ul { display: flex; } */
  nav.top-menu .menu.is-open,
  nav.top-menu[aria-expanded="true"] ul {
    display: flex !important;         /* show as column by previous rules */
    flex-direction: column;
    gap: 12px;
  }

  /* Also support case where nav itself gets .is-open (fallback) */
  nav.top-menu.is-open,
  nav.top-menu[aria-expanded="true"] {
    display: block;
  }
}

/* Toggle active state: transform hamburger into X (optional visual) */
.khawzawl-menu-toggle[aria-expanded="true"] .khawzawl-hamburger {
  background: transparent;
}
.khawzawl-menu-toggle[aria-expanded="true"] .khawzawl-hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.khawzawl-menu-toggle[aria-expanded="true"] .khawzawl-hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}
.khawzawl-hamburger, .khawzawl-hamburger::before, .khawzawl-hamburger::after {
  transition: transform .18s ease, top .18s ease, background .18s ease;
}

/* Remove any temporary !important override if present:
   If you previously added an @media(min-width:769px) rule with !important,
   remove or comment it out to let these rules work cleanly. */

   /* Back-to-top button with arrow + TOP */
#back-to-top {
  display: flex;
  flex-direction: column;       /* stack arrow and text */
  justify-content: center;
  align-items: center;
  font-size: 11px;              /* text size */
  font-weight: bold;
  text-transform: uppercase;
  gap: 2px;                     /* space between arrow and text */
}

#back-to-top .label {
  line-height: 1;
}

/* ----- About page (defensive) ----- */
/* Replace 96 with your page ID if different */
.page-id-96 .meta,
.page-id-96 .meta .cat,
.page-id-96 .meta .date {
  display: none !important; /* hide category/date badges */
}

/* If the theme prints meta with stronger selectors add this too */
body.page-id-96 p.meta,
body.page-id-96 .post-meta,
body.page-id-96 .entry-meta {
  display: none !important;
}

/* Expand the readable content area for the About page */
.page-id-96 main,
.page-id-96 article,
.page-id-96 .entry-content,
.page-id-96 .excerpt,
.page-id-96 .post-content {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  overflow-wrap: anywhere;  /* aggressive wrap for long words/URLs */
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.55;
  font-size: 16px;
}

/* Make media inside content responsive */
.page-id-96 .entry-content img,
.page-id-96 .entry-content iframe,
.page-id-96 .entry-content video,
.page-id-96 .excerpt img,
.page-id-96 .excerpt iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .page-id-96 .entry-content,
  .page-id-96 .excerpt {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 15px;
  }
}
/* About Us page — full width, no meta */
.page-id-96 article {
  max-width: 900px;   /* good readable width */
  margin: 0 auto;     /* center the content */
  padding: 1rem;
}

.page-id-96 .meta {
  display: none !important; /* hide category/date if any remain */
}

.page-id-96 .excerpt,
.page-id-96 .entry-content {
  font-size: 16px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Make images/videos responsive inside About page */
.page-id-96 .excerpt img,
.page-id-96 .excerpt iframe,
.page-id-96 .excerpt video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* About Us page heading full-width background */
.page-id-96 h2 {
  background: #000;       /* black background full width */
  color: #fff !important; /* white text */
  text-align: center;     /* center text */
  padding: 12px 0;        /* vertical padding */
  margin: 0 0 20px 0;     /* space below heading */
}

/* Remove underline / link color override */
.page-id-96 h2 a {
  color: #fff !important;
  text-decoration: none !important;
  display: inline-block;
}



/* ================= About page layout: main + right sidebar (page ID 96) ================= */
/* Target the main content area only (do NOT change body) */
.page-id-96 main[role="main"] {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  padding-left: 1rem;   /* optional */
  padding-right: 1rem;  /* optional */
  box-sizing: border-box;
}

/* Main content column (left) */
.page-id-96 main[role="main"] > section {
  flex: 1 1 auto;
  min-width: 0;           /* important so content can shrink */
  box-sizing: border-box;
  max-width: calc(100% - 340px); /* leaves room for sidebar on wide screens */
  padding-right: 0.5rem;
}

/* Sidebar (right column) */
.page-id-96 main[role="main"] > aside.sidebar {
  flex: 0 0 320px;
  width: 320px;
  box-sizing: border-box;
  margin: 0;
  padding-left: 0.5rem;
}

/* Widget card styling */
.page-id-96 .sidebar .widget {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.page-id-96 .sidebar .widget .widget-title {
  background: #000;
  color: #fff;
  padding: 8px 10px;
  margin: 0 0 10px 0;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

/* Recent post list */
.page-id-96 .recent-posts-list { list-style: none; padding: 0; margin: 0; }
.page-id-96 .recent-post-item { margin-bottom: 10px; }
.page-id-96 .recent-post-link { display:block; text-decoration: none; color: inherit; font-weight:600; }
.page-id-96 .recent-post-date { display:block; font-size:12px; color:#777; margin-top:4px; }

/* Archives & categories list styling */
.page-id-96 .widget-archives ul,
.page-id-96 .widget-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-id-96 .widget-archives li,
.page-id-96 .widget-categories li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}
.page-id-96 .widget-archives li:last-child,
.page-id-96 .widget-categories li:last-child { border-bottom: none; }

/* Make sure long text wraps nicely in the main content */
.page-id-96 main[role="main"] > section .entry-content,
.page-id-96 main[role="main"] > section .excerpt,
.page-id-96 main[role="main"] > section p {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Responsive: stack on small screens (mobile) */
@media (max-width: 768px) {
  .page-id-96 main[role="main"] {
    display: block; /* stack main and sidebar vertically */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .page-id-96 main[role="main"] > section,
  .page-id-96 main[role="main"] > aside.sidebar {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .page-id-96 main[role="main"] > aside.sidebar {
    margin-top: 1.25rem;
  }
}
/* About page: two-column layout with sidebar on right (non-invasive) */
@media (min-width: 880px) {
  .page-id-96 .site-main, /* adjust these selectors to your theme's structure */
  .page-id-96 main[role="main"] {
    float: left;
    width: calc(100% - 340px);
    box-sizing: border-box;
    padding-right: 1rem;
  }
  .page-id-96 aside.sidebar {
    float: right;
    width: 320px;
    box-sizing: border-box;
  }
  /* Clearfix */
  .page-id-96 main[role="main"]::after { content: ""; display: table; clear: both; }
}

/* mobile: normal vertical stacking */
@media (max-width: 879px) {
  .page-id-96 main[role="main"],
  .page-id-96 aside.sidebar {
    float: none;
    width: 100%;
  }
}


body.page-id-96 > main[role="main"] {
  max-width: calc(100% - 880px); /* give more space to text */
}
body.page-id-96 > aside.sidebar {
  flex: 0 0 80px;
  width: 80px; /* shrink sidebar a bit */
}

/* Add space between front page promo images */
.widget.widget-image.frontpage-only .widget-image-inner {
  margin-bottom: 12px; /* adjust spacing */
}

/* Full-width About page content, no sidebar */
body.page-id-96 aside.sidebar {
    display: none !important;
}

body.page-id-96 main[role="main"] {
    display: block !important;  /* stack content vertically */
    width: 100% !important;
    max-width: 900px !important; /* optional, keep readable line length */
    margin: 0 auto !important;   /* center on large screens */
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
}

body.page-id-96 main[role="main"] > section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Override any leftover grid/flex/float on mobile */
@media (max-width: 879px) {
    body.page-id-96 main[role="main"],
    body.page-id-96 main[role="main"] > section {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.75rem !important;
    }
}

/* ---- Replace existing .meta/.category/.date rules with this ---- */
.meta {
  display: inline-flex;        /* keep them on one line */
  gap: 0;                      /* no gap so backgrounds touch */
  align-items: center;
  font-size: 0.85rem;
  margin: 0 0 0.375rem;        /* keep previous bottom spacing */
}

.meta span {
  display: inline-block;       /* ensure padding applies cleanly */
  line-height: 1;
  margin: 0;
  padding: 0;                  /* reset; specific paddings set below */
  box-sizing: border-box;
}

/* match your template's class name .cat (not .category) */
.meta .cat {
  background: #000;                       /* black category bg */
  color: #fff;
  padding: 4px 10px;                      /* slightly larger horizontal padding */
  border-radius: 0.25rem 0 0 0.25rem;    /* rounded left edge */
  font-weight: 600;
}

/* date chip sits immediately to the right of category chip */
.meta .date {
  background: gray;
  color: #fff;
  padding: 4px 10px;
  border-radius: 0 0.25rem 0.25rem 0;    /* rounded right edge */
  margin-left: 0;                         /* explicit: no gap from .cat */
  font-weight: 500;
}


.columnist-name {
  font-size: 0.9rem;
  font-style: italic;
  color: #444;
  margin: 0 0 8px 0;
}


/* ===== STRONG OVERRIDE: Force two-column About page layout =====
   Paste this at the *end* of custom.css so it wins over earlier rules.
   This uses specific selectors and a few !important where necessary. */
body.page-id-96 main[role="main"] {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;          /* prevent sidebar wrapping under main */
  align-items: flex-start !important;
  gap: 2rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  box-sizing: border-box !important;
}

/* Left column (main content) */
body.page-id-96 main[role="main"] > section,
body.page-id-96 main[role="main"] > .site-main,
body.page-id-96 main[role="main"] > article {
  flex: 1 1 auto !important;
  min-width: 0 !important;              /* critical: allow shrinking */
  box-sizing: border-box !important;
  max-width: calc(100% - 340px) !important; /* keeps room for 320px sidebar + gap */
  padding-right: 0.5rem !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Right column (sidebar) */
body.page-id-96 main[role="main"] > aside.sidebar,
body.page-id-96 main[role="main"] > .sidebar {
  flex: 0 0 320px !important;
  width: 320px !important;
  min-width: 320px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding-left: 0.5rem !important;
}

/* Prevent wide children from breaking the flex layout */
body.page-id-96 main[role="main"] img,
body.page-id-96 main[role="main"] iframe,
body.page-id-96 main[role="main"] video,
body.page-id-96 main[role="main"] .excerpt,
body.page-id-96 main[role="main"] .entry-content {
  max-width: 100% !important;
  width: auto !important;
  box-sizing: border-box !important;
}

/* Clear old float fallbacks that may interfere */
body.page-id-96 main[role="main"]::after,
body.page-id-96 main[role="main"]::before {
  content: "" !important;
  display: block !important;
  clear: none !important;
}

/* Responsive: stack under 880px */
@media (max-width: 880px) {
  body.page-id-96 main[role="main"] {
    display: block !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  body.page-id-96 main[role="main"] > section,
  body.page-id-96 main[role="main"] > aside.sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.page-id-96 main[role="main"] > aside.sidebar {
    margin-top: 1rem !important;
  }
}
/* Hide meta (category + date) on Privacy Policy page (page-id-3) */
body.page-id-3 .meta,
body.page-id-3 .meta * {
  display: none !important;
  visibility: hidden !important;
}

/* Ensure back-to-top visible and above content */
#back-to-top {
  z-index: 9999 !important;
  transition: opacity 0.28s ease, transform 0.16s ease !important;
  transform: translateY(6px);
  opacity: 0;
  pointer-events: none;
}

#back-to-top.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
