[x-cloak] { display: none !important; }

.tefcpt-calendar-section,
.tefcpt-team-section,
.tefcpt-zoom-section {
  font-family: 'Poppins', sans-serif;
}

/* ── Intro / services section ──────────────────────────────────────────── */

.tefcpt-intro-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #0b0b0b;
  margin: 0 0 1.75rem;
}

.tefcpt-services-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: #6f0013;
  margin: 0 0 0.5rem;
}

.tefcpt-services-subtitle {
  font-size: 1.1rem;
  color: #0b0b0b;
  margin: 0 0 2rem;
}

.tefcpt-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
}

@media (max-width: 640px) {
  .tefcpt-services-grid {
    grid-template-columns: 1fr;
  }
}

.tefcpt-service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tefcpt-service-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.tefcpt-service-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b0b0b;
  margin: 0 0 0.3rem;
}

.tefcpt-service-desc {
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  line-height: 1.55;
}

/* ── Section label ─────────────────────────────────────────────────────── */

.tefcpt-filter-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #6f0013;
  margin-top: 4rem;
  margin-bottom: 1.25rem;
}

/* ── Filter rows ───────────────────────────────────────────────────────── */

.tefcpt-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tefcpt-filter-label {
  font-weight: 700;
  font-size: 1rem;
  color: #0b0b0b;
  white-space: nowrap;
}

.tefcpt-filter-divider {
  width: 2px;
  height: 1.5rem;
  background: #ffc700;
  flex-shrink: 0;
}

/* ── Pills ─────────────────────────────────────────────────────────────── */

.tefcpt-pill {
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  border: 1.5px solid #222;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  background: #fff;
  color: #222;
  line-height: 1.4;
}

.tefcpt-pill:hover {
  background: #f0f0f0;
}

.tefcpt-pill.active {
  background: #6f0013;
  border-color: #6f0013;
  color: #fff;
}

/* ── Date range tabs (week picker) ─────────────────────────────────────── */

.tefcpt-date-tab {
  padding: 0.25rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: #222;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
  transition: font-weight 0.1s;
}

.tefcpt-date-tab:hover {
  color: #000;
}

.tefcpt-date-tab.active {
  font-weight: 700;
  border-bottom-color: #ffc700;
}

/* ── Time slider row ───────────────────────────────────────────────────── */

.tefcpt-slider-row {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}

.tefcpt-time-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b0b0b;
  white-space: nowrap;
  min-width: 3.5rem;
  text-align: center;
}

#tefcpt-time-slider {
  flex: 1;
  max-width: 28rem;
}

/* ── noUiSlider theme overrides ────────────────────────────────────────── */

#tefcpt-time-slider.noUi-target {
  background: #e5e7eb;
  border: none;
  box-shadow: none;
  height: 6px;
  border-radius: 9999px;
}

#tefcpt-time-slider .noUi-connect {
  background: #ffc700;
}

#tefcpt-time-slider .noUi-handle {
  width: 20px;
  height: 20px;
  top: -7px;
  right: -10px;
  border-radius: 50%;
  background: #6f0013;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: grab;
}

#tefcpt-time-slider .noUi-handle:active {
  cursor: grabbing;
}

#tefcpt-time-slider .noUi-handle::before,
#tefcpt-time-slider .noUi-handle::after {
  display: none;
}

/* ── No-results state ──────────────────────────────────────────────────── */

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* ── Event grid ────────────────────────────────────────────────────────── */

.tefcpt-event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .tefcpt-event-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Event cards ───────────────────────────────────────────────────────── */

/*
 * Gradient border trick: the card has a transparent border; the background
 * paints white inside the padding-box and the gradient into the border-box.
 * On hover, only the gradient fill remains, giving the seamless transition.
 */
.tefcpt-card {
  border: 4px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(129deg, rgb(255, 199, 0) 0%, rgb(220, 0, 32) 145%) border-box;
  border-radius: 25px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.tefcpt-card:hover,
.tefcpt-card:focus-visible {
  background: linear-gradient(129deg, rgb(255, 199, 0) 0%, rgb(220, 0, 32) 145%) border-box;
  color: #fff;
}

.tefcpt-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: inherit;
}

.tefcpt-card-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin: 0;
  color: inherit;
}

.tefcpt-card-time {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: inherit;
}

.tefcpt-card-rsvp {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f88300;
  text-decoration: none;
  margin-top: auto;
}

.tefcpt-card:hover .tefcpt-card-rsvp,
.tefcpt-card:focus-visible .tefcpt-card-rsvp {
  color: #fff;
}

/* ── Shared section heading ────────────────────────────────────────────── */

.tefcpt-section-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #6f0013;
  margin: 0 0 1.5rem;
}

/* ── Team section ──────────────────────────────────────────────────────── */

.tefcpt-team-section {
  background: #fff;
}

.tefcpt-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.tefcpt-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 149px;
}

.tefcpt-team-photo {
  width: 149px;
  height: 149px;
  border-radius: 50%;
  object-fit: cover;
}

.tefcpt-team-photo--placeholder {
  background: #e5e7eb;
}

.tefcpt-team-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.5rem 0 0;
  color: #0b0b0b;
  text-align: center;
}

.tefcpt-team-role {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #555;
  margin: 0.2rem 0 0;
  text-align: center;
}

/* ── Zoom section ──────────────────────────────────────────────────────── */

.tefcpt-zoom-section {
  background: #fff;
}

.tefcpt-zoom-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.tefcpt-zoom-text {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #0b0b0b;
  margin: 0;
  min-width: 200px;
}

.tefcpt-zoom-text a {
  text-decoration: underline;
  color: inherit;
}

.tefcpt-zoom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #495eff;
  border-radius: 39px;
  padding: 1.25rem 1.75rem;
  color: #495eff;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  min-width: 140px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.tefcpt-zoom-btn:hover {
  background: #495eff;
  color: #fff;
}

.tefcpt-zoom-btn span:first-child {
  font-weight: 700;
  font-size: 1.2rem;
}

.tefcpt-zoom-btn span:last-child {
  font-size: 0.9rem;
}

/* ── Appointments section ──────────────────────────────────────────────── */

.tefcpt-appt-section,
.tefcpt-appt-section p,
.tefcpt-appt-section h3,
.tefcpt-appt-section a {
  font-family: 'Poppins', sans-serif;
}

/* ── Remove extra space above footer on page 2068 ──────────────────────── */

body.page-id-2068 footer,
body.page-id-2068 footer.sitewide-footer {
  margin-top: 0 !important;
  padding-top: 1.5rem !important;
}

body.page-id-2068 .tefcpt-appt-section {
  padding-bottom: 0 !important;
}

body.page-id-2068 .tefcpt-appt-section .interior {
  padding-bottom: 0 !important;
}
