/*
 * Style sheet for the Wolni Republikanie demo website
 *
 * Kolorystyka: głęboki granat z białym i złotym akcentem (zgodnie z nowym logotypem).
 * Typography is inspired by the aesthetics of the Polish inter‑war period,
 * using Poiret One for headlines and Merriweather for body text via
 * Google Fonts. You can substitute these fonts locally if needed.
 */

:root {
  --primary-color: #0c1833;
  /* deep navy matching nowy logotyp */
  --secondary-color: #ffffff;
  /* white for text and highlights */
  --accent-color: #d8b24d;
  /* złoty akcent z herbu */
  --muted-bg: rgba(255, 255, 255, 0.10);
  /* translucent panel background */
  --font-head: 'Playfair Display', serif;
  --font-text: 'Merriweather', serif;
  --font-serif: 'Playfair Display', serif;
  /* New font for interwar feel */
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-text);
  background: radial-gradient(circle at 20% 20%, rgba(216, 178, 77, 0.06), transparent 32%),
    linear-gradient(180deg, #0a1228, var(--primary-color));
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Global elements */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

header {
  display: grid;
  grid-template-columns: auto 1fr;
  /* left: logo | right: nav */
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(9, 20, 46, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--secondary-color);
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

nav {
  grid-column: 2;
  justify-self: end;
  /* push nav to right side */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav li {
  position: relative;
}

nav a {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.is-hidden {
  display: none !important;
}

/* Header polish: sticky, backdrop, clearer nav pills */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(9, 20, 46, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
}

nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  white-space: nowrap;
  /* prevent wrapping for labels like 'Strona główna' */
}

nav a:hover {
  background-color: rgba(216, 178, 77, 0.2);
  color: var(--secondary-color);
}

/* Page hero (banner) used on subpages */
.page-hero {
  background: linear-gradient(135deg, rgba(9, 20, 46, 0.9), rgba(35, 60, 110, 0.92));
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0 auto;
  opacity: 0.95;
  max-width: 780px;
}

/* Subtle attribution text under cards */
.attribution {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Hero section with video intro */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 54vh;
  padding: 5.4rem 2rem;
  text-align: center;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a152d;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(110%) brightness(0.68);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 51, 0.55), rgba(12, 24, 51, 0.88));
}

.hero-content {
  position: relative;
  max-width: 820px;
  z-index: 1;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-content.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-badge {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 3rem;
  margin: 0 0 1rem 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero p {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .hero {
    padding: 4.05rem 1.2rem;
    min-height: 63vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-badge {
    width: 100px;
    height: 100px;
  }
}

section {
  padding: 3rem 2rem;
}

@media (max-width: 640px) {
  section {
    padding: 2.5rem 1.25rem;
  }
}

.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
}

/* Membership / Join section */
.membership-section {
  background: radial-gradient(circle at 10% 10%, rgba(216, 178, 77, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(12, 24, 51, 0.25), rgba(12, 24, 51, 0.7));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.membership-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.membership-header p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.9;
}

.membership-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.membership-panel,
.form-card {
  background: rgba(9, 20, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.membership-steps {
  display: grid;
  gap: 1rem;
}

.membership-section .step-card {
  position: relative;
  padding: 1.3rem 1.4rem 1.3rem 3.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.membership-section .step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

.membership-section .step-number {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #0c1833;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.membership-section .step-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.membership-section .step-card p {
  margin: 0;
  opacity: 0.88;
}

.membership-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.membership-section .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: #0c1833;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.membership-section .download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.form-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 16, 34, 0.85);
  color: var(--secondary-color);
  font-family: var(--font-text);
  box-sizing: border-box;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(216, 178, 77, 0.6);
  border-color: rgba(216, 178, 77, 0.6);
}

.form-card .download-btn {
  width: 100%;
}

@media (max-width: 980px) {
  .membership-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .membership-panel,
  .form-card {
    padding: 1.5rem;
  }

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

  .membership-section .step-card {
    padding-left: 3.4rem;
  }
}

/* Frontmen grid */
.frontmen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.frontman-card {
  background-color: var(--muted-bg);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.frontman-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.frontman-card h3 {
  font-family: var(--font-head);
  margin: 0.7rem 0 0.3rem;
  font-size: 1.2rem;
}

.frontman-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary-color);
  opacity: 0.8;
}

/* Program section lists */
.program-list {
  max-width: 800px;
  margin: 0 auto;
}

.program-list h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.program-list ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.program-list li {
  margin-bottom: 0.5rem;
}

/* Coordinator cards */
.coordinator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.coordinator-card {
  background-color: var(--muted-bg);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.coordinator-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.coordinator-card h4 {
  font-family: var(--font-head);
  margin: 0.6rem 0 0.2rem;
  font-size: 1.1rem;
}

.coordinator-card p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Interactive map + details */
.map-and-details {
  display: grid;
  grid-template-columns: minmax(280px, 680px) 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 1.5rem auto 0;
}

#poland-map,
#world-map {
  width: 100%;
  min-height: 520px;
  background: linear-gradient(180deg, #1d1f36, #121427);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.region-details {
  background: var(--muted-bg);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.region-details h3 {
  font-family: var(--font-head);
  margin: 0 0 0.5rem;
}

.region-details p {
  margin: 0.2rem 0;
}

/* Leaders grid (16 voivodeships) */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 1rem;
}

.leaders-grid .leader-card {
  background: var(--muted-bg);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.leaders-grid .leader-card img {
  width: 100%;
  border-radius: 6px;
}

.leaders-grid .leader-card h4 {
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-head);
}

.leaders-grid .leader-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.leaders-grid .leader-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.district-coordinators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

.district-card {
  background: var(--muted-bg);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.district-card h5 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.district-card p {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

.district-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  opacity: 0.85;
  padding: 0.75rem 1rem;
  background: var(--muted-bg);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.district-inline {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.district-inline h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
}

.district-inline ul {
  padding-left: 1.1rem;
  margin: 0;
}

.district-inline li {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

/* Coordinators table */
.coordinator-table-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.coordinator-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--muted-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.coordinator-table th,
.coordinator-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.coordinator-table thead th {
  font-family: var(--font-head);
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
}

.coordinator-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.coordinator-table tbody tr.selected {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

/* Districts table below map */
.districts-wrap {
  max-width: 1200px;
  margin: 1rem auto 0;
}

.districts-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--muted-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.districts-table th,
.districts-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.districts-table thead th {
  font-family: var(--font-head);
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
}

.leaflet-container {
  font-family: var(--font-text);
  color: #0f172a;
}

.leaflet-container a {
  color: #0f172a;
}

.leaflet-tile-pane {
  filter: saturate(110%);
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 10px;
}

@media (max-width: 980px) {
  .map-and-details {
    grid-template-columns: 1fr;
  }
}

/* Media section */
.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 1.5rem auto 0;
}

.social-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--muted-bg);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.social-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
}

.social-link-card:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.social-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(216, 178, 77, 0.14);
  color: var(--accent-color);
  border: 1px solid rgba(216, 178, 77, 0.35);
  box-shadow: inset 0 0 18px rgba(216, 178, 77, 0.08);
}

.social-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.social-icon svg .play {
  fill: var(--primary-color);
}

.social-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.social-url {
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.9;
  word-break: break-word;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.media-item iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 8px;
}

/* Nowe style dla zakładki Media */
.shorts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
}

.short-item {
  background: var(--muted-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.short-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.short-item iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: none;
  display: block;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 1.5rem auto;
}

.video-item {
  background: var(--muted-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-item:hover {
  transform: scale(1.02);
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.video-info {
  padding: 1rem;
  text-align: center;
}

.video-info h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
  font-style: italic;
  opacity: 0.7;
}

.loading-spinner::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin: 1rem auto;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
footer {
  background-color: #09142e;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

.menu-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.menu-toggle .bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-toggle .bars::before,
.menu-toggle .bars::after,
.menu-toggle .bars span {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-toggle .bars::before {
  top: 0;
}

.menu-toggle .bars span {
  top: 5px;
}

.menu-toggle .bars::after {
  bottom: 0;
}

/* Responsive: collapse nav into a dropdown on small screens */
@media (max-width: 820px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto;
    /* logo | toggle */
    align-items: center;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(9, 20, 46, 0.98);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    display: none;
    /* hidden by default */
    padding: 0.75rem 1rem 1rem;
  }

  nav.open {
    display: block;
    /* reveal when toggled */
  }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  nav a {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
  }
}

/* Republican Pillars - Interwar Style */
.pillars-section {
  background: transparent;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.pillars-document {
  max-width: 1200px;
  margin: 0 auto;
  background: #f4efe6 url('../images/polish_marble_texture.jpg') center / cover no-repeat;
  padding: 4rem 3rem;
  border: 1px solid #d8b24d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  color: #1a1a1a;
}

.pillars-document::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px double #8b0000;
  pointer-events: none;
}

.pillars-section .section-title {
  color: #8b0000;
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.pillars-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: #333;
  position: relative;
  z-index: 10;
}

.pillars-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(139, 0, 0, 0.1);
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.pillar-item:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pillar-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.6);
}

.pillar-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(139, 0, 0, 0.15);
  pointer-events: none;
}

.pillar-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.pillar-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #8b0000;
  line-height: 1;
  opacity: 0.8;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pillar-content {
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: #333;
  margin-left: 2.5rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .pillars-section {
    padding: 3rem 1rem;
  }

  .pillar-content {
    margin-left: 0;
  }
}

/* Stationery & Print Styles */
.stationery-body {
  background: #fdfdfd;
  color: #1a1a1a !important;
  margin: 0;
  padding: 0;
}

.stationery-page {
  width: 210mm;
  min-height: 297mm;
  padding: 20mm;
  margin: 20mm auto;
  background: white url('../images/canvas_texture.png') repeat;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  position: relative;
  box-sizing: border-box;
  font-family: 'Playfair Display', serif;
}

.stationery-page::before {
  content: '';
  position: absolute;
  top: 10mm;
  left: 10mm;
  right: 10mm;
  bottom: 10mm;
  border: 2px double #8b0000;
  pointer-events: none;
}

.stationery-page::after {
  content: '';
  position: absolute;
  top: 12mm;
  left: 12mm;
  right: 12mm;
  bottom: 12mm;
  border: 0.5px solid rgba(139, 0, 0, 0.2);
  pointer-events: none;
}

.stationery-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.stationery-header img {
  width: 80px;
  margin-bottom: 1rem;
}

.stationery-title {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #8b0000;
  margin: 0 0 1rem;
  font-weight: 700;
}

.stationery-content {
  font-size: 11.5pt;
  line-height: 1.6;
  text-align: justify;
  position: relative;
  z-index: 10;
  color: #1a1a1a;
}

.stationery-content p {
  margin-bottom: 1.2rem;
}

.stationery-content h4 {
  color: #8b0000;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.stationery-footer {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.signature-line {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}

@media print {
  body {
    background: white !important;
  }

  .stationery-body {
    background: white !important;
  }

  .stationery-page {
    margin: 0 !important;
    box-shadow: none !important;
    width: 210mm !important;
    height: 297mm !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  .print-btn-fixed {
    display: none !important;
  }
}

.print-btn-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #8b0000;
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-head);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transition: transform 0.2s;
}

.print-btn-fixed:hover {
  background: #a00000;
  color: white;
  transform: scale(1.05);
}

/* Quiz & Ideology Map */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quiz-card label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-head);
}

.status-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.75rem;
}

.form-info-box {
  background: rgba(216, 178, 77, 0.1);
  border-left: 3px solid var(--accent-color);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.form-info-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-color);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.range-value {
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--accent-color);
  text-align: center;
}

.ideology-map {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 49.5%, rgba(198, 40, 40, 0.4) 50%, rgba(255, 255, 255, 0.04) 50.5%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 49.5%, rgba(198, 40, 40, 0.4) 50%, rgba(255, 255, 255, 0.04) 50.5%);
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  height: 450px;
  width: 100%;
  max-width: 650px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.quiz-horizontal-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.quiz-side-card {
  flex: 1;
  max-width: 300px;
}

.quiz-bottom-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

@media (max-width: 1024px) {
  .quiz-horizontal-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .quiz-side-card {
    max-width: 100%;
    width: 100%;
  }

  .ideology-map {
    height: 350px;
  }
}

.ideology-point {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff5252;
  border: 3px solid #fff;
  box-shadow: 0 0 20px rgba(255, 82, 82, 0.8);
  transform: translate(-50%, -50%);
  transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.party-point {
  position: absolute;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #0c1833;
  font-weight: 800;
  font-size: 0.8rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
  text-transform: uppercase;
}

.axis-label {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.axis-x-left {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.axis-x-right {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.axis-y-top {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.axis-y-bottom {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}
