/* =====================================================
   front-page-v2.css — Inspenet Homepage V2 Fixes
   Fixes: Live Feed, Articles Hero, Pillars Grid, TV Voices
   ===================================================== */

/* === 1. LIVE INDUSTRY FEED === */
.feed {
  padding: 64px 0;
  background: #f8fafc;
}

.feed__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.feed__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.feed__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feed__tab {
  padding: 8px 16px;
  border: 1px solid #d1d9e8;
  border-radius: 24px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #4b5e7a;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.feed__tab.active,
.feed__tab:hover {
  background: #08111f;
  color: #fff;
  border-color: #08111f;
}

/* Feed body: 60% main + 40% sidebar — equal heights */
.feed__body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: stretch;
  /* both columns same height */
}

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

/* Main featured article */
.feed__main {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* stretch to fill grid row */
}

.feed__main-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.feed__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed__main-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed__main-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #0ea5e9;
}

.feed__main-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f1f35;
  margin: 0;
}

.feed__main-sub {
  font-size: 14px;
  line-height: 1.65;
  color: #4b5e7a;
  margin: 0;
}

.feed__main-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #eef0f5;
}

.feed__main-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed__main-author-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #08111f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed__main-author-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e2d42;
}

.feed__main-date {
  font-size: 12px;
  color: #8a9bb5;
}

/* Sidebar feed cards — fill height of featured card */
.feed__sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  /* stretch with grid */
}

.feed-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  flex: 1;
  /* distribute equally to fill full height */
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.feed-card__img {
  width: 88px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.feed-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card__body {
  flex: 1;
  min-width: 0;
}

.feed-card__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #0ea5e9;
  margin-bottom: 4px;
}

.feed-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #1e2d42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card__meta {
  font-size: 11px;
  color: #8a9bb5;
  margin-top: 5px;
}

.feed__footer {
  text-align: center;
  margin-top: 32px;
}


/* === 2. TECHNICAL ARTICLES AUTHORITY === */
.articles {
  padding: 64px 0;
  background: #fff;
  overflow: visible;
  /* override old CSS that broke images */
}

.articles__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.articles__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* articles body: two columns, hero left + secondary stack right — equal heights */
.articles__body {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 24px;
  align-items: stretch;
  /* both columns same height */
}

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

/* Hero article — horizontal: image left, body right */
.article-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1f35;
  display: flex !important;
  flex-direction: row !important;
  height: 100%;
  min-height: 340px;
}

.article-hero__img {
  flex: 0 0 45%;
  /* fixed 45% width */
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1c2e 0%, #0f2a42 60%, #0e2336 100%);
}

.article-hero__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.article-hero:hover .article-hero__img img {
  transform: scale(1.03);
}

.article-hero__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 4px;
}

.article-hero__body {
  flex: 1;
  padding: 28px 28px 24px;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
  overflow: hidden;
  justify-content: center;
}

/* Mobile: revert to stacked */
@media (max-width: 640px) {
  .article-hero {
    flex-direction: column !important;
    min-height: auto !important;
  }

  .article-hero__img {
    flex: 0 0 200px !important;
    position: relative !important;
  }

  .article-hero__img img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 200px !important;
  }
}

.article-hero__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #38bdf8;
}

.article-hero__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
}

.article-hero__sub {
  font-size: 13px;
  line-height: 1.6;
  color: #a8bacf;
  margin: 0;
}

.article-hero__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.article-hero__av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #38bdf8;
  color: #08111f;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-hero__author {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.article-hero__role {
  font-size: 11px;
  color: #8a9bb5;
}

.article-hero__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  margin-top: auto;
}

.article-hero__read svg {
  width: 14px;
  height: 14px;
  stroke: #38bdf8;
}

.article-hero__read:hover {
  color: #7dd3fc;
}

/* Secondary article cards — Magazine-style full-image overlay cards */
.articles__secondary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

/* Each card: full-bleed image with gradient overlay text */
.article-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  flex: 1;
  /* fill equal height */
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0f1f35;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
}

/* Full-bleed background image */
.article-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.article-card:hover .article-card__img img {
  transform: scale(1.04);
}

/* Gradient overlay for readability */
.article-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(8, 17, 31, 0) 20%,
      rgba(8, 17, 31, .55) 55%,
      rgba(8, 17, 31, .9) 100%);
  transition: opacity .25s;
}

