body, html {
    font-family: "Lato", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    margin: 0;
    padding: 0;
}

main {
    display: block;
    margin: 0;
    padding: 0;
}

.custom-primary-button {
    background-color: #2b71b9 !important;
    color: white !important;
    border: none !important;
    border-radius: 55px !important;
    padding: 13px 30px !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    position: relative;
    z-index: 0;
    padding-right: 70px !important;
}

    .custom-primary-button.btn-lg {
        padding: 16px 30px !important;
        padding-right: 80px !important;
        font-size: 18px !important;
    }


    .custom-primary-button::after {
        content: "";
        background-color: #00000014;
        height: 51px;
        border-radius: 51px;
        width: 51px !important;
        background-size: 10px;
        background-repeat: no-repeat;
        background-position: right 20px center;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        z-index: -1;
        background-image: url("/assets/images/chevron-right-solid-white.png");
        background-size: 10px;
        background-repeat: no-repeat;
        background-position: right 20px center;
        transition: opacity 0.3s ease-in-out 0s,color 0.3s ease-in-out 0s,background-color 0.3s ease-in-out 0s,text-decoration 0.3s ease-in-out 0s,top 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s,bottom 0.3s ease-in-out 0s,left 0.3s ease-in-out 0s,width 0.3s ease-in-out 0s,max-width 0.3s ease-in-out 0s,height 0.3s ease-in-out 0s,max-height 0.3s ease-in-out 0s,padding-top 0.3s ease-in-out 0s,padding-right 0.3s ease-in-out 0s,padding-bottom 0.3s ease-in-out 0s,padding-left 0.3s ease-in-out 0s,box-shadow 0.3s ease-in-out 0s,border-color 0.3s ease-in-out 0s,transform 0.3s ease-in-out 0s;
    }

    .custom-primary-button.btn-lg::after {
        height: 59px;
        border-radius: 59px;
        width: 59px !important;
        background-position: right 24px center;
        background-size: 11px;
    }
    .custom-primary-button:hover {

    }

    .custom-primary-button:hover::after {
        background-color: #fff0;
        width: 100% !important;
        transition: opacity 0.3s ease-in-out 0s,color 0.3s ease-in-out 0s,background-color 0.3s ease-in-out 0s,text-decoration 0.3s ease-in-out 0s,top 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s,bottom 0.3s ease-in-out 0s,left 0.3s ease-in-out 0s,width 0.3s ease-in-out 0s,max-width 0.3s ease-in-out 0s,height 0.3s ease-in-out 0s,max-height 0.3s ease-in-out 0s,padding-top 0.3s ease-in-out 0s,padding-right 0.3s ease-in-out 0s,padding-bottom 0.3s ease-in-out 0s,padding-left 0.3s ease-in-out 0s,box-shadow 0.3s ease-in-out 0s,border-color 0.3s ease-in-out 0s,transform 0.3s ease-in-out 0s;
    }


.custom-primary-outline-button {
    background-color: transparent !important;
    color: #2b71b9 !important;
    border: 2px solid #2b71b9 !important;
    border-radius: 55px !important;
    padding: 13px 30px !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease !important;
    position: relative;
    z-index: 0;
    padding-right: 70px !important;
}

.custom-primary-outline-button.btn-lg {
    padding: 16px 30px !important;
    padding-right: 80px !important;
    font-size: 18px !important;
}

.custom-primary-outline-button::after {
    content: "";
    background-color: #00000014;
    height: 51px;
    border-radius: 51px;
    width: 51px !important;
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: right 20px center;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
    background-image: url("/assets/images/chevron-right-solid-white.png");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: opacity 0.3s ease-in-out 0s, color 0.3s ease-in-out 0s, background-color 0.3s ease-in-out 0s, transform 0.3s ease-in-out 0s;
}

.custom-primary-outline-button.btn-lg::after {
    height: 59px;
    border-radius: 59px;
    width: 59px !important;
    background-position: right 24px center;
    background-size: 11px;
}

