/* Words of Life Bible Institute — page styles matching production WOLBI */

.page-wolbi {
  --wolbi-navy: #0b1c4d;
  --wolbi-yellow: #ffbb00;
  --wolbi-yellow-deep: #ffbb22;
  --wolbi-ink: #0f0e17;
  --wolbi-muted: #4a4a4a;
  --wolbi-gray: #e8e8e8;
  --wolbi-paper: #f5f5f5;
  --wolbi-serif: "Times New Roman", TimesNewRoman, Times, Baskerville, Georgia, serif;
  --wolbi-sans: Montserrat, "DM Sans", system-ui, sans-serif;
  --wolbi-header-h: 72px;
  margin: 0;
  font-family: var(--wolbi-sans);
  color: var(--wolbi-ink);
  background: #fff;
  line-height: 1.6;
}

.page-wolbi *,
.page-wolbi *::before,
.page-wolbi *::after {
  box-sizing: border-box;
}

.page-wolbi img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.page-wolbi a {
  color: inherit;
  text-decoration: none;
}

.page-wolbi .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wolbi-wrap {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.wolbi-wrap.wide {
  width: min(100% - 2.5rem, 1200px);
}

.wolbi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wolbi-yellow);
  color: #000;
  font-family: var(--wolbi-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 0;
  padding: 0.95rem 2.75rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.wolbi-btn:hover,
.wolbi-btn:focus-visible {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.wolbi-btn-nav {
  padding: 0.5rem 2.25rem;
  font-size: 0.8rem;
}

.wolbi-btn-lg {
  padding: 1rem 3rem;
  font-size: 1.05rem;
}

/* Header */
.wolbi-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(11, 28, 77, 0.08);
  animation: wolbi-fade-in 0.65s ease both;
}

.wolbi-nav-shell {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  min-height: var(--wolbi-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wolbi-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.wolbi-brand img {
  height: 48px;
  width: auto;
}

.wolbi-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.wolbi-nav a {
  color: var(--wolbi-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
}

.wolbi-nav a:hover,
.wolbi-nav a:focus-visible {
  color: var(--wolbi-navy);
}

.wolbi-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.wolbi-nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--wolbi-navy);
}

.wolbi-church-link {
  display: none;
}

/* Hero */
.wolbi-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.wolbi-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(80, 40, 20, 0.35) 0%, rgba(8, 20, 50, 0.55) 35%, rgba(8, 25, 70, 0.72) 100%),
    url("/images/wolbi/grad.jpg") center / cover no-repeat;
  transform: scale(1.08);
  animation: wolbi-hero-open 1.35s cubic-bezier(0.22, 1, 0.36, 1) both,
    wolbi-kenburns 20s ease-in-out 1.35s infinite alternate;
}

.wolbi-hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 1.25rem;
  max-width: 52rem;
}

.wolbi-hero-content > * {
  opacity: 0;
  animation: wolbi-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wolbi-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #f7f9fc;
  animation-delay: 0.28s;
}

.wolbi-hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-style: italic;
  line-height: 1.45;
  color: rgba(247, 249, 252, 0.95);
  animation-delay: 0.48s;
}

.wolbi-hero .wolbi-btn {
  animation-delay: 0.68s;
}

/* History */
.wolbi-history {
  background: var(--wolbi-gray);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.wolbi-history-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.wolbi-history-copy p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #111;
}

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

.wolbi-history-photo {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ccc;
}

.wolbi-history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

/* Vision */
.wolbi-vision {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.wolbi-vision-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#08194c9e, #08194c88),
    url("/images/wolbi/grad.jpg") center / cover no-repeat;
}

.wolbi-vision-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  max-width: 46rem;
  margin-inline: auto;
}

