:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #555555;
  --color-navy: #0d2b5c;
  --color-coral: #f2544f;
  --color-pink: #f4938f;
  --color-accent: var(--color-coral);
  --color-border: #e5e5e5;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

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

.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-navy);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--color-coral);
}

.nav-cta {
  background: var(--color-coral);
  color: #ffffff !important;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--color-navy);
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  #primaryNav {
    display: none;
    width: 100%;
    order: 3;
  }

  #primaryNav.is-open {
    display: block;
  }

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

.hero {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(180deg, #fdf1f0 0%, #ffffff 100%);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.hero p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section h2 {
  margin-bottom: 1rem;
  color: var(--color-navy);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--color-coral);
  border-radius: 2px;
}

.calendar-embed {
  margin-top: 1.5rem;
  max-width: 800px;
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 600px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .calendar-embed iframe {
    height: 450px;
  }
}

.embed-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 2rem;
}

.embed-status {
  color: var(--color-muted);
}

.embed-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.embed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f7f8fa;
  border-bottom: 1px solid var(--color-border);
}

.embed-card-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-navy);
}

.embed-card-header a {
  color: var(--color-coral);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.embed-card-header a:hover {
  text-decoration: underline;
}

.embed-card iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
}

.embed-card.embed-card--preview iframe {
  height: 480px;
}

.section h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.section li {
  margin-bottom: 0.4rem;
}

.scholarship-cta {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  background: var(--color-coral);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
}

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

.partners-grid {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.partner-logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: #ffffff;
  background: var(--color-navy);
  font-size: 0.9rem;
}

.site-footer .btn {
  margin-bottom: 1rem;
}

.newsletter-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.newsletter-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.newsletter-card:hover {
  border-color: var(--color-coral);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.newsletter-card-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #f7f8fa;
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.newsletter-card-title {
  margin: 0;
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 600;
}

.newsletter-card-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 92, 0.6);
}

.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  height: 85vh;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f7f8fa;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-navy);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.modal-header-actions a {
  color: var(--color-coral);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.modal-header-actions a:hover {
  text-decoration: underline;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-navy);
  padding: 0;
}

.modal-dialog iframe {
  flex: 1;
  width: 100%;
  border: 0;
}
