/**
 * partner-institutes.css — Partner Institutes Page Styles
 * TradeUp BC — v2 Design System
 *
 * Banner matches the How It Works page hiw-banner design:
 *  - Full-width background image (cover, center-top)
 *  - White gradient label box at bottom-left
 *  - H1: Rubik Bold 50px, #006E51 green, uppercase
 */


/* =============================================================================
   BANNER
   Full-width background image, label anchored to bottom-left of container.
   Mirrors .hiw-banner from how-it-works.css.
   ============================================================================= */

.pi-banner {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
}

/* Flex container so label sits at the bottom-left */
.pi-banner .container {
    display: flex;
    align-items: flex-end;
}

/* White gradient box housing the H1, anchored bottom-left */
.pi-banner__label {
    max-width: 634px;
    background: transparent linear-gradient(180deg, #FFFFFFCB 0%, #FFFFFF 76%, #FFFFFF 100%) 0% 0% no-repeat padding-box;
    border-radius: 10px 10px 0px 0px;
    padding-top: 10px;
    padding-bottom: 15px;
    padding-left: 41px;
    padding-right: 58px;
}

@media (min-width: 1025px) {
    .pi-banner__label {
        padding-top: 30px;
        padding-bottom: 29px;
        padding-left: 41px;
        padding-right: 41px;
    }
}

/* H1: PARTNER INSTITUTES */
/* Intro copy below page subtitle (Signup & Enrollment / Partner Institutes) */
.signup_wrap .signup_lede,
.signup_wrap .signup_lede p {
    font: normal normal normal 18px/28px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0.09px;
    color: #3c413f;
    margin-top: 0;
    margin-bottom: 20px;
}

.signup_wrap .signup_lede {
    margin-bottom: 43px;
}

.signup_wrap .signup_lede p:last-child {
    margin-bottom: 0;
}

.pi-banner__title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 50px;
    letter-spacing: 0px;
    color: #006E51;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}


/* =============================================================================
   INSTITUTE CARDS GRID
   4-column CSS grid, 300px boxes, 54px column gap, 50px row gap.
   ============================================================================= */

.signup_wrap {
    padding-top: 60px;
    padding-bottom: 18px;
}

.signup_wrap h2 {
    margin-bottom: 12px;
}

.signup_wrap .signup_inner {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 54px;
    row-gap: 50px;
    align-items: start;
}

/* --- Card base (collapsed) ------------------------------------------------ */
.signup_wrap .signup_box {
    width: auto !important;
    min-height: 230px !important;
    height: auto !important;
    max-height: 230px;
    padding: 0 !important;
    border: 1px solid #707070 !important;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: max-height 0.35s ease;
    position: relative;
}

.signup_wrap .signup_box[data-expanded="true"] {
    max-height: 1200px;
}

/* --- Header (logo + title) always visible --------------------------------- */
.signup_box__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 24px 20px 0;
    flex: 1 0 auto;
    width: 100%;
}

/* Full width of the card; image fills the slot (cover within aspect box) */
.signup_wrap .signup_box img {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 3 / 1;
    height: auto !important;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 12px;
}

.signup_wrap .signup_box h4 {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 26px !important;
    font-weight: 600;
    line-height: 30px !important;
    color: #3C413F;
    margin: 0 !important;
    text-align: center;
}

/* --- Expand/collapse toggle button ---------------------------------------- */
.signup_box__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    background: #EAEBEB;
    border: none;
    border-top: 1px solid #707070;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.signup_box__toggle:hover {
    background: #EFEFEF;
}

.signup_box__toggle svg {
    transition: transform 0.3s ease;
}

.signup_box[data-expanded="true"] .signup_box__toggle svg {
    transform: rotate(180deg);
}

.signup_box[data-expanded="true"] .signup_box__toggle path {
    stroke: #32A07D;
}

.signup_box[data-expanded="true"] .signup_box__toggle {
    background: #fff;
}

.signup_box[data-expanded="true"] .signup_box__toggle:hover {
    background: #fff;
}

