body.page-template-page-headache-community {
    height: auto;
    overflow: visible;
    background: #000;
}

.headache-community {
    display: block;
    overflow-x: clip;
    background: #000;
    color: #fff;
}

.headache-community .scrolling-panel {
    position: relative;
    width: 100%;
    padding: 60px 20px;
}

.headache-community .scrolling-panel.black {
    background: #000;
    color: #fff;
}

.headache-community .scrolling-panel.gray {
    background: #383838;
    color: #fff;
}

.headache-community .scrolling-panel.white {
    background: #fff;
    color: #000;
}

.headache-community .scrolling-panel.yellow {
    background: #ffdf00;
    color: #000;
}

.headache-community .hc-wrap {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
}

.headache-community h1 {
    max-width: 1100px;
    margin: 20px 0;
    font-size: 32px;
    line-height: 110%;
}

.headache-community h2 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 110%;
}

.headache-community h3 {
    margin: 24px 0 16px;
    line-height: 110%;
}

.headache-community p {
    font-size: 16px;
    line-height: 120%;
}

.headache-community img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.headache-community .hc-hero .header {
    margin-bottom: 30px;
}

.headache-community .hc-hero .header p {
    max-width: 711px;
    margin-top: 40px;
    font-size: 18px;
}

.headache-community .intro-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.headache-community .intro-grid .grid-column1 {
    order: 2;
}

.headache-community .intro-grid .grid-column2 .box-container {
    width: 85%;
    margin-left: 15%;
}

.headache-community .intro-grid .grid-column2 img {
    aspect-ratio: 890 / 702;
    object-fit: cover;
}

.headache-community .intro-grid .grid-column1 .box-container {
    display: flex;
    gap: 10px;
}

.headache-community .grid-cell {
    width: 50%;
    min-height: 119px;
    border-radius: 12px;
}

.headache-community .grid-cell.yellow {
    display: flex;
    flex-direction: column;
    padding: 15px 12px;
    background: #ffdf00;
    color: #000;
}

.headache-community .grid-cell.yellow p.big-type {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    line-height: 110%;
}

.headache-community .grid-cell.box2 {
    overflow: hidden;
}

.headache-community .grid-cell.box2 img {
    height: 100%;
    aspect-ratio: 436 / 290;
    object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
    .headache-community .grid-cell {
        opacity: 0;
    }
}

.headache-community .block-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
}

.headache-community .hc-split .header {
    order: 1;
}

.headache-community .hc-split .infographic {
    order: 2;
}

.headache-community .hc-video .infographic img {
    aspect-ratio: 664 / 430;
    object-fit: cover;
}

.headache-community .hc-video__link {
    display: block;
    position: relative;
    border-radius: 12px;
}

.headache-community .hc-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(56, 56, 56, 0.9);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.15s ease;
}

.headache-community .hc-video__play svg {
    width: 45%;
    height: 45%;
    margin-left: 6%;
    fill: #fff;
}

.headache-community .hc-video__link:hover .hc-video__play,
.headache-community .hc-video__link:focus-visible .hc-video__play {
    background: #000;
    transform: translate(-50%, -50%) scale(1.06);
}

.headache-community .hc-together .infographic img {
    aspect-ratio: 662 / 428;
    object-fit: cover;
    object-position: 50% 35%;
}

.headache-community .hc-promise {
    display: flex;
    align-items: flex-start;
    min-height: 480px;
    overflow: hidden;
}

.headache-community .hc-promise .hc-promise__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.headache-community .hc-promise::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.15) 100%);
}

.headache-community .hc-promise__content {
    position: relative;
    z-index: 2;
}

.headache-community .hc-promise__content h2,
.headache-community .hc-promise__content p {
    max-width: 540px;
}

.headache-community .content-stretch p {
    max-width: 780px;
}

.headache-community .product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    margin-top: 30px;
}

.headache-community .product-block {
    border: 0;
}

.headache-community .hc-engagement .product-photo img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.headache-community .hc-engagement h3 {
    color: #fff !important;
}

.headache-community .hc-engagement .product-block p {
    max-width: 470px;
}

.headache-community .hc-lunch .product-grid {
    gap: 20px;
}

