/* ==========================================================================
   LocalPress - Editorial News WordPress Theme Stylesheet
   Inspired by European local news portals (thelocal.fr reference)
   ========================================================================== */

:root {
  --lp-accent: #ef6c00;
  --lp-accent-dark: #d85c00;
  --lp-ink: #212529;
  --lp-ink-soft: #393939;
  --lp-muted: #6c757d;
  --lp-border-dot: #aeaeae;
  --lp-border-light: #e9ecef;
  --lp-bg: #ffffff;
  --lp-surface: #fafafa;
  --lp-footer-bg: #404040;
  --lp-serif: "EB Garamond", Georgia, serif;
  --lp-sans: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lp-container: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--lp-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--lp-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   Header & Navigation (.site-header, .navbar--complex)
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px dotted var(--lp-border-dot);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-bar .site-header {
  top: 32px;
}

.navbar--complex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 0;
}

.nav-spacer--toggler {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-toggler {
  background: transparent;
  border: 1px solid var(--lp-border-light);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--lp-ink);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.navbar-brand img,
.navbar-brand img.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.lp-text-brand__name {
  font-family: var(--lp-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  line-height: 1;
}

.lp-text-brand:hover .lp-text-brand__name {
  color: var(--lp-accent);
}

.nav-spacer--menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.secondary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.secondary-menu > li {
  position: relative;
}

.secondary-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-ink-soft);
  white-space: nowrap;
}

.secondary-menu > li > a:hover,
.secondary-menu > li.current-menu-item > a {
  color: var(--lp-accent);
}

.secondary-menu li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--lp-border-light);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1050;
}

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

.secondary-menu li ul.sub-menu li a {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--lp-ink-soft);
}

.secondary-menu li ul.sub-menu li a:hover {
  background-color: var(--lp-surface);
  color: var(--lp-accent);
}

.lp-header-search-btn {
  background: transparent;
  border: none;
  color: var(--lp-ink-soft);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
}

.lp-header-search-btn:hover {
  color: var(--lp-accent);
}

.lp-header-search-bar {
  display: none;
  padding: 12px 0;
  border-top: 1px dotted var(--lp-border-dot);
  background: var(--lp-surface);
}

.lp-header-search-bar.is-open {
  display: block;
}

.lp-header-search-form {
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  gap: 8px;
}

.lp-header-search-form input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: var(--lp-sans);
  font-size: 14px;
}

.lp-header-search-form button {
  background: var(--lp-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 9px 18px;
  font-weight: 600;
  cursor: pointer;
}

/* Offcanvas Drawer */
.lp-offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.lp-offcanvas-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.lp-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #ffffff;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.14);
}

.lp-offcanvas.is-open {
  transform: translateX(0);
}

.lp-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px dotted var(--lp-border-dot);
}

.lp-offcanvas__close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--lp-ink);
}

.lp-offcanvas__body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.lp-offcanvas-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-offcanvas-menu li {
  border-bottom: 1px solid var(--lp-border-light);
}

.lp-offcanvas-menu a {
  display: block;
  padding: 11px 4px;
  font-weight: 600;
  font-size: 15px;
}

.lp-offcanvas-menu .sub-menu {
  list-style: none;
  padding-left: 14px;
  margin: 0 0 8px;
}

.lp-offcanvas-menu .sub-menu li {
  border-bottom: none;
}

.lp-offcanvas-menu .sub-menu a {
  padding: 6px 4px;
  font-weight: 400;
  font-size: 14px;
  color: var(--lp-muted);
}

/* ==========================================================================
   Breaking News Marquee (.lp-breaking)
   ========================================================================== */
.lp-breaking {
  background: #1f1f1f;
  color: #ffffff;
  border-bottom: 2px solid var(--lp-accent);
  font-size: 13px;
}

.lp-breaking__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  overflow: hidden;
}

.lp-breaking__badge {
  background: var(--lp-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lp-breaking__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  animation: lpPulse 1.4s infinite;
}

@keyframes lpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.lp-breaking__track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.lp-breaking__track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: lpMarquee 36s linear infinite;
}

.lp-breaking__track:hover {
  animation-play-state: paused;
}

