/* Free tools — Craig Proctor layout */

/* —— Dark hero banner (webinars / reports index) —— */
.ft-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: #0e2b8d;
  background-image:
    linear-gradient(rgba(14, 43, 141, 0.68), rgba(14, 43, 141, 0.82)),
    url("/images/sc-banner.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ft-hero h2 {
  color: #fff;
}

.ft-hero-lead {
  position: relative;
  z-index: 1;
  padding: 48px 20px 28px;
  max-width: 920px;
  margin: 0 auto;
}

.ft-hero-lead h2 {
  margin: 0;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.35;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.ft-hero-title {
  position: relative;
  z-index: 1;
  padding: 24px 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.ft-hero-title h2 {
  margin: 0 0 14px;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.ft-hero-title hr {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #fff;
}

/* —— Main grid container —— */
.ft-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.ft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* —— Report cards (image + button side by side) —— */
.ft-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.ft-card-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.ft-card-cover {
  display: block;
  border-radius: 2px;
  overflow: hidden;
  background: #111;
}

.ft-card-cover img {
  display: block;
  width: 99%;
  max-width: 100%;
  height: auto;
}

.ft-card-action {
  text-align: center;
  font-size: 0.88rem !important;
  padding: 10px 12px !important;
  line-height: 1.35;
  white-space: normal;
}

.ft-card-desc {
  margin: 0;
  padding: 0 4px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}

/* —— Webinar cards (Craig: image → text → centered button) —— */
.ft-card--webinar {
  padding: 16px;
}

.ft-card--webinar .ft-card-cover {
  margin-bottom: 0;
}

.ft-card-video {
  margin: 0 0 12px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.ft-card-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: #000;
}

.ft-card--webinar .ft-card-desc {
  padding: 8px 4px 12px;
}

.ft-card-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 4px;
}

.ft-btn-watch {
  display: inline-block;
  background: #007fff;
  color: #fff !important;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.ft-btn-watch:hover {
  background: #0066cc;
  color: #fff;
}

.ft-card-play-link {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.ft-card-play-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.ft-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.ft-card-play-link:hover .ft-play-badge,
.ft-card-play-link:focus-visible .ft-play-badge {
  opacity: 1;
  background: rgba(0, 0, 0, 0.38);
}

.ft-play-badge::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.ft-card-play-btn:hover .ft-play-badge,
.ft-card-play-btn:focus-visible .ft-play-badge {
  opacity: 1;
  background: rgba(0, 0, 0, 0.38);
}

.ft-card-footer .ft-btn-watch {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ft-lang-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #f4f7fb;
  border-left: 3px solid #2344a3;
  border-radius: 0 4px 4px 0;
  color: #555;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .ft-grid {
    grid-template-columns: 1fr;
  }

  .ft-card-top {
    grid-template-columns: 1fr;
  }

  .ft-btn-watch {
    display: block;
    width: 100%;
    font-size: 0.95rem;
  }
}
