/* ============================================================
   BANDA DE BENISSA — Modern Theme
   Societat Lírica i Musical de Benissa
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  /* Corporate palette — Societat Lírica i Musical de Benissa
     Primary dark: PANTONE Cool Gray 10 C (#63666A)
     Accent:       dark cool gray (#4a4e54)
     Background:   warm off-white, not cold blue-white             */
  --navy:        #2a2a2e;   /* warm charcoal, replaces cold navy   */
  --navy-light:  #3d3d42;   /* lighter charcoal                    */
  --navy-mid:    #63666a;   /* PANTONE Cool Gray 10 C — logo color */
  --accent:      #4a4e54;   /* dark cool gray — primary accent     */
  --accent-dark: #2e3236;   /* darker gray for hover states        */
  --accent-light:#eceef0;   /* very light gray tint                */
  --gold:        #b8960c;   /* muted gold for tertiary accents     */
  --gold-light:  #fdf8e1;
  --white:       #ffffff;
  --bg:          #faf9f7;   /* warm off-white                      */
  --bg-alt:      #f2f0ec;   /* warm light gray                     */
  --text:        #2a2a2e;
  --text-muted:  #63666a;   /* same as logo gray                   */
  --border:      #e0ddd8;
  --border-dark: #c8c4bc;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Fira Code', 'Courier New', monospace;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  --transition: 0.2s ease;
  --transition-md: 0.35s ease;

  --max-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 300px;
}

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

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

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

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; margin: 0 0 1em; }
li { margin-bottom: 0.25em; }
blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy-mid);
}
blockquote p:last-child { margin: 0; }
hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2em 0;
}
code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
code { padding: 0.15em 0.4em; }
pre { padding: 1.25em 1.5em; overflow-x: auto; margin: 1.5em 0; }
pre code { background: none; padding: 0; }
figure { margin: 0; }
figcaption { font-size: 0.85em; color: var(--text-muted); margin-top: 0.5em; text-align: center; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: 0.75em 1em; border: 1px solid var(--border); text-align: left; }
th { background: var(--bg-alt); font-weight: 600; color: var(--navy); }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1em;
  padding: 0.6em 0.9em;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,78,84,0.15);
}
button { cursor: pointer; font-family: var(--font-body); }

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow { max-width: var(--content-width); }
.container--wide   { max-width: 1400px; }

.section { padding: 4rem 0; }
.section--lg { padding: 6rem 0; }
.section--sm { padding: 2rem 0; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.4em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn--sm { padding: 0.45em 1em; font-size: 0.8rem; }
.btn--lg { padding: 0.85em 2em; font-size: 1rem; }

/* ── Site Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-md);
}

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.site-header.scrolled {
  background: rgba(15,23,42,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo__img { width: 40px; height: 40px; object-fit: contain; display: block; flex-shrink: 0; }

.site-logo__emblem {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.site-logo__text { display: flex; flex-direction: column; }

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.site-logo__tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Primary Navigation ─────────────────────────────────── */
.primary-nav { display: flex; align-items: center; }
.primary-nav__list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }

.primary-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  list-style: none;
}
.primary-nav .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu a {
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.primary-nav .sub-menu a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

/* 3rd level flyout */
.primary-nav .sub-menu .menu-item-has-children > a::after {
  content: ' ›';
  float: right;
  opacity: 0.6;
}
.primary-nav .sub-menu .sub-menu {
  position: absolute;
  top: 0;
  left: calc(100% + 0.25rem);
  transform: translateX(-4px);
  z-index: 101;
}
.primary-nav .sub-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Search in header */
.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-search input[type="search"] {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  transition: all var(--transition-md);
  overflow: hidden;
  opacity: 0;
}
.header-search.active input[type="search"] {
  width: 180px;
  padding: 0.4em 0.8em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  opacity: 1;
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  font-size: 1.1rem;
}
.header-search button:hover { color: var(--white); }

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transition: opacity 1s ease;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.75) 0%,
    rgba(15,23,42,0.45) 60%,
    rgba(74,78,84,0.1) 100%
  );
}

/* Animated musical staff decoration */
.hero__decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__decoration::before,
.hero__decoration::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero__decoration::before {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
}
.hero__decoration::after {
  width: 400px; height: 400px;
  bottom: -150px; left: -100px;
}

.hero__lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 0 5%;
  opacity: 0.04;
  pointer-events: none;
}
.hero__lines span {
  display: block;
  height: 1px;
  background: white;
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: 100%;
}

.hero__title span { color: var(--accent); }

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.6;
  margin: 0 0 2.5rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}