@keyframes lpMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lp-breaking__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f1f3f5;
  font-weight: 500;
}

.lp-breaking__item:hover {
  color: #ffb74d;
}

.lp-breaking__cat {
  color: #ffb74d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   WhatsApp-Style Stories Strip & Modal (.lp-stories, .lp-story-modal)
   ========================================================================== */
.lp-stories {
  padding: 16px 0 8px;
  border-bottom: 1px dotted var(--lp-border-dot);
  margin-bottom: 18px;
}

.lp-stories__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lp-stories__label {
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-stories__label i {
  color: #25d366;
  font-size: 14px;
}

.lp-stories__rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.lp-story-item {
  flex: 0 0 auto;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-family: var(--lp-sans);
}

.lp-story-item__ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #25d366 0%, var(--lp-accent) 100%);
  transition: transform 0.2s ease;
}

.lp-story-item:hover .lp-story-item__ring {
  transform: scale(1.05);
}

.lp-story-item.is-seen .lp-story-item__ring {
  background: #ced4da;
}

.lp-story-item__ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.lp-story-item__title {
  font-size: 11px;
  line-height: 1.25;
  color: var(--lp-ink-soft);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Story Viewer Modal */
.lp-story-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 14, 0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lp-story-modal.is-open {
  display: flex;
}

.lp-story-viewer {
  position: relative;
  width: 100%;
  max-width: 410px;
  height: 82vh;
  max-height: 740px;
  background: #141414;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.lp-story-viewer__bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 5;
}

.lp-story-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.lp-story-bar__fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
}

.lp-story-viewer__top {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  color: #ffffff;
}

.lp-story-viewer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.lp-story-viewer__cat {
  background: var(--lp-accent);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 10px;
}

.lp-story-viewer__close {
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.lp-story-viewer__media {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.lp-story-viewer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-story-viewer__nav {
  position: absolute;
  top: 60px;
  bottom: 180px;
  width: 35%;
  z-index: 4;
  cursor: pointer;
}

.lp-story-viewer__nav--prev { left: 0; }
.lp-story-viewer__nav--next { right: 0; }

.lp-story-viewer__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 18px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
  color: #ffffff;
  z-index: 5;
}

.lp-story-viewer__caption h3 {
  font-family: var(--lp-serif);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #ffffff;
}

.lp-story-viewer__caption p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

.lp-story-viewer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-accent);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
}

.lp-story-viewer__cta:hover {
  background: var(--lp-accent-dark);
}

/* ==========================================================================
   Editorial Blocks & Cards (.hp-new, .article-card, .block-title, .tag)
   ========================================================================== */
.site {
  padding-top: 16px;
  padding-bottom: 48px;
}

.hp-new__block {
  margin-bottom: 34px;
}

