@import url("https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap");

:root {
  --nav-height: 168px;
  --text-color: #1f2233;
  --text-muted: rgba(31, 34, 51, 0.65);
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-400.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ubuntu-500.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ubuntu-700.woff2") format("woff2");
}

.tangerine-regular {
  font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
}

.tangerine-bold {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background: linear-gradient(135deg, #ddd4f2 0%, #c8bfe8 25%, #bcd0ea 55%, #aecbe8 75%, #a3c0e2 100%);
  background-attachment: fixed;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 4px 24px rgba(30, 20, 60, 0.15);
}

.navbar-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.logo-placeholder {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--text-color);
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease;
}

.navbar.shrink-logo .logo-placeholder {
  width: 64px;
  height: 64px;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-item {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-item--apply {
  background: linear-gradient(115deg, #0a1f44 0%, #14203a 45%, #1c1c22 75%, #222222 100%);
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.nav-item--apply:hover {
  opacity: 0.7;
  color: #000000;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(30, 20, 60, 0.2);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(91, 143, 214, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main content */
main {
  padding-top: var(--nav-height);
}

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image-placeholder {
  width: 100%;
  max-width: none;
  height: 320px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 32px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 20px;
  width: 100%;
  max-width: 780px;
}

.hero-text {
  max-width: 780px;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

.hero-text a {
  color: var(--text-color);
  font-weight: 600;
}

.mail-application-note {
  font-style: italic;
}

.hero-video {
  width: 100%;
  display: block;
  margin: 24px auto 0;
  border-radius: 16px;
  background: #000;
}

.columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.column {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 32px 24px;
  min-height: 320px;
  backdrop-filter: blur(4px);
}

.column h2 {
  margin-top: 0;
}

.column p {
  color: var(--text-muted);
}

.perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.perk-item:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(6px);
  box-shadow: 0 8px 20px rgba(60, 40, 120, 0.18);
}

.perk-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f7bd6, #5b8fd6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(91, 143, 214, 0.4);
  transition: transform 0.25s ease;
}

.perk-item:hover .perk-icon {
  transform: scale(1.1) rotate(-4deg);
}

.perk-icon svg {
  width: 22px;
  height: 22px;
}

.perk-text {
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.35;
}

.perk-text em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.85rem;
  display: block;
}

.section-two-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f7bd6, #5b8fd6);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(91, 143, 214, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-two-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.section-two-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 143, 214, 0.45);
}

.section-two-cta:hover svg {
  transform: translateX(4px);
}

.section-divider {
  width: 100%;
  max-width: 200px;
  height: 20px;
  display: block;
  margin: 8px auto 20px;
}

.verse-of-day {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  z-index: 1;
}

#section-three {
  position: relative;
  overflow: hidden;
}

#section-three::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(135deg, rgba(238, 233, 250, 0.82), rgba(214, 226, 245, 0.82)),
    url("../images/bible-verse-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

#section-three.bg-alt::before {
  background-image:
    linear-gradient(135deg, rgba(238, 233, 250, 0.82), rgba(214, 226, 245, 0.82)),
    url("../images/bible-verse-bg2.jpg");
}

#section-three > * {
  position: relative;
  z-index: 1;
}

#section-three {
  box-shadow: 0 10px 30px rgba(60, 40, 120, 0.12);
}

.verse-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  position: relative;
  padding: 0 0.6em;
}

.verse-text::before,
.verse-text::after {
  font-style: normal;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 0;
  color: rgba(31, 34, 51, 0.45);
  vertical-align: -0.3em;
}

.verse-text::before {
  content: "\201C";
  margin-right: 0.05em;
}

.verse-text::after {
  content: "\201D";
  margin-left: 0.05em;
}

.verse-reference {
  align-self: flex-end;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 16px;
}

.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 125px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(4px);
}

.contact-card h2 {
  margin: 0 0 8px;
}

.contact-card > p {
  margin: 0 0 28px;
  text-align: center;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row:has(textarea) {
  grid-column: 1 / -1;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
}

.form-row input,
.form-row textarea,
.form-control {
  font: inherit;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(31, 34, 51, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-color);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-control:focus {
  outline: 2px solid rgba(91, 143, 214, 0.6);
  outline-offset: 1px;
}

.required-asterisk {
  color: #d3455b;
  font-weight: 700;
  font-size: 18pt;
}

.form-row input.field-missing,
.form-row textarea.field-missing {
  border-color: #d3455b;
  box-shadow: 0 0 0 1px rgba(211, 69, 91, 0.35);
}

.contact-submit {
  grid-column: 1 / -1;
  justify-self: center;
  font: inherit;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 10px;
  background: #5b8fd6;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-submit:hover {
  background: #4a7bc0;
}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px 20px;
  }
}

