/* Homepage hero — based on the site's tricolour banner artwork. */
#heroSlider .hero-section {
    background-image: image-set(url('/assets/img/Banner_image.png') type('image/webp'), url('/assets/img/banner-2.png') type('image/png'));
    background-position: center;
    /* Header (42px utility bar + 88px navigation) and full hero are visible
       together on the first desktop viewport. */
    height: calc(100svh - 130px);
    min-height: 540px;
}

#heroSlider .hero-overlay {
    background: linear-gradient(90deg,
        rgba(255, 251, 242, .36) 0%,
        rgba(255, 250, 239, .50) 34%,
        rgba(255, 248, 235, .55) 51%,
        rgba(255, 248, 235, .05) 70%,
        transparent 100%);
}

/* Keep the portrait crisp and bright against the banner artwork. */
#heroSlider .man-wrapper {
    z-index: 2;
    isolation: isolate;
}

#heroSlider .man-wrapper::before {
    content: '';
    position: absolute;
    right: 4%;
    bottom: 4%;
    width: min(42vw, 660px);
    height: min(70vh, 680px);
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(255, 252, 239, .58) 0%,
        rgba(255, 235, 198, .23) 44%,
        transparent 72%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

#heroSlider .man-img-fluid {
    position: relative;
    filter: brightness(1.13) contrast(1.035) saturate(1.07) drop-shadow(0 18px 24px rgba(6, 27, 48, .18));
}

#heroSlider .hero-copy {
    max-width: 720px;
}

#heroSlider .hero-title {
    color: #10273e;
    font-size: clamp(2.8rem, 4.6vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .45);
}

#heroSlider .hero-title::after {
    content: '';
    display: block;
    width: 180px;
    height: 5px;
    margin-top: .7em;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6a00 0 50%, #138808 50% 100%);
}

#heroSlider .hero-text {
    max-width: 640px;
    color: #223548;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    font-weight: 500;
    line-height: 1.65;
}

#heroSlider .hero-btn {
    border-radius: 16px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(30, 45, 59, .13);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#heroSlider .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(30, 45, 59, .2);
}

#heroSlider .hero-btn-primary {
    color: #fff;
    background: #ff6900;
}

#heroSlider .hero-btn-primary:hover {
    color: #fff;
    background: #e85f00;
}

#heroSlider .hero-btn-outline {
    color: #10273e;
    border: 2px solid #10273e;
    background: rgba(255, 255, 255, .52);
}

#heroSlider .hero-btn-outline:hover {
    color: #fff;
    border-color: #10273e;
    background: #10273e;
}

/* Matched hero action buttons: different fills, one clear icon-and-label layout. */
#heroSlider .hero-action-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 58px;
    padding: 5px 1.35rem 5px 4.55rem !important;
    overflow: hidden;
    border-radius: 999px !important;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: padding .32s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

#heroSlider .hero-action-btn::before,
#heroSlider .hero-action-btn::after {
    display: none !important;
}

#heroSlider .hero-action-btn__thumb {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    z-index: 2;
    display: grid;
    width: 48px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #285b99, #082b5d);
    color: #fff;
    box-shadow: 0 5px 12px rgba(5, 31, 65, .25);
    transition: left .32s cubic-bezier(.65, 0, .35, 1);
}

#heroSlider .hero-action-btn__label {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#heroSlider .hero-action-btn:hover {
    padding-right: 4.55rem !important;
    padding-left: 1.35rem !important;
    transform: translateY(-2px);
}

#heroSlider .hero-action-btn:hover .hero-action-btn__thumb {
    left: calc(100% - 53px);
}

#heroSlider .hero-btn-primary.hero-action-btn {
    border: 2px solid #ff760d !important;
    background: linear-gradient(135deg, #ff9b19, #ff6507) !important;
    color: #fff !important;
    box-shadow: 0 10px 21px rgba(243, 97, 3, .24);
}

#heroSlider .hero-btn-primary.hero-action-btn:hover {
    background: linear-gradient(135deg, #f6880c, #e95000) !important;
}

#heroSlider .hero-btn-outline.hero-action-btn {
    border: 2px solid #102f58 !important;
    background: rgba(255, 255, 255, .9) !important;
    color: #102f58 !important;
    box-shadow: 0 10px 21px rgba(14, 47, 84, .12);
}

