/* ===============================================================
   THE MARTECH SUMMIT — EVENT TICKETS & PRICING PAGE
   Reference: https://grandconference.themegoods.com/v5/buy-tickets/
   Supports 1 to 5 Admin-configured price tiers + Below-tiers Video/Banner space.
   =============================================================== */

body.single-tribe_events.wff-event-tickets-page #wrapper,
body.single-tribe_events.wff-event-tickets-page #wrapper.hasbg,
body.single-tribe_events.wff-event-tickets-page #wrapper.hasbg.transparent {
  background-color: #ffffff;
  padding-top: 0 !important;
}

.wff-tickets-main,
.wff-tickets-main * {
  box-sizing: border-box;
}

.wff-tickets-main {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #000000;
  background-color: #ffffff;
  padding: 56px 0 80px;
}

.wff-tickets-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ===============================================================
   PRICE TIERS GRID (1 TO 5 COLUMNS)
   Matches GrandConference v5 /buy-tickets/ card appearance
   =============================================================== */

.wff-tickets-pricing-section {
  padding: 10px 0 40px;
}

.wff-tickets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.wff-tickets-grid--cols-1 {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.wff-tickets-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
}

.wff-tickets-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wff-tickets-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wff-tickets-grid--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Individual Price Card */
.wff-ticket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* When at least one card is featured, push non-featured cards down by 40px
   so the white card top aligns with the featured card below its pink RECOMMENDED bar,
   matching the reference screenshot 1:1. */
.wff-tickets-grid.has-featured-tier .wff-ticket-card:not(.is-featured) {
  padding-top: 40px;
}

.wff-ticket-card.is-featured {
  border: 1px solid #E63371;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.12);
  z-index: 2;
  background: #ffffff;
}

/* Pink RECOMMENDED top bar */
.wff-ticket-card__recommend {
  height: 40px;
  line-height: 40px;
  color: #ffffff;
  background-color: #E63371;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.wff-ticket-card__border {
  background: #ffffff;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.wff-ticket-card:not(.is-featured) .wff-ticket-card__border {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.2);
}

.wff-ticket-card__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 24px !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  border: 0;
}

.wff-ticket-card__list li {
  text-align: center;
  list-style: none !important;
}

/* Title & Subtitle Row */
.wff-ticket-card__title-row {
  padding: 40px 0 0 0 !important;
}

.wff-ticket-card__title {
  margin: 0;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #000000 !important;
  letter-spacing: -0.3px;
}

.wff-ticket-card__desc {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-transform: none;
  line-height: 1.45;
  margin-top: 15px;
}

/* Features and perks */
.wff-ticket-card__features {
  padding: 0 0 18px !important;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 25px;
}

.wff-ticket-card__features p {
  margin: 0 0 15px 0;
  padding: 0;
}

.wff-ticket-card__list .wff-ticket-card__features ul {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 0;
}

.wff-ticket-card__list .wff-ticket-card__features ul li {
  margin-bottom: 15px;
}

.wff-ticket-card__features img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.wff-ticket-card__features a {
  text-decoration: underline;
}

/* Prices */
.wff-ticket-card__price-row {
  display: grid;
  gap: 6px;
  margin: 12px 0 0 0;
  color: #000;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.wff-ticket-card__previous-price {
  font-size: 25px;
  text-decoration: line-through;
  font-weight: 700;
  color: #666;
}

.wff-ticket-card__price {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: #E63371;
}

/* Button Row */
.wff-ticket-card__list .wff-ticket-card__button-row {
  margin-top: auto !important;
  padding: 10px 0 40px 0 !important;
}

.wff-ticket-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: #E63371;
  border: 1px solid #E63371;
  border-radius: 5px;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 25px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.wff-ticket-card__btn:hover,
.wff-ticket-card__btn:focus {
  background-color: #fff;
  color: #E63371 !important;
}

.wff-ticket-card__btn svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

/* Slightly compact typography when 4 or 5 price tiers are displayed side-by-side */
.wff-tickets-grid--cols-4 .wff-ticket-card__title,
.wff-tickets-grid--cols-5 .wff-ticket-card__title {
  font-size: 21px !important;
}

.wff-tickets-grid--cols-5 .wff-ticket-card__list {
  padding: 0 16px !important;
}

.wff-tickets-grid--cols-5 .wff-ticket-card__features {
  font-size: 13.5px;
}

/* ===============================================================
   BELOW-TIERS MEDIA / PROMO SPACE (YOUTUBE VIDEO & BANNER)
   =============================================================== */

.wff-tickets-promo-section {
  margin-top: 48px;
  padding-top: 56px;
  border-top: 1px solid #EFE9EE;
}

.wff-tickets-video-block {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.wff-tickets-video-block img {
  border-radius: 20px;
}

.wff-tickets-promo-header {
  margin-bottom: 28px;
}

.wff-tickets-promo-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #161616 !important;
  letter-spacing: -0.3px;
}

.wff-tickets-promo-subtitle {
  margin: 15px auto 0 auto;
  max-width: 680px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 130%;
  padding: 0;
}

.wff-tickets-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #161616;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.wff-tickets-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Dummy Promo Banner below or instead of video */
.wff-tickets-banner-block {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1E1C24;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 44px 48px;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.wff-tickets-banner-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 22, 22, 0.88) 0%, rgba(230, 51, 113, 0.78) 100%);
  z-index: 1;
}

.wff-tickets-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wff-tickets-banner-text {
  flex: 1 1 520px;
}

.wff-tickets-banner-text h3 {
  margin: 0 0 8px 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
}

.wff-tickets-banner-text p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.wff-tickets-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #E63371 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.wff-tickets-banner-btn:hover,
.wff-tickets-banner-btn:focus {
  background: #161616;
  color: #ffffff !important;
}

/* ===============================================================
   RESPONSIVE BREAKPOINTS
   =============================================================== */

@media (max-width: 1100px) {

  .wff-tickets-grid--cols-4,
  .wff-tickets-grid--cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .wff-tickets-grid--cols-4.has-featured-tier .wff-ticket-card:not(.is-featured),
  .wff-tickets-grid--cols-5.has-featured-tier .wff-ticket-card:not(.is-featured) {
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .wff-tickets-grid>.wff-ticket-card.is-featured {
    margin-block: -20px;
  }
}

@media (max-width: 767px) {
  .wff-tickets-main {
    padding: 36px 0 56px;
  }

  .wff-tickets-container {
    width: calc(100% - 30px);
  }

  .wff-tickets-grid,
  .wff-tickets-grid--cols-2,
  .wff-tickets-grid--cols-3,
  .wff-tickets-grid--cols-4,
  .wff-tickets-grid--cols-5 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wff-tickets-grid.has-featured-tier .wff-ticket-card:not(.is-featured) {
    padding-top: 0;
  }

  .wff-tickets-banner-block {
    padding: 28px 24px;
  }

  .wff-tickets-promo-title {
    font-size: 26px !important;
  }
}