.headache-community .hc-lunch .product-grid img:first-child {
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.headache-community .hc-lunch .product-grid img:last-child {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.headache-community .hc-team__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.headache-community .hc-team .header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.headache-community .hc-team__photo {
    object-fit: cover;
}

.headache-community .hc-team__photo--top {
    grid-column: 1 / -1;
    aspect-ratio: 436 / 395;
}

.headache-community .hc-team__photo--left,
.headache-community .hc-team__photo--right {
    aspect-ratio: 1 / 1;
}

.headache-community .hc-partners h2 {
    margin-bottom: 40px;
}

.headache-community .partner-logos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.headache-community .partner-logos li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.headache-community .partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 96px;
    margin-bottom: 15px;
}

.headache-community .partner-logo img {
    width: auto;
    max-width: min(100%, 315px);
    max-height: 100%;
    border-radius: 0;
}

.headache-community p.partner-label {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
}
.headache-community p.partner-note {
    text-align: left;
    max-width: 250px;
}

.headache-community .partner-logos li.partner-note {
    justify-content: end;
    text-align: left;
}

.headache-community .partner-logos a.blue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
    padding: 8px 28px;
    font-size: 16px !important;
    font-weight: 600 !important;
}

@media (min-width: 769px) {
    .headache-community .scrolling-panel {
        padding: 100px 50px;
    }

    .headache-community .hc-hero {
        padding-top: 60px;
    }

    .headache-community h1 {
        margin: 35px 0 0;
        font-size: 60px;
    }

    .headache-community h2 {
        font-size: 40px;
    }

    .headache-community .hc-hero .header {
        margin-bottom: 50px;
    }

    .headache-community .hc-video .header {
        max-width: 560px;
    }

    .headache-community .hc-video h2 {
        max-width: 480px;
    }

    .headache-community .hc-hero .header p {
        font-size: 16px;
    }

    .headache-community .intro-grid {
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
    }

    .headache-community .intro-grid .grid-column1 {
        order: 0;
        width: 32.5%;
    }

    .headache-community .intro-grid .grid-column2 {
        width: 66.2%;
    }

    .headache-community .intro-grid .grid-column2 .box-container {
        width: 100%;
        margin-left: 0;
    }

    .headache-community .intro-grid .grid-column1 .box-container {
        display: block;
    }

    .headache-community .grid-cell {
        width: auto;
    }

    .headache-community .grid-cell.yellow {
        width: 74%;
        aspect-ratio: 324 / 260;
        margin: 22vw 0 15px auto;
        padding: 20px;
    }

    .headache-community .grid-cell.yellow p.big-type {
        font-size: 2.2vw;
    }

    .headache-community .block-wrapper {
        grid-template-columns: minmax(0, 600fr) minmax(0, 664fr);
        column-gap: 76px;
        align-items: center;
    }

    .headache-community .hc-together .block-wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 40px;
    }

    .headache-community .hc-split .header,
    .headache-community .hc-split .infographic {
        order: 0;
    }

    .headache-community .hc-video__play {
        width: 120px;
        height: 120px;
    }

    .headache-community .hc-promise {
        min-height: 56.25vw;
    }

    .headache-community .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 50px;
    }

    .headache-community .hc-lunch .hc-wrap {
        max-width: 1144px;
    }

    .headache-community .hc-lunch .product-grid {
        grid-template-columns: minmax(0, 15fr) minmax(0, 16fr);
        gap: 40px;
    }

    .headache-community .hc-team__grid {
        grid-template-columns: minmax(0, 340fr) minmax(0, 228fr) minmax(0, 210fr) minmax(0, 15fr) minmax(0, 211fr) minmax(0, 340fr);
        column-gap: 0;
        row-gap: 15px;
        align-items: start;
    }

    .headache-community .hc-team .header {
        grid-column: 1 / 3;
        grid-row: 1;
        align-self: center;
        max-width: 460px;
        margin-bottom: 0;
        padding-right: 30px;
    }

    .headache-community .hc-team__photo--top {
        grid-column: 3 / 6;
        grid-row: 1;
    }

    .headache-community .hc-team__photo--left {
        grid-column: 2 / 4;
        grid-row: 2;
        aspect-ratio: 438 / 292;
    }

    .headache-community .hc-team__photo--right {
        grid-column: 5 / 7;
        grid-row: 2;
        aspect-ratio: 551 / 393;
    }

    .headache-community .partner-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .headache-community .partner-logo {
        height: 120px;
    }

    .headache-community .partner-logos a.blue-btn {
        font-size: 14px !important;
    }
}

@media (min-width: 1025px) {
    .headache-community h1 {
        font-size: 80px;
    }

    .headache-community h2 {
        font-size: 48px;
    }

    .headache-community .grid-cell.yellow {
        margin-top: min(296px, 20.5vw);
    }

    .headache-community .grid-cell.yellow p.big-type {
        font-size: min(2.4vw, 36px);
    }

    .headache-community .hc-promise {
        min-height: min(56.25vw, 900px);
    }

    .headache-community .partner-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1200px;
    }
}
