/* HİS content uses the original theme palette and components. */
#hero .his-hero-promo {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    width: min(100%, 360px);
    padding: clamp(14px, 2.2vw, 26px);
    border-radius: 16px;
    background: #f6f5f0;
    color: #154343;
    text-align: center;
    text-shadow: none;
}

.his-hero-promo__title {
    font: clamp(17px, 2vw, 27px)/1.2 BDS_Bold, sans-serif;
    overflow-wrap: anywhere;
}

.his-hero-promo__action {
    padding: .4em .9em;
    border-radius: 2em;
    background: #154343;
    color: #ffcf26;
    font: 14px/1.4 RP_Semi_Bold, sans-serif;
    overflow-wrap: anywhere;
}

#hero .his-hero-promo:hover .his-hero-promo__action {
    background: #286362;
}

#basvuru {
    width: 100%;
    scroll-margin-top: 170px;
}

#basvuru label {
    display: block;
}

#basvuru input,
#basvuru textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 10px 12px;
    border: 1px solid #617875;
    border-radius: 8px;
    background: #fff;
    color: #154343;
    font: inherit;
    font-size: max(16px, 1em);
}

#basvuru textarea {
    min-height: 120px;
    resize: vertical;
}

#basvuru button {
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 2em;
    background: #154343;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

#basvuru button:hover {
    background: #286362;
}

#basvuru :focus-visible,
#hero .his-hero-promo:focus-visible {
    outline: 3px solid #154343;
    outline-offset: 3px;
}

#hero .his-hero-promo:focus-visible {
    outline-color: #ffcf26;
}

#footer-global .footer__subfooter .footer__logo--gibbons--text {
    width: auto;
    margin: 0;
    overflow-wrap: anywhere;
}

#footer-global .footer__subfooter .footer__logo--gibbons--text a {
    max-width: none;
}

footer#footer-global .footer__wrapper {
    width: 100vw;
}

/* The old slider assumed that every caption would fit a fixed-height tile. */
section#events-slider .events-slider__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

section#events-slider .events-slider__text h3 {
    display: block !important;
}

section#events-slider .events-slider__slider--container {
    height: auto;
    padding-block: 6px 12px;
    align-items: stretch;
}

section#events-slider .events-slider__slider .slick-list {
    overflow: hidden;
}

section#events-slider .events-slider__slider .slick-track {
    display: flex;
    align-items: stretch;
}

section#events-slider .events-slider__slider .slick-track::before,
section#events-slider .events-slider__slider .slick-track::after {
    display: none;
}

section#events-slider .events-slider__slider .slick-slide,
section#events-slider .events-slider__slider .slide,
section#events-slider .events-slider__slider .slick-slide .slide {
    height: auto;
    min-width: 0;
}

section#events-slider .events-slider__slider .slick-slide > div {
    height: 100%;
}

section#events-slider .events-slider__slider .slide,
section#events-slider .events-slider__slider .slick-slide .slide {
    box-sizing: border-box;
    flex: none;
    justify-content: flex-start;
    padding-block: 18px;
}

section#events-slider .events-slider__slider .slick-slide .slide {
    height: 100%;
}

section#events-slider .events-slider__slider .slide__icon {
    flex: none;
}

section#events-slider .events-slider__slider .slide__text {
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

section#events-slider .events-slider__slider .slide__text p {
    font-size: clamp(15px, 2.8vw, 18px);
    line-height: 1.4;
}

@media (max-width: 900px) {
    section#events-slider .events-slider__slider .slick-slide,
    section#events-slider .events-slider__slider .slick-slide .slide {
        width: min(72vw, 315px) !important;
    }
}

@media (max-width: 767px) {
    #hero .his-hero-promo {
        width: min(100%, 270px);
        padding: 12px;
        gap: .45rem;
    }

    #footer-global .footer__subfooter .footer__logo {
        gap: 12px;
    }

    #footer-global .footer__subfooter .footer__logo--gibbons {
        margin-bottom: 16px;
    }

    #footer-global .footer__subfooter__links--links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 15px;
    }

    #footer-global .footer__subfooter__links--links a {
        margin: 0;
    }
}

/* BD Supper headings use a line box shorter than the type; Turkish İ, Ğ, Ö and Ü marks were cut off. */
h1, .h1, h2, .h2 {
    line-height: 1.12;
    padding-top: .06em;
}