.custom-primary-outline-button:hover {
    background-color: #2b71b9 !important;
    color: white !important;
}

.custom-primary-outline-button:hover::after {
    background-color: #fff0;
    width: 100% !important;
    transition: opacity 0.3s ease-in-out 0s, color 0.3s ease-in-out 0s, background-color 0.3s ease-in-out 0s, transform 0.3s ease-in-out 0s;
}


.custom-external-button::after {
    content: "\f08e";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: white;
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 18px;
    height:50px;
}

.custom-primary-outline-button.custom-external-button::after {
    color: #2b71b9;
    background-color: #f3f3f3;
}
.custom-primary-outline-button.custom-external-button:hover::after {
    color: #f3f3f3;
    background-color: #2b71b9;
}

.background-light {
    background-color: #f8f8f8;
}

.border-on-bottom {
    border-bottom: 1px solid #e7e7e7
}

.border-on-top {
    border-top: 1px solid #e7e7e7
}

 
.custom-secondary-button {
    background-color: #6abf69 !important;
    color: white !important;
    border-radius: 55px !important;
    border: none !important;
    padding: 13px 30px !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    position: relative;
    z-index: 0;
    padding-right: 70px !important;
}

    .custom-secondary-button.btn-lg {
        padding: 16px 30px !important;
        padding-right: 80px !important;
        font-size: 18px !important;
    }

    .custom-secondary-button::after {
        content: "";
        background-color: #00000014;
        height: 51px;
        display: block;
        position: absolute;
        width: 51px !important;
        border-radius: 51px;
        right: 0;
        top: 0;
        z-index: -1;
        background-image: url("/assets/images/chevron-right-solid-white.png");
        background-size: 10px;
        background-repeat: no-repeat;
        background-position: right 20px center;
        transition: opacity 0.3s ease-in-out 0s,color 0.3s ease-in-out 0s,background-color 0.3s ease-in-out 0s,text-decoration 0.3s ease-in-out 0s,top 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s,bottom 0.3s ease-in-out 0s,left 0.3s ease-in-out 0s,width 0.3s ease-in-out 0s,max-width 0.3s ease-in-out 0s,height 0.3s ease-in-out 0s,max-height 0.3s ease-in-out 0s,padding-top 0.3s ease-in-out 0s,padding-right 0.3s ease-in-out 0s,padding-bottom 0.3s ease-in-out 0s,padding-left 0.3s ease-in-out 0s,box-shadow 0.3s ease-in-out 0s,border-color 0.3s ease-in-out 0s,transform 0.3s ease-in-out 0s;
    }

    .custom-secondary-button.btn-lg::after {
        height: 59px;
        border-radius: 59px;
        width: 59px !important;
        background-position: right 24px center;
        background-size: 11px;
    }

.custom-secondary-button:hover::after {
    background-color: #fff0;
    width: 100% !important;
    transition: opacity 0.3s ease-in-out 0s,color 0.3s ease-in-out 0s,background-color 0.3s ease-in-out 0s,text-decoration 0.3s ease-in-out 0s,top 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s,bottom 0.3s ease-in-out 0s,left 0.3s ease-in-out 0s,width 0.3s ease-in-out 0s,max-width 0.3s ease-in-out 0s,height 0.3s ease-in-out 0s,max-height 0.3s ease-in-out 0s,padding-top 0.3s ease-in-out 0s,padding-right 0.3s ease-in-out 0s,padding-bottom 0.3s ease-in-out 0s,padding-left 0.3s ease-in-out 0s,box-shadow 0.3s ease-in-out 0s,border-color 0.3s ease-in-out 0s,transform 0.3s ease-in-out 0s;
}


.custom-banner {
    position: relative;
    height: 100vh; /* full viewport height */
    height: 100dvh;
    width: 100%;
    overflow: hidden; /* hide scaled edges */
    min-height: 600px;
    padding-top: 60px;
    text-align:center;
}