.wolbi-vision h2 {
  margin: 0 0 1.25rem;
  font-family: var(--wolbi-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wolbi-vision p {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
}

.wolbi-vision em {
  font-style: italic;
}

.wolbi-vision a.wolbi-accent {
  color: var(--wolbi-yellow);
  font-weight: 700;
}

.wolbi-vision .wolbi-btn {
  margin-top: 1.25rem;
}

/* Programs */
.wolbi-programs {
  background: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.wolbi-programs h2 {
  margin: 0 0 0.4rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--wolbi-navy);
}

.wolbi-programs-sub {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--wolbi-ink);
}

.wolbi-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.wolbi-tab {
  background: none;
  border: 0;
  padding: 0.5rem 0.25rem;
  font-family: var(--wolbi-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wolbi-navy);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.wolbi-tab.is-active,
.wolbi-tab[aria-selected="true"] {
  border-bottom-color: var(--wolbi-navy);
}

.wolbi-tab-panel {
  display: none;
  text-align: left;
}

.wolbi-tab-panel.is-active {
  display: block;
  animation: wolbi-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wolbi-tab-panel.is-active.wolbi-program-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.wolbi-program-crest {
  display: grid;
  place-items: center;
}

.wolbi-program-crest img {
  width: min(100%, 320px);
}

.wolbi-program-copy h3 {
  margin: 0 0 1rem;
  font-family: var(--wolbi-sans);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--wolbi-navy);
}

.wolbi-program-copy p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--wolbi-ink);
}

.wolbi-depts {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  gap: 2rem;
}

.wolbi-depts li {
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}

.wolbi-depts li::before {
  content: "• ";
}

/* Courses */
.wolbi-courses {
  background: var(--wolbi-paper);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.wolbi-courses h2 {
  margin: 0 0 2.25rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.wolbi-course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.wolbi-course-box {
  border: 1px solid #000;
  padding: 1.75rem 1.5rem;
  background: transparent;
}

.wolbi-course-item {
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #111;
}

.wolbi-course-item:last-child {
  margin-bottom: 0;
}

.wolbi-course-item strong {
  font-weight: 700;
}

.wolbi-course-item em {
  font-style: italic;
}

.wolbi-courses .wolbi-btn {
  margin-top: 0.5rem;
}

/* Staff */
.wolbi-staff {
  background: var(--wolbi-yellow-deep);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  color: var(--wolbi-ink);
}

.wolbi-staff h2 {
  margin: 0 0 0.5rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

.wolbi-staff-lead {
  margin: 0 0 2.25rem;
  font-size: 1.05rem;
}

.wolbi-staff-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.wolbi-staff-grid h3 {
  margin: 0 0 0.25rem;
  font-family: var(--wolbi-sans);
  font-size: 1.05rem;
  font-weight: 700;
}

.wolbi-staff-grid p {
  margin: 0;
  font-size: 0.95rem;
}

/* Fee CTA */
.wolbi-fee {
  background: var(--wolbi-navy);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.wolbi-fee-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wolbi-fee h2 {
  margin: 0;
  font-family: var(--wolbi-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

/* Calendar */
.wolbi-calendar {
  background: #eef1f5;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.wolbi-calendar h2 {
  margin: 0 0 0.75rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--wolbi-navy);
}

.wolbi-calendar-lead {
  margin: 0 auto 2rem;
  max-width: 40rem;
  font-size: 1.02rem;
  color: var(--wolbi-ink);
}

.wolbi-cal-body {
  text-align: left;
  max-width: 820px;
  margin: 0 auto;
}

.wolbi-cal-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--wolbi-navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wolbi-cal-body h3 img {
  width: 40px;
  height: auto;
}

.wolbi-cal-body > p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.wolbi-quarters {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2rem;
}

.wolbi-quarters li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.98rem;
  text-align: left;
}

.wolbi-check {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  color: var(--wolbi-navy);
}

/* Schedule */
.wolbi-schedule {
  background: linear-gradient(180deg, #fff 0%, #f8ebe3 100%);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.wolbi-schedule h2 {
  margin: 0 0 1.5rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--wolbi-navy);
}

.wolbi-schedule-badge {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto 2rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--wolbi-navy);
  font-weight: 700;
  color: var(--wolbi-navy);
}

.wolbi-schedule-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
  text-align: left;
}

.wolbi-schedule-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(11, 28, 77, 0.15);
}

.wolbi-schedule-list time {
  font-weight: 600;
  color: var(--wolbi-ink);
  font-size: 0.95rem;
}

.wolbi-schedule-list strong {
  display: block;
  color: var(--wolbi-navy);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.wolbi-schedule-list span {
  font-size: 0.9rem;
  color: var(--wolbi-muted);
}

/* FAQ */
.wolbi-faq {
  background: #f3f5f8;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.wolbi-faq h2 {
  margin: 0 0 0.35rem;
  font-family: var(--wolbi-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--wolbi-navy);
}

.wolbi-faq-sub {
  margin: 0 0 2rem;
  color: #7a8494;
  font-size: 1rem;
}

.wolbi-faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.wolbi-faq-item {
  border: 0;
  border-bottom: 1px solid rgba(11, 28, 77, 0.12);
}

.wolbi-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--wolbi-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--wolbi-navy);
}

