/** @format */

:root {
  --nav: #14252d;
  --acc: #2d6a4f;
  --text: #202124;
  --bul: #14252d;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
html,
body {
  height: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Besley", serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding-top: 120px;
}
main {
  width: 100%;
  margin: 0;
  flex: 1; /* pushes footer down if content is short */
}
nav {
  position: fixed;
  top: 0;
  /* background: #fff; */
  border-bottom: 1px solid #e8eaed;
  z-index: 1000; /* ensure it sits above page content and mobile menus */
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  /* background: #dfeffd; */
  backdrop-filter: blur(10px);
}
nav .wrap {
  max-width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  min-height: 120px;
}
nav a {
  color: var(--nav);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1.02rem;
}
nav a:hover {
  background: #f3f4f6;
}
.nav-logo {
  height: 72px;
  width: auto;
  display: block;
}

section {
  padding: 54px 0;
  border-bottom: 1px solid #f1f3f4;
  scroll-margin-top: 140px;
}
h1 {
  margin: 0 0 10px;
}
h2 {
  color: var(--nav);
  margin: 0 0 10px;
}
.note {
  background: #e3f1ea;
  border: 1px solid #c3e3cf;
  color: #1f4e38;
  padding: 10px;
  border-radius: 8px;
}
.btn {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
}
footer {
  background: #0386af;
  color: #e2edf0;
  text-align: center;
  padding: 20px;
}
.logo {
  max-width: 450px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}
ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}
li {
  margin-bottom: 6px;
}
ul li::marker {
  color: var(--bul);
  font-size: 0.7em;
}
.impact-block {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}
.impact-block li {
  margin-bottom: 14px;
}
.impact-block li strong {
  display: block;
  color: var(--nav);
  font-size: 1.05em;
  margin-bottom: 4px;
}
.impact-block li p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.impact-block li::marker {
  color: var(--bul);
  font-size: 0.7em;
}
/* Keep brand from wrapping */
.brand,
.brand a {
  white-space: nowrap;
}

.brand {
  display: block;
  max-width: calc(100% - 56px); /* 22px bars + padding/margins buffer */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* keep your no-wrap requirement */
  font-size: 1.2rem;
}

/* Base (desktop) keeps your current inline links */
.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav);
  margin: 5px 0;
}

/* Narrow screens: collapse links */
@media (max-width: 750px) {
  nav .wrap {
    position: relative;
    gap: 8px;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 8px 16px 12px;
    z-index: 20;
    flex-direction: column;
    gap: 6px;
  }

  /* larger tap targets */
  .nav-links a {
    padding: 10px;
  }

  /* show when toggled */
  nav.open .nav-links {
    display: flex;
  }
}

.nav-cohort-btn {
  background: #22c55e;
  color: white !important;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-cohort-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* FULLSCREEN HERO CAROUSEL */
header {
  position: relative;
  min-height: 87vh;
  overflow: hidden;
  padding: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1); /* heroZoom */
  animation: heroZoom 12s ease-in-out infinite alternate; /* heroZoom */
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 24px;
  width: 100%;
  max-width: 1000px;
  animation: heroFade 1.4s ease;
}
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content .logo {
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto;
}

@media (max-width: 750px) {
  .hero-content .logo {
    max-width: 85%;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

#ourmission {
  background: #fff;
  padding: 100px 32px;
  text-align: center;
  margin: 0;
}

#ourmission h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--nav);
}

#ourmission p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.9;
}

#outcomes {
  padding: 90px 32px;
  background: #f8fafc;
}

#outcomes .container {
  max-width: 1200px;
  margin: 0 auto;
}

#outcomes h2 {
  color: var(--nav);
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 0 20px;
}

#outcomes .section-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.8;
  color: #555;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.outcomes-card {
  appearance: none;
  background: transparent;
  border: none;
  border-top: 3px solid var(--accent);
  padding: 28px 0 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.outcomes-card:hover {
  transform: translateY(-6px);
}