.block-title {
  align-items: center;
  border-bottom: 1px dotted var(--lp-border-dot);
  color: var(--lp-ink-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--lp-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 10px 0 20px;
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.block-title a {
  font-family: var(--lp-serif);
  color: var(--lp-ink-soft);
}

.block-title a:hover {
  color: var(--lp-accent);
}

.block-title__more {
  font-family: var(--lp-sans) !important;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-accent) !important;
  text-transform: uppercase;
}

.tag {
  color: var(--lp-accent);
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag:hover {
  color: var(--lp-accent-dark);
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card__media {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: #f1f3f5;
  aspect-ratio: var(--article-card-media-ratio, 300 / 190);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.03);
}

.article-card__content {
  padding-top: 10px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.article-card__date {
  font-size: 12px;
  color: var(--lp-muted);
}

.article-card h3 {
  margin: 0;
  font-family: var(--lp-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lp-ink);
}

.article-card__excerpt {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.5;
}

/* Hero Grid (.hp-new__layout4) */
.hp-new__layout4 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "article-1 article-2-hero article-2-hero article-3"
    "article-1 article-2-hero article-2-hero article-6"
    "article-4 article-2-hero article-2-hero article-7"
    "article-4 article-5 article-5 article-8";
  padding-bottom: 24px;
  border-bottom: 1px dotted var(--lp-border-dot);
}

.hp-new__article--1 { grid-area: article-1; }
.hp-new__article--2 { grid-area: article-2-hero; }
.hp-new__article--3 { grid-area: article-3; }
.hp-new__article--4 { grid-area: article-4; }
.hp-new__article--5 { grid-area: article-5; }
.hp-new__article--6 { grid-area: article-6; }
.hp-new__article--7 { grid-area: article-7; }
.hp-new__article--8 { grid-area: article-8; }

.hp-new__article--2 .article-card h3 {
  font-size: 2rem;
  line-height: 1.15;
}

.hp-new__article--3 .article-card__media,
.hp-new__article--6 .article-card__media,
.hp-new__article--7 .article-card__media,
.hp-new__article--8 .article-card__media {
  display: none;
}

.hp-new__article--3,
.hp-new__article--6,
.hp-new__article--7 {
  border-bottom: 1px dotted var(--lp-border-dot);
  padding-bottom: 12px;
}

.hp-new__article--5 .article-card {
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.hp-new__article--5 .article-card__media {
  width: 190px;
  flex-shrink: 0;
}

.hp-new__article--5 .article-card__content {
  padding-top: 0;
}

/* 4-Column Grids (.hp-new__layout5 & .hp-new__layout7) */
.hp-new__layout5,
.hp-new__layout7 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Horizontal ImgSide Card (Archives, Search, Author, Paginated Latest) */
.article-card--imgSide {
  flex-direction: row;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dotted var(--lp-border-dot);
  height: auto;
}

.article-card--imgSide .article-card__media {
  width: 210px;
  flex-shrink: 0;
}

.article-card--imgSide .article-card__content {
  padding-top: 0;
  flex: 1;
}

.article-card--imgSide h3 {
  font-size: 1.4rem;
}

/* ==========================================================================
   Front Page Latest News with Pagination & Two-Column Archive Layout
   ========================================================================== */
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.archive-layout--sidebar-left {
  grid-template-columns: 320px minmax(0, 1fr);
}

.sticky--sidebar {
  position: sticky;
  top: 86px;
}

.lp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 16px;
}

.lp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-ink-soft);
  background: #ffffff;
}

.lp-pagination .page-numbers:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

.lp-pagination .page-numbers.current {
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  color: #ffffff;
}

/* ==========================================================================
   Single Post (.article-single__main)
   ========================================================================== */
.article-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}

.article-single__main h1 {
  font-family: var(--lp-serif);
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 10px 0 18px;
  color: var(--lp-ink);
}

.article-single__main .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px dotted var(--lp-border-dot);
  border-bottom: 1px dotted var(--lp-border-dot);
  margin-bottom: 22px;
}

.article-single__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-single__author img {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  object-fit: cover;
}

.article__published {
  font-size: 12px;
  color: var(--lp-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-single__share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-single__share a,
.article-single__share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: var(--lp-ink-soft);
  cursor: pointer;
  font-size: 14px;
}

.article-single__share a:hover,
.article-single__share button:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

.article-single__feature {
  margin: 0 0 24px;
}

.article-single__feature img {
  width: 100%;
  border-radius: 4px;
}

.article-single__feature figcaption {
  font-size: 12px;
  color: var(--lp-muted);
  margin-top: 6px;
}

.article-single__content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--lp-ink);
}

.article-single__content h2,
.article-single__content h3 {
  font-family: var(--lp-serif);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.article-single__content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--lp-accent);
  background: var(--lp-surface);
  font-family: var(--lp-serif);
  font-size: 1.25rem;
}

.article-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding-top: 18px;
  border-top: 1px dotted var(--lp-border-dot);
}

.article-single__tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--lp-surface);
  border: 1px solid #dee2e6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.article-single__tags a:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

/* Archive Headline & Author & Search */
.tl-archive__headline {
  background: var(--lp-surface);
  border-bottom: 1px dotted var(--lp-border-dot);
  padding: 28px 0;
  margin-bottom: 24px;
}

.tl-archive__headline h1 {
  font-family: var(--lp-serif);
  font-size: 2.25rem;
  margin: 0 0 6px;
}

.tl-archive__headline span,
.tl-archive__headline p {
  color: var(--lp-muted);
  margin: 0;
}