.article-card:hover::after {
  background: linear-gradient(to bottom,
      rgba(8, 17, 31, 0) 10%,
      rgba(8, 17, 31, .65) 50%,
      rgba(8, 17, 31, .95) 100%);
}

/* Card text content — sits above the overlay */
.article-card__body {
  position: relative;
  z-index: 2;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.article-card__tag {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #0B1322;
  background: #0EA5E9;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-card__meta span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  display: inline-block;
}

/* Read-more arrow that appears on hover */
.article-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s, transform .25s;
}

.article-card:hover .article-card__arrow {
  opacity: 1;
  transform: scale(1);
}

.article-card__arrow svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
}

.articles__bottom {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center; /* Fixed space-between */
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #eef0f5;
}

.articles__count {
  font-size: 14px;
  color: #4b5e7a;
  margin: 0;
}


/* === 3. PILLARS OF COVERAGE — Container & Card Sizing Fix === */
.section--gray {
  background: #f0f4f9;
  padding: 64px 0;
}

.section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.pillars-grid--v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .pillars-grid--v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .pillars-grid--v2 {
    grid-template-columns: 1fr;
  }
}

.pilar-card-v2 {
  background: #0f1f35;
  border-radius: 16px;
  border: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .3s ease, box-shadow .3s ease;
}

/* When accordion is open, allow card to grow in height */
.pilar-card-v2.accordion-open {
  overflow: visible;
}

.pilar-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5), 0 2px 8px rgba(56, 189, 248, .08);
}

/* Tab bar */
.pilar-card-v2__tabs {
  display: flex;
  gap: 0;
  background: rgba(0, 0, 0, .3);
}

.pilar-tab {
  flex: 1;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.pilar-tab:hover,
.pilar-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.pilar-tab__icon {
  font-size: 12px;
}

/* Card hero image — fixed height */
.pilar-card-v2__hero {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.pilar-card-v2__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pilar-card-v2__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 17, 31, 0) 30%, rgba(8, 17, 31, .85));
}

.pilar-card-v2__name-block {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  transition: all .65s cubic-bezier(.22, 1, .36, 1);
}
.pilar-card-v2.accordion-open .pilar-card-v2__name-block {
  bottom: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.pilar-card-v2.accordion-open .pilar-card-v2__label {
  display: none;
}

.pilar-card-v2__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255, 255, 255, .55);
  font-weight: 600;
}

.pilar-card-v2__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 2px 0 4px;
  line-height: 1.2;
}
.pilar-card-v2.accordion-open .pilar-card-v2__title {
  font-size: 16px;
  margin: 0;
}

.pilar-card-v2__count {
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pilar-count-num {
  font-weight: 700;
  color: #38bdf8;
}
.pilar-card-v2.accordion-open .pilar-card-v2__count {
  background: rgba(56, 189, 248, .1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, .2);
}

/* Card body */
.pilar-card-v2__body {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.pilar-card-v2__explore-row {
  display: grid;
  grid-template-columns: 1fr auto;
  transition: grid-template-columns .65s cubic-bezier(.22, 1, .36, 1);
}

.pilar-card-v2.accordion-open .pilar-card-v2__explore-row {
  grid-template-columns: 0fr auto;
}

.pilar-card-v2__explore-link {
  grid-column: 2;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pilar-card-v2__explore-link:hover {
  color: #7dd3fc;
}

/* Accordion — scrollable list with larger readable text */
.pilar-card-v2__accordion {
  display: flex;
  flex-direction: column; /* Panel expands below trigger (downward) */
}

.pilar-accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .04);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.pilar-accordion__trigger:hover,
.pilar-accordion__trigger.open {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.pilar-accordion__arrow {
  font-size: 16px;
  transition: transform .25s;
  color: #38bdf8;
}

.pilar-accordion__trigger.open .pilar-accordion__arrow {
  transform: rotate(180deg);
}

/* Panel expands DOWNWARD natively */
.pilar-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .65s cubic-bezier(.22, 1, .36, 1);
}

.pilar-accordion__panel.open {
  max-height: 155px; /* Exact height swapped from Hero image collapse */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, .4) transparent;
}

/* Hero image collapses to Header Row smoothly */
.pilar-card-v2.accordion-open .pilar-card-v2__hero {
  height: 55px !important;
}
.pilar-card-v2.accordion-open .pilar-card-v2__hero img,
.pilar-card-v2.accordion-open .pilar-card-v2__overlay {
  opacity: 0;
}
.pilar-card-v2__hero img,
.pilar-card-v2__overlay {
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1);
}