.custom-banner-small {
    height: 40vh;
    height: 40dvh;
    min-height: 400px;
    padding-top: 60px;
}
.h1-subtitle-above {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.h2-subtitle-above {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    color: #2b71b9;
    font-weight: 700;
    word-spacing: 2.7px;
}



.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-wrapper.img-four-three {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    width: 100%; /* or % */
}

.multi-image-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 images per row */
    gap: 15px;
}

.image-corners {
    border-radius: 15px;
    overflow: hidden;
}


.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2;
    animation: bob 1.5s infinite;
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.85;
    pointer-events: none;
    transition: color 0.2s;
}

@keyframes bob {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(16px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}
/* Moving background layer */
.custom-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-housing.jpg') center center / cover no-repeat;
    transform: scale(1);
    animation: heroZoom 20s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 0;
}

.custom-banner.banner-about-us::before {
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-about-us.jpg') center center / cover no-repeat;
}
.custom-banner.banner-members::before {
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-members.jpg') center center / cover no-repeat;
}
.custom-banner.banner-gallery::before {
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-gallery.jpg') center center / cover no-repeat;
}
.custom-banner.banner-events::before {
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-events.jpg') center center / cover no-repeat;
}
.custom-banner.banner-rules::before {
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-rules.jpg') center center / cover no-repeat;
}
.custom-banner.banner-links::before {
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-links.jpg') center center / cover no-repeat;
}
.custom-banner.banner-join-us::before {
    background: url('/assets/images/backgrounds/freedom-corp-background-fc-join-us.jpg') center center / cover no-repeat;
}


.custom-banner .custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(19, 25, 40, 0.64); /* semi-transparent overlay */
    z-index: 1;
}

    .custom-banner .custom-content {
        position: relative;
        z-index: 2; /* above overlay */
    }

    @keyframes heroZoom {
        0%   { transform: scale(1); }
        100% { transform: scale(1.1); } /* tweak 1.1–1.2 as desired */
    }

    /* Respect reduced motion preferences */
    @media (prefers-reduced-motion: reduce) {
        .custom-banner::before {
            animation: none;
            transform: scale(1);
        }
    }

/* Default transparent navbar */
#custom-navbar {
    transition: all 0.4s ease;
    background-color: transparent;
}

    #custom-navbar:not(.scrolled)::after {
        content: "";
        position: absolute;
        border-bottom: 1px solid #fff3;
        bottom: 0;
        width: 100%;
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
/* @media to make same size as containers */
@media (max-width: 1320px) {
    #custom-navbar::after {
        width: 100%;
        max-width: 100%;
    }
}



.custom-container {
    margin: 0 6%;
}

    #custom-navbar .nav-link,
    #custom-navbar .navbar-brand {
        transition: color 0.4s ease;
        color: white;
    }

    /* Scrolled state */
    #custom-navbar.scrolled {
        background-color: white;
        box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.28);
        -webkit-box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.28);
        -moz-box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.28);
    }

        #custom-navbar.scrolled .nav-link,
        #custom-navbar.scrolled .navbar-brand {
            color: black !important;
        }

#custom-navbar .nav-item {
    padding: 0px 5px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* I want a border-right 1px 10% transparent only on first child, and then left on the remaining ones*/
#custom-navbar .primary-nav .nav-item:not(:first-child) {
    border-left: 1px solid #ffffff36;
}
#custom-navbar.scrolled .primary-nav .nav-item:not(:first-child) {
    border-left: 1px solid #00000036;
}

#custom-navbar .secondary-nav .nav-item:not(:first-child):not(:last-child) {
    border-left: 1px solid #ffffff36;
}

#custom-navbar.scrolled .secondary-nav .nav-item:not(:first-child):not(:last-child) {
    border-left: 1px solid #00000036;
}

.text-white-75{
        color: #ffffffb3 !important;
}

/* Make ml- just like pl also do right mr- */
.ml-1 {
    margin-left: 0.25rem !important;
}
.ml-2 {
    margin-left: 0.5rem !important;
}
.ml-3 {
    margin-left: 1rem !important;
}
.ml-4 {
    margin-left: 1.5rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}