.outcomes-card h3 {
  color: var(--nav);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.outcomes-card p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.outcomes-card .program-link {
  margin-top: 24px;
}

.outcomes-card,
.outcomes-card * {
  font-family: inherit;
}

@media (max-width: 900px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.outcomes-modal {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 32px;

  background: rgba(0, 0, 0, 0);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    background 0.3s ease,
    visibility 0s linear 0.3s;

  z-index: 1500;
}

.outcomes-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.55);

  transition:
    opacity 0.3s ease,
    background 0.3s ease;
}

.outcomes-modal-content {
  font-family: inherit;
  color: var(--text);
  background: #fff;
  width: min(850px, 100%);
  max-height: 85vh;
  overflow-y: auto;

  border-radius: 16px;
  padding: 48px;

  transform: translateY(24px) scale(0.98);
  opacity: 0;

  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.outcomes-modal.open .outcomes-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.outcomes-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;

  border: none;
  background: none;

  font-size: 2rem;
  line-height: 1;
  color: #667085;

  cursor: pointer;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.outcomes-modal-close:hover {
  color: var(--nav);
  transform: scale(1.1);
}

#ourprocess {
  padding: 100px 32px;
  text-align: center;
}

#ourprocess h2 {
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  margin-bottom: 70px;
  letter-spacing: -0.02em;
  color: var(--nav);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.process-step {
  position: relative;
  background: #fff;
  border: 1px solid #dde3e9;
  border-radius: 24px;
  padding: 36px 28px 28px;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 0 0 1px #d6dbe1,
    0 20px 50px rgba(0, 0, 0, 0.12);
}

.process-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: var(--nav);
}

.process-icon svg {
  width: 100%;
  height: 100%;
}

.process-step h3 {
  color: var(--nav);
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.process-preview {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

.process-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.35s ease;
}

.process-step.open .process-details {
  max-height: 400px;
  opacity: 1;
  margin-top: 22px;
}

.process-details p {
  margin: 0;
  line-height: 1.8;
}

.process-chevron {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  color: #98a2b3;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.process-chevron svg {
  width: 22px;
  height: 22px;
}

.process-step:hover .process-chevron {
  color: var(--nav);
}

.process-step.open .process-chevron {
  transform: rotate(180deg);
  color: var(--nav);
}

@media (max-width: 850px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step:hover {
    transform: none;
  }
}

#accreditations {
  padding: 80px 32px;
  text-align: center;
  background: white;
}

#accreditations h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 50px;
  color: var(--nav);
}

.accreditation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.accreditation-logos img {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.accreditation-disclaimers {
  max-width: 850px;
  margin: 64px auto 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #5f6b76;
  text-align: left;
}

.accreditation-disclaimers p {
  margin: 0 0 14px;
}

.accreditation-disclaimers p:last-child {
  margin-bottom: 0;
}

.accreditation-disclaimers sup {
  color: var(--nav);
  font-weight: 700;
}

#locations {
  padding: 100px 32px;
  text-align: center;
  background: #f8fafc;
}

#locations h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--nav);
}

#locations p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.9;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto 0;
}

.location-card {
  padding: 40px 32px;
  border-radius: 24px;
  background: white;
  border: 1px solid #e7ebef;
}

.location-card h3 {
  margin-bottom: 16px;
  color: var(--nav);
  font-size: 1.35rem;
}

.location-card p {
  margin: 0;
  line-height: 1.8;
}

.location-card h3 sup {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--nav);
  font-weight: 600;
  margin-left: 2px;
}

@media (max-width: 850px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

#nextcohort {
  padding: 110px 32px;
  text-align: center;
  background: #0386af;
  color: white;
}

#nextcohort h2 {
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.cohort-date {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  opacity: 0.95;
}

.cohort-description {
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.9;
  font-size: 1.1rem;
  opacity: 0.92;
}

#nextcohort .btn {
  padding: 14px 24px;
  font-weight: 700;
}

#nextcohort h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 12px 0;
  font-weight: 600;
}

