/* ==========================================================================
   COMPONENTS
   Buttons, Cards, Video Play Icons, Mini Components
   ========================================================================== */


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

.cards-2col { 
    .fl-col-content { 
        display: flex;
        flex-direction: row;
        gap: 15px;
        .fl-module {
            flex: 1;
        }
        @media (min-width: 800px) {
            max-width: 590px;
        }
        @media (max-width: 520px) {
            flex-direction: column;
        }
    }
}

/* ==========================================================================
   VIDEO PLAY ICON
   ========================================================================== */

.playIcon-bluePurple .fl-video-poster {
    position: relative;
}

.playIcon-bluePurple .fl-video-poster::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 50.4%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

.playIcon-bluePurple .fl-video-poster::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--color-secondary-blue-purple);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

.playIcon-bluePurple .fl-video-poster:hover::before,
.playIcon-bluePurple .fl-video-poster:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   COLOURED BOX
   ========================================================================== */

.coloured-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coloured-box > .fl-module-button {
    margin-top: auto;
}

/* ==========================================================================
   MINI COMPONENTS / UTILITIES
   ========================================================================== */

.text-underlined {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.position-relative {
    position: relative;
}

/* ==========================================================================
   SERVICE ITEMS
   ========================================================================== */

.service-item {
    .fl-node-content {
        padding: 0px;
    }
    @media (min-width: 800px) {
        .fl-callout-content {
            padding-left: 30px;
            padding-right: 40px;
        }
    }
    @media (max-width: 800px) {
        .fl-callout-content {
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 20px;
        }
    }
}

/* ==========================================================================
   SUBNAV - Horizontal Scroller
   ========================================================================== */

.subnav {
    list-style: none;
    padding: 0px;
    display: flex;
    gap: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-padding-left: 10px;
    scroll-padding-right: 10px;
}

.subnav ul,
.subnav {
    scroll-snap-type: x proximity;
}

.subnav li {
    scroll-snap-align: start;
    padding-top: 5px;
    padding-bottom: 3px;
    padding-left: 10px;
    padding-right: 10px;
    &.active {
        background-color: white;
        border-radius: 10px;
    }
}

.subnav::-webkit-scrollbar {
    height: 8px;
}

.subnav::-webkit-scrollbar-track {
    background: transparent;
}

.subnav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.subnav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.iriss-testimonials {
    position: relative;
}

.iriss-testimonials::before {
    content: '\201D' !important;
    position: absolute;
    top: -27px;
    left: 4px;
    transform: translateX(-50%);
    font-family: sans-serif;
    font-size: clamp(100px, 20vw, 210px);
    font-weight: bold;
    line-height: 1;
    color: var(--color-secondary-blue-purple);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.iriss-testimonials::after {
    content: '\201C' !important;
    position: absolute;
    bottom: -85px;
    right: 2px;
    transform: translateX(50%);
    font-family: sans-serif;
    font-size: clamp(100px, 20vw, 210px);
    font-weight: bold;
    line-height: 1;
    color: var(--color-secondary-blue-purple);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.iriss-testimonials blockquote {
    border-right: solid 5px #eee;
}

/* ==========================================================================
   SPEECH BUBBLE (iriss-testimonial)

   Usage: Add class "iriss-testimonial" to a BB Box module.
   Tail position modifiers (add alongside iriss-testimonial):
     tail-bottom-center  — tail at bottom center
     tail-bottom-right   — tail at bottom right
     Default: bottom-left
   ========================================================================== */

.iriss-testimonial {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

/* Tail (default: bottom-left) — nudge bubble right so tail doesn't sit at the edge */
.iriss-testimonial::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 32px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 16px 0 0;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.05));
}

/* Modifier: tail-bottom-center */
.iriss-testimonial.tail-bottom-center::after {
    left: 50%;
    transform: translateX(-50%);
    border-width: 16px 12px 0 12px;
    border-color: #fff transparent transparent transparent;
}

/* Modifier: tail-bottom-right */
.iriss-testimonial.tail-bottom-right::after {
    left: auto;
    right: 32px;
    border-width: 16px 0 0 16px;
    border-color: #fff transparent transparent transparent;
}

/* Offset: push bubble away from the tail side so it looks natural */
.iriss-testimonial:not(.tail-bottom-center):not(.tail-bottom-right) {
    margin-left: 16px;
    margin-right: 16px;
}

.iriss-testimonial.tail-bottom-right {
    margin-right: 16px;
    margin-left: 16px;
}
/* ============================================
   Back to search results prompt
   Injected on single resources by assets/js/back-to-search.js
   when the visitor arrived from a Search & Filter listing page.
   Full-width bar fixed to the bottom of the window; the link
   mirrors the resource download button styling and picks up the
   global hover lift via .iriss-btn (see base.css).
   ============================================ */
.iriss-back-to-search {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: iriss-back-to-search-in 0.3s ease-out;
}

/* Keep the end of the page reachable above the fixed bar */
body.iriss-back-to-search-active {
    padding-bottom: 72px;
}

@keyframes iriss-back-to-search-in {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .iriss-back-to-search { animation: none; }
}

.iriss-back-to-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iriss-back-to-search a.iriss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary-navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(25, 40, 95, 0.25);
    text-decoration: none;
    font-family: "Atten Round New", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.4;
}

.iriss-back-to-search a.iriss-btn:hover,
.iriss-back-to-search a.iriss-btn:focus {
    background-color: #0f1a3d;
    color: #fff;
    text-decoration: none;
}

.iriss-back-to-search button {
    background: #fff;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--color-primary-navy);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(25, 40, 95, 0.25);
}

.iriss-back-to-search button:hover,
.iriss-back-to-search button:focus {
    background: var(--color-neutral-lavender);
}

.iriss-back-to-search button svg {
    width: 18px;
    height: 18px;
}