.mr-2 {
    margin-right: 0.5rem !important;
}
.mr-3 {
    margin-right: 1rem !important;
}
.mr-4 {
    margin-right: 1.5rem !important;
}

.pt-6 {
    padding-top: 6rem !important;
}
.pt-7 {
    padding-top: 9rem !important;
}
.pt-8 {
    padding-top: 12rem !important;
}
.pt-9 {
    padding-top: 15rem !important;
}
.pt-10 {
    padding-top: 18rem !important;
}
.pb-6{
        padding-bottom: 6rem !important;
}
.pb-7{
            padding-bottom: 9rem !important;
}

.pb-8{
            padding-bottom: 12rem !important;
}
.pb-9{
            padding-bottom: 15rem !important;
}
.pb-10{
            padding-bottom: 18rem !important;
}


.footer-main a:not(.btn) {
    color: rgba(155, 232, 255, 0.82);
    text-decoration: underline;
}



.footer-main {
   
    padding: 130px 0;
    position: relative;
    z-index: 1;
    background-image: url('/assets/images/temp-background.jpg');
    background-position: center;
    background-size: cover;
}
    .footer-main::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(19, 25, 40, 0.9);
        z-index: -1;
        backdrop-filter: blur(3px);
    }

h6 {
    font-size: 30px;
    font-weight: 400;
}
h2 {
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: -0.9px;
    word-spacing: 5px;
    font-weight: 900 !important;
    line-height: 110%;
}

section h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background-color: #00000024;
    margin-top: 5px;
    margin-bottom: 7px;
}

section h2.text-center::after, section .text-center h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background-color: #00000024;
    margin-top: 5px;
    margin-bottom: 5px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}



.custom-banner h1
{
    font-size: 80px;
    text-transform: uppercase;
    letter-spacing: -3px;
    font-weight: 900 !important;
    word-spacing: 16px;
}


.custom-banner.custom-banner-small h1 {
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600 !important;
    word-spacing: 0px;
}

.footer-main h6::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background-color: #ffffff36;
    margin-top: 15px;
    margin-bottom: 15px;
}

.footer-bottom {
    background-color: rgb(19, 25, 40) !important;
    font-size: 14px !important;
}

.footer-bottom .container {
    padding: 15px 0px !important;
}

:root {
    --bg: #0f141a;
    --card: #1f2730;
    --accent: #3b82f6;
    --text: #e3e8ef;
    --muted: #8899aa;
    --rank: #ffd166;
}

.custom-member-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
}
.bigger-member-items.custom-member-grid {
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
}

.custom-member-member {
    background: white;
    border: 1px solid #29323c40;
    border-radius: .75rem;
    padding: .75rem .75rem .65rem;
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    z-index: auto;
    transform: translateZ(0) scale(1);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
    will-change: transform;
}

.member-wrapper {
    position: relative; /* anchor point for ::before */
    display: inline-block; /* so it hugs the <a> */
}

    .custom-member-member:hover,
    .custom-member-member:focus-visible {
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(59,130,246,.35);
        transform: scale(1.05);
        z-index: 2;
    }

    .custom-member-member:focus-visible {
        outline: none;
    }

.custom-member-avatar-wrap {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: .55rem;
    overflow: hidden;
    background: #182029;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bigger-member-items .custom-member-avatar-wrap {
    flex: 0 0 84px;
    width: 94px;
    height: 94px;
}

.bigger-member-items .custom-member-name {
    font-size: 1.05rem;
}

.bigger-member-items .custom-member-rank {
    padding: 0.35rem 0.7rem;
}
.bigger-member-items .custom-member-rank {
    font-size: 0.8rem;
}

    .custom-member-avatar-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.custom-member-info {
    flex: 1 1 auto;
    min-width: 0;
}

.custom-member-name {
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .35rem;
    font-size: .95rem;
}

.custom-member-rank {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--rank);
    background: #2d3642;
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 999px;
}

