/* Do not @import tsi.css here: it resets :root after tsi-theme-*.css and breaks the site theme. */

.tgc-page {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tsi-primary) 8%, transparent), transparent 35%);
}

.tgc-wrap {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.tgc-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.tgc-hero > img {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.tgc-hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 28px;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.58));
  color: #fff;
}

.tgc-hero-badge {
  display: inline-block;
  width: fit-content;
  background: color-mix(in srgb, var(--tsi-accent) 30%, rgba(0, 0, 0, 0.55));
  border: 1px solid color-mix(in srgb, var(--tsi-accent) 45%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
}

.tgc-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
}

.tgc-hero h1 span { color: var(--tsi-accent); }
.tgc-hero-sub { opacity: 0.92; font-weight: 600; }
.tgc-hero-info { display: flex; gap: 10px; flex-wrap: wrap; }
.tgc-hero-info-item { background: rgba(255, 255, 255, 0.14); padding: 6px 10px; border-radius: 999px; }

.tgc-section {
  background: var(--tsi-white);
  border: 1px solid var(--tsi-gray-light);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--tsi-shadow);
  margin-bottom: 16px;
}

.tgc-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tgc-section-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tsi-primary) 14%, transparent);
  position: relative;
}

/* Icons (mask + theme primary color) */
.tgc-section-icon::after {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--tsi-primary);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.tgc-section-icon--program::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.tgc-section-icon--video::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.tgc-section-icon--highlights::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

.tgc-section-icon--gallery::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
}

.tgc-section-icon--press::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h4V9zm0 4h-4v2h4v-2zm-6-4H7v2h2V9zm0 4H7v2h2v-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h4V9zm0 4h-4v2h4v-2zm-6-4H7v2h2V9zm0 4H7v2h2v-2z'/%3E%3C/svg%3E");
}

.tgc-section-icon--team::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}

.tgc-section-label {
  color: var(--tsi-text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tgc-section-title { margin: 2px 0 0; font-size: 1.35rem; }
.tgc-category-label { margin: 10px 0; font-weight: 800; color: var(--tsi-primary); }

.tgc-program-grid,
.tgc-bearers,
.tgc-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tgc-pcard,
.tgc-scard,
.tgc-bearer-card,
.tgc-gallery-item {
  border: 1px solid var(--tsi-gray-light);
  border-radius: 12px;
  background: var(--tsi-white);
  padding: 12px;
}

.tgc-pcard-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--tsi-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 8px;
}

.tgc-pcard h3,
.tgc-scard h3 { margin: 0 0 6px; }
.tgc-pcard-topic { color: var(--tsi-text-light); margin-bottom: 6px; }
.tgc-pcard-speaker { font-weight: 600; margin-bottom: 4px; }

.tgc-video-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tgc-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--tsi-primary);
  color: #fff;
  font-weight: 700;
}

.tgc-gallery-item img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
}

.tgc-gallery-caption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--tsi-text-light);
}

.tgc-bearer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tsi-primary) 15%, transparent);
  color: var(--tsi-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 8px;
}

.tgc-lightbox[hidden] { display: none !important; }
.tgc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.tgc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.tgc-lightbox-dialog {
  position: relative;
  margin: 4vh auto;
  width: min(1100px, 96vw);
  max-height: 92vh;
  border-radius: 14px;
  background: #111;
  color: #fff;
  overflow: hidden;
}

.tgc-lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tgc-lightbox-close:hover,
.tgc-lightbox-close:focus-visible {
  background: rgba(220, 38, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.tgc-lightbox-close-x {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  margin-top: -2px;
}

.tgc-lightbox-close-text {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.tgc-lightbox-body {
  overflow: auto;
  max-height: calc(92vh - 44px);
  padding: 10px;
  text-align: center;
}

.tgc-lightbox-body img {
  transform-origin: center center;
  max-width: 100%;
  max-height: 82vh;
}

.tgc-lightbox-hint {
  padding: 8px 12px 12px;
  font-size: 12px;
  color: #cbd5e1;
}

@media (max-width: 860px) {
  .tgc-program-grid,
  .tgc-bearers,
  .tgc-gallery { grid-template-columns: 1fr; }
  .tgc-hero-content { padding: 18px; }
}
