/**
 * @file
 * Subtheme specific CSS.
 */

 /* ------------------- GENERAL ------------------- */
#navbar-top {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
}
#navbar-top .navbar-brand {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  max-width: 1200px;
  font-size: 1.75rem;
  text-transform: uppercase;
  color: #182B49;
}
#navbar-main {
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
  width: 100%;
  background: #1B5588;
  max-height:55.5px;
}
#navbar-main .navbar-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-start !important;
  margin: 0;
  padding: 0;
  width: 100%;
}
#navbar-main .nav-item .nav-link {
  padding: 15px 20px;
  color: #fff;
  font-weight: 500;
  font-size: 17px;
  gap: 3rem;
  text-transform: none;
}
/* #navbar-main .nav-item .nav-link:hover {
  background-color: transparent;
  text-decoration: underline;
} */
#navbar-main .nav-item .nav-link:hover {
  background-color: #182B49;
  text-decoration: none;
  color:#fff;
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        justify-content: flex-start !important;
        padding: 0 10%;
    }
}
.yellow-btn {
    display: flex;
    padding: 0.857rem 2.143rem;
    justify-content: center;
    align-items: center;
    gap: 0.268rem;
    border-radius: 0.643rem;
    background: #FFCD00;
    border: none;
    color: #3B3B3B;
    text-align: center;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    font-variant: all-small-caps;
    text-decoration: none;
}
.yellow-btn:hover {
    background: #E6B800;
    color: #3B3B3B;
}
hr {
    border: none;
    border-top: 5px solid #FFCD00;
    outline: none;
    opacity: 1;
}
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 220px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    width:100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.hero-banner__overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px;
}
.hero-banner__title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}
/* ------------------- HOME PAGE -------------------------------------- 
/* --- HEADER BLOCK --- */
.featured-top .home-page-banner, .featured-top .thh-container  {
    box-sizing: unset !important;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.region-featured-top {
    flex-wrap: wrap;
}
.blue-red-bar {
    width: 100vw;
    height: 100px;
    position: absolute;
    left: 0;
    top: -20px;
}
.home-page-banner {
    background-color: #182B49;
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding-bottom: 3rem;
    padding-top: 5rem;
    overflow: hidden;
}
.home-page-banner h1 {
    color: #FFF;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}
.home-page-banner .wthpa-logo {
    width: 100%;
    height: auto;
    z-index: 2;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.home-page-banner .wthpa-logo:hover {
    transform: scale(1.05);
}

/* --- TRANSFORMING HUMAN HEALTH BLOCK --- */
#block-custom-barrio-transforminghumanhealth {
    display: block; 
    flex: 1 1 100%;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #182B49;
    color: #fff;
    padding: 0;
    clip-path: inset(-9999px -9999px 0 -9999px);
}
.thh-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
}
.thh-container {
    max-width: 100%;
    margin: 0;
}
.thh-content {
    flex: 0 1 100%;
    max-width: 480px;
}
.thh-video {
    position: relative;
    z-index: 1;
}
.thh-video::before {
    content: "";
    position: absolute;
    top: 180px;
    left: 300px;
    width: 100%;
    height: 230px;
    max-width: 420px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='880' height='462' viewBox='0 0 880 462' fill='none'%3E%3Cpath d='M53.6302 462C24.0113 462 0.000366211 442.86 0.000366211 419.249V42.7514C0.000366211 19.1405 24.0113 0 53.6302 0L826.501 0C856.12 0 880.131 19.1405 880.131 42.7514V144.927C880.131 168.538 856.12 187.679 826.501 187.679L235.435 187.679V419.249C235.435 442.86 211.424 462 181.805 462H53.6302Z' fill='%2300C5D5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(90deg);
    z-index: -1;
}
@media (max-width: 768px) {
    .thh-video::before {
        top: 100px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
        width: 80%;
    }
    .thh-video iframe {
        width: 100%;
        min-width: 300px;
        height: auto;
    }
}
@media (min-width: 576px) {
    .col-sm-6 {
        width: 100%;
    }
    .col-sm-4 {
        width: 100%;
    }
}
.thh-video iframe {
    position: relative;
    z-index: 2;
    display: block;
    width: 560;
    height: 315px;
}
.thh-halftone {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0.01;
    pointer-events: none;
}
/* pink-teal */
.thh-halftone--1 {
    background-image: url("/sites/default/files/2026-08/8f89e409f610aa115ccfb512580b3409c5f6e2fd.png");
    top: -150px;
    right: -60px;
    width: 300px;
    height: 300px;
    transform: rotate(-54.127deg);
}
/* pink-yellow */
.thh-halftone--2 {
    background-image: url("https://hpi-dev.ucsd.edu/sites/default/files/2026-08/2c2a0e823848f2bdee85ec8cf0e4ca143d59437b_0.png");
    top: -160px;
    left: -30px;
    width: 200px;
    height: 200px;
    transform: rotate(114deg)
}
/* teal */
.thh-halftone--3 {
    background-image: url("https://hpi-dev.ucsd.edu/sites/default/files/2026-08/ba6e00f175240113e459d19132811cb3bccbb73b.png");
    bottom: -50px;
    left: -70px;
    width: 300px;
    height: 300px;
    transform: rotate(86.362deg);
}
/* --- CURRENT PROJECTS BLOCK --- */
/* Card container */
.project-card {
    background-color: #F4F0E7;
    color: #182B49;
    border-radius: 16px;
    overflow: hidden;
    align-items: stretch;
    z-index: 1;
}
/* Photo column */
.project-card .project-photo {
    padding: 0;
    height: 100%;
}
.project-card .project-photo p {
    margin: 0;
    height: 100%;
    line-height: 0;
}
.project-card .project-photo img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}
/* Details column */
.project-card .project-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-card h2 {
    margin-bottom: 0.5rem;
}
/* Affiliation field */
.project-card .field--name-field-affiliation {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}
.project-card .field--name-field-affiliation,
.project-card .field--name-field-affiliation img {
    background-color: transparent;
}
.project-card .field--name-field-media-image img {
    max-width: 100%;
    width: fit-content;
    height: 38px;
}
/* Description */
.project-card .project-description {
    font-size: 1rem;
    font-weight: 500;
}
/* List group reset */
.project-card .item-list .list-group {
    --bs-list-group-bg: none;
    --bs-list-group-border-color: none;
}
/* Stats table */
.project-card .table {
    background: transparent;
    margin-bottom: 1.5rem;
    border-spacing: 0 1.25rem;
}
.project-card .table td {
    border: none;
    padding: 1rem;
    color: #182B49;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
}
.table-icon svg {
    color: #182B49;
    display: inline-block;
    vertical-align: middle;
    width: 31px;
    height: 31px;
    flex-shrink: 0;
}
.td-content {
    display: flex;
    align-items: center;
}
/* CTA button */
.project-card .cta-wrap {
    display: flex;
    justify-content: flex-start;
    clear: both;
}
.project-card .cta-wrap a {
    display: flex;
    padding: 0.857rem 2.143rem;
    justify-content: center;
    align-items: center;
    gap: 0.268rem;
    border-radius: 0.643rem;
    background: #FFCD00;
    border: none;
    color: #3B3B3B;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    font-variant: all-small-caps;
    text-decoration: none;
}
.project-card .cta-wrap a:hover {
    background: #E6B800;
    color: #3B3B3B;
}
/* --- PARTNERS BLOCK --- */
.partners-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    overflow: visible;
}
img.wthpa-logo {
    height: auto;
    display:block;
    margin:0 auto;
    max-width:100%;
    position:relative;
    z-index:1;
}
.partners-halftone {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}
/* magenta halftone */
/* .partners-halftone--1 { 
    background-image: url("https://hpi-dev.ucsd.edu/sites/default/files/2026-09/f5ad5b7d152287a76229fddd865040e07521850e.png");
    top: -150px;
    right: calc(-35vw);
    width: 780px;
    height: 710px;
} */
/* turqoise halftone */
/* .partners-halftone--2 {
    background-image: url("https://hpi-dev.ucsd.edu/sites/default/files/2026-09/f703f0d6bed4c5bb810a1dd5a9495351c12968e7.png");
    bottom: -150px;
    left: calc(-35vw);
    width: 630px;
    height: 780px;
} */
.partners-logos {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: calc(4 * 140px + 3 * 2.5rem);
}
.partners-logos img {
    width: 140px;
    height: auto;
    object-fit: contain;
}
/* ------------------- PEOPLE PAGE -------------------------------------- */
.people-banner {
    position: relative;
    background-image: url('https://hpi-dev.ucsd.edu/sites/default/files/2026-09/Frame%20324.png');
    background-size: cover;
    background-position: center;
    background-color: #182B49;
    padding: 60px 80px;
    min-height: 340px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.people-banner__text {
    max-width: 500px;
    color: #fff;
    z-index: 2;
}
.people-banner__text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}
.people-banner__divider {
    width: 220px;
    height: 4px;
    background-color: #FFCD00; /* UCSD gold */
    margin-bottom: 16px;
}
.people-banner__graphic {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 680px;
    height: auto;
    z-index: 1;
    overflow: show;
}
h2.people-title {
  background-color: #182B49;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  padding: 16px 32px;
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.bio-card__photo-col {
    padding: 0;
    display: flex;
    background-color: #efe9e1;
}
.bio-card__photo-col p {
    margin: 0;
    width: 100%;
    height: 100%;
}
.bio-card__photo-col img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.bio-card__content-col {
    background-color: #efe9e1;
    padding: 24px 32px;
}
.page-node-2 .row .ck-widget {
    border-radius: 18px;
    overflow: hidden;
}
.people-card {
    position: relative;
    background-color: #fff;
    border: 3px solid #AC1C42;
    border-radius: 20px;
    overflow: hidden;
    max-width: 320px;
    padding: 1.2rem;
}
.people-card .row {
    margin: 0;
}
.people-card__photo-col {
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}
.people-card__photo-col p {
    margin: 0;
    height: 273px;
    position: relative;
}
.people-card__photo-col img {
    position: absolute;
    top: -12px;
    left: -1px;
    width: calc(100% + 2px);
    height: 295px;
    max-width: none;
    object-fit: cover;
}
.people-card__content-col {
    text-align: center;
    padding: 15px 0 0 0;
}
/* ------------------- INNOVATION HUB PAGE -------------------------------------- */
.innovation-hub-banner {
    position: relative;
    background-image: url('https://hpi-dev.ucsd.edu/sites/default/files/2026-09/Frame%20324.png');
    background-size: cover;
    background-position: center;
    background-color: #182B49;
    min-height: 340px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    justify-content: center;
}
.innovation-hub-banner__text {
    max-width: 800px;
    color: #fff;
    z-index: 2;
    align-items: flex-start;
    font-size: 1.2rem;
    margin-right: 15%;
}
.innovation-hub-banner__body {
    margin-top: 1.5rem;
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}
.innovation-hub-banner__divider {
    width: 4px;
    background-color: #FFCD00;
    flex-shrink: 0;
}
.innovation-hub-banner__graphic {
    position: relative;
    max-width: 680px;
    height: auto;
    z-index: 1;
    overflow: visible;
}
.program-card {
    background-color: #F3F3F3;
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    overflow: hidden;
}
.program-card .row {
    align-items: center;
}
.program-card__photo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem 0 0 1rem;
    padding-left: 2rem;
    background: #F3F3F3;
}
.program-card__photo-col p {
    margin: 0;
    width: 100%;
}
.program-card__photo-col img {
    width: 100%;
    height: auto;
    object-fit: fill;
    display: block;
}
.program-card__content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    background: #F3F3F3;
    border-radius: 0 1rem 1rem 0;
    padding: 2rem;
}
.program-card__cta {
    display: flex;
}
#block-custom-barrio-innovationhubcontact {
    display: block; 
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #182B49;
    color: #fff;
    padding: 3rem;
}
#block-custom-barrio-innovationhubcontact h2 {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 auto 1rem auto;
}
#block-custom-barrio-innovationhubcontact p {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 auto 1rem auto;
}