.custom-member-meta {
    margin-top: .45rem;
    font-size: .62rem;
    color: var(--muted);
    letter-spacing: .5px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.custom-member-count {
    font-size: .7rem;
    margin: 0 0 1rem;
    color: var(--muted);
}

@media (hover:none) {
    .custom-member-member:hover {
        transform: none;
        box-shadow: none;
    }
}

.custom-member-rank--commodor {
    background: linear-gradient(90deg,#b78b00,#f5d657);
    color: #1a1a1a;
}

.custom-member-rank--captain {
    background: #2a3f73;
    color: #fff;
}

.custom-member-rank--corsair {
    background: #244c3b;
    color: #e9fcef;
}

.custom-member-rank--privateer {
    background: #244c3b;
    color: #e9fcef;
}

.custom-member-rank--skallywag {
    background: #39424d;
    color: #dde5ee;
}

/* FIX: Previous setup used the same selector (.Liliumara::before) twice and relied on animation: pop-up reverse.
       The base state never visually reversed because the element's normal (non-hover) styles already matched the 0% keyframe.
       Implement separate in/out keyframes so hover plays pop-in and unhover plays pop-out. */

.Liliumara::before {
    content: "";
    position: absolute;
    top: -47px;
    left: 167px;
    width: 70px;
    height: 70px;
    background: url('/assets/images/morb.png') no-repeat center/contain;
    z-index: -1;
    pointer-events: none;
    /* Rest state */
    transform: translateY(0) scale(1) rotateY(180deg);
    opacity: 0;
    /* Smooth transitions for unhover */
    transition: transform 0.35s ease-in, opacity 0.35s ease-in;
}

.Liliumara:hover::before {
    transform: translateY(-20px) scale(1.2) rotateY(180deg);
    opacity: 1;
}

@keyframes lili-pop-in {
    0% {
        transform: translateY(0) scale(1) rotateY(180deg);
        opacity: 0;
    }

    100% {
        transform: translateY(-20px) scale(1.2) rotateY(180deg);
        opacity: 1;
    }
}

@keyframes lili-pop-out {
    0% {
        transform: translateY(-20px) scale(1.2) rotateY(180deg);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1) rotateY(180deg);
        opacity: 0;
    }
}



.special-split-text-block-padding {
    padding: 0px 140px;
}


.special-split-image {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 640px;
}

    .special-split-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter:grayscale(0.5);
        transition: all 0.5s ease;
    }

        /* first image: diagonals on both sides */
        .special-split-image img:first-child {
            clip-path: polygon( 15% 0, /* top-left diagonal */
            90% 0, /* top-right diagonal */
            75% 100%, /* bottom-right diagonal */
            0% 100% /* bottom-left diagonal */
            );
            z-index: 2;
        }

        /* right slice */
        .special-split-image img:last-child {
            clip-path: polygon( 15% 0, 100% 0, 100% 100%, 0% 100% );
            margin-left: -25%; /* pull it back so the diagonals overlap */
        }

        .special-split-image img:hover {
            cursor: pointer;
            filter: grayscale(0);
            transition: all 0.5s ease;
        }



/* event-interested needs to be a circle and will have a number inside of it, it needs to be position absolute so it can be on the side of a card */
.event-interested {
    position: absolute;
    top: -17px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: #1e66ae;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 2px solid white !important;
    font-weight: bold;
}

.event-creator {
    position: absolute;
    top: -38px;
    left: 9px;
    width: 50px;
    height: 50px;
    background-color: #1e66ae;
    color: white;
    border-radius: 50%;
    font-size: 15px;
    border: 3px solid white !important;
    font-weight: bold;
}

#calendar a {
    color: #1e66ae !important;
}

a.fc-col-header-cell-cushion {
    text-decoration:none !important
}

a.fc-daygrid-day-number{
        text-decoration:none !important
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(139, 217, 255, 0.15);
}

.calContainer {
    max-width: 1200px
}

.fc-daygrid-dot-event .fc-event-title {

    font-size: 12px;
}


