/*
Theme Name: TrangHay Events Theme
Theme URI: https://tranghay.vn
Description: Theme tối ưu cho plugin TrangHay Events – sự kiện, show ca nhạc, concert, lễ hội toàn quốc.
Version: 1.0.0
Author: TrangHay
Author URI: https://tranghay.vn
Text Domain: tranghay-theme
Tags: events, music, concert, festival, vietnamese
*/

/* ===========================
   IMPORT FONTS
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  /* Brand Colors */
  --p1: #ff2d78;
  --p2: #ff6eb4;
  --p3: #ffb3d1;
  --grad: linear-gradient(135deg, #ff2d78, #ff6eb4, #ffb347);
  --grad-dark: linear-gradient(135deg, #1a0010, #6b0030, #ff2d78);

  /* Neutral */
  --dark: #1a0010;
  --dark2: #2d0020;
  --text: #1a0010;
  --muted: #8a4060;
  --border: #ffd6e7;
  --bg: #fff8fb;
  --card: #ffffff;

  /* Shadows */
  --sh: 0 2px 16px rgba(255, 45, 120, 0.08);
  --sh-hover: 0 8px 32px rgba(255, 45, 120, 0.2);

  /* Radius */
  --r: 14px;
  --rs: 8px;

  /* Typography */
  --ff-h: 'Lora', Georgia, serif;
  --ff-b: 'Lora', Georgia, serif;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-b);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-h); line-height: 1.2; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--p1); border-radius: 3px; }
::-webkit-scrollbar-track { background: var(--border); }

/* ===========================
   LAYOUT CONTAINERS
=========================== */
.site-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  min-height: 60vh;
}

/* ===========================
   HEADER
=========================== */
#site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(255, 45, 120, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  height: 38px;
  width: auto;
}