.pilar-card-v2__hero {
  transition: height .65s cubic-bezier(.22, 1, .36, 1);
}

.pilar-accordion__panel.open::-webkit-scrollbar {
  width: 4px;
}

.pilar-accordion__panel.open::-webkit-scrollbar-track {
  background: transparent;
}

.pilar-accordion__panel.open::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, .4);
  border-radius: 4px;
}

/* List items as vertical rows with divider lines */
.pilar-accordion__list {
  padding: 6px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pilar-accordion__item {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, color .2s;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.pilar-accordion__item:last-child {
  border-bottom: none;
}

.pilar-accordion__item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  flex-shrink: 0;
  opacity: .7;
}

.pilar-accordion__item:hover {
  background: rgba(56, 189, 248, .1);
  color: #38bdf8;
}

.pilar-accordion__item:hover::before {
  opacity: 1;
}

.pilar-accordion__empty {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  padding: 10px 14px;
  font-style: italic;
}


/* === 4. INDUSTRY VOICES & EVENT COVERAGE (TV Section) === */
.voices {
  padding: 64px 0;
  background: #fff;
}

.voices__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.voices__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* Voices body: main feature left + sidebar clips right — equal heights */
.voices__body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: stretch;
}

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

/* Featured video article — fills full column height */
.voice-feature {
  border-radius: 12px;
  overflow: hidden;
  background: #0f1f35;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.voice-feature__video {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.voice-feature__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play button overlay — properly centered over the image */
.voice-feature__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 17, 31, .3);
  transition: background .2s;
}

.voice-feature:hover .voice-feature__play {
  background: rgba(8, 17, 31, .5);
}

.voice-feature__play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #08111f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.voice-feature__play-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.voice-feature__play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  /* optical center for play triangle */
}

.voice-feature__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-feature__badge span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #38bdf8;
}

.voice-feature__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
}

.voice-feature__guest {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.voice-feature__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-feature__guest-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.voice-feature__guest-role {
  font-size: 12px;
  color: #8a9bb5;
}

/* Side clip cards — fill the height of featured video */
.voices__clips {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.voice-clip {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 10px;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
  flex: 1;
  /* distribute equally to fill featured card height */
}

.voice-clip:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.voice-clip__thumb {
  position: relative;
  width: 90px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.voice-clip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Small play overlay on clip thumbnails */
.voice-clip__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 17, 31, .4);
}

.voice-clip__play svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin-left: 2px;
}

.voice-clip__body {
  flex: 1;
  min-width: 0;
}

.voice-clip__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #0ea5e9;
  margin-bottom: 4px;
}

.voice-clip__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #1e2d42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.voice-clip__meta {
  font-size: 11px;
  color: #8a9bb5;
  margin-top: 4px;
}


/* === 5. COMMUNITY & EVENTS CALENDAR — Height-fill sidebar rows === */
.events {
  padding: 64px 0;
  background: #f8fafc;
}

.events__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.events__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* Body: featured left + event list right — equal heights */
.events__body {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 24px;
  align-items: stretch;
}

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

/* Featured event card */
.event-feature {
  border-radius: 14px;
  overflow: hidden;
  background: #0f1f35;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.event-feature__img {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}

.event-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-feature__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.event-feature__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.event-feature__date {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-feature__date-box {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(56, 189, 248, .15);
  border: 1px solid rgba(56, 189, 248, .3);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .4px;
}

.event-feature__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.event-feature__location svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255, 255, 255, .5);
}

.event-feature__title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.event-feature__desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

.event-feature__cta {
  margin-top: auto;
  padding-top: 8px;
}

/* Event list sidebar — fills featured card height */
.events__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: flex-start;
  overflow: hidden;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  border: 1px solid #eef0f5;
  transition: box-shadow .2s, transform .2s;
  min-height: 76px;
}

.event-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

/* Date badge inside each row */
.event-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 52px;
  background: #0f1f35;
  border-radius: 8px;
  flex-shrink: 0;
  gap: 0;
}

.event-row__day {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.event-row__month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #38bdf8;
}

.event-row__info {
  flex: 1;
  min-width: 0;
}

.event-row__title {
  font-size: 14px;
  font-weight: 700;
  color: #1e2d42;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-row__meta {
  font-size: 12px;
  color: #8a9bb5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-row__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c8d3e1;
  display: inline-block;
}

