﻿@font-face {
    font-family: OpenSans-Light;
    src: url("../fonts/OpenSans-Light.ttf") format('truetype');
}

@font-face {
    font-family: OpenSans-Regular;
    src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
}

@font-face {
    font-family: OpenSans-Medium;
    src: url("../fonts/OpenSans-Medium.ttf") format("truetype");
}

@font-face {
    font-family: OpenSans-SemiBold;
    src: url("../fonts/OpenSans-SemiBold.ttf") format("truetype");
}

/* set the defaults */
body {
    font-family: OpenSans-Regular, Arial; padding-top: 75px;
}

/* header css styles*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    height: 75px;
    z-index: 9999; /* stays above everything */
}

header img { width: 100%;}

.main-nav .nav-level-1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav .nav-item,
.main-nav .nav-item-bold {
    position: relative;
}

.main-nav .nav-link,
.main-nav .nav-link-bold,
.main-nav .nav-dropdown-link {
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 0.5rem;
}

.main-nav .nav-link-bold {
    font-family: OpenSans-SemiBold;
    color: #169BAC;
}

.main-nav .nav-dropdown {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: none;
    z-index: 1000;
    background-color: white;
    border: solid 1px #aaaaaa;
    text-align:left;
}

.main-nav .nav-dropdown h6 {
    color: white;
    background-color: #169BAC;
    font-family: OpenSans-Medium;
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 10px;
}

.main-nav .nav-item.has-children:hover > .nav-dropdown {
    display: block;
}

.main-nav .nav-dropdown-link {
    width: 100%;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: #666;
}