.fc-popup-custom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}
.fc-popup-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.fc-popup-custom .card{
    width:450px;
}


.currently-active-event {
    position: fixed;
    bottom: 5px;
    left: 5px;
    z-index: 1000;
    width: 300px;
    background-color: white;
    border-radius: 15px !important;
    transition: all 0.3s ease-in-out;
}

    .currently-active-event:hover {
        box-shadow: 0px 0px 15px -4px rgba(0,0,0,0.28);
        -webkit-box-shadow: 0px 0px 15px -4px rgba(0,0,0,0.28);
        -moz-box-shadow: 0px 0px 15px -4px rgba(0,0,0,0.28);
        transition: all 0.3s ease-in-out;
        transform: scale(1.02) translateY(-20px);
    }


    .currently-active-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0px 0px;
}

.currently-active-event-name {
    padding: 10px 20px 0px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
}

.currently-active-event::before {
    content: "Active event";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #1e66ae;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1001;

}

.currently-active-event .event-date-block {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

.currently-active-event .event-time-block {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

.currently-active-event .event-start {
    font-weight: bold;
    font-size: 14px;
    color: #555;
}
.currently-active-event .event-end {
    font-weight: bold;
    font-size: 14px;
    color: #555;
}

.currently-active-event-link{
    position:relative
}
.currently-active-event::after {
    content: "\f054";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 1.5em;
    margin-left: 8px;
    color: #fff;
    transition: transform 0.3s;
    position: absolute;
    top: 39px;
    right: 50px;
    z-index: 100000;
    background-color: white;
    height: 50px;
    width: 50px;
    color: black;
    border-radius: 400px;
    padding-left: 17px;
    padding-top: 7px;
    z-index: -1;
    transition: all 0.1s ease-in-out;
}
.currently-active-event:hover::after {
    right: -39px;
    transition: right 0.1s ease-in-out;
    animation: paddingAnimation 0.5s infinite alternate;
    box-shadow: 0px 0px 15px -4px rgba(0,0,0,0.28);
    box-shadow: 0px 0px 15px -4px rgba(0,0,0,0.28);

}

@keyframes paddingAnimation {
    0% { padding-left:15px;
    }
    100% {
        padding-left: 20px;
    }
}

.currently-active-event-image{
    overflow:hidden;
}

#button-to-hide-this-event {
    position: absolute;
    top: 4px;
    left: 4px;
    color: white;
}



.card.event-is-active::before {
    content: "Active event";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #1e66ae;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1001;
}


.event-location {
    position: absolute;
    left: 64px;
    top: -15px;
    background-color: #1e66ae;
    padding: 2px 28px;
    border-radius: 45px;
    border: 2px solid white;
    color: white;
    font-size: 13px;
    font-weight: bold;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* style for id button backToTop*/
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: #1e66ae;
    color: white;
    border: none;
    padding: 15px 17px;
    border-radius: 70%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.28);
    -webkit-box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.28);
    -moz-box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.28);
    display: none;
    transition: background-color 0.3s ease-in-out;
    width: 60px;
    height: 60px;
}


#backToTop:hover {
    background-color: #155d8b;
}


.card {
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 320px;
    display: inline-block;
    vertical-align: top;
}

    .card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

.card-body {
    padding: 16px;
    position: relative;
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0px;
}

.card-desc {
    margin-bottom: 0px;
    min-height: 60px;
}

#calendar {
    background-color: white !important;
    padding: 15px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
}

.card hr {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 0;
    border-top: 1px solid #7d7d7d;
}


.event-datetime-wrapper {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: calc(100% - 38px);
}

.card {
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
    padding-bottom: 60px; /* reserve space for datetime */
    position: relative;
}

.event-datetime-wrapper {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding-top: 10px;
    border-top: 1px solid #80808047;
}

/* 1920 screens */

@media screen and (max-width: 2200px) {
    h2 {
        font-size: 42px;
    }
}

/* 1600 screens */

@media screen and (max-width: 1800px) {
    h2 {
        font-size: 33px;
    }
    .special-split-image {
        height: 540px;
    }
}