/* Sector tags */
.event-row__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.event-row__tag--integrity {
  color: #0ea5e9;
  background: rgba(14, 165, 233, .1);
  border: 1px solid rgba(14, 165, 233, .2);
}

.event-row__tag--energy {
  color: #f97316;
  background: rgba(249, 115, 22, .1);
  border: 1px solid rgba(249, 115, 22, .2);
}

.event-row__tag--industry {
  color: #10b981;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .2);
}



/* =====================================================
   PILAR CARD PROPOSALS — Full layout redesigns
   ===================================================== */

/* ── Shared: proper padding + tab animation ── */
.pilar-card-v2 {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: none !important;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .3s ease, box-shadow .3s ease;
}

.pilar-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5), 0 2px 8px rgba(56, 189, 248, .08);
}

/* Tab sliding-underline animation */
.pilar-tab {
  position: relative;
  transition: color .2s, background .2s, transform .15s;
}

.pilar-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .25s ease;
}

.pilar-tab.active::after {
  width: 60%;
}

.pilar-tab:active {
  transform: scale(.95);
}

/* Accordion item hover: slide-right + color */
.pilar-accordion__item {
  transition: transform .2s ease, color .2s, background .2s;
}

.pilar-accordion__item:hover {
  transform: translateX(6px);
}


/* ── PROPOSAL 1: Cinema — Image large at top, tabs below as pill row ── */
.pilar-proposal-cinema {
  background: linear-gradient(180deg, #0a1e30 0%, #0b2537 100%);
  border: 1px solid rgba(56, 189, 248, .12);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .3);
}

.pilar-proposal-cinema .pilar-card-v2__hero {
  order: 0;
  height: 210px;
}

.pilar-proposal-cinema .pilar-card-v2__tabs {
  order: 1;
  background: rgba(8, 17, 31, .8);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.pilar-proposal-cinema .pilar-tab {
  flex: 1;
  padding: 7px 4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.pilar-proposal-cinema .pilar-tab.active {
  background: rgba(56, 189, 248, .18);
  color: #38bdf8;
}

.pilar-proposal-cinema .pilar-card-v2__body {
  order: 2;
  padding: 16px 20px 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.pilar-proposal-cinema .pilar-card-v2__accordion {
  order: 3;
}

.pilar-proposal-cinema .pilar-accordion__trigger {
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 700;
}

.pilar-proposal-cinema .pilar-accordion__list {
  padding: 4px 0 10px;
}

.pilar-proposal-cinema .pilar-accordion__panel.open {
  max-height: 155px !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, .4) transparent;
}

.pilar-proposal-cinema .pilar-accordion__item {
  padding: 9px 20px;
}

/* =====================================================
   TOPBAR + NAVBAR SCROLL MAGIC
   Topbar desliza hacia arriba al hacer scroll.
   Navbar sube a top:0, el lang switcher aparece.
   ===================================================== */

/* Topbar: fijo en la cima */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  height: 40px;
  background: #040f1a;
  display: flex;
  align-items: center;
  transition: transform .42s cubic-bezier(.4, 0, .2, 1), opacity .38s ease;
}

.topbar.hidden {
  transform: translateY(-100%);
  transition: none !important; /* Instant hide to prevent showing behind navbar */
  opacity: 0;
  pointer-events: none;
}

.topbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar__message {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .01em;
}

.topbar__message span {
  color: #38bdf8;
  font-weight: 600;
}

.topbar__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.topbar__lang a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: color .2s;
}

.topbar__lang a.active,
.topbar__lang a:hover {
  color: #fff;
}

.topbar__lang span {
  color: rgba(255, 255, 255, .2);
}

/* Navbar: posicionado bajo el topbar inicialmente */
.navbar {
  top: 40px;
  transition: top .42s cubic-bezier(.4, 0, .2, 1),
    background .3s ease,
    box-shadow .3s ease;
}

/* Cuando topbar desaparece, navbar sube sin dejar espacio */
.navbar.at-top {
  top: 0;
}

/* Lang switcher dentro del navbar:
   - Oculto por defecto (visible en topbar)
   - Aparece cuando navbar llega al tope */
.navbar__actions .navbar-lang {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0;
  transition: opacity .3s ease;
}

.navbar__actions .navbar-lang a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .2s;
}

.navbar__actions .navbar-lang a:hover {
  color: #fff;
}

.navbar__actions .navbar-lang span {
  color: rgba(255, 255, 255, .2);
  font-size: 10px;
}

.navbar.at-top .navbar__actions .navbar-lang {
  display: flex;
  opacity: 1;
}


