@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/SourceSansPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/SourceSansPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/SourceSansPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #f4f476;
  --text: #3157fa;
  --max-width: 1000px;
  --padding: 50px;
  --grid-gap: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans Pro", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.2;
}

img { display: block; max-width: 100%; height: auto; }

.page { width: 100%; }

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding);
}

main.content { padding-top: 0; }

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

h1,h2,h3,h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

a { color: inherit; }

button {
  font-family: inherit;
  color: inherit;
  background: none;
}

.subtitle {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 26px 0 38px;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 0 40px;
  font-size: 1.05rem;
  line-height: 1.2;
  align-items: start;
  /* font-weight: 700; */
}

.section-title { 
  margin: 0px 0 26px; 
  height: 120px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--grid-gap) 0;
  padding-bottom: 60px;
}

.video-card {
  cursor: pointer;
  transition: none;
}

.video-thumb {
  width: 100%;
  /* border: 3px solid var(--text); */
  background: #fff;
  object-fit: cover;
}

.video-title {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.full-width-text {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 30px 0 50px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

    .overlay-content {
      position: relative;
      width: min(90vw, 1200px);
      height: min(80vh, 675px);
    }

    .overlay-title {
      position: absolute;
      bottom: 100%;
      left: 0;
      margin: 0 0 10px 0;
      color: var(--bg);
      font-size: 1.5rem;
      font-weight: 700;
      max-width: calc(100% - 60px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .player-frame {
      width: 100%;
      height: 100%;
      border: 0px solid var(--text);
      background: #000;
    }

    .overlay-close {
      position: absolute;
      bottom: 100%;
      right: 0;
      margin-bottom: 10px;
      background: none;
      color: var(--bg);
      border: none;
      width: 40px;
      height: 40px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .overlay-close svg {
      display: block;
      width: 32px;
      height: 32px;
    }.overlay-close:focus-visible,
.video-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 1024px) {
  .content { padding: 36px; }
}

@media (max-width: 768px) {
  .content { padding: 28px; }
}

    @media (max-width: 520px) {
      .content { padding: 22px; }
    }