/* =========================================================
   STATIC CLASSES WITH BLUE BOX
   Matches Topics & Classes speaker styling
========================================================= */

.static-classes-with-blue-box {
  padding: 60px 0;
}

.static-classes-with-blue-box .tac__inner {
  width: 90%;
  margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.static-classes-with-blue-box .tac__title {
  font-size: 40px;
  font-weight: 900;
  margin: 0 !important;
  color: #000;
}

.static-classes-with-blue-box .tac__copy {
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 80px;
}

/* =========================================================
   SPEAKER + CLASSES
========================================================= */

.static-classes-with-blue-box .tac__speakerBlock {
  margin-bottom: 80px;
}

/* Match first block speaker chip */
.static-classes-with-blue-box .tac__speaker {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
  background: #fff;
  position: relative;
  z-index: 999;
  bottom: -50px;
  left: 20px;
  padding-right: 20px;
}

.static-classes-with-blue-box .tac__speaker-photo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #52287e;
  background: #fff;
}

.static-classes-with-blue-box .tac__speaker-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.static-classes-with-blue-box .tac__speaker-name {
  margin: 0;
  font-weight: 900;
  color: #000;
}

.static-classes-with-blue-box .tac__speaker-creds {
  margin: 0;
  font-weight: 900;
  color: #000;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif;
}

.static-classes-with-blue-box .tac__speaker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.static-classes-with-blue-box .tac__speaker-link {
  font-weight: 900;
  color: #52287e;
  text-decoration: none;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif;
}

.static-classes-with-blue-box .tac__speaker-link:hover {
  color: #52287e;
}

.static-classes-with-blue-box .tac__speaker-link--video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-transform: none;
  color: #52287E;
  font-weight: 900;
}

.static-classes-with-blue-box .tac__speaker-link--video:hover,
.static-classes-with-blue-box .tac__speaker-link--video:focus {
  background: none;
  color: #52287E;
}

.static-classes-with-blue-box .tac__speaker-video-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

/* =========================================================
   CLASS LIST
========================================================= */

.static-classes-with-blue-box .tac__class-list {
  border: 2px solid #52287e;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding-top: 50px;
}

.static-classes-with-blue-box .tac__class {
  padding: 18px 20px;
  background: #fff;
}

.static-classes-with-blue-box .tac__class.is-alt {
  background: #f1edf8;
}

.static-classes-with-blue-box .tac__class-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #52287e;
}

.static-classes-with-blue-box .tac__class-copy {
  font-size: 20px;
  line-height: 32px;
  color: #000;
}

/* =========================================================
   BLUE BOX
========================================================= */

.static-classes-with-blue-box .cme-blue-box {
  background-image: url("/wp-content/themes/skinbonescme/assets/images/Blue.svg");
  margin: 0 auto 40px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.static-classes-with-blue-box .cme-blue-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.static-classes-with-blue-box .cme-blue-box__inner {
  position: relative;
  z-index: 1;
}

.static-classes-with-blue-box .cme-blue-box__title {
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 18px 0;
  text-transform: uppercase;
}

.static-classes-with-blue-box .cme-blue-box__items {
  display: flex;
  justify-content:space-between;
  gap: 18px;
}

.static-classes-with-blue-box .cme-blue-box__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.static-classes-with-blue-box .cme-blue-box__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

.static-classes-with-blue-box .cme-blue-box__item-title {
  font-family: 'Lato', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}

/* =========================================================
   VIDEO LIGHTBOX
========================================================= */

.tac-video-lightbox:not(.is-open) {
  display: none !important;
}

.tac-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: none !important;
}

.tac-video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.tac-video-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(1000px, 90vw);
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  max-height: 90vh;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.tac-video-lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  border: 0;
  background: #52287E;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.tac-video-lightbox__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tac-video-lightbox__frame-wrap iframe,
.tac-video-lightbox__frame-wrap video,
.tac-video-lightbox__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html.tac-video-lightbox-open,
body.tac-video-lightbox-open {
  overflow: hidden;
}

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

@media (max-width: 1500px) {
  .static-classes-with-blue-box .tac__speaker-photo {
    width: 90px;
    height: 90px;
  }

  .static-classes-with-blue-box .tac__speaker-name {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .static-classes-with-blue-box .tac__title {
    font-size: 28px;
  }

  .static-classes-with-blue-box .tac__copy {
    font-size: 16px;
    margin-bottom: 50px;
  }

  .static-classes-with-blue-box .tac__speaker-name {
    font-size: 20px;
  }

  .static-classes-with-blue-box .tac__class-title {
    font-size: 18px;
  }

  .static-classes-with-blue-box .tac__class-copy {
    font-size: 16px;
    line-height: 1.6;
  }

  .static-classes-with-blue-box .cme-blue-box__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .static-classes-with-blue-box .cme-blue-box {
    padding: 24px;
  }

  .static-classes-with-blue-box .cme-blue-box__title {
    font-size: 22px;
  }

  .static-classes-with-blue-box .cme-blue-box__item-title {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .static-classes-with-blue-box {
    padding-top: 40px;
  }

  .static-classes-with-blue-box .tac__title {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }

  .static-classes-with-blue-box .tac__copy {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .static-classes-with-blue-box .cme-blue-box__items {
    display: flex;
    flex-wrap: wrap;
  }

  .static-classes-with-blue-box .cme-blue-box__item-title {
    font-size: 16px !important;
    font-weight: 600;
  }

  .static-classes-with-blue-box .tac__speakerBlock {
    margin-bottom: 20px;
  }

  .static-classes-with-blue-box .tac__speaker {
    align-items: flex-start;
    padding-right: 0;
  }

  .static-classes-with-blue-box .tac__speaker-photo {
    width: 60px;
    height: 60px;
  }

  .static-classes-with-blue-box .tac__speaker-name {
    font-size: 18px;
  }

  .static-classes-with-blue-box .tac__speaker-creds {
    max-width: 200px;
  }

  .static-classes-with-blue-box .tac__speaker-link {
    font-size: 14px;
  }

  .static-classes-with-blue-box .tac__class-title {
    font-size: 15px;
  }

  .static-classes-with-blue-box .tac__class-copy {
    font-size: 16px;
    line-height: 1.6;
  }
}