/*
  WIE Version 1.2 Marketing Component Library
  Presentation layer only. Content should come from approved DCP-shaped records.
*/

.mcl-section {
  padding: 4rem 0;
}

.mcl-kicker {
  margin: 0 0 .65rem;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mcl-lede {
  max-width: 760px;
  color: var(--muted);
}

.mcl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

.mcl-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--blue-dark);
}

.mcl-hero:before,
.mcl-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.mcl-hero:before {
  background: var(--mcl-hero-image, url("../images/grassphoto.JPG")) center / cover no-repeat;
}

.mcl-hero:after {
  z-index: -1;
  background: linear-gradient(100deg, rgba(9,38,70,.94), rgba(0,101,102,.7), rgba(9,38,70,.18));
}

.mcl-hero .container {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, .72fr);
  gap: 2rem;
  align-items: center;
}

.mcl-hero h1 {
  max-width: 900px;
}

.mcl-hero .mcl-kicker,
.mcl-hero .mcl-lede,
.mcl-hero a {
  color: #fff;
}

.mcl-hero-media {
  margin-top: 0;
  overflow: hidden;
  width: 100%;
  max-width: 620px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.mcl-hero-media iframe,
.mcl-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mcl-video-link {
  display: block;
  padding: .55rem .7rem;
  color: #fff;
  background: rgba(8,32,58,.92);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.mcl-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mcl-story,
.mcl-teacher,
.mcl-success,
.mcl-related-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20,50,82,.06);
}

.mcl-story {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: center;
  border-left: 5px solid var(--gold);
  background: var(--warm);
}

.mcl-story img,
.mcl-teacher img,
.mcl-success img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.mcl-story blockquote,
.mcl-success blockquote {
  margin: .7rem 0 0;
  color: var(--ink);
  font-weight: 800;
}

.mcl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .8rem 0 0;
}

.mcl-meta span {
  padding: .28rem .5rem;
  border-radius: 999px;
  color: #123;
  background: #d9f6f4;
  font-size: .76rem;
  font-weight: 900;
}

.mcl-video-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 1.5rem;
  align-items: center;
}

.mcl-video-frame {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.mcl-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 1rem;
}

.mcl-gallery-item,
.mcl-hamilton-item,
.mcl-activity-item {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-dark);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.mcl-gallery-item:first-child {
  grid-row: span 2;
}

.mcl-gallery-item img,
.mcl-hamilton-item img,
.mcl-activity-item img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mcl-gallery-item:after,
.mcl-hamilton-item:after,
.mcl-activity-item:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,32,58,.08), rgba(8,32,58,.82));
}

.mcl-gallery-item h3,
.mcl-hamilton-item h3,
.mcl-activity-item h3 {
  color: #fff;
}

.mcl-teacher-grid,
.mcl-success-grid,
.mcl-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mcl-hamilton-grid,
.mcl-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mcl-cta {
  padding: 2rem 0;
  color: #eafcff;
  background: linear-gradient(100deg, var(--blue-dark), var(--teal));
}

.mcl-cta h2,
.mcl-cta p,
.mcl-cta a {
  color: #fff;
}

.mcl-related-card a,
.mcl-story a,
.mcl-success a,
.mcl-teacher a {
  display: inline-block;
  margin-top: .75rem;
  font-weight: 800;
  text-decoration: none;
}

.mcl-empty {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

@media (max-width: 980px) {
  .mcl-hero .container,
  .mcl-card-grid,
  .mcl-story,
  .mcl-video-showcase,
  .mcl-gallery-grid,
  .mcl-teacher-grid,
  .mcl-success-grid,
  .mcl-related-grid,
  .mcl-hamilton-grid,
  .mcl-activity-grid {
    grid-template-columns: 1fr;
  }

  .mcl-gallery-item:first-child {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .mcl-section {
    padding: 3rem 0;
  }

  .mcl-hero {
    min-height: auto;
    padding: 3.2rem 0;
    overflow-wrap: anywhere;
  }

  .mcl-hero h1 {
    max-width: 100%;
    font-size: 2.15rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .mcl-hero .container {
    max-width: min(calc(100vw - 24px), 366px);
  }

  .mcl-hero .mcl-lede {
    max-width: 100%;
  }

  .mcl-hero-media {
    margin-top: 1.1rem;
    max-width: 100%;
  }

  .mcl-actions .button,
  .mcl-actions .btn {
    width: 100%;
  }
}