/* Driver links reveal a second copy of the text from data-text. Let both copies wrap the same way. */
section#driver .driver__link .driver__text--a,
section#driver .driver__link .driver__text--b {
    box-sizing: border-box;
    max-width: 100%;
    padding-inline: clamp(16px, 4vw, 48px);
}

section#driver .driver__link .driver__text--a h3,
section#driver .driver__link .driver__text--b h3,
section#driver .driver__link .driver__text--a p,
section#driver .driver__link .driver__text--b p {
    white-space: normal;
    overflow-wrap: anywhere;
}

section#driver .driver__link .driver__text--a h3::before,
section#driver .driver__link .driver__text--b h3::before,
section#driver .driver__link .driver__text--a p::before,
section#driver .driver__link .driver__text--b p::before {
    height: 100%;
}

/* The presentation photos are brighter and busier than the original hero shots. Darken the text side. */
section#hero-group .hero-group__overlay,
section#hero .overlay {
    background: linear-gradient(90deg, rgba(13, 45, 45, .85) 0%, rgba(13, 45, 45, .6) 42%, rgba(13, 45, 45, .12) 78%);
}

section#hero-group .hero-group__text h1,
section#hero-group .hero-group__text h2,
section#hero-group .hero-group__text p,
section#hero .hero__container h1,
section#hero .hero__container h2,
section#hero .hero__container p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

@media (max-width: 767px) {
    section#hero-group .hero-group__overlay,
    section#hero .overlay {
        background: linear-gradient(0deg, rgba(13, 45, 45, .9) 0%, rgba(13, 45, 45, .6) 55%, rgba(13, 45, 45, .25) 100%);
    }
}

/* Detail pages: measurement list in the old review slider. */
section#testimonials_slider .his-measure {
    display: grid;
    gap: 10px;
    max-width: 640px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: #f6f5f0;
}

section#testimonials_slider .his-measure li {
    position: relative;
    padding-left: 26px;
    font: 17px/1.45 RP_Regular, sans-serif;
}

section#testimonials_slider .his-measure li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #18d790;
}

section#testimonials_slider .his-measure .his-measure__note {
    margin-top: 6px;
    padding-left: 0;
    font-size: 15px;
    opacity: .85;
}

section#testimonials_slider .his-measure .his-measure__note::before {
    display: none;
}

/* Turkish button labels are longer than the original English ones. */
.button.button__cta a.button,
.button.button__cta > a {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
}

section#testimonials_slider [hidden] {
    display: none !important;
}

section#testimonials_slider .testimonials_slider__container .his-measure {
    flex: 1 1 420px;
    min-width: 0;
    margin: 18px 0 40px;
}

/* SplitType wraps each line in an overflow:hidden box for the reveal animation.
   Give the box room for Turkish marks above capitals (İ, Ö, Ü, Ğ) and below (Ş, Ç). */
.split.line {
    padding-top: .2em;
    padding-bottom: .14em;
    margin-top: -.2em;
    margin-bottom: -.14em;
}

section#testimonials_slider .his-measure li {
    color: #f6f5f0;
}

/* About: project facts replace the old photo cards, so size them to their text. */
section#card_trio-about .card_trio-about__card {
    height: auto;
    min-height: 0;
    padding-bottom: 28px;
}

section#card_trio-about .card_trio-about__card .subhead {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
}

section#card_trio-about .his-stat-note {
    margin-top: 10px;
    padding-inline: 18px;
    color: inherit;
    text-align: center;
    font: 16px/1.4 RP_Regular, sans-serif;
}

/* Headings placed directly on photos. */
section#fya_engine .fya_engine__text h2,
section#cta h2,
section#cta p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

section#fya_engine .fya_engine__text h2 {
    color: #f6f5f0;
}

section#card_trio-about .card_trio-about__card:nth-child(3) .his-stat-note {
    color: #f6f5f0;
}

/* Home hero: support offer in the style of the theme's pass promo. */
#hero a.his-gift {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "text card" "action action";
    align-items: center;
    gap: 14px 18px;
    width: min(100%, 520px);
    padding: 30px 26px 0;
    color: #154343;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
}