.author-info {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border-light);
  border-radius: 6px;
  margin-bottom: 24px;
}

.author-thumbnail img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio h1 {
  font-family: var(--lp-serif);
  margin: 0 0 6px;
  font-size: 1.9rem;
}

.serp-hero {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border-light);
  border-radius: 6px;
  padding: 28px 20px;
  margin-bottom: 24px;
  text-align: center;
}

.serp-search-form {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  gap: 8px;
}

.serp-search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 15px;
}

.serp-search-form .btn-search {
  background: var(--lp-accent);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   7 Custom Widgets (.lp-widget, .lp-widget-list)
   ========================================================================== */
.lp-widget {
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--lp-border-light);
  border-radius: 4px;
}

.lp-widget__title {
  font-family: var(--lp-serif);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lp-accent);
  color: var(--lp-ink);
}

.lp-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Featured Widget List */
.lp-widget-list--featured li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dotted var(--lp-border-dot);
}

.lp-widget-list--featured li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lp-widget-list__thumb {
  width: 82px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #f1f3f5;
}

.lp-widget-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-widget-list__body h4 {
  font-family: var(--lp-serif);
  font-size: 1.05rem;
  line-height: 1.28;
  margin: 2px 0 4px;
}

.lp-widget-list__meta {
  font-size: 11px;
  color: var(--lp-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Stylish Non-Featured Widget List */
.lp-widget-list--stylish li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 8px;
  border-bottom: 1px dotted var(--lp-border-dot);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lp-widget-list--stylish li:hover {
  border-left-color: var(--lp-accent);
  background: var(--lp-surface);
}

.lp-widget-list--stylish li:last-child {
  border-bottom: none;
}

.lp-widget-list__num {
  font-family: var(--lp-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lp-accent);
  min-width: 24px;
  padding-top: 2px;
}

/* ==========================================================================
   Dark Footer (.site-footer.dark)
   ========================================================================== */
.site-footer.dark {
  background-color: var(--lp-footer-bg);
  color: #ffffff;
  border-top: 3px solid var(--lp-accent);
  padding: 40px 0 0;
}

.site-footer.dark a {
  color: #e9ecef;
}

.site-footer.dark a:hover {
  color: #ffb74d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-logo {
  max-width: 200px;
  max-height: 44px;
  width: auto;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.footer-brand-name {
  font-family: var(--lp-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  display: block;
}

.footer-info {
  font-size: 13px;
  line-height: 1.6;
  color: #dee2e6;
  margin: 0 0 16px;
}

.footer-column ul.footer-socialLinks,
.footer-socialLinks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.footer-socialLinks li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.footer-socialLinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.footer-socialLinks a:hover {
  background: var(--lp-accent);
  color: #ffffff;
}

.footer-column h4 {
  font-family: var(--lp-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-nav,
.footer-column ul:not(.footer-socialLinks) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-nav a,
.footer-column ul:not(.footer-socialLinks) a {
  font-size: 13px;
  color: #dee2e6;
}

.footer-copyright {
  background: #2f2f2f;
  padding: 14px 0;
  font-size: 12px;
  color: #ced4da;
  text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hp-new__layout4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "article-2-hero article-2-hero"
      "article-1 article-4"
      "article-3 article-6"
      "article-7 article-8"
      "article-5 article-5";
  }

  .hp-new__layout5,
  .hp-new__layout7 {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-layout,
  .archive-layout--sidebar-left,
  .article-single__layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .navbar-brand img.custom-logo {
    max-width: 170px !important;
    width: auto;
    height: auto;
  }

  .secondary-menu {
    display: none;
  }

  .hp-new__layout4,
  .hp-new__layout5,
  .hp-new__layout7 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "article-2-hero"
      "article-1"
      "article-3"
      "article-4"
      "article-5"
      "article-6"
      "article-7"
      "article-8";
  }

  .hp-new__article--5 .article-card,
  .article-card--imgSide {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-new__article--5 .article-card__media,
  .article-card--imgSide .article-card__media {
    width: 100%;
  }

  .author-info {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-socialLinks {
    flex-wrap: wrap;
  }
}