/* Application page */
.application-hero {
  min-height: auto;
  padding-bottom: 0;
}

.application-hero .hero-text {
  max-width: 900px;
}

.application-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 125px;
}

.application-form {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* About page */
.about-content {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-color);
  line-height: 1.7;
}

.about-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

.about-image--secondary {
  max-width: 420px;
  max-height: 300px;
  margin: 0 auto;
}

.history-intro {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-image--portrait {
  width: 120px;
  height: 144px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.history-intro p {
  flex: 1;
  min-width: 240px;
  margin: 0;
}

.forms-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.forms-address {
  font-style: normal;
  line-height: 1.6;
}

.form-download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}

.form-download-icon {
  width: 60px;
  height: auto;
  flex-shrink: 0;
}

.form-download-link {
  font-weight: 600;
  text-decoration: underline;
  color: inherit;
}

.conference-promo {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 780px;
  margin: 0 auto 28px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.conference-promo:last-child {
  margin-bottom: 0;
}

.conference-ad-image {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(20, 20, 50, 0.35);
  flex-shrink: 0;
}

.conference-ad-link {
  display: inline-block;
  border-radius: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conference-ad-link:hover,
.conference-ad-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(20, 20, 50, 0.4);
}

.conference-promo-details {
  flex: 1;
  min-width: 240px;
}

.conference-promo-details h2 {
  margin-bottom: 10px;
}

.conference-tagline {
  color: var(--text-color);
  margin-bottom: 18px;
}

.conference-info-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conference-info-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-color, #4b3f8f);
  margin-bottom: 2px;
}

.conference-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6a5acd, #4169e1);
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conference-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(65, 105, 225, 0.35);
}

.conference-cta svg {
  width: 18px;
  height: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-family: "Ubuntu", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.faq-answer {
  margin: 0;
  line-height: 1.6;
}

.service-image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.service-image {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.service-image--wide {
  max-width: 700px;
  width: 100%;
}

.service-image-row--captioned {
  align-items: flex-start;
}

.service-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.service-figure figcaption {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-color);
}

/* Contact page */
.contact-subheading {
  margin: 12px 0 0;
  font-size: 1.3rem;
}

.staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 16px;
  flex: 1 1 260px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 20, 60, 0.18);
  background: rgba(255, 255, 255, 0.42);
}

.staff-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.staff-name {
  margin: 0;
  font-weight: 700;
}

.staff-title {
  margin: 2px 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.staff-email a {
  color: var(--text-color);
}

.contact-quote {
  position: relative;
  margin: 8px 0;
  padding: 8px 20px 8px 44px;
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid rgba(31, 34, 51, 0.3);
}

.contact-quote::before {
  content: "\201C";
  position: absolute;
  left: 4px;
  top: -6px;
  font-size: 2.4rem;
  font-style: normal;
  color: rgba(31, 34, 51, 0.35);
}

.contact-quote p {
  margin: 0 0 4px;
}

.contact-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  text-align: right;
  color: var(--text-muted);
}

.contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 16px 20px;
  flex: 1 1 260px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 20, 60, 0.18);
  background: rgba(255, 255, 255, 0.42);
}

.contact-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #4a5a9c;
}

.contact-info-label {
  margin: 0 0 4px;
  font-weight: 700;
}

.contact-cta {
  text-align: center;
  padding: 24px 0 4px;
}

.contact-cta p {
  margin: 0 0 12px;
  font-weight: 600;
}

.contact-cta-button {
  display: inline-block;
  background: #4a5a9c;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-cta-button:hover {
  background: #3b4a86;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 20, 60, 0.25);
}

.application-fieldset {
  border: 1px solid rgba(31, 34, 51, 0.2);
  border-radius: 16px;
  padding: 24px;
}