.apply-by {
  display: inline-block;
  background: #facc15;
  color: #14252d;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  margin: 20px 0 44px;
}

.cohort-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cohort-learnmore {
  background: white;
  color: var(--nav);
  min-width: 220px;
}

.cohort-apply {
  background: #22c55e;
  color: white;
  min-width: 220px;
  font-weight: 700;
}

.cohort-apply:hover {
  background: #16a34a;
}

.apply-page {
  padding: 120px 32px 80px;
}

.apply-container {
  max-width: 800px;
  margin: 0 auto;
}

.apply-container h1 {
  color: var(--nav);
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 0 36px;
}

.apply-content {
  line-height: 1.9;
}

.apply-content h2 {
  margin: 48px 0 20px;
  color: var(--nav);
  font-size: 1.8rem;
}

.apply-content h2:first-child {
  margin-top: 0;
}

.apply-content h3 {
  margin: 28px 0 8px;
  color: var(--nav);
  font-size: 1.2rem;
  font-weight: 600;
}

.apply-content p {
  margin: 0 0 1.75rem;
  line-height: 1.9;
}

.apply-content ul,
.apply-content ol {
  margin: 0 0 1.75rem;
  padding-left: 1.5rem;
}

.apply-content li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.apply-content p:last-child,
.apply-content ul:last-child,
.apply-content ol:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .apply-page {
    padding: 130px 24px 60px;
  }
}

#nondiscrimination {
  padding: 40px 32px 60px;
  text-align: center;
  background: white;
}

#nondiscrimination p {
  max-width: 950px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5f6b76;
}

#testimonials {
  padding: 140px 32px 110px;
  text-align: center;
  background: #f8fafc;
}

#testimonials h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 60px;
  color: var(--nav);
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  padding: 0 20px;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-slide p {
  font-size: 1.35rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-slide h4 {
  font-size: 1rem;
  color: #5f6b76;
  font-weight: 600;
}

.faculty-page {
  padding: 120px 32px 80px;
}

.faculty-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faculty-container h1 {
  color: var(--nav);
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 0 56px;
}

.faculty-content {
  line-height: 1.9;
}

.faculty-section {
  max-width: 800px;
  margin: 0 auto 40px;
  background: #f8fafc;
  border: 1px solid #e7ebef;
  border-radius: 20px;
  padding: 28px 32px;
}
.faculty-page h2 {
  max-width: 700px;
  margin: 60px auto 24px;
}

.faculty-item {
  padding: 12px 0;
}

.faculty-item strong {
  display: block;
  color: var(--nav);
  margin-bottom: 4px;
}

.names-only .faculty-item {
  padding: 10px 0;
  font-size: 1.05rem;
}

.faculty-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
}

.faculty-card {
  background: #fff;
  border: 1px solid #dde3e9;
  border-radius: 24px;
  padding: 36px 24px;
  flex: 0 0 260px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

  font: inherit;
}

.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 0 0 1px #d6dbe1,
    0 20px 50px rgba(0, 0, 0, 0.12);
}

.faculty-card img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 22px;
}

.faculty-card h3 {
  margin: 0 0 8px;
  color: var(--nav);
  font-size: 1.35rem;
}

.faculty-card p {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

#modalBio p {
  margin: 0 0 20px;
  line-height: 1.9;
}

#modalBio p:last-child {
  margin-bottom: 0;
}

#modalName {
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--nav);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: min(1000px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 56px;
  border-radius: 24px;
  position: relative;
}

@media (max-width: 768px) {
  .modal {
    padding: 20px;
  }

  .modal-content {
    width: 100%;
    max-height: 90vh;
    padding: 36px 28px;
    border-radius: 20px;
  }
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}

.programs-page {
  padding: 120px 32px 80px;
}

.program-section {
  padding: 0;
  border: 0;
  margin-bottom: 80px;
}

.program-section:last-child {
  margin-bottom: 0;
}