.wolbi-faq-item summary::-webkit-details-marker {
  display: none;
}

.wolbi-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--wolbi-navy);
  line-height: 1;
}

.wolbi-faq-item[open] summary::after {
  content: "–";
}

.wolbi-faq-item p {
  margin: 0;
  padding: 0 0 1.25rem;
  color: #2b3442;
  font-size: 0.98rem;
  line-height: 1.65;
}

.wolbi-faq-item a {
  color: var(--wolbi-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.wolbi-footer {
  background: #e8e8e8;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  color: var(--wolbi-muted);
}

.wolbi-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.wolbi-footer-top img {
  height: 48px;
  width: auto;
}

.wolbi-footer-contact {
  flex: 1;
  font-size: 0.95rem;
  color: var(--wolbi-ink);
}

.wolbi-footer-contact a {
  color: var(--wolbi-navy);
  font-weight: 600;
}

.wolbi-footer-home {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wolbi-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wolbi-footer-bottom {
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .wolbi-nav-toggle {
    display: block;
  }

  .wolbi-nav {
    position: fixed;
    inset: var(--wolbi-header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(11, 28, 77, 0.1);
  }

  .wolbi-nav.open {
    display: flex;
  }

  .wolbi-nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(11, 28, 77, 0.06);
    font-size: 1rem;
  }

  .wolbi-nav .wolbi-btn-nav {
    margin-top: 0.75rem;
    justify-content: center;
  }

  .wolbi-history-grid,
  .wolbi-tab-panel.is-active.wolbi-program-panel,
  .wolbi-course-grid,
  .wolbi-staff-grid,
  .wolbi-quarters {
    grid-template-columns: 1fr;
  }

  .wolbi-program-crest {
    order: -1;
  }

  .wolbi-depts {
    columns: 1;
  }

  .wolbi-fee-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .wolbi-footer-top {
    flex-direction: column;
    text-align: center;
  }

  .wolbi-schedule-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 600px) {
  .wolbi-brand img {
    height: 40px;
  }

  .wolbi-hero {
    min-height: min(70vh, 520px);
  }

  .wolbi-course-box {
    padding: 1.25rem 1rem;
  }

  .wolbi-schedule-badge {
    flex-direction: column;
    text-align: center;
  }
}

/* Open / reveal motion */
.wolbi-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--wolbi-delay, 0s);
}

.wolbi-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.wolbi-reveal-left {
  transform: translateX(-32px);
}

.wolbi-reveal-right {
  transform: translateX(32px);
}

.wolbi-reveal-scale {
  transform: translateY(18px) scale(0.96);
}

.wolbi-reveal.is-visible.wolbi-reveal-left,
.wolbi-reveal.is-visible.wolbi-reveal-right,
.wolbi-reveal.is-visible.wolbi-reveal-scale {
  transform: none;
}

@keyframes wolbi-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wolbi-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wolbi-hero-open {
  from {
    transform: scale(1.12);
    opacity: 0.65;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes wolbi-kenburns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes wolbi-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wolbi-btn {
    transition: none;
  }

  .wolbi-header,
  .wolbi-hero-media,
  .wolbi-hero-content > *,
  .wolbi-tab-panel.is-active {
    animation: none !important;
  }

  .wolbi-hero-media {
    transform: none;
    opacity: 1;
  }

  .wolbi-hero-content > * {
    opacity: 1;
    transform: none;
  }

  .wolbi-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
