.edu-card a:focus-visible::after {
  outline: 2px solid #c7a77b;
  outline-offset: 3px;
  border-radius: 1rem;
}

.edu-prose p + p {
  margin-top: 1.1em;
}

.edu-prose a {
  color: #dfc9a7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edu-prose ul,
.edu-prose ol {
  margin-top: 1em;
  padding-left: 1.2em;
  list-style: disc;
}

.edu-prose h2,
.edu-prose h3 {
  margin-top: 1.4em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.05;
  color: #f5f2eb;
}

/* Accordion */
.edu-acc-icon svg {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-edu-acc-item][data-open] .edu-acc-icon {
  border-color: rgb(199 167 123 / 0.55);
  color: #dfc9a7;
}

[data-edu-acc-item][data-open] .edu-acc-icon svg {
  transform: rotate(45deg);
}

.edu-acc-panel:not([hidden]) {
  animation: edu-acc-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes edu-acc-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Registration form (extends .usm-form from steps.css) */
.edu-form .wpcf7-form > label,
.edu-form .edu-form-grid {
  margin: 0;
}

.edu-form .edu-form-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .edu-form .edu-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.edu-form .edu-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.edu-form .wpcf7-acceptance label {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgb(245 242 235 / 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
}

.edu-form .wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: #c7a77b;
}

.edu-form .wpcf7-acceptance a {
  color: #dfc9a7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edu-form .wpcf7-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.edu-form .wpcf7-spinner {
  margin: 0.75rem 0 0;
}

.edu-form .wpcf7-form.sent .wpcf7-response-output {
  border-color: rgb(199 167 123 / 0.8) !important;
  background: rgb(199 167 123 / 0.12);
}

.edu-form .wpcf7-form.invalid .wpcf7-response-output,
.edu-form .wpcf7-form.failed .wpcf7-response-output,
.edu-form .wpcf7-form.spam .wpcf7-response-output,
.edu-form .wpcf7-form.aborted .wpcf7-response-output {
  border-color: rgb(226 183 164 / 0.6) !important;
}

.edu-form .wpcf7-not-valid {
  border-color: rgb(226 183 164 / 0.7) !important;
}

.edu-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sticky mobile CTA */
.edu-sticky-cta {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.edu-sticky-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1023px) {
  body:has([data-edu-sticky]) .site-footer {
    padding-bottom: 6.5rem;
  }
}

/* Lightbox */
.edu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem;
  background: rgb(10 10 9 / 0.94);
  backdrop-filter: blur(12px);
  animation: booking-backdrop 0.3s ease both;
}

.edu-lightbox[hidden] {
  display: none;
}

.edu-lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1200px, 100%);
  max-height: 100%;
}

.edu-lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  border-radius: 1rem;
  object-fit: contain;
  animation: booking-panel 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.edu-lightbox figcaption {
  margin-top: 1rem;
  color: rgb(245 242 235 / 0.65);
  font-size: 0.875rem;
  text-align: center;
}

.edu-lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: #f5f2eb;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.edu-lightbox-btn:hover {
  border-color: rgb(199 167 123 / 0.6);
  background: rgb(255 255 255 / 0.12);
}

.edu-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.edu-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.edu-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.edu-lightbox-count {
  position: absolute;
  top: 1.6rem;
  left: 1.25rem;
  color: rgb(245 242 235 / 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

@media (max-width: 639px) {
  .edu-lightbox-prev,
  .edu-lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-acc-panel:not([hidden]),
  .edu-lightbox,
  .edu-lightbox img {
    animation: none;
  }

  .edu-sticky-cta {
    transition: none;
  }
}