.site-logo-text {
  font-family: var(--ff-h);
  font-size: 20px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Primary Nav */
.primary-nav {
  flex: 1;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

.primary-nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
  white-space: nowrap;
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a {
  background: #fff0f6;
  color: var(--p1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: var(--muted);
  transition: all .2s;
}

.header-search-btn:hover {
  border-color: var(--p1);
  color: var(--p1);
}

.btn-post-event {
  background: var(--grad);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .2s;
  white-space: nowrap;
}

.btn-post-event:hover { opacity: .88; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===========================
   HERO SECTION (full page wrapper context)
=========================== */
.page-hero {
  background: var(--grad-dark);
  padding: 48px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff9c4, #ffe082);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.7;
}

/* ===========================
   CONTENT SECTIONS
=========================== */
.content-section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.section-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-link {
  font-size: 12px;
  color: var(--p1);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--p1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-link:hover {
  background: var(--p1);
  color: #fff;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ===========================
   SIDEBAR LAYOUT
=========================== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
}

.widget {
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--sh);
}

.widget-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ===========================
   BREADCRUMB
=========================== */
.site-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.site-breadcrumb .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.site-breadcrumb a:hover { color: var(--p1); }
.site-breadcrumb .sep { color: var(--border); }

/* ===========================
   ARCHIVE / EVENTS LIST
=========================== */
.archive-hero {
  background: var(--grad-dark);
  padding: 36px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.archive-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.archive-hero h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.archive-hero p {
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

/* ===========================
   SINGLE EVENT EXTRAS (complement plugin styles)
=========================== */
.the-single-hero {
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--sh-hover);
}

.the-hero-cover {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.the-hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(26,0,16,.85) 100%);
}

.the-hero-body {
  background: linear-gradient(135deg, #1a0010, #2d0020);
  padding: 22px 24px;
}

.the-hero-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.the-single-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.the-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.the-chip {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.the-chip-link:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}

/* Countdown */
.the-countdown {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.the-cd-block {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  min-width: 58px;
}

.the-cd-block span:first-child {
  display: block;
  font-size: 22px;
  font-weight: 900;
  font-family: var(--ff-h);
  color: #fff;
  line-height: 1;
}

.the-cd-block span:last-child {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* Ticket card sidebar */
.the-ticket-card {
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  padding: 20px;
  box-shadow: var(--sh);
}

.the-tickets-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.the-tickets-bar > div {
  height: 100%;
  border-radius: 3px;
  background: var(--grad);
  transition: width 1s ease;
}

.the-tickets-left {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.the-buy-btn {
  display: block;
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--ff-h);
  margin-bottom: 14px;
  transition: opacity .2s;
}

.the-buy-btn:hover { opacity: .9; color: #fff; }

.the-buy-ended {
  background: #6b7280;
  cursor: default;
}

.the-buy-cancelled {
  background: #ef4444;
  cursor: default;
}

.the-buy-free {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

/* Ticket types */
.the-ticket-types {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 14px;
}

.the-tt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.the-tt-item:last-child { border-bottom: none; }

.the-tt-item strong {
  font-size: 13px;
  font-weight: 700;
}

.the-tt-item p {
  font-size: 11px;
  color: var(--muted);
}

.the-tt-item > span {
  font-size: 14px;
  font-weight: 800;
  color: var(--p1);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Share */
.the-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.the-share a {
  font-size: 18px;
  transition: transform .2s;
}

.the-share a:hover { transform: scale(1.2); }

/* Info grid */
.the-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}

.the-info-item {
  background: var(--card);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.the-info-item > span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.the-info-item > strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

/* Highlights */
.the-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.the-highlight-item {
  background: linear-gradient(135deg, #fff0f6, #fff8fb);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.the-highlight-item > span:first-child { font-size: 22px; flex-shrink: 0; }

/* Performers */
.the-performers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.the-performer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  width: 90px;
}

.the-performer img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--border);
}

.the-performer strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.the-performer small {
  font-size: 11px;
  color: var(--p1);
  font-weight: 600;
}

/* Gallery */
.the-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.the-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}

.the-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.the-gallery-item:hover img { transform: scale(1.08); }

/* Video */
.the-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--r);
  overflow: hidden;
}

.the-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Map */
.the-map-wrap {
  border-radius: var(--r);
  overflow: hidden;
  height: 280px;
}

.the-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ */
.the-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.the-faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.the-faq-q {
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  background: var(--card);
  border: none;
  cursor: pointer;
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: background .2s;
}

.the-faq-q::after {
  content: '▾';
  font-size: 16px;
  color: var(--p1);
  flex-shrink: 0;
  transition: transform .3s;
}

.the-faq-item.open .the-faq-q::after { transform: rotate(180deg); }
.the-faq-q:hover { background: #fff0f6; }

.the-faq-a {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  transition: all .3s;
}

.the-faq-item.open .the-faq-a {
  padding: 0 16px 14px;
  max-height: 300px;
}

/* Rules box */
.the-rules-box {
  background: #fff8fb;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.the-rules-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* Contact form */
.the-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.the-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.the-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.the-contact-form input,
.the-contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--ff-b);
  font-size: 14px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
}

.the-contact-form input:focus,
.the-contact-form textarea:focus { border-color: var(--p1); }

.the-contact-form textarea { resize: vertical; min-height: 100px; }

.the-contact-form button {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--ff-h);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity .2s;
}

.the-contact-form button:hover { opacity: .88; }

.the-contact-result {
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
}

/* Sections in single */
.the-section {
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
}

.the-section h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Content body */
.the-content-body {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
}

.the-content-body p { margin-bottom: 12px; }
.the-content-body h2, .the-content-body h3 { margin: 20px 0 10px; font-size: 16px; }
.the-content-body ul, .the-content-body ol { padding-left: 20px; margin-bottom: 12px; }
.the-content-body li { margin-bottom: 4px; }

/* Breadcrumb in single */
.the-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.the-breadcrumb a:hover { color: var(--p1); }
.the-breadcrumb span { color: var(--muted); }

/* Status/badge tags */
.the-status-tag, .the-featured-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.the-status-tag { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.the-featured-tag { background: #fbbf24; color: #78350f; }

/* Single layout */
.the-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.the-single-sidebar {
  position: sticky;
  top: 80px;
}

/* Related events */
.the-related {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

/* Btn outline */
.the-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--p1);
  color: var(--p1);
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}

.the-btn-outline:hover { background: var(--p1); color: #fff; }

/* Pagination */
.the-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 0;
}

.the-pagination a, .the-pagination span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition: all .2s;
}

.the-pagination a:hover { border-color: var(--p1); color: var(--p1); }
.the-pagination .current { background: var(--grad); color: #fff; border-color: transparent; }

/* Loading */
.the-loading {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-weight: 600;
}

/* No results */
.the-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.the-no-results span {
  font-size: 52px;
  display: block;
  margin-bottom: 12px;
}

/* ===========================
   FOOTER
=========================== */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  margin-top: 60px;
}

.footer-top {
  padding: 48px 0 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .site-logo-text {
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .2s;
}

.footer-social-btn:hover {
  background: var(--p1);
  border-color: var(--p1);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  font-family: var(--ff-h);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: var(--p2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 20px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

.footer-bottom a { color: var(--p2); }

/* ===========================
   WP CORE OVERRIDES
=========================== */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; padding: 6px; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin: 0 auto 12px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr 260px; }
  .the-single-layout { grid-template-columns: 1fr 260px; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 12px 0; }
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }

  #site-header.menu-open .primary-nav {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    padding: 10px 20px;
    z-index: 200;
  }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .the-single-layout { grid-template-columns: 1fr; }
  .the-single-sidebar { position: static; }
  .the-info-grid { grid-template-columns: 1fr; }
  .the-field-row { grid-template-columns: 1fr; }
  .the-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .the-gallery { grid-template-columns: repeat(2, 1fr); }
  .btn-post-event span { display: none; }
}