#hero a.his-gift::before {
    content: "";
    position: absolute;
    inset: 0 0 28px;
    z-index: -1;
    background: #f6f5f0;
    clip-path: polygon(0.0% 1.1%, 4.0% 0.5%, 8.0% 2.3%, 12.0% 0.3%, 16.0% 1.9%, 20.0% 1.3%, 24.0% 0.2%, 28.0% 1.8%, 32.0% 0.1%, 36.0% 1.5%, 40.0% 0.2%, 44.0% 0.3%, 48.0% 1.5%, 52.0% 2.9%, 56.0% 0.4%, 60.0% 0.8%, 64.0% 2.2%, 68.0% 3.3%, 72.0% 2.0%, 76.0% 1.4%, 80.0% 3.4%, 84.0% 0.2%, 88.0% 3.0%, 92.0% 1.0%, 96.0% 0.5%, 100.0% 0.4%, 99.3% 4.0%, 98.2% 10.0%, 99.6% 16.0%, 98.7% 22.0%, 98.6% 28.0%, 99.2% 34.0%, 98.8% 40.0%, 99.9% 46.0%, 99.9% 52.0%, 99.5% 58.0%, 98.5% 64.0%, 99.1% 70.0%, 99.3% 76.0%, 98.7% 82.0%, 99.0% 88.0%, 99.3% 94.0%, 100.0% 97.2%, 96.0% 97.6%, 92.0% 99.1%, 88.0% 98.0%, 84.0% 98.2%, 80.0% 96.9%, 76.0% 97.4%, 72.0% 99.0%, 68.0% 96.6%, 64.0% 99.6%, 60.0% 98.5%, 56.0% 97.4%, 52.0% 99.5%, 48.0% 98.3%, 44.0% 99.9%, 40.0% 97.7%, 36.0% 97.3%, 32.0% 98.0%, 28.0% 96.9%, 24.0% 98.9%, 20.0% 97.6%, 16.0% 97.9%, 12.0% 98.0%, 8.0% 98.4%, 4.0% 97.1%, 0.0% 96.7%, 1.0% 96.0%, 1.5% 90.0%, 0.1% 84.0%, 1.5% 78.0%, 1.4% 72.0%, 2.2% 66.0%, 1.8% 60.0%, 0.6% 54.0%, 0.8% 48.0%, 1.5% 42.0%, 0.0% 36.0%, 1.0% 30.0%, 0.4% 24.0%, 0.3% 18.0%, 0.1% 12.0%, 1.7% 6.0%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.his-gift__text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.his-gift__eyebrow {
    font: 12px/1.2 RP_Semi_Bold, sans-serif;
    letter-spacing: .08em;
    color: #286362;
}

.his-gift__lead {
    font: clamp(22px, 2.3vw, 30px)/1.05 BDS_Bold, sans-serif;
    text-transform: uppercase;
    color: #154343;
}

.his-gift__big {
    font: clamp(26px, 2.9vw, 40px)/1.02 BDS_Bold, sans-serif;
    text-transform: uppercase;
    color: #ff6033;
    overflow-wrap: anywhere;
}

.his-gift__card {
    grid-area: card;
    display: block;
    min-width: 0;
    transform: rotate(-6deg) translateY(-8px);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3));
    transition: transform .3s ease;
}

.his-gift__card svg {
    display: block;
    width: 100%;
    height: auto;
}

.his-gift__action {
    grid-area: action;
    justify-self: center;
    position: relative;
    padding: .7em 1.6em;
    border-radius: 2em;
    background: #154343;
    color: #ffcf26;
    font: clamp(15px, 1.4vw, 19px)/1.2 BDS_Bold, sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s ease;
}

#hero a.his-gift:hover .his-gift__action {
    background: #286362;
}

#hero a.his-gift:hover .his-gift__card {
    transform: rotate(-3deg) translateY(-12px);
}

#hero a.his-gift:focus-visible {
    outline: 3px solid #ffcf26;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    #hero a.his-gift {
        width: min(100%, 330px);
        padding: 20px 16px 0;
        gap: 8px 10px;
    }

    .his-gift__eyebrow {
        font-size: 10px;
    }

    .his-gift__action {
        font-size: 13px;
    }
}

/* Bottom-left "write to us" tab. */
a.his-write-us {
    position: fixed;
    left: 0;
    bottom: 26px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 16px;
    border-radius: 0 2em 2em 0;
    background: #154343;
    color: #f6f5f0;
    font: 17px/1 BDS_Bold, sans-serif;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: background .2s ease, padding .2s ease;
}

a.his-write-us:hover {
    background: #286362;
    padding-left: 22px;
}