/* =====================================================
   PILAR SPLIT LAYOUT — Fixed with CSS Grid
   ===================================================== */

/* Override flex with grid for proper 2-column layout */
.pilar-proposal-split {
  display: grid !important;
  grid-template-columns: 42% 58%;
  grid-template-rows: auto 1fr auto;
  flex-direction: unset;
  flex-wrap: unset;
  min-height: 300px;
  background: #fff;
  border: 1px solid #e2eaf4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  border-radius: 14px;
  overflow: hidden;
}

/* Hero: spans all rows in column 1 */
.pilar-proposal-split .pilar-card-v2__hero {
  grid-column: 1;
  grid-row: 1 / 4;
  order: unset;
  width: auto;
  height: auto;
  min-height: 300px;
  border-radius: 0;
  overflow: hidden;
}

.pilar-proposal-split .pilar-card-v2__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pilar-proposal-split .pilar-card-v2__overlay {
  background: linear-gradient(to right, rgba(8, 17, 31, .55) 0%, rgba(8, 17, 31, 0) 100%);
}

.pilar-proposal-split .pilar-card-v2__name-block {
  padding: 16px;
}

.pilar-proposal-split .pilar-card-v2__label {
  font-size: 10px;
}

.pilar-proposal-split .pilar-card-v2__title {
  font-size: 16px;
}

/* Tabs: column 2, row 1 */
.pilar-proposal-split .pilar-card-v2__tabs {
  grid-column: 2;
  grid-row: 1;
  order: unset;
  width: auto;
  background: #f0f6ff;
  padding: 10px 16px;
  gap: 4px;
  border-bottom: 1px solid #e2eaf4;
  align-items: center;
}

.pilar-proposal-split .pilar-tab {
  flex: 1;
  color: #4b5e7a;
  background: transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 6px;
  text-align: center;
  transition: background .22s, color .18s, transform .15s;
}

.pilar-proposal-split .pilar-tab:hover {
  background: rgba(14, 165, 233, .1);
  color: #0ea5e9;
}

.pilar-proposal-split .pilar-tab.active {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .3);
}

.pilar-proposal-split .pilar-tab::after {
  background: #0ea5e9;
  bottom: -2px;
}

/* Body: column 2, row 2 */
.pilar-proposal-split .pilar-card-v2__body {
  grid-column: 2;
  grid-row: 2;
  order: unset;
  width: auto;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pilar-proposal-split .pilar-card-v2__explore-link {
  font-size: 13px;
  font-weight: 700;
  color: #0ea5e9;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s, color .2s;
}

.pilar-proposal-split .pilar-card-v2__explore-link:hover {
  color: #0284c7;
  gap: 8px;
}

/* Accordion: column 2, row 3 */
.pilar-proposal-split .pilar-card-v2__accordion {
  grid-column: 2;
  grid-row: 3;
  order: unset;
  width: auto;
  border-top: none;
  align-self: end;
}

.pilar-proposal-split .pilar-accordion__trigger {
  padding: 12px 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e2d42;
  background: #f8fbff;
  transition: background .2s, color .2s;
}

.pilar-proposal-split .pilar-accordion__trigger:hover,
.pilar-proposal-split .pilar-accordion__trigger.open {
  color: #0ea5e9;
  background: #eef6ff;
}

.pilar-proposal-split .pilar-accordion__arrow {
  color: #0ea5e9;
}

.pilar-proposal-split .pilar-accordion__item {
  padding: 9px 20px;
  color: #2d4461;
  border-bottom: 1px solid #f0f4f9;
  transition: transform .2s ease, color .2s, background .2s;
}

.pilar-proposal-split .pilar-accordion__item:hover {
  transform: translateX(6px);
  background: #eef6ff;
  color: #0ea5e9;
}

.pilar-proposal-split .pilar-accordion__item::before {
  background: #0ea5e9;
}

.pilar-proposal-split .pilar-accordion__empty {
  color: rgba(30, 45, 66, .4);
  padding: 10px 20px;
  font-style: italic;
  font-size: 12px;
}

.pilar-proposal-split .pilar-accordion__panel.open {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 165, 233, .3) transparent;
}

