/* ============================================================
   NEXT STEP - CMS CONTENT
   Bootstrap 5 + Font Awesome
   ============================================================ */

.v4-cms-content {
    color: var(--v4-ink);
}


/* ============================================================
   FULL WIDTH BREAKOUT

   Allows sections inside a constrained CMS column/container
   to extend to the full viewport width.
   ============================================================ */

.v4-cms-fullwidth {
    width: 100vw;
    max-width: none;
    margin-left: calc(33.333333% - 50vw);
    margin-right: 0;
}


/* ============================================================
   SECTIONS
   ============================================================ */

.v4-cms-section {
    padding: 4.5rem 0;
    scroll-margin-top: 120px;
}

.v4-cms-section--first {
    padding-top: 0;
    padding-bottom: 0;
}

.v4-cms-section--surface {
    background: var(--v4-paper);
}

.v4-cms-section--soft {
    background: var(--v4-blue-soft);
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.v4-cms-eye {
    margin-bottom: .5rem;
    color: var(--v4-blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.v4-cms-title {
    margin: 0 0 1.2rem;
    color: var(--v4-ink);
    font-family: "Archivo", system-ui, sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.v4-cms-lead {
    max-width: 46rem;
    margin: 0;
    color: var(--v4-muted);
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.8;
}


/* ============================================================
   LONG TEXT / PROJECT DESCRIPTION
   ============================================================ */

.v4-cms-prose {
    max-width: 46rem;
}

.v4-cms-prose p {
    margin: 0 0 1.3rem;
    color: var(--v4-muted);
    line-height: 1.85;
}

.v4-cms-prose p:last-child {
    margin-bottom: 0;
}

.v4-cms-prose h3 {
    margin: 2.4rem 0 .8rem;
    color: var(--v4-ink);
    font-family: "Archivo", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
}


/* ============================================================
   FONT AWESOME CMS ICONS

   Icons use:
   <span class="fa-solid ...">&nbsp;</span>

   The non-breaking space prevents the CMS from removing
   otherwise empty elements.
   ============================================================ */

.v4-cms-card-icon {
    display: block;
    width: fit-content;
    color: var(--v4-blue);
    font-size: 1.15rem;
    line-height: 1;
}


/* ============================================================
   SUMMARY CARDS
   ============================================================ */

.v4-cms-summary-card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius);
    background: var(--v4-blue-soft);
    transition:
        transform .3s cubic-bezier(.2, .7, .2, 1),
        border-color .3s ease,
        box-shadow .3s ease;
}

.v4-cms-summary-card:hover {
    transform: translateY(-4px);
    border-color: var(--v4-blue-400);
    box-shadow: 0 18px 40px rgba(11, 37, 69, .10);
}

.v4-cms-summary-card h3 {
    margin: .7rem 0 .3rem;
    color: var(--v4-ink);
    font-family: "Archivo", system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.v4-cms-summary-card p {
    margin: 0;
    color: var(--v4-muted);
    font-size: .9rem;
    line-height: 1.7;
}


/* ============================================================
   03 - MAIN PROJECT GOAL
   ============================================================ */

.v4-cms-goal {
    padding: 4.5rem 0;
    background: var(--v4-blue-dark);
    color: #fff;
    scroll-margin-top: 120px;
}

.v4-cms-goal .v4-cms-eye {
    color: var(--v4-gold);
}

.v4-cms-goal .v4-cms-title {
    margin-bottom: 0;
    color: #fff;
}

.v4-cms-goal__text {
    margin: 0;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.42rem);
    line-height: 1.7;
    text-wrap: pretty;
}
.v4-cms-goal .v4-cms-goal__text {
    color: #fff !important;
}
.v4-cms-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

.v4-cms-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: .55rem 1rem;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: #fff;
    font-size: .9rem;
    line-height: 1.35;
}


/* ============================================================
   04 - SPECIFIC GOALS
   ============================================================ */

.v4-goals {
    --bs-accordion-border-color: var(--v4-line);
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-color: var(--v4-ink);
    --bs-accordion-active-color: var(--v4-ink);
    --bs-accordion-bg: transparent;
    --bs-accordion-color: var(--v4-ink);
}

.v4-goals .accordion {
    --bs-accordion-bg: transparent;
}

.v4-goals .accordion-item,
.v4-goal-static {
    border: 0;
    border-top: 1px solid var(--v4-line);
    border-radius: 0;
    background: transparent;
}

.v4-goals > :last-child {
    border-bottom: 1px solid var(--v4-line);
}

.v4-goals .accordion-header {
    margin: 0;
    padding: 0;
}

.v4-goals .accordion-button,
.v4-goal-static {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: .75rem;
    padding: 1.15rem .25rem;
    background: transparent;
    box-shadow: none;
    color: var(--v4-ink);
    font-family: "Figtree", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.v4-goal-static {
    cursor: default;
}

.v4-goals .accordion-button::after {
    display: none;
}

.v4-goals .accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.v4-goals .accordion-button:hover {
    color: var(--v4-blue);
}

.v4-goals .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--v4-blue);
    box-shadow: none;
}

.v4-goal-number {
    width: 26px;
    flex: 0 0 26px;
    padding-top: .15rem;
    color: #6e5b14;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.v4-goal-icon {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: auto;
    padding-top: .2rem;
    color: var(--v4-blue);
    font-size: 13px;
    line-height: 1;
    transition: transform .25s ease;
}

