/*
Theme Name: BCCC
Author: Thirst Creative
Description: Custom WordPress theme for BCCC.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.3
Text Domain: bccc
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bccc-container: 1250px;
  --bccc-content-width: 48rem;
  --bccc-page-gutter: 24px;
  --bccc-gray-1: #333333;
  --bccc-gray-4: #bdbdbd;
  --bccc-gray-5: #e0e0e0;
  --bccc-gray-6: #f2f2f2;
  --bccc-blue: #2d9cdb;
  --bccc-blue-dark: #2f80ed;
  --bccc-blue-light: #f2f7fe;
  --bccc-green: #27ae60;
  --bccc-red: #eb5757;
  --bccc-footer: #292e36;
  --bccc-white: #ffffff;
  --bccc-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bccc-gray-1);
  background: var(--bccc-white);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
}

a {
  color: var(--bccc-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--bccc-blue-dark);
  outline-offset: 4px;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--bccc-white);
  background: var(--bccc-gray-1);
}

.bccc-container,
.site-header__inner,
.site-footer__inner {
  width: min(calc(100% - (2 * var(--bccc-page-gutter))), var(--bccc-container));
  margin-inline: auto;
}

.site-header {
  background: var(--bccc-blue-light);
}

.site-header__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  height: 72px;
  padding-top: 32px;
}

.site-logo {
  display: block;
  flex: 0 0 253px;
  width: 253px;
  height: 40.38px;
}

.site-logo img {
  width: 253px;
  height: 40.38px;
}

.site-navigation {
  margin-left: auto;
}

.site-navigation ul {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  white-space: nowrap;
}

.site-navigation li {
  opacity: 0.5;
}

.site-navigation li:first-child,
.site-navigation .current-menu-item,
.site-navigation .current_page_item {
  opacity: 1;
}

.site-navigation a {
  color: var(--bccc-gray-1);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.site-navigation-toggle {
  display: none;
}

.site-main {
  min-height: 65vh;
}

.home-hero {
  min-height: 490.38px;
  padding-top: 128px;
  background: var(--bccc-blue-light);
}

.home-announcement {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px;
  border-left: 20px solid var(--bccc-green);
  border-radius: 12px;
  background: var(--bccc-white);
  box-shadow: var(--bccc-shadow);
}

.home-announcement p {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

.home-announcement p img {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
}

.home-hero__heading {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 64px;
}

.eyebrow {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0;
  color: var(--bccc-blue);
  font-size: 22px;
  font-weight: 500;
  line-height: 34px;
}

.eyebrow > span {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 6px;
  border-radius: 9px;
  background: var(--bccc-blue);
}

.home-hero h1 {
  margin: 0;
  color: var(--bccc-gray-1);
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -0.828px;
  line-height: 1.15;
}

.home-hero h1 span {
  color: var(--bccc-blue);
}

.home-pathways {
  padding: 128px 0;
  background: linear-gradient(to bottom, var(--bccc-blue-light) 0 224px, var(--bccc-white) 224px 100%);
}

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

.pathway-card {
  display: flex;
  height: 394px;
  min-height: 394px;
  flex-direction: column;
  gap: 48px;
  padding: 32px;
  border: 1px solid var(--bccc-gray-5);
  border-radius: 16px;
  background: var(--bccc-white);
}

.pathway-card__icon {
  display: grid;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 12px;
}

.pathway-card__icon img {
  width: 33px;
  height: 33px;
}

.pathway-card__icon--red {
  background: #fdf0f0;
}

.pathway-card__icon--blue {
  background: #eef8fd;
}

.pathway-card__icon--green {
  background: #eaf7ef;
}

.pathway-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
}

.pathway-card__body > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pathway-card h2,
.pathway-card p {
  margin: 0;
}

.pathway-card h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.pathway-card p {
  font-size: 14px;
  line-height: 22px;
}

.pathway-card__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.text-link {
  display: inline-grid;
  grid-template-columns: auto 8px;
  gap: 10px;
  align-items: center;
  width: fit-content;
  color: var(--bccc-blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
}

.text-link img {
  width: 14px;
  max-width: none;
  height: 8px;
  justify-self: center;
  transform: rotate(-90deg);
}

.text-link--dark {
  flex: 0 0 auto;
  color: #000000;
}

.text-link--small {
  font-size: 14px;
  line-height: 22px;
}

.home-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  min-height: 332px;
}

.home-overview__intro,
.home-overview__content,
.home-role__content,
.home-news__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-overview__intro,
.home-overview__content {
  gap: 32px;
}

.home-overview h2,
.home-role h2 {
  margin: 0;
  font-size: 35px;
  font-weight: 500;
  line-height: 1.2;
}

.home-overview p,
.home-role p {
  margin: 0;
}

.home-overview__content > div p + p,
.home-role__content > div p + p {
  margin-top: 20px;
}

.home-role {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  align-items: center;
  min-height: 682px;
  margin-top: 128px;
}

.home-role__content {
  gap: 32px;
}

.home-role__content > div {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-role__content > div p + p {
  margin-top: -4px;
}

.home-role__media {
  height: 682px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.home-role__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-news {
  margin-top: 128px;
  padding: 128px 0;
  border-top: 1px solid var(--bccc-gray-5);
}

.home-news__heading {
  gap: 32px;
}

.home-news h2 {
  margin: 0;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.2;
}

.news-carousel {
  margin-top: 64px;
}

.news-cards {
  display: grid;
  grid-auto-columns: calc((100% - 96px) / 3);
  grid-auto-flow: column;
  gap: 48px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.news-cards::-webkit-scrollbar {
  display: none;
}

.news-cards:focus-visible {
  outline: 3px solid var(--bccc-blue-dark);
  outline-offset: 8px;
}

.news-card {
  display: flex;
  height: 426px;
  min-height: 426px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bccc-gray-5);
  border-radius: 12px;
  background: var(--bccc-white);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.news-card--no-image {
  background: #f9faff;
}

.news-card__media {
  display: block;
  flex: 0 0 220px;
  height: 220px;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card__media:hover img {
  transform: scale(1.025);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  padding: 32px;
}

.news-card h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.news-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--bccc-gray-1);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-card:not(.news-card--no-image) h3 a {
  -webkit-line-clamp: 2;
}

.news-card__meta {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-top: 32px;
  border-top: 1px solid #eeeeee;
  color: #666666;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
}

.news-card__meta span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.news-card__meta img {
  width: 14px;
  height: 14px;
}

.news-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
}

.news-carousel__controls[hidden] {
  display: none;
}

.news-carousel__pagination {
  display: flex;
  flex: 0 1 204px;
  gap: var(--news-page-gap, 32px);
  width: 204px;
  height: 16px;
}

.news-carousel__page {
  flex: 1 1 0;
  min-width: 0;
  height: 16px;
  border-radius: 999px;
  background: #d9d9d9;
  transition:
    flex-grow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 160ms ease-out;
}

.news-carousel__page.is-active {
  flex-grow: 6;
  background: var(--bccc-blue);
}

.news-carousel__actions {
  display: flex;
  gap: 32px;
}

.news-carousel__controls button {
  display: grid;
  width: 50px;
  min-height: 50px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--bccc-white);
  background: var(--bccc-blue);
  cursor: pointer;
}

.news-carousel__controls button:hover {
  background: #228ac6;
}

.news-carousel__controls button:disabled {
  cursor: default;
}

.news-carousel__controls button:disabled:hover {
  background: var(--bccc-blue);
}

.news-carousel__controls button img {
  width: 16px;
  height: 13px;
}

.site-footer {
  height: 472px;
  min-height: 472px;
  color: var(--bccc-white);
  background: var(--bccc-footer);
}

.site-footer__inner {
  display: flex;
  height: 472px;
  min-height: 472px;
  flex-direction: column;
  padding-top: 96px;
}

.footer-navigation {
  height: 120px;
  min-height: 120px;
  font-size: 15px;
  line-height: 1.4;
}

.footer-navigation__title {
  margin: 0 0 20px;
}

.footer-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  opacity: 0.75;
}

.footer-navigation a {
  color: var(--bccc-white);
}

.footer-notice {
  display: flex;
  height: 78px;
  min-height: 78px;
  align-items: center;
  margin-top: 48px;
  padding: 20px;
  border-left: 20px solid var(--bccc-blue-dark);
  border-radius: 12px;
  color: var(--bccc-gray-1);
  background: var(--bccc-white);
  box-shadow: var(--bccc-shadow);
}

.footer-notice p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

.footer-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.site-footer__copyright {
  display: flex;
  height: 82px;
  min-height: 82px;
  gap: 0.4em;
  align-items: center;
  padding: 32px 0;
  margin: 48px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  line-height: 1.4;
}

.content-area {
  width: min(calc(100% - (2 * var(--bccc-page-gutter))), var(--bccc-content-width));
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 7rem);
}

.page-title,
.entry-title {
  line-height: 1.15;
  text-wrap: balance;
}

.entry-content > * + * {
  margin-top: 1.5em;
}

@media (max-width: 1100px) {
  :root {
    --bccc-page-gutter: 40px;
  }

  .site-navigation ul {
    gap: 24px;
  }

  .site-navigation a {
    font-size: 16px;
  }

  .home-hero h1 {
    font-size: clamp(52px, 6.1vw, 72px);
  }

  .pathway-card {
    height: auto;
    padding: 28px;
  }

  .home-overview,
  .home-role {
    gap: 64px;
  }

  .news-cards {
    grid-auto-columns: calc((100% - 48px) / 2);
  }
}

@media (max-width: 800px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 72px;
    gap: 20px;
    padding-bottom: 24px;
  }

  .site-navigation-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--bccc-gray-5);
    border-radius: 50%;
    color: var(--bccc-gray-1);
    background: var(--bccc-white);
    cursor: pointer;
  }

  .site-navigation-toggle[hidden],
  .site-navigation[hidden] {
    display: none;
  }

  .site-navigation-toggle > span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentcolor;
    transition:
      opacity 160ms ease-out,
      transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-navigation-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .site-navigation-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .site-navigation-toggle[aria-expanded="true"] > span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-navigation {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--bccc-gray-5);
  }

  .site-navigation ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 8px;
    white-space: normal;
  }

  .site-navigation li {
    width: 100%;
    opacity: 0.7;
  }

  .site-navigation a {
    display: flex;
    min-height: 52px;
    align-items: center;
  }

  .text-link {
    min-height: 44px;
  }

  .footer-navigation a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .home-hero {
    min-height: 0;
    padding: 80px 0 72px;
  }

  .home-announcement {
    align-items: flex-start;
  }

  .home-hero h1 {
    font-size: clamp(44px, 8.5vw, 60px);
  }

  .home-pathways {
    padding: 80px 0 96px;
    background: linear-gradient(to bottom, var(--bccc-blue-light) 0 180px, var(--bccc-white) 180px 100%);
  }

  .pathway-grid,
  .home-overview,
  .home-role {
    grid-template-columns: 1fr;
  }

  .pathway-card {
    min-height: 0;
  }

  .home-overview {
    min-height: 0;
  }

  .home-role {
    min-height: 0;
    margin-top: 96px;
  }

  .home-role__media {
    height: min(620px, 90vw);
  }

  .home-news {
    margin-top: 96px;
    padding: 96px 0;
  }

  .news-cards {
    grid-auto-columns: min(88%, 390px);
    overflow-x: auto;
  }

  .site-footer,
  .site-footer__inner {
    height: auto;
    min-height: 0;
  }

  .site-footer__inner {
    padding-top: 72px;
  }

  .footer-navigation,
  .footer-notice,
  .site-footer__copyright {
    height: auto;
  }

  .site-footer__copyright {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  :root {
    --bccc-page-gutter: 20px;
  }

  .site-header__inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-logo,
  .site-logo img {
    width: 210px;
    height: auto;
  }

  .site-logo {
    flex-basis: 210px;
  }

  .site-navigation a {
    font-size: 16px;
  }

  .home-hero {
    padding-top: 56px;
  }

  .home-announcement {
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-left-width: 10px;
  }

  .home-announcement p {
    align-items: flex-start;
    font-size: 14px;
    line-height: 22px;
  }

  .home-hero__heading {
    gap: 24px;
    margin-top: 48px;
  }

  .eyebrow {
    gap: 12px;
    font-size: 18px;
    line-height: 28px;
  }

  .eyebrow > span {
    flex-basis: 30px;
    width: 30px;
    height: 5px;
  }

  .home-hero h1 {
    font-size: 40px;
    letter-spacing: -0.46px;
  }

  .home-pathways {
    padding: 64px 0 80px;
  }

  .pathway-card {
    gap: 32px;
    padding: 24px;
  }

  .pathway-card h2 {
    font-size: 25px;
  }

  .home-overview,
  .home-role {
    gap: 48px;
  }

  .home-overview h2,
  .home-role h2 {
    font-size: 30px;
  }

  .home-role {
    margin-top: 80px;
  }

  .home-role__media {
    height: 440px;
  }

  .home-news {
    margin-top: 80px;
    padding: 80px 0;
  }

  .home-news h2 {
    font-size: 40px;
  }

  .news-card {
    height: auto;
    min-height: 390px;
  }

  .news-card__body {
    padding: 24px;
  }

  .news-card h3 {
    font-size: 24px;
  }

  .news-card__meta {
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
  }

  .news-carousel__controls {
    gap: 24px;
  }

  .news-carousel__pagination {
    width: 150px;
  }

  .news-carousel__actions {
    gap: 12px;
  }

  .news-carousel__controls button {
    width: 44px;
    min-height: 44px;
  }

  .site-footer__inner {
    padding-top: 64px;
  }

  .footer-notice {
    align-items: flex-start;
    padding: 18px;
    border-left-width: 10px;
  }

  .footer-notice p {
    font-size: 14px;
    line-height: 22px;
  }

  .site-footer__copyright {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 32px;
  }

  .site-footer__copyright span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .news-cards {
    scroll-behavior: auto;
  }

  .site-navigation-toggle > span,
  .news-card__media img {
    transition: none;
  }

  .news-carousel__page {
    transition: none;
  }
}