/* Cinema proposal: minor refinements */
.pilar-proposal-cinema .pilar-card-v2__explore-link {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  transition: gap .2s, color .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pilar-proposal-cinema .pilar-card-v2__explore-link:hover {
  gap: 8px;
  color: #7dd3fc;
}

.pilar-proposal-cinema .pilar-card-v2__body {
  padding: 14px 20px 10px;
}

.pilar-proposal-cinema .pilar-tab {
  border-radius: 6px;
  padding: 6px 8px;
}

.pilar-proposal-cinema .pilar-tab.active {
  background: rgba(56, 189, 248, .22);
  color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .3);
}

/* =====================================================
   PILAR TABS — Clearly clickable with smooth animations
   Applied to Cinema layout (all 4 cards)
   ===================================================== */

/* Tab container: subtle separator line */
.pilar-proposal-cinema .pilar-card-v2__tabs {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 8px 14px;
  gap: 6px;
}

/* Each tab: clearly a button, not just text */
.pilar-proposal-cinema .pilar-tab {
  position: relative;
  overflow: hidden;
  flex: 1;
  padding: 8px 6px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;

  /* All transitions in one rule */
  transition:
    color .22s ease,
    background .22s ease,
    border-color .22s ease,
    transform .15s ease,
    box-shadow .22s ease;
}

/* Hover: brighten + lift slightly */
.pilar-proposal-cinema .pilar-tab:hover {
  color: rgba(255, 255, 255, .85);
  background: rgba(56, 189, 248, .1);
  border-color: rgba(56, 189, 248, .2);
  transform: translateY(-1px);
}

/* Click feedback: press down */
.pilar-proposal-cinema .pilar-tab:active {
  transform: translateY(0) scale(.96);
  background: rgba(56, 189, 248, .18);
}

/* Active / selected state: glowing pill */
.pilar-proposal-cinema .pilar-tab.active {
  color: #fff;
  background: rgba(56, 189, 248, .2);
  border-color: rgba(56, 189, 248, .45);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, .15),
    0 2px 12px rgba(56, 189, 248, .2);
  transform: none;
}

/* Sliding underline indicator on active tab */
.pilar-proposal-cinema .pilar-tab::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
  transition: width .3s ease;
}

.pilar-proposal-cinema .pilar-tab.active::after {
  width: 55%;
}

/* Ripple effect on click via pseudo element */
.pilar-proposal-cinema .pilar-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(56, 189, 248, .25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.pilar-proposal-cinema .pilar-tab:active::before {
  opacity: 1;
  transition: opacity 0s;
}

/* Tab icon: slightly larger + color-matched */
.pilar-proposal-cinema .pilar-tab__icon {
  font-size: 13px;
  display: inline-block;
  transition: transform .2s ease;
}

.pilar-proposal-cinema .pilar-tab:hover .pilar-tab__icon {
  transform: scale(1.15);
}

.pilar-proposal-cinema .pilar-tab.active .pilar-tab__icon {
  transform: scale(1.1);
}

/* =====================================================
   FINAL ADJUSTMENTS — Approved design cleanup
   ===================================================== */

/* 1. Primary buttons → cyan to match navbar (not orange) */
.btn-primary {
  background: #0ea5e9 !important;
  color: #fff !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 4px 18px rgba(14, 165, 233, .35) !important;
}

.btn-primary:hover {
  background: #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 24px rgba(56, 189, 248, .4) !important;
  transform: translateY(-1px);
}



/* ── Back to Top Button ── */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: rgba(11, 36, 55, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.back-top svg {
  width: 22px;
  height: 22px;
}

/* ─── MOBILE OPTIMIZATION ────────────────────────────────── */
@media (max-width: 991px) {
  /* Duplicate navbar and topbar overrides removed so global-nav.css handles navigation globally */


  /* Articles Section */
  .articles__bottom {
    text-align: center;
  }

  .articles__bottom .btn {
    margin: 16px auto 0;
    display: inline-flex;
  }

  /* Events Section */
  .events__body {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .event-feature {
    width: 100%;
  }

  /* Directory CTAs */
  .directory__cta-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .directory__cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Newsletter adaptation */
  .nl-panel__input-row {
    flex-direction: column;
    gap: 12px;
  }

  .nl-panel__input {
    width: 100% !important;
    border-radius: 8px !important;
  }

  .nl-panel__submit {
    width: 100% !important;
    border-radius: 8px !important;
  }
}

/* 2. Hero content top offset — accounts for topbar (40px) + navbar (64px) */
/* Only apply to desktop where topbar is visible */
@media (min-width: 992px) {
  .hero__inner {
    padding-top: 120px !important;
    /* 40 topbar + 64 navbar + 16 breathing room */
  }
}