.main-nav .nav-dropdown-link:hover { text-decoration: none; color: #169BAC; }

/* footer css styles */

footer {
    background-color: #169BAC;
    font-size: 0.75rem;
}

.get-in-touch { background-color: #169BAC; color: white !important;}
.get-in-touch h2 { color: white !important;}

footer img.logo {
    width: 45% !important;
}
footer .footer-list { line-height: 1.3rem;}
footer .footer-list h6 { font-size: 0.9rem; }
footer .footer-list a:link { font-family: OpenSans-Light; text-decoration: none; color: white !important; }
footer .footer-list a:active { font-family: OpenSans-Light; text-decoration: none; color: white !important; }
footer .footer-list a:hover { font-family: OpenSans-Light; text-decoration: none; color: black !important; }
footer .footer-list a:visited { font-family: OpenSans-Light; text-decoration: none; color: white !important; }

/* body css styles */

h2 { color: #169BAC; font-family: OpenSans-SemiBold; font-size: 2.4rem; padding-bottom: 20px; }
h2.news { text-align: center; }

.homepage-banner {
    background-image: url('../img/banner-main.jpg');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top;
    height: 500px;
    max-height: 500px;
    width: 100%;
}

@media (max-width: 991.98px) {
    .homepage-banner {
        background-size: 250%;
    }
}

.line-break-desktop {
    display: inline;
}

.line-break-mobile {
    display: none;
}

/* On mobile, hide desktop version and show mobile version */
@media (max-width: 767.98px) {
    .line-break-desktop {
        display: none;
    }

    .line-break-mobile {
        display: inline;
    }
}

.homepage-cta {
    background-color: rgba(22, 155, 172, 0.5);
    border-radius: 20px;
    padding: 20px;
    flex: 1; /* fills the column height */
    margin-bottom: 20px; /* space below */
}

.page-banner {
    min-height: 350px; /* choose the height you want */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center; /* vertical center */
}

.page-cta {
    background-color: rgba(22, 155, 172, 0.75);
    border-radius: 20px;
    padding: 25px 30px;
}

    .page-cta h1 {
        margin: 0;
        color: #fff;
    }

.small {font-size: 0.75rem; }

.homepage-cta h1 {
    color: white;
    font-family: OpenSans-SemiBold;
}

.callout-colour {
    color: #9E0139;
}

a.btn-cta:link, button.btn-red, a.btn-red:link {
    color: white;
    background-color: #9E0139;
    text-decoration: none;
    padding: 10px 15px 10px 15px;
    border-radius: 10px;
}
a.btn-cta:active, button.btn-red, a.btn-red:active {
    color: white;
    background-color: #9E0139;
    text-decoration: none;
}
a.btn-cta:visited, button.btn-red, a.btn-red:visited {
    color: white;
    background-color: #9E0139;
    text-decoration: none;
}
a.btn-cta:hover, a.btn-red:hover {
    color: white;
    background-color: #9E0139;
    text-decoration: none;
}

a.btn-secondary:link { color: white; background-color: #169BAC; text-decoration: none; padding: 10px 15px 10px 15px; border-radius:10px; }
a.btn-secondary:active { color: white; background-color: #169BAC; text-decoration: none; }
a.btn-secondary:visited { color: white; background-color: #169BAC; text-decoration: none; }
a.btn-secondary:hover { color: black; background-color: #169BAC; text-decoration: none; }

.grey-box {
    background: #f2f2f2;
    border-radius: 20px;
    padding: 30px;
}

.swish-right {
    background-image: url('../img/Logo_only_grey.png');
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: bottom;
    background-size: 100%; 
}

.swish-left {
    background-image: url('../img/Logo_only_grey.png');
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: bottom;
    background-size: 100%;
}

@media (max-width: 767.98px) {
    .swish-right {
        background-image: url('');
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        background-size: 100%;
    }

    .swish-left {
        background-image: url('');
        background-repeat: no-repeat;
        background-position-x: left;
        background-position-y: bottom;
        background-size: 100%;
    }
}

.swish-break img { width: 150px; text-align: center; }
/* news */
.article-card {
    border-bottom: 1px solid grey;
    font-size: 0.8rem;
    padding-bottom: 10px;
}
.article-main-card {
    font-size: 0.8rem;
    display: flex;
    
    justify-content: flex-start; /*keep everything at top */
    padding-top: 0;
    margin-top: 0;
}

.article-main-card h3 {
    color: #169BAC;
    font-family: OpenSans-SemiBold;
    font-size: 1.1rem;
    margin-top: 0 !important;
}

.article-main-card img {
    display: block;
}

.bottomblock {
    background-color: #F5F5F5;
}

.bottomblock-inner {
    position: relative;
    overflow: visible; /* allow the title to stick out */
}

.bottomblock-title {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    /*padding: 10px 18px;*/
    z-index: 5;
    color: #9E0139;
}


.bottomblock-img {
    position: relative;
    overflow: hidden; /* keeps image clipped to border radius etc. if needed */
}

    .bottomblock-img::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('../img/test_image_1.png');
        background-repeat: no-repeat;
        background-position: right top;
        opacity: 0.5;
        z-index: 0;
    }

    /* Makes sure your real content stays above the image */
    .bottomblock-img > * {
        position: relative;
        z-index: 1;
    }

    /* Content page items */

.content-block {
    padding: 25px 0;
}

.content-block-grey {
    background: #f2f2f2;
    border-radius: 20px;
    padding: 30px;
}
.content-block-grey p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* Team Carousel CSS */
.team-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

    /* Pause when hovered */
    .team-carousel:hover .team-track {
        animation-play-state: paused;
    }

.team-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: teamScroll 70s linear infinite;
}

/* Each card */
.team-card {
    width: 280px;
    flex: 0 0 auto;
    background: #f2f2f2;
    border-radius: 20px;
    padding: 18px;
}

.team-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.team-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin-bottom: 12px;
}

.team-text {
    font-size: 0.9rem;
    line-height: 1.35;
    max-height: 225px;
    height: 225px;
    overflow: hidden;
}

/* Continuous scroll */
@keyframes teamScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* Card / style gallery page */
/* Target CMS lists */
.cms-services-list ul {
    list-style: none;
    padding-left: 25px; /* indent whole list */
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .cms-services-list ul {
        grid-template-columns: 1fr 1fr;
    }
}

.cms-services-list ul li {
    position: relative;
    padding-left: 58px; /* more space for bigger tick */
    padding-top: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left !important;
}

    /* ✅ Bigger tick box + new colour */
    .cms-services-list ul li::before {
        content: "✓";
        position: absolute;
        left: 0;
        top: 4px;
        width: 38px; /* bigger box */
        height: 38px; /* bigger box */

        border: 3px solid #9E0139; /* new colour */
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9E0139; /* new colour */
        font-weight: 800;
        font-size: 22px; /* bigger tick */
        line-height: 1;
    }

    .cms-services-list ul li h3 {
        margin: 0 0 6px 0;
        font-size: 1.05rem;
        color: #169BAC;
    }


/* NAVBAR */
.mobile-submenu {
    border: 1px;
    border-block-color: #169dad;
    margin-top: 0.25rem;
    border-radius: 0.25rem;
}

.mobile-submenu-list {
    list-style: none;
    margin-bottom: 0;
}

.mobile-submenu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #169dad;
    border-radius: 10px;
}

.mobile-submenu-link:hover {
    background-color: #f8f9fa;
    color: black;
}

.navbar-toggler {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.image {
    max-width: 170px ;
}

/* Mobile menu background */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.25rem;
    }
}

/* Desktop dropdown positioning */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown-menu {
        margin-top: 0;
    }
}

.mobile-nav-item {
    width: 100%;
}

/* Mobile nav row - prevents shifting */
.mobile-nav-row {
    width: 100%;
    align-items: center;
}

/* Mobile nav link */
.mobile-nav-link {
    padding: 0.5rem 1rem;
    margin: 0;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}

/* Mobile submenu toggle button */
.mobile-submenu-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    margin: 0;
}

    .mobile-submenu-toggle:focus {
        outline: none;
        box-shadow: none;
    }

    .mobile-submenu-toggle:active {
        transform: none;
    }

/* Chevron icon - Bootstrap style */
.mobile-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 0.3em solid currentColor;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

/* Rotate chevron when expanded */
.mobile-submenu-toggle[aria-expanded="true"] .mobile-chevron {
    transform: rotate(180deg);
}

/* Smooth collapse animation */
.mobile-submenu {
    transition: all 0.35s ease;
}

.mobile-submenu-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: #009cad;
}

.mobile-submenu-link {
    display: block;
    padding: 0.6rem 1rem 0.6rem 2rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mobile-submenu-link:hover {
    background-color: rgba(0, 0, 0, 0.08);
}



/*JoinNetworkForm VALIDATION*/
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
}