@media screen and (max-width: 1550px) {
    .special-split-text-block-padding {
        padding: 0px 80px;
    }

}

@media screen and (max-width: 1450px) {
    .h2-subtitle-above {
        font-size: 16px;
        word-spacing: 1.6px;
    }

}

@media screen and (max-width: 1450px) {
    .special-split-image {
        height: 490px;
    }
}

@media screen and (max-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1250px;
    }
}

@media screen and (max-width: 1300px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1150px;
    }
    #custom-navbar .nav-item {
        padding: 0px 3px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    .special-split-text-block-padding {
        padding: 0px 47px;
    }
}
@media screen and (max-width: 1100px) {



    #ctaButtonNav {
        font-size: 10px;
    }

    .col-sm {
        flex: 1 0 0% !important;
    }

    .col-sm-auto {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .col-sm-1 {
        flex: 0 0 auto !important;
        width: 8.333333% !important;
    }

    .col-sm-2 {
        flex: 0 0 auto !important;
        width: 16.666667% !important;
    }

    .col-sm-3 {
        flex: 0 0 auto !important;
        width: 25% !important;
    }

    .col-sm-4 {
        flex: 0 0 auto !important;
        width: 33.333333% !important;
    }

    .col-sm-5 {
        flex: 0 0 auto !important;
        width: 41.666667% !important;
    }

    .col-sm-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
    }

    .col-sm-7 {
        flex: 0 0 auto !important;
        width: 58.333333% !important;
    }

    .col-sm-8 {
        flex: 0 0 auto !important;
        width: 66.666667% !important;
    }

    .col-sm-9 {
        flex: 0 0 auto !important;
        width: 75% !important;
    }

    .col-sm-10 {
        flex: 0 0 auto !important;
        width: 83.333333% !important;
    }

    .col-sm-11 {
        flex: 0 0 auto !important;
        width: 91.666667% !important;
    }

    .col-sm-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

        .order-sm-first {
            order: -1 !important;
        }

        .order-sm-last {
            order: 13 !important;
        }

        .order-sm-0 {
            order: 0 !important;
        }

        .order-sm-1 {
            order: 1 !important;
        }

        .order-sm-2 {
            order: 2 !important;
        }

        .order-sm-3 {
            order: 3 !important;
        }

        .order-sm-4 {
            order: 4 !important;
        }

        .order-sm-5 {
            order: 5 !important;
        }

        .order-sm-6 {
            order: 6 !important;
        }

        .order-sm-7 {
            order: 7 !important;
        }

        .order-sm-8 {
            order: 8 !important;
        }

        .order-sm-9 {
            order: 9 !important;
        }

        .order-sm-10 {
            order: 10 !important;
        }

        .order-sm-11 {
            order: 11 !important;
        }

        .order-sm-12 {
            order: 12 !important;
        }
    

    .special-split-image img:first-child {
        clip-path: none;
        z-index: 2;
    }

    .special-split-image img:last-child {
        clip-path: none;
        margin-left: 0;
    }

    .special-split-text-block-padding {
        padding: 90px 127px !important;
    }
}



.hide-on-phone {
    display: flex;
}

.d-flex.hide-on-phone {
    display: flex;
}

