/*
 * Contextual topic clusters for GLGI Viet Nam.
 * Keeps the homepage as the hub and connects programmes, leadership profiles,
 * event information and conversion pages with descriptive internal links.
 */
.topic-cluster {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(196, 151, 63, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.topic-cluster::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(7, 42, 75, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(7, 42, 75, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.topic-cluster__container {
  position: relative;
  z-index: 1;
  width: min(1290px, calc(100% - 48px));
  margin-inline: auto;
}

.topic-cluster__intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.topic-cluster__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #a87518;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.topic-cluster__intro h2 {
  margin: 0 0 14px;
  color: #071f45;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.topic-cluster__intro p {
  max-width: 700px;
  margin: 0;
  color: #52647a;
  font-size: 17px;
  line-height: 1.75;
}

.topic-cluster__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.topic-cluster__card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(7, 42, 75, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(7, 31, 69, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.topic-cluster__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 58px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #b88425, #e2c373);
}

.topic-cluster__card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 132, 37, 0.45);
  box-shadow: 0 22px 50px rgba(7, 31, 69, 0.13);
}

.topic-cluster__tag {
  display: block;
  margin: 8px 0 16px;
  color: #a87518;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.topic-cluster__card h3 {
  margin: 0 0 13px;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.28;
}

.topic-cluster__card h3 a {
  color: #071f45;
  text-decoration: none;
}

.topic-cluster__card p {
  margin: 0 0 24px;
  color: #5e6f83;
  font-size: 15px;
  line-height: 1.7;
}

.topic-cluster__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: auto;
  color: #073f73;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.topic-cluster__link::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.topic-cluster__link:hover,
.topic-cluster__link:focus-visible,
.topic-cluster__card h3 a:hover,
.topic-cluster__card h3 a:focus-visible {
  color: #a87518;
}

.topic-cluster__link:hover::after,
.topic-cluster__link:focus-visible::after {
  transform: translateX(4px);
}

.topic-cluster__link:focus-visible,
.topic-cluster__card h3 a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(184, 132, 37, 0.35);
  outline-offset: 4px;
}

@media (max-width: 991px) {
  .topic-cluster {
    padding: 68px 0;
  }

  .topic-cluster__grid {
    grid-template-columns: 1fr;
  }

  .topic-cluster__card {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .topic-cluster {
    padding: 56px 0;
  }

  .topic-cluster__container {
    width: min(100% - 30px, 1290px);
  }

  .topic-cluster__intro {
    margin-bottom: 26px;
  }

  .topic-cluster__intro p {
    font-size: 16px;
  }

  .topic-cluster__card {
    padding: 25px 22px;
    border-radius: 14px;
  }

  .topic-cluster__card::before {
    left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-cluster__card,
  .topic-cluster__link::after {
    transition: none;
  }

  .topic-cluster__card:hover {
    transform: none;
  }
}


/* Semantic HTML helpers: preserve the established visual treatment after
   decorative headings are changed to paragraphs and content headings to h3. */
.skip-to-content {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 18px;
  border-radius: 8px;
  background: #071f45;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-to-content:focus {
  color: #fff;
  outline: 3px solid #d7b566;
  outline-offset: 3px;
  transform: translateY(0);
}

.semantic-panel-title {
  margin: 0;
  padding: 0;
  color: var(--header, #071f45);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.feature-box-items .content .semantic-card-heading {
  margin: 0;
  padding: 0;
  color: var(--header, #071f45);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.pricing-box-items .semantic-card-label {
  margin: 25px 0 0;
  color: var(--header, #071f45);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.september-experience-section .september-stat .semantic-stat-heading,
.ee-page .ee-country-stats .semantic-stat-heading {
  max-width: 100%;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ee-page .ee-journey-section .ee-country-stats .semantic-stat-heading {
  color: var(--ee-muted, #64748b);
}

@media (prefers-reduced-motion: reduce) {
  .skip-to-content {
    transition: none;
  }
}