.v4-goals .accordion-button:not(.collapsed) .v4-goal-icon {
    transform: rotate(45deg);
}

.v4-goals .accordion-body {
    padding: 0 2.6rem 1.4rem;
    color: var(--v4-muted);
    font-size: .96rem;
    line-height: 1.85;
}


/* ============================================================
   05 - TARGET GROUPS
   ============================================================ */

.v4-cms-target-card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius);
    background: var(--v4-surface);
    transition:
        transform .3s cubic-bezier(.2, .7, .2, 1),
        border-color .3s ease,
        box-shadow .3s ease;
}

.v4-cms-target-card:hover {
    transform: translateY(-4px);
    border-color: var(--v4-blue-400);
    box-shadow: 0 18px 40px rgba(11, 37, 69, .10);
}

.v4-cms-target-card .v4-cms-card-icon {
    margin-bottom: .8rem;
}

.v4-cms-target-card strong {
    display: block;
    color: var(--v4-ink);
    font-family: "Archivo", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}


/* ============================================================
   06 - PROJECT FACTS
   ============================================================ */

.v4-cms-facts-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius);
    background: var(--v4-band);
}

.v4-cms-facts-card {
    height: 100%;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius);
    background: var(--v4-paper);
}

.v4-cms-fact {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--v4-line);
}

.v4-cms-fact:first-child {
    padding-top: 0;
}

.v4-cms-fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.v4-cms-fact-label {
    flex: 0 0 34%;
    color: var(--v4-muted);
    line-height: 1.5;
}

.v4-cms-fact-value {
    min-width: 0;
    color: var(--v4-ink);
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.v4-cms-btn {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.35rem;
    border: 1.5px solid var(--v4-line);
    border-radius: 999px;
    background: transparent;
    color: var(--v4-ink) !important;
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background-color .2s ease,
        color .2s ease;
}

.v4-cms-btn:hover,
.v4-cms-btn:focus-visible {
    transform: translateY(-2px);
    border-color: var(--v4-blue);
    color: var(--v4-blue) !important;
}

.v4-cms-btn--primary {
    border-color: var(--v4-blue);
    background: var(--v4-blue);
    color: #fff !important;
}

.v4-cms-btn--primary:hover,
.v4-cms-btn--primary:focus-visible {
    border-color: var(--v4-blue-solid-h);
    background: var(--v4-blue-solid-h);
    color: #fff !important;
}


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

@media (max-width: 991.98px) {

    .v4-cms-goal .v4-cms-title {
        margin-bottom: .5rem;
    }

    .v4-cms-facts-card {
        height: auto;
    }

    .v4-cms-fullwidth {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: 0;
    }
}


@media (max-width: 767.98px) {

    .v4-cms-section,
    .v4-cms-goal {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .v4-cms-section--first {
        padding-top: 0;
        padding-bottom: 0;
    }

    .v4-cms-title {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .v4-cms-goal__text {
        font-size: 1.08rem;
    }

    .v4-cms-chip {
        font-size: .82rem;
    }

    .v4-goals .accordion-body {
        padding-right: .25rem;
        padding-left: 2.4rem;
    }

    .v4-cms-facts-panel {
        padding: 1.25rem;
    }

    .v4-cms-facts-card {
        padding: 1.25rem;
    }

    .v4-cms-fact {
        flex-direction: column;
        gap: .25rem;
    }

    .v4-cms-fact-label {
        flex-basis: auto;
        font-size: .88rem;
    }

    .v4-cms-fact-value {
        text-align: left;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .v4-cms-summary-card,
    .v4-cms-target-card,
    .v4-cms-btn,
    .v4-goal-icon {
        transition: none;
    }

    .v4-cms-summary-card:hover,
    .v4-cms-target-card:hover,
    .v4-cms-btn:hover {
        transform: none;
    }
}

.collapse-nochildren {
    display: none !important;
}


/* Content and news - gallery */
.cke_editable .contentGallery .galleryItem,
.portlet_content .contentGallery .galleryItem,
.portlet_news .contentGallery .galleryItem{
    width: 200px;
    display: inline-block;
    vertical-align: top;
}

.cke_editable .contentGallery .galleryItemContent p,
.portlet_content .contentGallery .galleryItemContent p,
.portlet_news .contentGallery .galleryItemContent p
{
    font-size: 1em;
}

.cke_editable .contentGallery .galleryPhoto,
.portlet_content .contentGallery .galleryPhoto,
.portlet_news .contentGallery .galleryPhoto
{
    text-align: center;
}

.cke_editable .contentGallery img,
.portlet_content .contentGallery img,
.portlet_news .contentGallery img
{
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    padding: 0.5em;
}

.cke_editable .contentGallery,
.portlet_content .contentGallery,
.portlet_news .contentGallery
{

    border: 1px solid #f0f0f0;
    border-radius: 5px;
    padding: 0;
    background: #fcfcfc;
    display: block;
}

.portlet_content .contentGallery{
    background: #fcfcfc;
}

.cke_editable .contentGallery{
    background: #f0f0f0;
}
.cke_editable .galleryItem{
    display: inline-block;
    border: 1px solid #333
}

.pswp__item{
    background-color: rgba(1,1,1,0.7);
}

.pswp__custom-caption {
    background: rgba(25, 25, 25, 0.9);
    font-size: 16px;
    color: #fff;
    padding: 0.5em 2em;
    border-radius: 4px;
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
}

.page-title-shape .shape-cube {
    width: 3em;
}

