
:root {
    --color-blue: #174771;
    --color-lightblue: #1B9CD9;
    --color-red: #e9473f;
    --color-gray: #F6F6F6;
}

html {
    margin-top: 0 !important;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:target {
    scroll-margin-top: 80px;
}

body {
    color: var(--color-darkgreen);
}

#wpadminbar { opacity: 0.5; }

header {
    padding: 20px 0;
    transition: .2s ease;
    #logo { height: 60px; transition: .2s ease; }
    #primary-navigation {
        a {
            color: var(--color-blue);
            font-weight: 700;
            text-decoration: none !important;
            &:hover {
                color: var(--color-red);
                text-decoration: underline !important;
            }
        }
    }
    &.offpage {
        background-color: var(--color-gray);
    }
    &.squeeze {
        padding: 12px 0;
        #logo { height: 48px; }
    }
}

main {
    position: relative;
    padding-top: 100px;
    &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100px;
        background-color: var(--color-blue);
    }
}

section.hero {
    .swiper { height: 100%; }
    .elementor-widget-image-carousel .swiper .swiper-slide figure { height: 100%; }
    .elementor-widget-image-carousel .swiper .swiper-slide figure img { height: 100%; object-fit: cover; }

    .elementor-widget-image-carousel {
        .swiper-pagination {
            right: 1.75rem;
            left: auto !important;
            bottom: 50% !important;
            width: auto !important;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            transform: translateY(50%);
        }

        .swiper-pagination-bullet {
            width: 2rem;
            height: 0.45rem;
            margin: 0 !important;
            border-radius: 0;
            background: #fff;
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            background: var(--color-red);
        }
    }
}

section.stats {
    padding: 2rem 0;
    .elementor-widget-text-editor {
        color: var(--color-blue);
        font-weight: 700;
        text-align: center;
        line-height: 100%;
    }
}

section.articles {
    position: relative;
    &::after {
        content: ""; width: 149px; height: 118px; position: absolute; bottom: 0; left: 15%; z-index: -1; pointer-events: none;
        background-image: url('../../assets/images/articles-bg.svg'); background-size: cover; background-repeat: no-repeat; background-position: center;
    }

}

#hp-members {
    --members-logo-width: clamp(110px, 10vw, 150px);
    --members-gap: clamp(2rem, 3.5vw, 4rem);
    --members-speed: 50s;

    .hp-members-marquee {
        width: 100%;
        overflow: hidden;
        min-height: 56px;
    }

    .hp-members-track {
        display: flex;
        align-items: center;
        column-gap: var(--members-gap);
        width: max-content;
        animation: hp-members-scroll var(--members-speed) linear infinite;
        will-change: transform;
    }

    .hp-members-item {
        flex: 0 0 auto;
        text-decoration: none !important;
    }

    .hp-members-item img {
        width: var(--members-logo-width);
        transition: transform 220ms ease;
    }

    .hp-members-item:hover img,
    .hp-members-item:focus-visible img {
        transform: scale(1.08);
    }

    .hp-members-marquee:hover .hp-members-track,
    .hp-members-marquee:focus-within .hp-members-track {
        animation-play-state: paused;
    }
}

@keyframes hp-members-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

main ul {
    margin: 1rem 0 1rem 2rem !important;
    list-style-type: disc !important;
}

main ol {
    margin: 1rem 0 1rem 2rem !important;
    list-style-type: decimal !important;
}

nav ol { margin: 0 !important; list-style-type: none !important; }

h1 {
    font-size: 3rem;
    font-weight: bolder;
    line-height: 100%;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: bolder;
    line-height: 100%;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 100%;
    margin-bottom: 1rem;
}

p { margin-bottom: 1rem; }

a {
    color: var(--color-red);
    font-weight: 700;
    text-decoration: underline !important;
}

b, strong { font-weight: 700 !important; }

button

.bg-lightblue { background-color: var(--color-lightblue); }
.bg-blue { background-color: var(--color-blue); }
.bg-red { background-color: var(--color-red); }
.bg-gray { background-color: var(--color-gray); }
.color-blue { color: var(--color-blue) !important; }
.color-lightblue { color: var(--color-lightblue) !important; }

.container { padding-left: 16px !important; padding-right: 16px !important; }
.container-half { width: 100%; max-width: 100% !important; }

/*********** MIN-WIDTH MEDIA QUERIES ***********/

@media (min-width: 767px){
    .container-half { max-width: 767px !important; padding-left: 16px !important; padding-right: 16px !important; }
}

@media (min-width: 1024px){
    .container-half { max-width: 1024px !important; padding-left: 16px !important; padding-right: 16px !important; }
}

@media (min-width: 1280px){
    .container-half { max-width: 640px !important; }
}

@media (min-width: 1440px){
    .container-half { max-width: 720px !important; }
}

/*********** MAX-WIDTH MEDIA QUERIES ***********/

@media (max-width: 1440px){ /* 2xl */
    
}

@media (max-width: 1280px){ /* xl */
    h1 { font-size: 2.5rem; }
}

@media (max-width: 1024px){ /* lg */
    main { padding-top: 72px; }
    main::before { height: 72px; }

    header { padding: 12px 0; }
    header #logo { height: 48px; }
}

@media (max-width: 767px){ /* md */
    section.hero {
        .elementor-widget-image-carousel {
            .swiper-pagination {
                right: 1rem;
                gap: 0.45rem;
            }

            .swiper-pagination-bullet {
                width: 1.5rem;
                height: 0.35rem;
            }
        }
    }
    
}

@media (max-width: 600px){ /* sm */
    main { padding-top: 50px; }
}

@media (max-width: 480px){ /* xs */
    
}