a.his-write-us:focus-visible {
    outline: 3px solid #ffcf26;
    outline-offset: 2px;
}

a.his-write-us svg {
    flex: none;
    color: #18d790;
}

@media (max-width: 767px) {
    a.his-write-us {
        bottom: 16px;
        padding: 10px 16px 10px 12px;
        font-size: 15px;
    }
}

#hero a.his-gift {
    isolation: isolate;
}

a.his-write-us {
    right: auto;
    width: auto;
    max-width: max-content;
}

/* Detail intro: longer story copy needs paragraph rhythm. */
section#intro-activity .intro-activity__text p {
    margin: 0 0 .9em;
}

section#intro-activity .intro-activity__text h4 {
    margin: 1.2em 0 .4em;
}


/* ---- Readability and polish pass ---- */

/* Theme buttons pair orange and yellow text, which is too close in brightness to read. */
.button__cta.bg--orange,
.button__cta.bg--orange a {
    color: #0b2a2a;
}

/* Header "join" button: white on orange, dark on the theme's mint hover. */
header#header-global .menu-book-button a {
    color: #fff;
}

header#header-global .menu-book-button:hover a {
    color: #154343;
}

.button__cta.bg--mustard,
.button__cta.bg--mustard a {
    color: #154343;
}

.button__cta.bg--orange svg circle, .button__cta.bg--orange svg line, .button__cta.bg--orange svg path {
    stroke: #0b2a2a;
}

.button__cta.bg--mustard svg circle, .button__cta.bg--mustard svg line, .button__cta.bg--mustard svg path {
    stroke: #154343;
}

.button__cta.bg--orange:hover,
.button__cta.bg--orange:hover a {
    color: #ffcf26;
}

.button__cta.bg--orange:hover svg circle, .button__cta.bg--orange:hover svg line, .button__cta.bg--orange:hover svg path {
    stroke: #ffcf26;
}

/* Reading text on the orange sections. */
section#fifty-fifty p,
section#fifty-fifty h6,
section#gallery_slider-fifty_fifty p,
section#gallery_slider-fifty_fifty h6,
section#intro-activity .intro-activity__text p,
section#intro-activity h6 {
    color: #0b2a2a;
}

section#fifty-fifty p,
section#gallery_slider-fifty_fifty p,
section#intro-activity .intro-activity__text p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.55;
}

/* Home hero: stack the words and the support card on the open left side so the group stays visible. */
section#hero .hero__wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(13, 45, 45, .55) 0%, rgba(13, 45, 45, 0) 22%),
        linear-gradient(90deg, rgba(13, 45, 45, .78) 0%, rgba(13, 45, 45, .5) 38%, rgba(13, 45, 45, 0) 66%);
}

section#hero.his-no-video .play-icon,
section#hero.his-video-auto .play-icon {
    display: none;
}

@media (min-width: 1024px) {
    section#hero .hero__container {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: 22px;
    }

    section#hero .hero__left,
    section#hero .hero__right {
        flex: none;
        width: min(620px, 46vw);
        max-width: none;
        margin: 0;
        padding: 0;
    }

    section#hero .hero__right {
        justify-content: flex-start;
        padding-left: 50px;
        box-sizing: content-box;
    }

    #hero a.his-gift {
        width: min(100%, 470px);
        margin: 0;
    }
}

@media (max-width: 767px) {
    section#hero .hero__wrapper::after {
        background: linear-gradient(0deg, rgba(13, 45, 45, .82) 0%, rgba(13, 45, 45, .45) 55%, rgba(13, 45, 45, .3) 100%);
    }
}

/* Inner covers: the title column was narrow enough to wrap into the fixed header. */
section#hero-group .hero-group__text h2 {
    max-width: none;
    white-space: nowrap;
}

section#hero-group .hero-group__text p {
    max-width: 620px;
}

@media (max-width: 767px) {
    section#hero-group .hero-group__text h2 {
        white-space: normal;
    }
}

/* Header stays legible over bright photos. */
section#hero-group::before,
section#hero-activity::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    width: 100vw;
    height: 130px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(13, 45, 45, .6), rgba(13, 45, 45, 0));
}

/* Program cards. */
section#tabs-group_cards li[data-card="trigger"] p {
    color: #0b2a2a !important;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.25;
}