.program-section h2 {
  max-width: 800px;
  margin: 0 auto 36px;
  color: var(--nav);
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  text-align: center;
}

.program-section + .program-section {
  margin-top: 72px;
}

.program-grid {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  width: 340px;
  min-height: 340px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  background: #fff;
  border: 1px solid #dde3e9;
  border-radius: 24px;
  padding: 42px 36px;

  text-decoration: none;
  color: inherit;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 0 0 1px #d6dbe1,
    0 20px 50px rgba(0, 0, 0, 0.12);
}

.program-card h3 {
  margin: 0 0 20px;
  color: var(--nav);
  font-size: 1.55rem;
  line-height: 1.35;
}

.program-card p {
  margin: 0;
  color: #667085;
  line-height: 1.8;
  max-width: 26ch;
}

.program-card h2 {
  display: none;
}

.program-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--nav);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.75;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.program-link span {
  transition: transform 0.6s ease;
}

.program-card:hover .program-link {
  opacity: 1;
}

.program-card:hover .program-link span {
  transform: translateX(5px);
}

.program-page {
  padding: 120px 32px 80px;
}

.program-container {
  max-width: 800px;
  margin: 0 auto;
}

.program-container h1 {
  color: var(--nav);
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 0 36px;
}

.program-content {
  line-height: 1.9;
}

.program-content h2 {
  margin: 48px 0 20px;
  color: var(--nav);
  font-size: 1.8rem;
}

.program-content h2:first-child {
  margin-top: 0;
}

.program-content h3 {
  margin: 28px 0 8px;
  color: var(--nav);
  font-size: 1.2rem;
  font-weight: 600;
}

.program-content p {
  margin: 0 0 1.75rem;
  line-height: 1.9;
}

.program-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .program-page {
    padding: 130px 24px 60px;
  }
}

.page-hero {
  padding: 170px 32px 80px;
  text-align: center;
  background: #f8fafc;
}

.page-hero .container {
  max-width: 800px;
  margin: auto;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--nav);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.15rem;
  color: #5f6b76;
  line-height: 1.8;
}

.history-page {
  padding: 120px 32px 80px;
}

.history-container {
  max-width: 800px;
  margin: 0 auto;
}

.history-container h1 {
  color: var(--nav);
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 0 36px;
}

.history-card {
  line-height: 1.9;
}

.history-card p {
  margin: 0 0 1.75rem;
}

.history-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .history-page {
    padding: 130px 24px 60px;
  }

  .history-card {
    padding: 32px;
  }
}

.history-card h2 {
  margin: 48px 0 20px;
  color: var(--nav);
  font-size: 1.8rem;
}

.history-card h2:first-child {
  margin-top: 0;
}

.history-card h3 {
  margin: 28px 0 8px;
  color: var(--nav);
  font-size: 1.2rem;
  font-weight: 600;
}

.history-card p {
  line-height: 1.9;
}

.contact-page {
  padding: 120px 32px 80px;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-container h1 {
  color: var(--nav);
  font-size: clamp(2.3rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 0 36px;
}

.contact-card {
  background: #f8fafc;
  border: 1px solid #e7ebef;
  border-radius: 20px;
  padding: 40px;
  line-height: 1.9;
}

.contact-card h2 {
  color: var(--nav);
  font-size: 1.8rem;
  margin: 0 0 20px;
}

.contact-card > p {
  margin: 0 0 36px;
}

.contact-details {
  display: grid;
  gap: 28px;
}

.contact-item {
  padding-top: 24px;
  border-top: 1px solid #e7ebef;
}

.contact-item h3 {
  color: var(--nav);
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  color: var(--acc);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-page {
    padding: 130px 24px 60px;
  }

  .contact-card {
    padding: 32px;
  }
}
.contact-social {
  margin-top: 42px;
  text-align: center;
}

.facebook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #1877f2;
  color: #fff;

  padding: 11px 18px;
  border-radius: 6px;

  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.facebook-btn:hover {
  background: #166fe5;
  transform: translateY(-1px);
}

.facebook-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
