.wa-page-modules,
.wa-page-modules * {
  box-sizing: border-box;
}

.wa-page-modules {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 28px;
  padding: 24px 0;
  color: #070707;
  font-family: inherit;
}

.wa-pm-panel {
  min-width: 0;
}

.wa-pm-panel h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  position: relative;
}

.wa-pm-panel h2:after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: #f36b21;
  border-radius: 99px;
  margin-top: 8px;
}

.wa-pm-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.wa-pm-readall {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.wa-pm-readall span,
.wa-pm-event-item p span {
  display: inline-block;
  margin-left: 5px;
  transition: transform .2s ease;
}

.wa-pm-readall:hover span,
.wa-pm-event-item:hover p span {
  transform: translateX(4px);
}

.wa-pm-mag-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(210px, .95fr);
  gap: 18px;
}

.wa-pm-featured,
.wa-pm-side-item,
.wa-pm-event-item,
.wa-pm-episode {
  color: inherit;
  text-decoration: none;
}

.wa-pm-featured-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9.8;
  background: #eee;
}

.wa-pm-featured-img img,
.wa-pm-side-img img,
.wa-pm-event-img img,
.wa-pm-episode-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.wa-pm-featured:hover img,
.wa-pm-side-item:hover img,
.wa-pm-event-item:hover img,
.wa-pm-episode:hover img {
  transform: scale(1.04);
}

.wa-pm-featured-img span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 4px;
}

.wa-pm-featured h3 {
  font-size: 26px;
  line-height: 1.06;
  font-weight: 850;
  margin: 16px 0 8px;
}

.wa-pm-featured p {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  color: #333;
}

.wa-pm-side-list {
  display: flex;
  flex-direction: column;
}

.wa-pm-side-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 13px;
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.wa-pm-side-item:last-child {
  margin-bottom: 0;
}

.wa-pm-side-img,
.wa-pm-event-img,
.wa-pm-episode-img {
  border-radius: 7px;
  overflow: hidden;
  background: #eee;
}

.wa-pm-side-img {
  aspect-ratio: 1 / .82;
}

.wa-pm-side-item span,
.wa-pm-episode span {
  display: block;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.wa-pm-side-item h4,
.wa-pm-event-item h4,
.wa-pm-episode h4 {
  font-size: 17px;
  line-height: 1.14;
  font-weight: 800;
  margin: 0;
}

.wa-pm-events,
.wa-pm-podcast {
  border-left: 1px solid rgba(0,0,0,.12);
  padding-left: 28px;
}

.wa-pm-events > h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  margin: -6px 0 15px;
}

.wa-pm-event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wa-pm-event-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.wa-pm-event-img {
  aspect-ratio: 1 / 1;
}

.wa-pm-event-item p {
  margin: 7px 0 0;
  font-size: 13px;
  color: #333;
  line-height: 1.2;
}

.wa-pm-black-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #070707;
  color: #fff !important;
  text-decoration: none;
  border-radius: 7px;
  padding: 13px 16px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, opacity .2s ease;
}

.wa-pm-black-btn:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.wa-pm-podcast-card {
  display: block;
  position: relative;
  min-height: 250px;
  border-radius: 9px;
  overflow: hidden;
  background-color: #111;
  background-size: cover;
  background-position: center;
  color: #fff !important;
  text-decoration: none;
}

.wa-pm-podcast-overlay {
  min-height: 250px;
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.72));
}

.wa-pm-podcast-card h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 8px;
  font-weight: 800;
}

.wa-pm-podcast-card p {
  color: #fff;
  margin: 0 0 18px;
  font-size: 14px;
}

.wa-pm-play {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  padding-left: 4px;
}

.wa-pm-spotify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f36b21;
  color: #fff;
  padding: 12px 18px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 15px;
}

.wa-pm-episode {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  align-items: center;
}

.wa-pm-episode-img {
  aspect-ratio: 1 / 1;
}

.wa-pm-episode p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #333;
}

.wa-pm-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 70px;
  background: linear-gradient(135deg, #f1f1f1, #d9d9d9);
}

@media (max-width: 1100px) {
  .wa-page-modules {
    grid-template-columns: 1fr 1fr;
  }

  .wa-pm-magazine {
    grid-column: 1 / -1;
  }

  .wa-pm-events {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .wa-page-modules,
  .wa-pm-mag-grid {
    grid-template-columns: 1fr;
  }

  .wa-pm-events,
  .wa-pm-podcast {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,.12);
    padding-top: 24px;
  }

  .wa-pm-panel h2 {
    font-size: 24px;
  }

  .wa-pm-featured h3 {
    font-size: 23px;
  }
}


/* WA Page Modules Pro enhancements */
.wa-page-modules .wa-pm-card-link,
.wa-page-modules .wa-pm-black-btn,
.wa-page-modules .wa-pm-readall {
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.wa-page-modules .wa-pm-featured.wa-pm-card-link:hover,
.wa-page-modules .wa-pm-podcast-card.wa-pm-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.wa-page-modules .wa-pm-side-item.wa-pm-card-link:hover,
.wa-page-modules .wa-pm-event-item.wa-pm-card-link:hover,
.wa-page-modules .wa-pm-episode.wa-pm-card-link:hover {
  transform: translateY(-2px);
}

.wa-pm-featured h3,
.wa-pm-side-item h4,
.wa-pm-event-item h4,
.wa-pm-episode h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wa-pm-featured h3 {
  -webkit-line-clamp: 2;
}

.wa-pm-side-item h4,
.wa-pm-event-item h4,
.wa-pm-episode h4 {
  -webkit-line-clamp: 3;
}

.wa-pm-external::after {
  content: "↗";
  font-size: 11px;
  margin-left: 6px;
  display: inline-block;
  transform: translateY(-1px);
}

.wa-pm-card-link.wa-pm-external::after {
  content: "";
  margin-left: 0;
}