/* About: stat cards. */
section#card_trio-about .card_trio-about__card {
    justify-content: center;
    gap: 12px;
    min-height: 210px;
    padding: 24px 14px;
    box-sizing: border-box;
}

section#card_trio-about .card_trio-about__card p.subhead {
    margin: 0;
    color: #154343;
}

section#card_trio-about .his-stat-2 p.subhead,
section#card_trio-about .his-stat-2 .his-stat-note,
section#card_trio-about .his-stat-1 .his-stat-note {
    color: #0b2a2a;
}

section#card_trio-about .his-stat-3 p.subhead {
    color: #18d790;
}

section#card_trio-about .his-stat-3 .his-stat-note {
    color: #f6f5f0;
}

section#card_trio-about .his-stat-note {
    margin: 0;
    padding-inline: 8px;
}

/* About: partners. */
section#triptych .triptych__iconset__set--body p,
section#triptych p {
    color: #f6f5f0;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.45;
}

/* Activity grids: the corner ribbon repeated the tab name and only appeared on some cards. */
section#activity-display .ribbon {
    display: none;
}

section#activity-display [role="tab"] {
    font-size: clamp(16px, 1.3vw, 19px);
}

/* Home driver: the hover photo sits under the words. */
section#driver .driver__image--a::after,
section#driver .driver__image--b::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 45, 45, .55);
}

section#driver .driver__link:hover .driver__text--a h3,
section#driver .driver__link:hover .driver__text--a p,
section#driver .driver__link:hover .driver__text--b p {
    color: #f6f5f0;
}

/* Long accordion pages. */
.page-template-default section#accordion {
    padding-block: 28px;
    margin-block: 0;
    min-height: 0;
}

section#accordion .accordion__wrapper {
    max-width: 100vw;
}

/* Footer. */
#footer-global input::placeholder {
    color: #4f6664;
    opacity: 1;
}

/* Contact: cards, then the form. */
.his-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 18px;
    box-sizing: border-box;
    width: min(100%, 1120px);
    margin: 48px auto 24px;
    padding-inline: 16px;
}

.his-contact-grid section#flexible_wysiwyg {
    margin: 0;
    padding: 0;
    width: auto;
    max-width: none;
    min-width: 0;
}

.his-contact-grid .flexible_wysiwyg__container,
.his-contact-grid .flexible_wysiwyg__text {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.his-contact-grid .flexible_wysiwyg__text {
    box-sizing: border-box;
    height: 100%;
    padding: 22px 24px;
    border-top: 4px solid #18d790;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(21, 67, 67, .08);
}

#basvuru button {
    font: 16px/1.2 RP_Semi_Bold, sans-serif;
}

/* Activity pages: the old booking column is now a join card. */
aside#aside-book_activity .his-join__intro {
    margin: 8px 0 14px;
    color: #154343;
    font: 16px/1.5 RP_Regular, sans-serif;
}

aside#aside-book_activity .his-join__facts {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

aside#aside-book_activity .his-join__facts li {
    position: relative;
    padding-left: 22px;
    color: #154343;
    font: 15px/1.4 RP_Semi_Bold, sans-serif;
}

aside#aside-book_activity .his-join__facts li::before {
    content: "";
    position: absolute;
    top: .42em;
    left: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #18d790;
}

aside#aside-book_activity [hidden] {
    display: none !important;
}

aside#aside-book_activity .his-join__mobile {
    display: none;
}

@media (min-width: 1024px) {
    aside#aside-book_activity.aside-book_activity {
        height: auto;
    }

    aside#aside-book_activity .aside-book_activity__container {
        position: sticky;
        top: 110px;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    aside#aside-book_activity .aside-book_activity__scroll-container {
        overflow: visible;
    }

    aside#aside-book_activity .aside-book_activity__text {
        box-sizing: border-box;
        margin: 32px 28px;
        padding: 26px 26px 28px;
        border-top: 5px solid #ff6033;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 26px rgba(21, 67, 67, .12);
    }
}

@media (max-width: 1023px) {
    aside#aside-book_activity .aside-book_activity__text > h3,
    aside#aside-book_activity .his-join__intro,
    aside#aside-book_activity .his-join__facts,
    aside#aside-book_activity .aside-book_activity__text > .button__cta {
        display: none !important;
    }

    aside#aside-book_activity .his-join__mobile {
        display: inline-block;
        margin-left: auto;
        padding: 10px 20px;
        border-radius: 2em;
        background: #154343;
        color: #ffcf26;
        font: 15px/1.2 BDS_Bold, sans-serif;
        text-transform: uppercase;
        white-space: nowrap;
    }
}