.hero__scroll::after {
  content: '↓';
  font-size: 1.2em;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section Headers ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section-header__text {}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.section-header a { font-size: 0.875rem; white-space: nowrap; }

/* ── Post Cards ─────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

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

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-md);
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-light), var(--accent-dark));
  color: rgba(255,255,255,0.2);
  font-size: 4rem;
}

.post-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: var(--radius-sm);
}

.post-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.post-card__date { display: flex; align-items: center; gap: 0.3em; }

.post-card__author { display: flex; align-items: center; gap: 0.3em; }

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.post-card__title a { color: inherit; text-decoration: none; transition: color var(--transition); }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.post-card__read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3em;
  transition: gap var(--transition);
}
.post-card__read-more:hover { gap: 0.6em; color: var(--accent-dark); }
.post-card__read-more::after { content: '→'; }

.post-card__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ── Featured Post Card ─────────────────────────────────── */
.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.post-card--featured .post-card__thumb {
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.post-card--featured .post-card__body { padding: 2rem 2.5rem; }

.post-card--featured .post-card__title { font-size: 1.8rem; }

/* ── Event Cards ────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 1rem; }

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}

.event-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.event-card__date {
  flex-shrink: 0;
  width: 56px;
  height: 64px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.event-card__day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.event-card__month {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.event-card__body { flex: 1; min-width: 0; }

.event-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card__info {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event-card__info span { display: flex; align-items: center; gap: 0.3em; }

.event-card__arrow { color: var(--border-dark); transition: color var(--transition); font-size: 1.1rem; }
.event-card:hover .event-card__arrow { color: var(--accent); }

/* ── Featured Video ──────────────────────────────────────── */
.video-embed {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.video-embed iframe {
	display: block;
	width: 100%;
	height: auto;
	min-height: 360px;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Content with Sidebar ───────────────────────────────── */
.content-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 3rem;
  align-items: start;
}

.content-area--no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}

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

/* ── Single Post ────────────────────────────────────────── */
.post-hero {
  background: var(--navy);
  padding: 5rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
}

.post-hero--has-image {
  background-size: cover;
  background-position: center;
  padding-bottom: 3.5rem;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.6) 0%,
    rgba(15,23,42,0.75) 100%
  );
}

.post-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.post-hero__category {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.15;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}

.post-hero__meta span { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }

.post-hero__meta a { color: rgba(255,255,255,0.8); }
.post-hero__meta a:hover { color: var(--white); }

.post-hero__separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}