/*
  The grid layout lives on this inner wrapper rather than directly on the
  <fieldset>. Browsers apply a special auto-sizing algorithm to <fieldset>
  elements that can miscalculate height when the fieldset itself is also a
  grid/flex container, letting its content overflow the fieldset's box and
  overlap the next section. Isolating the grid on a plain <div> avoids that.
*/
.fieldset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.application-fieldset legend {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 10px;
  color: var(--text-color);
}

.fieldset-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fieldset-grid .form-row--wide {
  grid-column: 1 / -1;
}

/* Keeps two fields side by side as a pair regardless of the outer
   grid's column count (e.g. ZIP and Phone), so they stay inline even
   at the single-column mobile breakpoint. */
.form-row-inline-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/*
  Grid items default to min-width: auto, which lets long unbreakable
  content (e.g. long option text) push a track wider than its share of
  the grid and crowd/overlap the neighboring column. Allowing the row to
  shrink keeps inputs contained within their own grid cell.
*/
.fieldset-grid > * {
  min-width: 0;
}

.form-row-inline-group > * {
  min-width: 0;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.rate-table {
  grid-column: 1 / -1;
  border-collapse: collapse;
  width: 100%;
  max-width: 320px;
}

.rate-table th,
.rate-table td {
  border: 1px solid rgba(31, 34, 51, 0.2);
  padding: 8px 16px;
  text-align: left;
}

@media (max-width: 640px) {
  .fieldset-grid {
    grid-template-columns: 1fr;
  }
  .application-form {
    padding: 24px 20px;
  }
}

.spacer {
  height: 60vh;
}

@media (max-width: 860px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    padding: 12px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 24px rgba(30, 20, 60, 0.18);
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .nav-menu.open {
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    padding: 12px 20px 20px;
  }
  .nav-item {
    padding: 12px 10px;
    font-size: 0.95rem;
  }
  .nav-item--apply {
    text-align: center;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
  }
  .brand-text {
    display: none;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(115deg, #0a1f44 0%, #14203a 45%, #1c1c22 75%, #222222 100%);
  color: #ffffff;
  padding-top: 48px;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(-99%);
}

.footer-wave svg {
  width: 100%;
  height: 90px;
  display: block;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copyright {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-rcfe {
  padding-top: 32px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.footer-address {
  padding-top: 24px;
  text-align: center;
}

.footer-address p {
  margin: 0 0 6px;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-address p:last-child {
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.photo-gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.photo-gallery-item--wide {
  grid-column: 1 / -1;
}

.photo-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
}

.photo-gallery-item--wide img {
  height: 300px;
}

.photo-gallery-item figcaption {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: center;
}

.photo-gallery--rows {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.photo-gallery-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
  .photo-gallery--rows {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Events page */
.events-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 125px;
}

.events-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.calendar-card,
.events-list-card {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(4px);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-title {
  margin: 0;
  flex: 1;
}

.calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #8f7bd6, #5b8fd6);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(91, 143, 214, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.calendar-nav-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(91, 143, 214, 0.45);
}

.calendar-nav-btn svg {
  width: 18px;
  height: 18px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  aspect-ratio: 1 / 1;
  padding: 8px 4px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-color);
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 18px rgba(60, 40, 120, 0.18);
}

.calendar-day.other-month {
  opacity: 0.35;
  cursor: default;
}

.calendar-day.other-month:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.calendar-day.today {
  border: 4px solid #ffffff;
}

.calendar-day.today .day-number {
  font-weight: 700;
  font-size: 1.2rem;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #8f7bd6, #5b8fd6);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(91, 143, 214, 0.4);
}

.calendar-day.selected .day-number {
  color: #ffffff;
}

.day-number {
  font-size: 0.95rem;
}

.event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5b8fd6;
}

.calendar-day.selected .event-dot {
  background: #ffffff;
}

.events-list-card {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.events-list-title {
  margin: 0 0 4px;
}

.events-list-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.event-entry {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
  padding: 14px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-entry:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 18px rgba(60, 40, 120, 0.18);
}

.event-time {
  display: block;
  font-weight: 700;
  color: #5b8fd6;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-title {
  margin: 4px 0 2px;
  color: var(--text-color);
}

.event-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.no-events {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 860px) {
  .events-layout {
    grid-template-columns: 1fr;
  }
  .events-list-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .calendar-card,
  .events-list-card {
    padding: 22px 16px;
  }
  .calendar-day {
    border-radius: 8px;
  }
}