/* --- Details panel (hidden when collapsed) -------------------------------- */
.signup_box__details {
    width: 100%;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.signup_box[data-expanded="true"] .signup_box__details {
    max-height: 1000px;
    opacity: 1;
    padding: 20px 17px 26px;
}

/* --- Details content typography ------------------------------------------ */
.signup_box__details p,
.signup_box__details li {
    font: normal normal normal 18px/28px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0.09px;
    color: #3C413F;
    margin: 0 0 2px;
}


.signup_box__details strong,
.signup_box__details b {
    font: normal normal 600 18px/28px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0.09px;
    color: #000000;
    display: block;
    margin-top: 15px;
    margin-bottom: 0;
}

.signup_box__details a {
    font: normal normal normal 18px/28px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0.09px;
    color: #005C99;
    text-decoration: none;
}

.signup_box__details a:hover {
    text-decoration: underline;
}

/* Legacy list styles */
.signup_wrap .signup_box ul {
    padding-inline-start: 0;
    list-style: none;
    margin: 0;
}

.signup_wrap .signup_box ul li {
    display: block;
}

.signup_wrap .signup_box ul li.title {
    font-weight: 600;
    color: #000000;
    margin-top: 15px;
}

/* =============================================================================
   CTA BANNER — last item in the grid, spans 3 columns
   ============================================================================= */

.signup_cta {
    grid-column: 2 / -1;
    min-height: 230px;
    max-height: 230px;
    background: url("https://filter-tradeupbc-nexcess.dev.developmentwebsite.ca/wp-content/uploads/2026/03/background-green@2x-scaled.jpg")
        no-repeat center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    position: relative;
    overflow: hidden;
}

.signup_cta__inner {
    text-align: center;
    max-width: 100%;
}

.signup_cta__title {
    font: normal normal 600 32px/36px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0px;
    color: #FFFFFF;
    margin: 0 0 5px;
}

.signup_wrap h3 {
    margin-bottom: 10px;
}

.signup_cta__text {
    font: normal normal 500 22px/32px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0.11px;
    color: #FFFFFF;
    margin: 0 0 24px;
}

.signup_cta__btn {
    display: inline-block;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #962d00;
    background: #E8C650;
    border: 2px solid #E8C650;
    border-radius: 8px;
    padding: 14px 32px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.signup_cta__btn:hover {
    background: #962d00;
    color: #fff;
    border-color: #962d00;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

/* Mobile banner swap */
@media (max-width: 767px) {
    .pi-banner {
        background-image: var(--banner-mobile) !important;
    }
}

/* Large tablet / small desktop */
@media (max-width: 1024px) {
    .pi-banner {
        min-height: 300px;
    }

    .pi-banner__title {
        font-size: 38px;
        line-height: 44px;
    }

    .pi-banner__label {
        padding-left: 28px;
        padding-right: 36px;
    }

    .signup_wrap .signup_inner {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 30px;
        row-gap: 36px;
    }

    .signup_cta {
        grid-column: 2 / -1;
    }
}

/* Between 768px and 1024px — CTA spans all 3 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .signup_cta {
        grid-column: 1 / -1;
    }
}

/* Tablet / mobile — under 768px (partner page only; loads after style.css) */
@media (max-width: 767px) {
    .pi-banner__title {
        font: normal normal bold 38px/42px Rubik, sans-serif;
        letter-spacing: 0;
    }

    /* !important beats style.css @768 / @575 and keeps typography on this template */
    .signup_wrap h2 {
        font: normal normal bold 36px/44px Rubik, sans-serif !important;
        letter-spacing: 0 !important;
    }

    /* "medium" = font-weight 500 in CSS shorthand */
    .signup_wrap .subtitle {
        font: normal normal 500 20px/28px "Barlow Semi Condensed", sans-serif !important;
        letter-spacing: 0 !important;
    }

    .signup_wrap .signup_box img {
        width: 230px !important;
        max-width: 230px !important;
    }

    /* Beats .signup_wrap .signup_box h4 { margin: 0 !important } from this file */
    .signup_wrap .signup_inner .signup_box h4 {
        margin-top: 15px !important;
    }
}

@media (max-width: 768px) {
    .pi-banner {
        min-height: 240px;
    }

    .pi-banner .container {
        justify-content: center;
    }

    .pi-banner__label {
        background: transparent linear-gradient(180deg, #FFFFFFCB 0%, #FFFFFF 76%, #FFFFFF 100%) 0% 0% no-repeat padding-box;
        border-radius: 10px 10px 0px 0px;
        text-align: center;
    }

    .signup_wrap .signup_inner {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 24px;
        row-gap: 28px;
    }

    .signup_cta {
        grid-column: 1 / -1;
    }

    .signup_cta__title {
        font-size: 26px;
        line-height: 32px;
    }
}

/*
 * Full-bleed CTA on mobile — edge-to-edge viewport.
 * customizer.css uses section.signup_wrap .container { padding: 0 20px } under 1200px,
 * so Bootstrap --bs-gutter-x math does not apply here.
 */
@media (max-width: 767px) {
    .signup_cta {
        grid-column: 1 / -1;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        max-height: none;
        min-height: unset;
        padding: 68px 30px;
        box-sizing: border-box;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .signup_cta__inner {
        text-align: left;
        width: 100%;
    }

    .signup_cta__text {
        text-align: left;
    }

    .signup_wrap h3 {
        text-align: left;
        font: normal normal 600 32px/36px "Barlow Semi Condensed", sans-serif;
        letter-spacing: 0;
        color: #ffffff;
    }

    .signup_cta__btn {
        font: normal normal 600 20px/20px "Barlow Semi Condensed", sans-serif;
        width: 100%;
        max-width: 330px;
        box-sizing: border-box;
        text-align: center;
    }

    /* Partner Institutes page only (this stylesheet) */
    .hiw-divider-outer .v2-divider-bc {
        margin-top: 53px;
        margin-bottom: 40px;
    }
}

/* Small mobile */
@media (max-width: 640px) {
    .pi-banner__label {
        max-width: min(370px, 100%);
        padding-top: 10px;
        padding-bottom: 15px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 575px) {
    .signup_wrap .signup_inner {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .signup_cta {
        grid-column: 1;
    }

    .signup_cta__title {
        font-size: 22px;
        line-height: 28px;
    }
}


/* =============================================================================
   SCROLL FADE-UP
   ============================================================================= */

.v2-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.v2-fade-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================================
   BC DIVIDER
   ============================================================================= */

.hiw-divider-outer {
    width: 100%;
    max-width: 1362px;
    margin-inline: auto;
    padding-inline: 0;
}

@media (max-width: 1362px) {
    .hiw-divider-outer {
        padding-inline: 30px;
    }
}

.hiw-divider-outer .v2-divider-bc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 73px;
    margin-bottom: 75px;
    width: 100%;
}

.hiw-divider-outer .v2-divider-bc__line {
    flex: 1;
    max-width: 100%;
    height: 2px;
    background-color: #002961;
    min-width: 0;
}

.hiw-divider-outer .v2-divider-bc__logo {
    flex-shrink: 0;
    display: block;
    width: 50px;
    height: auto;
    object-fit: contain;
}


/* =============================================================================
   FAQ SECTION
   ============================================================================= */

.hiw-container {
    width: 100%;
    max-width: 1362px;
    margin-inline: auto;
    padding-inline: 0;
    position: relative;
}

@media (max-width: 1362px) {
    .hiw-container {
        padding-inline: 30px;
    }
}

.v2-faq {
    padding-top: 0;
    padding-bottom: 65px;
    background-color: #fff;
}

.v2-faq__title {
    font: normal normal 600 32px/34px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0;
    color: #034B39;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    text-align: center;
}

.v2-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.v2-faq .v2-accordion__item {
    width: 100%;
    max-width: 1125px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.v2-faq .v2-accordion__item:first-child {
    border-top: none;
}

.v2-faq .v2-accordion__trigger {
    width: 100%;
    padding: 20px 24px 20px 30px;
    background: #EAEBEB;
    border: 1px solid #E8C650;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.v2-faq .v2-accordion__item.is-active .v2-accordion__trigger {
    background: #fff;
    border-color: #E8C650;
    border-bottom-color: transparent;
    border-radius: 8px 8px 0 0;
}

.v2-faq .v2-accordion__question {
    font: normal normal 500 26px/30px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0;
    color: #034B39;
    text-align: left;
}

.v2-faq .v2-accordion__trigger:hover .v2-accordion__question {
    color: #034B39;
}

.v2-faq .v2-accordion__icon {
    flex-shrink: 0;
    color: #962D00;
    background: transparent;
    border-radius: 0;
    transform: none;
    transition: transform 0.3s ease, color 0.2s ease;
}

.v2-faq .v2-accordion__icon i {
    font-size: 26px;
    line-height: 31px;
}

.v2-faq .v2-accordion__item.is-active .v2-accordion__icon {
    color: #32A07D;
    background: transparent;
    transform: rotate(180deg);
}

.v2-faq .v2-accordion__item.is-active .v2-accordion__question {
    color: #034B39;
}

.v2-faq .v2-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease;
}

.v2-faq .v2-accordion__item.is-active .v2-accordion__panel {
    max-height: 1200px;
}

.v2-faq .v2-accordion__panel-inner {
    padding: 0 30px 20px 30px;
    background: #fff;
    border: 1px solid #E8C650;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font: normal normal normal 18px/28px "Barlow Semi Condensed", sans-serif;
    letter-spacing: 0.09px;
    color: #3C413F;
}

.v2-faq .v2-accordion__panel-inner p {
    margin: 0 0 0.75em 0;
    font: inherit;
    color: inherit;
}

.v2-faq .v2-accordion__panel-inner p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .v2-faq {
        padding-bottom: 65px;
    }

    .v2-faq__title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .v2-faq .v2-accordion__question {
        font-size: 22px;
        line-height: 26px;
    }
}