#heroSlider .hero-btn-outline.hero-action-btn:hover {
    background: #edf4fc !important;
    color: #102f58 !important;
}

@media (min-width: 992px) {
    #heroSlider .hero-content {
        padding-top: 5rem;
    }
}

@media (max-width: 767.98px) {
    #heroSlider .hero-section {
        height: auto;
        min-height: 0;
        background-position: 58% center;
    }

    #heroSlider .hero-overlay {
        background: linear-gradient(180deg,
            rgba(255, 251, 242, .94) 0%,
            rgba(255, 250, 239, .88) 51%,
            rgba(255, 250, 239, .36) 76%,
            rgba(255, 250, 239, .08) 100%);
    }

    #heroSlider .hero-title {
        color: #10273e;
        font-size: clamp(2.15rem, 10vw, 3.1rem);
        letter-spacing: -.03em;
    }

    #heroSlider .hero-title::after {
        width: 125px;
        height: 4px;
        margin: .55em auto 0;
    }

    #heroSlider .hero-text {
        color: #263847;
        font-size: .98rem;
    }

    #heroSlider .hero-btn {
        border-radius: 14px;
    }

    #heroSlider .hero-action-btn {
        min-width: 166px;
        min-height: 54px;
        padding-left: 4.2rem !important;
        padding-right: 1rem !important;
        font-size: .9rem;
    }

    #heroSlider .hero-action-btn:hover {
        padding-right: 4.2rem !important;
        padding-left: 1rem !important;
    }

    #heroSlider .hero-action-btn__thumb {
        top: 4px;
        bottom: 4px;
        left: 4px;
        width: 46px;
    }

    #heroSlider .hero-action-btn:hover .hero-action-btn__thumb {
        left: calc(100% - 50px);
    }

    #heroSlider .man-wrapper::before {
        width: 92vw;
        height: 52vw;
        right: 4%;
        bottom: 2%;
    }
}

/* Homepage gallery — images retain their own proportions in a masonry grid. */
.home-gallery-section {
    background: linear-gradient(180deg, #fff 0%, #f4f7fc 100%);
}
.home-gallery-heading h5 {
    color: #ff7900 !important;
    font-weight: 800;
    letter-spacing: .12em;
}
.home-gallery-heading h1 {
    color: #102b50;
    font-weight: 800;
}
.home-gallery-heading p { color: #637083; }
.home-gallery-grid {
    column-count: 3;
    column-gap: 1.1rem;
}
.home-gallery-tile {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.1rem;
    break-inside: avoid;
}
.home-gallery-section .gallery-item {
    height: auto !important;
    overflow: hidden;
    border: 1px solid rgba(16, 43, 80, .08);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(17, 45, 83, .1);
    background: #e9eef5;
}
.home-gallery-section .gallery-item > a:first-child {
    display: block;
}
.home-gallery-section .gallery-item img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain;
    transition: transform .35s ease;
}
.home-gallery-section .gallery-item:hover img { transform: scale(1.035); }
.home-gallery-section .gallery-item .search-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(8, 30, 62, .2);
}
.home-gallery-section .gallery-item .search-icon i {
    padding: 0 !important;
    background: transparent !important;
}
.home-gallery-view-all {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 52px;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff8a00, #f45d06);
    box-shadow: 0 10px 22px rgba(244, 93, 6, .26);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-gallery-view-all:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(244, 93, 6, .36);
}
@media (max-width: 991.98px) {
    .home-gallery-grid { column-count: 2; }
}
@media (max-width: 575.98px) {
    .home-gallery-grid { column-count: 1; }
    .home-gallery-tile { margin-bottom: .9rem; }
}

/* Fancybox must sit above the sticky site header while an image is open. */
.fancybox__container,
.fancybox-container {
    z-index: 2147483647 !important;
}
body:has(.fancybox__container) .mm-header,
body.fancybox-active .mm-header {
    z-index: 1 !important;
}

@media (min-width: 768px) and (max-height: 760px) {
    #heroSlider .hero-section {
        min-height: 480px;
    }

    #heroSlider .hero-title {
        font-size: clamp(2.4rem, 4vw, 4rem);
    }

    #heroSlider .hero-text {
        margin-bottom: 1.5rem !important;
    }
}

/* Homepage activity showcase */


.activity-content {
    z-index: 2;
}