section#hero-activity .hero-activity__wrapper {
    background-position: center 32%;
}

/* Related activity cards: titles sit directly on the photo. */
section#card_trio-slider a.card-link p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, .75);
}

/* Second pass after review. */
@media (min-width: 1024px) {
    section#hero .hero__left {
        width: min(780px, 58vw);
    }
}

section#card_trio-about .his-stat-1 p.subhead {
    color: #154343 !important;
}

section#card_trio-about .his-stat-2 p.subhead {
    color: #0b2a2a !important;
}

section#card_trio-about .his-stat-3 p.subhead {
    color: #18d790 !important;
}

.his-contact-grid .flexible_wysiwyg__container {
    height: 100%;
}

aside#aside-book_activity .calendar {
    display: none;
}

.page-template-default section#accordion {
    padding-block: 0 !important;
}

.page-template-default section#accordion.light.accordion .accordion__container {
    padding-top: 24px;
    padding-bottom: 24px;
}

section#accordion.dark.accordion {
    padding-bottom: 40px;
}

section#flexible_wysiwyg .flexible_wysiwyg__text {
    margin-bottom: 8px;
}

.his-drag {
    display: inline-block;
    padding: 8px 18px;
    border: 2px dashed #154343;
    border-radius: 2em;
    color: #154343;
    font: 14px/1 BDS_Bold, sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}

/* A leftover review-widget rule hid every h3 below 900px, including section titles and the footer offer. */
@media (max-width: 900px) {
    main h3,
    section h3,
    footer h3 {
        display: block !important;
    }

    section#hero video {
        object-position: 66% center;
    }

    section#accordion .accordion__wrapper,
    .page-template-default section#accordion.light.accordion .accordion__wrapper {
        left: 0;
        width: 100%;
        margin-inline: 0;
    }

    #footer-global .footer__form {
        min-height: 0;
        height: auto;
        margin-bottom: 24px;
    }

    #footer-global .sib-form,
    #footer-global #sib-form-container {
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

section#fifty-fifty p,
section#fifty-fifty h6,
section#gallery_slider-fifty_fifty p,
section#gallery_slider-fifty_fifty h6,
section#intro-activity .intro-activity__text p,
section#intro-activity h6 {
    color: #0b2a2a !important;
}

section#accordion .accordion__instance p.subhead {
    flex-wrap: nowrap;
    gap: 12px;
}

section#accordion .accordion__instance p.subhead svg {
    flex: none;
}

.his-lead {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.5;
}

.button__cta.icon a {
    gap: 8px;
}

@media (max-width: 900px) {
    section#hero .hero__wrapper {
        background-position: 72% center;
    }
}

section#gallery_slider-fifty_fifty {
    overflow-x: clip;
}

#footer-global .sib-form {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

/* Tablet: the two hero columns are too narrow side by side. */
@media (min-width: 768px) and (max-width: 1023px) {
    section#hero .hero__container {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    section#hero .hero__left,
    section#hero .hero__right {
        flex: none;
        width: 100%;
        max-width: 620px;
        margin: 0;
        padding: 0;
    }

    section#hero .hero__right {
        display: flex;
        justify-content: center;
    }

    #hero a.his-gift {
        width: min(100%, 470px);
    }
}

/* Laptop widths: the theme narrows the side column to 340px. */
@media (min-width: 1024px) {
    aside#aside-book_activity .aside-book_activity__container,
    aside#aside-book_activity .aside-book_activity__scroll-container {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    aside#aside-book_activity .aside-book_activity__text {
        width: auto;
        max-width: none;
    }
}

@media (min-width: 1024px) and (max-width: 1300px) {
    aside#aside-book_activity .aside-book_activity__text {
        margin: 28px 16px;
        padding: 22px 20px 24px;
    }
}

@media (min-width: 1024px) and (max-width: 1300px) {
    main#main .content-container {
        flex: 1 1 0;
        min-width: 0;
        max-width: none !important;
    }

    aside#aside-book_activity.aside-book_activity {
        flex: 0 0 320px;
        width: 320px;
        max-width: 320px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1300px) {
    aside#aside-book_activity .aside-book_activity__text {
        margin: 28px 12px;
        padding: 20px 16px 24px;
    }
}
