:root {
  --navy: #0a2540;
  --navy-2: #143158;
  --red: #e63946;
  --red-2: #c92a37;
  --amber: #f4a261;
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #14181f;
  --ink-2: #3a4252;
  --line: #e5e1d8;
  --line-2: #d6cfc1;
  --shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.05rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-2);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-arrow::after {
  content: "→";
}

.utility {
  background: var(--navy);
  color: #cfd6e0;
  font-size: 0.82rem;
  padding: 8px 0;
}

.utility .container,
.utility .util-left,
.utility .util-right {
  display: flex;
  gap: 16px 22px;
  flex-wrap: wrap;
}

.utility .container {
  justify-content: space-between;
}

.utility a {
  color: #cfd6e0;
  text-decoration: none;
}

.utility a:hover {
  color: #fff;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher button {
  border: 0;
  background: transparent;
  color: #cfd6e0;
  font: inherit;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
}

.lang-switcher button:hover,
.lang-switcher button.is-active {
  color: #fff;
  opacity: 1;
  font-weight: 600;
}

.lang-switcher span {
  opacity: 0.45;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 18px;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--ink-2);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-bottom-color: var(--red);
  color: var(--navy);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

section {
  padding: clamp(60px, 8vw, 110px) 0;
}

section.tight {
  padding: clamp(40px, 5vw, 70px) 0;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #0c2c4f 60%, #14365e 100%);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 11vw, 140px);
  overflow: hidden;
}

.hero::before,
.subhero::before,
.cta-banner::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(244, 162, 97, 0.12) 0%, transparent 45%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 60px;
  align-items: center;
}

.hero h1,
.subhero h1,
.cta-banner h2 {
  color: #fff;
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.hero-lede,
.subhero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

.hero-cta,
.subhero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta,
.stats-grid {
  display: grid;
  gap: 24px;
}

.hero-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 32px;
}

.hero-meta strong,
.stat strong {
  display: block;
  font-family: "Fraunces", serif;
  color: var(--amber);
  font-size: 1.8rem;
}

.hero-meta span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card,
.panel,
.aside-card,
.program-card,
.case-card,
.contact-card,
.auth-card,
.info-card,
.team-card,
.history-card,
.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 28px;
}

.hero-card h4 {
  color: var(--amber);
}

.hero-card .news-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card .news-item:last-child {
  border-bottom: 0;
}

.hero-card .news-item time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-card .news-item p {
  color: #fff;
  margin-top: 4px;
}

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.stats {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 50px 0;
}

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

.stat span {
  display: block;
  margin-top: 8px;
}

.programs-grid,
.cards-grid,
.news-grid,
.gallery-grid-v2,
.history-grid,
.team-grid,
.detail-grid {
  display: grid;
  gap: 24px;
}

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

.program-card {
  padding: 32px;
  text-decoration: none;
  color: inherit;
}

.program-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.program-card p:last-child,
.panel p:last-child,
.aside-card p:last-child {
  margin-bottom: 0;
}

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  align-items: center;
}

.feature.reverse > :first-child {
  order: 2;
}

.feature-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #143158 0%, #0a2540 100%);
}

.feature-img::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.25;
}

.feature-img.union::after {
  content: "✊";
}

.feature-img.team::after {
  content: "👥";
}

.feature ul,
.check-list,
.summary-list,
.aside-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature ul li,
.check-list li,
.summary-list li,
.aside-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feature ul li::before,
.check-list li::before,
.summary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--red);
  font-weight: 700;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.case-card,
.news-card,
.gallery-card {
  overflow: hidden;
}

.case-card .case-img,
.news-card .news-image,
.gallery-card .gallery-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
}

.case-card .case-body,
.news-card .news-body,
.gallery-card .gallery-body,
.panel,
.aside-card,
.contact-card,
.auth-card,
.history-card {
  padding: 24px;
}

.case-card .tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: 600;
}

.partners {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.partner-logo {
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  background: var(--paper);
}

.cta-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  right: -40px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, transparent 70%);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-banner .btn-ghost {
  color: #fff;
}

.site-footer {
  background: var(--ink);
  color: #cdd2db;
  padding: 70px 0 30px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h5 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #cdd2db;
}

.site-footer a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #2a303c;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.subhero {
  background: var(--navy);
  color: #fff;
  padding: clamp(50px, 7vw, 90px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.subhero::before {
  inset: 0;
  background-image: radial-gradient(circle at 80% 30%, rgba(244, 162, 97, 0.18) 0%, transparent 50%);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb .sep {
  opacity: 0.4;
}

.page-shell {
  padding: clamp(56px, 7vw, 90px) 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.content-layout.is-wide {
  grid-template-columns: minmax(0, 1fr);
}

.rich-text,
.prose {
  max-width: 100%;
}

.rich-text > :last-child,
.prose > :last-child {
  margin-bottom: 0;
}

.rich-text h2,
.rich-text h3,
.rich-text h4,
.prose h2,
.prose h3 {
  margin-top: 1.4em;
}

.rich-text ul,
.rich-text ol,
.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-2);
}

.rich-text blockquote,
.prose blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--red);
  background: var(--paper);
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--navy);
}

.rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.rich-text th,
.rich-text td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.rich-text iframe,
.rich-text video {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.aside-stack {
  display: grid;
  gap: 20px;
}

.aside-card h3,
.aside-card h4 {
  margin-bottom: 16px;
}

.aside-list li:last-child,
.check-list li:last-child,
.summary-list li:last-child {
  border-bottom: 0;
}

.aside-list a {
  display: block;
  text-decoration: none;
}

.aside-list small,
.muted {
  color: var(--ink-2);
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
}

.news-card .news-body time,
.meta-line,
.history-year {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 1.2rem;
}

.simple-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-grid-v2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card .photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #d6cfc1, #a8a08e);
  position: relative;
}

.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .photo::after {
  content: "👤";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.2;
}

.team-card .photo.has-image::after {
  display: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.history-card .history-media {
  margin: -24px -24px 20px;
  overflow: hidden;
}

.history-card .history-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
}

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

.field-span-2 {
  grid-column: 1 / -1;
}

.field-stack label,
.field-stack legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(230, 57, 70, 0.18);
  border-color: var(--red);
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 10px;
}

.help-text,
.error,
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--red);
}

.contact-list li,
.meta-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child,
.meta-list li:last-child {
  border-bottom: 0;
}

.map-frame {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
}

.auth-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.auth-card {
  padding: 32px;
}

.auth-header {
  max-width: 60ch;
  margin-bottom: 28px;
}

.auth-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

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

.message-banner {
  background: var(--navy);
  color: #fff;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
}

.message-banner p {
  color: rgba(255, 255, 255, 0.84);
}

.endless_more {
  margin-top: 24px;
  display: inline-flex;
  padding: 14px 26px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature,
  .content-layout,
  .contact-grid,
  .cta-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta,
  .stats-grid,
  .partners-grid,
  .news-grid,
  .team-grid,
  .gallery-grid-v2,
  .history-grid,
  .detail-grid,
  .simple-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .programs-grid,
  .case-grid,
  .news-grid,
  .team-grid,
  .gallery-grid-v2,
  .history-grid,
  .stats-grid,
  .hero-meta,
  .form-grid,
  .simple-grid-2,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }
}
