:root {
  color-scheme: light;
  --accent: #d6262d;
  --accent-muted: #f3d6d8;
  --text: #1c1c1c;
  --text-muted: #555;
  --background: #faf7f6;
  --surface: #ffffff;
  --border: #e5e5e5;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.875rem;
  margin-top: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

h5 {
  font-size: 1rem;
  margin-top: 1rem;
}

h6 {
  font-size: 0.95rem;
  margin-top: 1rem;
}

main p {
  margin-bottom: 1rem;
}

main ul, main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

main ul {
  list-style-type: disc;
}

main ol {
  list-style-type: decimal;
}

main li {
  margin-bottom: 0.5rem;
}

main strong {
  font-weight: 600;
}

main em {
  font-style: italic;
}

main blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

main code {
  background: var(--accent-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

main pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

main pre code {
  background: none;
  padding: 0;
}

.wrapper {
  width: min(960px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.site-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-title a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.site-title span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
}


.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--text);
}

.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-link--cta {
  background: linear-gradient(135deg, var(--accent) 0%, #b31f25 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(214, 38, 45, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-link--cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #b31f25 0%, #8a1519 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link--cta span {
  position: relative;
  z-index: 1;
}

.nav-link--cta:focus,
.nav-link--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 38, 45, 0.35);
  text-decoration: none;
}

.nav-link--cta:hover::before {
  opacity: 1;
}

.nav-link--cta:active {
  transform: translateY(0);
}

.nav-caret {
  font-size: 0.75rem;
}

.nav-submenu {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 11rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 200;
}

.nav-item--dropdown.is-open > .nav-submenu {
  display: block;
}

.nav-submenu li a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
}

.nav-submenu li a:hover,
.nav-submenu li a:focus {
  background: var(--accent-muted);
}

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, #d6262d 0%, #b31f25 100%);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero .wrapper {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  line-height: 1.2;
}

.hero p {
  max-width: 56ch;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
}

main {
  padding: 2.5rem 0 4rem;
}

main .wrapper {
  display: grid;
  gap: 3rem;
}

section.content {
  margin-bottom: 2rem;
}

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.3s ease;
}

.content:hover {
  box-shadow: 0 12px 48px rgba(214, 38, 45, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.content > *:first-child {
  margin-top: 0;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  color: var(--text);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.content p {
  margin: 0 0 1rem;
}

.content ul,
.content ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  background: rgba(214, 38, 45, 0.06);
  border-radius: 12px;
  margin: 2rem 0;
}

.cards {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #ff4d56 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(214, 38, 45, 0.12);
  border-color: var(--accent);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.card a:hover {
  gap: 0.6rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.language-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.language-link:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 38, 45, 0.15);
}

.language-link.active {
  background: linear-gradient(135deg, var(--accent) 0%, #b31f25 100%);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(214, 38, 45, 0.25);
}

.language-link.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(214, 38, 45, 0.35);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin: 0.85rem auto 0;
  }

  .site-header .wrapper {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: none;
    border-top: 1px solid var(--border);
  }

  .site-nav[aria-expanded="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  .nav-item--dropdown {
    width: 100%;
  }

  .nav-link--cta {
    width: 100%;
    justify-content: center;
  }

  .nav-submenu {
    position: static;
    padding: 0;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: none;
    border-radius: 10px;
  }

  .nav-submenu li a {
    padding: 0.65rem 0.9rem;
  }

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

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

  .footer-nav {
    gap: 0.5rem;
  }

  .language-switcher {
    gap: 0.5rem;
  }

  .language-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.faq-content {
  display: grid;
  gap: 2.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(214, 38, 45, 0.08);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-list summary::marker {
  display: none;
}

.faq-list summary::after {
  content: '\25bc';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
  color: var(--accent);
}

.faq-list details[open] summary::after {
  transform: rotate(-180deg);
}

.faq-answer {
  margin-top: 0.9rem;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

/* Section highlights for homepage */
.section-highlights {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.section-highlights h3 {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  font-size: 1.3rem;
}

.section-highlights h3 a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-highlights h3 a:hover {
  color: var(--accent);
}

.section-highlights p {
  margin: 0.5rem 0 !important;
  color: var(--text-muted);
}

.section-highlights .section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
}

.section-highlights .section-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .section-highlights {
    gap: 2.5rem;
  }
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-link:hover:not(.pagination-disabled) {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 38, 45, 0.1);
}

.pagination-link:active:not(.pagination-disabled) {
  transform: translateY(0);
}

.pagination-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-number:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 38, 45, 0.1);
}

.pagination-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(214, 38, 45, 0.25);
}

.pagination-current:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pagination-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.pagination-count {
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 640px) {
  .pagination {
    margin-top: 2rem;
  }

  .pagination-wrapper {
    gap: 0.5rem;
  }

  .pagination-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .pagination-link span {
    display: none;
  }

  .pagination-number {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9rem;
  }

  .pagination-ellipsis {
    min-width: 2.25rem;
    height: 2.25rem;
  }
}