@media screen and (max-width: 990px) {

    .custom-banner h1 {
        font-size: 65px;
        line-height: 100%;
    }

    .h1-subtitle-above {
        font-size: 18px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .primary-nav.ml-4{
                margin-left: 0rem !important;
    }

    #custom-navbar .nav-item {
        padding: 0.5rem 1rem !important; /* Bootstrap default */
        font-size: 1rem !important; /* Bootstrap default */
        font-weight: 400 !important; /* Bootstrap default */
        border-left: none !important; /* Remove custom border */
    }

    #custom-navbar .primary-nav .nav-item:not(:first-child) {
        border-left: none !important;
    }

    #custom-navbar.scrolled .primary-nav .nav-item:not(:first-child) {
        border-left: none !important;
    }

    #ctaButtonNav {
        font-size: 16px;
        width: 100%;
    }
    #custom-navbar {
        transition: all 0s;
    }
    .navbarNavShown #custom-navbar {
        transition: all 0s;
        background-color: #fff;
    }

    .navbarNavShown .navbar-nav .text-white {
        color: black !important;
    }
    .navbarNavShown .navbar-nav .text-white-75 {
        color: black !important;
    }

    .navbarNavShown .navbar-brand.text-white {
        color: black !important;
    }

    .navbarNavShown #ctaButtonNav {
        border-color: black;
        color: black;
    }


    .pt-6 {
        padding-top: 3rem !important;
    }

    .pt-7 {
        padding-top: 4.5rem !important;
    }

    .pt-8 {
        padding-top: 6rem !important;
    }

    .pt-9 {
        padding-top: 7.5rem !important;
    }

    .pt-10 {
        padding-top: 9rem !important;
    }

    .pb-6 {
        padding-bottom: 3rem !important;
    }

    .pb-7 {
        padding-bottom: 4.5rem !important;
    }

    .pb-8 {
        padding-bottom: 6rem !important;
    }

    .pb-9 {
        padding-bottom: 7.5rem !important;
    }

    .pb-10 {
        padding-bottom: 9rem !important;
    }


}


    @media screen and (max-width: 768px) {

        .custom-member-count {
            margin-bottom: 10px !important;
        }

        .special-split-text-block-padding {
            padding: 90px 57px !important;
        }

        .special-split-image {
            height: 340px;
        }

        .hide-on-phone {
            display: none !important;
        }

        .d-flex.hide-on-phone {
            display: none !important;
        }
        /* belt + suspenders */
    }

@media (max-width: 767.98px) {
    .footer-main .row > div,
    .footer-bottom .container {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .footer-bottom .container {
        flex-direction: column !important;
    }

    .footer-bottom .d-flex {
        justify-content: center !important;
        width: 100% !important;
    }

    .footer-bottom > div:last-child {
        margin-top: 1rem !important;
    }

    .footer-main table {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-main .text-center h6::after {
        content: "";
        display: block;
        width: 70px;
        height: 2px;
        background-color: #ffffff24;
        margin-top: 15px;
        margin-bottom: 15px;
        left: 50%;
        position: relative;
        transform: translateX(-50%);
    }

    .footer-main h6{
        margin-top:30px;
    }

}

@media (max-width: 767.98px) {
    .footer-bottom .d-flex.align-items-center > nav,
    .footer-bottom .d-flex.align-items-center > span,
    .footer-bottom .d-flex.align-items-center > .copyright-year {
        display: block;
        margin-top: 0.5rem;
        text-align: center;
        width: 100%;
        margin-left:0px !important;
    }

    .footer-bottom{
        overflow:hidden;
    }

    .footer-bottom .d-flex.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100%;
    }

        .footer-bottom .d-flex.align-items-center nav ul {
            padding-left: 0;
        }

            .footer-bottom .d-flex.align-items-center nav ul li {
                display: block;
                margin-bottom: 0.25rem;
            }
}

    @media screen and (max-width: 550px) {
        .special-split-text-block-padding {
            padding: 70px 20px !important;
        }

        .bigger-member-items .custom-member-avatar-wrap {
            flex: 0 0 64px !important;
            width: 64px !important;
            height: 64px !important;
        }

        .bigger-member-items .custom-member-rank {
            font-size: 0.7rem !important;
        }

        .fc-popup-custom .card {
            width: 386px;
            max-width: 100%;
        }

        .calContainer{
            padding:0;
        }
        #calendar {
            padding: 15px 0;
        }

        .fc .fc-toolbar-title {
            font-size: 1em;
        }

        .fc .fc-toolbar.fc-header-toolbar {
            padding: 0px 15px;
        }
      
    }

@media screen and (max-width: 350px) {
    .fc-popup-custom .card {
        width: 286px;
        max-width: 100%;
    }
}