.post-body {
  max-width: var(--content-width);
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

/* Post content styles */
.entry-content { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 2.5em 0 0.75em;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}
.entry-content h3 { font-size: 1.35rem; margin: 2em 0 0.5em; }
.entry-content h4 { font-size: 1.1rem; margin: 1.5em 0 0.5em; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content img {
  border-radius: var(--radius);
  margin: 1.5em auto;
}
.entry-content ul, .entry-content ol { margin: 1em 0 1.4em 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content a { color: var(--accent); border-bottom: 1px solid rgba(74,78,84,0.3); }
.entry-content a:hover { border-bottom-color: var(--accent); }
.entry-content blockquote { margin: 2em 0; font-size: 1.1em; }
.entry-content .wp-caption { text-align: center; }
.entry-content .wp-caption-text { font-size: 0.85em; color: var(--text-muted); }

/* Post navigation */
.post-navigation {
  max-width: var(--content-width);
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-post-link {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-post-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.nav-post-link--prev { text-align: left; }
.nav-post-link--next { text-align: right; }
.nav-post-link__dir {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}
.nav-post-link__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

/* ── Tags ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25em 0.7em;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 100px;
  transition: all var(--transition);
  text-decoration: none;
}
.tag:hover { background: var(--accent-light); color: var(--accent-dark); }
.tag--active { background: var(--accent); color: var(--white); }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar { position: sticky; top: 84px; }

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  margin: 0;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--accent); }

/* Recent posts widget */
.widget-recent-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.widget-recent-post:last-child { border-bottom: none; }
.widget-recent-post__thumb {
  width: 64px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.widget-recent-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-post__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-recent-post__date { font-size: 0.75rem; color: var(--text-muted); }

/* Calendar widget */
.widget_calendar table { font-size: 0.85rem; }
.widget_calendar th { background: var(--navy); color: var(--white); font-size: 0.75rem; padding: 0.5rem; }
.widget_calendar td { padding: 0.4rem; text-align: center; }
.widget_calendar td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 50%;
  font-weight: 600;
}

/* ── Search Form ────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 0.5rem;
}
.search-form input[type="search"] {
  flex: 1;
  border-radius: var(--radius) 0 0 var(--radius);
}
.search-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9em;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--accent-dark); }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem 0 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.pagination .dots { border: none; background: none; color: var(--text-muted); min-width: unset; }

/* ── Comments ───────────────────────────────────────────── */
.comments-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 2rem;
}

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

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-author { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.comment-author-info { flex: 1; }
.comment-author-name { font-weight: 600; font-size: 0.95rem; color: var(--navy); font-style: normal; display: block; }
.comment-date { font-size: 0.8rem; color: var(--text-muted); }
.comment-reply { margin-left: auto; }
.comment-reply a { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.comment-reply a:hover { color: var(--accent-dark); }
.comment-awaiting { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.comment-content { font-size: 0.95rem; line-height: 1.7; }
.comment-content p:last-child { margin: 0; }

.comment-respond {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.comment-form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

.comment-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-form-comment { margin-bottom: 1rem; }
.comment-form-comment textarea { min-height: 120px; resize: vertical; }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 0.4rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-logo__emblem {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.footer-logo__img { width: 44px; height: 44px; object-fit: contain; display: block; flex-shrink: 0; }

.footer-logo__text { display: flex; flex-direction: column; }

.footer-logo__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.footer-logo__tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand__description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1.5rem;
  max-width: 280px;
}

.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--accent); color: var(--white); }

.footer-col__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact li span:first-child { color: var(--accent); flex-shrink: 0; margin-top: 0.1em; }

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

.footer-bottom-credits {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-credits p { margin: 0; }
.footer-bottom-copyright { margin: 0; }

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ── Breadcrumbs ────────────────────────────────────────── */
.breadcrumbs {
  background: var(--bg-alt);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span + span::before { content: ' / '; padding: 0 0.4em; color: var(--border-dark); }
.breadcrumbs .current { color: var(--text); }

/* ── Archive Header ─────────────────────────────────────── */
.archive-hero {
  background: var(--navy);
  padding: 7rem 1.5rem 3rem;
  text-align: center;
}

.archive-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.archive-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
}

.archive-hero__description {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto;
}

/* ── 404 Page ───────────────────────────────────────────── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page__number {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.3;
}

.error-page__title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.error-page__text { color: var(--text-muted); max-width: 400px; margin: 0 auto 2rem; }

/* ── Search Results ─────────────────────────────────────── */
.search-hero {
  background: var(--navy);
  padding: 7rem 1.5rem 3rem;
  text-align: center;
}

.search-hero__form {
  max-width: 560px;
  margin: 1.5rem auto 0;
}

.search-hero__form input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.85em 1.25em;
  font-size: 1.1rem;
  border-radius: var(--radius) 0 0 var(--radius);
}
.search-hero__form input::placeholder { color: rgba(255,255,255,0.4); }
.search-hero__form button {
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 0.85em 1.5em;
  font-size: 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--transition);
}
.search-hero__form button:hover { background: var(--accent-dark); }

/* ── Back to Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 500;
  font-size: 1.1rem;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent); color: var(--white); }

/* ── Utility ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ── Page Template: Full Width ──────────────────────────── */
.page-body {
  padding: 0 0 3rem;
}
.page-body .container { padding-top: 3rem; }

/* ── Page Hero ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0 3.5rem;
  margin-bottom: 0;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
  line-height: 1.2;
}

/* ── 404 ────────────────────────────────────────────────── */
.not-found-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}
.not-found-inner { max-width: 520px; }
.not-found__number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--border-dark);
  margin-bottom: -1rem;
  letter-spacing: -0.05em;
}
.not-found__icon { font-size: 3rem; display: block; margin-bottom: 1.5rem; opacity: 0.5; }
.not-found__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.not-found__text {
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.not-found__search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.not-found__search input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.not-found__search input:focus { outline: none; border-color: var(--accent); }
.not-found__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Search hero form ───────────────────────────────────── */
.search-hero-form { margin-top: 2rem; }
.search-hero-form__wrap {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
}
.search-hero-form__input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.search-hero-form__input::placeholder { color: rgba(255,255,255,0.5); }
.search-hero-form__input:focus { outline: none; border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.15); }

/* ── No Posts ───────────────────────────────────────────── */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.no-posts__icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.no-posts__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin-bottom: 0.5rem; }

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .back-to-top { display: none !important; }
  .content-area { grid-template-columns: 1fr !important; }
  body { font-size: 12pt; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__thumb { width: 100%; aspect-ratio: 16/9; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 100%; }

  .header-inner { gap: 1rem; }

  .primary-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-light);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    transform: translateY(-120%);
    transition: transform var(--transition-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100svh - 64px);
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 0.75rem 1rem; font-size: 1rem; }
  .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0,0,0,0.2);
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: none;
  }
  .primary-nav .menu-item-has-children.open .sub-menu { display: block; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .hero__content { padding-top: 7rem; }
  .hero__title { font-size: clamp(2rem, 9vw, 3.5rem); }

  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .posts-grid--3col,
  .posts-grid--2col,
  .posts-grid { grid-template-columns: 1fr; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

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

  .comment-form-fields { grid-template-columns: 1fr; }

  .post-navigation { grid-template-columns: 1fr; }
  .nav-post-link--next { text-align: left; }

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

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