.activity-heading { max-width: 850px; }
.activity-heading h4 {
    color: #ff901e;
    font-size: .9rem;
    letter-spacing: .08em;
}
.activity-heading h4::before,
.activity-heading h4::after {
    content: '';
    display: inline-block;
    width: 56px;
    height: 2px;
    margin: 0 16px 5px;
    background: #ff8400;
}
.activity-heading h1 { color: #fff; }
.activity-heading h1 span { color: #ff8a12; }
.activity-heading p { color: rgba(255,255,255,.78); }

.activity-feature-card {
    position: relative;
    display: block;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(0, 13, 45, .32);
}
.activity-feature-card::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    right: -20%;
    left: 0;
    bottom: 0;
    pointer-events: none;
    background: rgba(239, 100, 0, .58);
    transform: skewX(-28deg) translateX(-125%);
    transition: transform .45s ease;
}
.activity-feature-card::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    right: -20%;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: rgba(189, 59, 0, .54);
    transform: skewX(28deg) translateX(-115%);
    transition: transform .45s ease .04s;
}
.activity-feature-card .card-img-top {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    vertical-align: top;
}
.activity-card-caption {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 1.5rem;
    color: #fff;
    pointer-events: none;
}
.activity-card-caption > * {
    max-width: 82%;
    margin: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .3s ease, transform .4s ease;
}
.activity-card-category {
    align-self: flex-start;
    margin-bottom: .6rem !important;
    padding: .32rem .75rem;
    border-radius: 99px;
    color: #8c3400;
    background: rgba(255,255,255,.92);
    font-size: .76rem;
    font-weight: 800;
}
.activity-card-caption h4 {
    margin-bottom: .45rem;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
}
.activity-card-caption p { font-size: .94rem; line-height: 1.5; }
.activity-card-cta { margin-top: .9rem !important; font-weight: 800; }
.activity-card-cta i { margin-left: .35rem; }
.activity-card-toggle {
    position: absolute;
    z-index: 4;
    inset: 0;
    width: 100%;
    border: 0;
    cursor: pointer;
    background: transparent;
}
.activity-feature-card:hover::before,
.activity-feature-card:focus::before,
.activity-feature-card.is-revealed::before { transform: skewX(-28deg) translateX(-18%); }
.activity-feature-card:hover::after,
.activity-feature-card:focus::after,
.activity-feature-card.is-revealed::after { transform: skewX(28deg) translateX(-10%); }
.activity-feature-card:hover .activity-card-caption > *,
.activity-feature-card:focus .activity-card-caption > *,
.activity-feature-card.is-revealed .activity-card-caption > * {
    opacity: 1;
    transform: translateY(0);
}
.activity-feature-card:hover .activity-card-category,
.activity-feature-card:focus .activity-card-category,
.activity-feature-card.is-revealed .activity-card-category { transition-delay: .12s; }
.activity-feature-card:hover h4,
.activity-feature-card:focus h4,
.activity-feature-card.is-revealed h4 { transition-delay: .18s; }
.activity-feature-card:hover p,
.activity-feature-card:focus p,
.activity-feature-card.is-revealed p { transition-delay: .24s; }
.activity-feature-card:hover .activity-card-cta,
.activity-feature-card:focus .activity-card-cta,
.activity-feature-card.is-revealed .activity-card-cta { transition-delay: .3s; }

.activity-side-note,
.activity-community-note {
    position: absolute;
    z-index: 2;
    color: rgba(255,255,255,.42);
    font-weight: 800;
    text-transform: uppercase;
}
.activity-side-note { top: 6rem; left: 3.5rem; display: grid; gap: .15rem; letter-spacing: .18em; }
.activity-community-note { top: 9rem; right: 4rem; color: rgba(255,255,255,.75); font-family: cursive; font-size: 1.5rem; line-height: 1.25; text-transform: none; transform: rotate(-8deg); }

@media (max-width: 767.98px) {
    .activity-section { background-attachment: scroll; }
    .activity-content { padding-top: 3rem !important; padding-bottom: 6rem !important; }
    .activity-heading h4::before,
    .activity-heading h4::after { width: 30px; margin: 0 9px 4px; }
    .activity-heading h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
    .activity-feature-card { height: 290px; }
    .activity-card-caption > * { max-width: 92%; }
}
