/*================================ 
    Variable List - Standard Theme
================================*/
:root {
    /*================================ 
        Colors
    ================================*/
    /* Opusworks colors */
    --clr-opusworks-blue: #6fb1e4;
    --clr-opusworks-dark-blue: #3977c3;
    
    /* Border colors */
    --clr-border-standard: #D9D9D9;
    --clr-border-input: #b7b7b7;
    
    /* Background colors */
    
    /* Text colors */
    --clr-text-standard: #000;
    --clr-text-invert: #fff;

    /* Other colors */
    --clr-none: #fff;
    
    /*================================ 
        Other
    ================================*/
    /* Shadows */
    --shadow-soft: 3px 3px 3px -2px rgba(0,0,0,0.5);
    --shadow-soft-inset: inset 3px 3px 3px -2px rgba(0,0,0,0.5);
    --shadow-soft-mid: 4px 4px 4px -2px rgba(0,0,0,0.5);    
    --shadow-soft-high: 6px 6px 7px -2px rgba(0,0,0,0.5);    
}

/*================================ 
    Default
--------------------------------*/
html {
    font-family: 'Questrial';
    font-size: 16px;
    scroll-behavior: smooth; /* Smooth scrolling when navigating */
}

body {
    color: var(--clr-text-standard);
    background-color: #ffffff;
    font-size: 1rem;
    margin: 0px;
}

div {
    display: flex;
}

main {
    display: flex;
    background: var(--clr-bg-main);
}

section {
    display: flex;
    flex-flow: column;
    background-color: var(--clr-bg-section);
    border-radius: 5px;
    border: 1px solid var(--clr-border-standard);
    border-top: 3px solid var(--clr-border-standard);
    overflow: auto;
    padding: 5px;
}

span {
    font-family: 'Questrial';
}

a {
    color: #6fb1e4;
    text-decoration: none;
    white-space: nowrap;
}

button {
    color: white;
    display: inline-flex;
    cursor: pointer;
    font-family: 'Questrial';
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #cf2121;
    border: none;
    white-space: nowrap;
    text-transform: uppercase;
    border-radius: 20px;
    transition: all 0.5s ease;
    box-sizing: border-box;
    width: fit-content;
}

button:hover {
    background-color: #ff4d4d;
}

button:active {
    background-color: #cf2121;
}

sub {
    font-size: 0.8rem;
}

sup {
    font-size: 0.8rem;
}

/* Font Sizing */

.footer_header_text_size {
    font-size: 0.8rem;
}

.footer_text_size {
    font-size: 0.6rem;
}

.footer_text_size_small {
    font-size: 0.5rem;
}

.banner_header_text_size {
    font-size: 2.5rem;
}

.banner_sub_header_text_size {
    font-size: 1.5rem;
}

.section_header_text_size {
    font-size: 2rem;
}

.section_sub_header_text_size {
    font-size: 1.5rem;
}

.section_text_size {
    font-size: 1.3rem;
}

.card_header_text_size {
    font-size: 1.2rem;
}

.card_text_size {
    font-size: 0.8rem;
}

/* Extra Small Devices (Phones) */
@media (min-width: 320px) {
    html {
        font-size: 16px;
    }
}

/* Small Devices (Portrait Tablets and Large Phones) */
@media (min-width: 480px) {
    html {
        font-size: 18px;
    }
}

/* Medium Devices (Landscape Tablets) */
@media (min-width: 768px) {
    html {
        font-size: 20px;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 1024px) {
    html {
        font-size: 22px;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
    html {
        font-size: 24px;
    }
}


/*-------------------------------- 
    END - Default
================================*/

/*================================ 
    Custom Classes
--------------------------------*/

/* API/Library Hotfixes */
.aspNetHidden {
    display: none !important;
}

/*--------------------------------
    END - Custom Classes
================================*/

/*================================ 
Debug
--------------------------------*/

.debug-locator {
    outline: solid 3px red !important;
    background: pink !important;
}

/*--------------------------------
    END - Debug
================================*/

/*================================ 
    Browser Compatibility
================================*/

/* Scrollbar */
::-webkit-scrollbar { 
    padding: 5px; 
}
::-webkit-scrollbar-track { 
    box-shadow: inset 0 0 10px 10px transparent;
    border: solid 5px transparent;
    background-color: white;
}
::-webkit-scrollbar-thumb { 
    box-shadow: inset 0 0 10px 10px #8f8f8f;
    border: solid 5px transparent;
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { 
    box-shadow: inset 0 0 10px 10px #bfbfbf;
}

/*================================ 
    General
================================*/

a.button {
    color: white;
    display: inline-flex;
    cursor: pointer;
    font-family: 'Questrial';
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #9c884b;
    border: none;
    white-space: nowrap;
    text-transform: uppercase;
    border-radius: 20px;
    transition: all 0.5s ease;
    box-sizing: border-box;
    width: fit-content;
    text-decoration: none;
}

a.button:hover {
    background-color: #b0a06e;
}

a.button:active {
    background-color: #9c884b;
}

/*================================ 
    Sub-Pages
================================*/

/* Banner */

.sub_banner_section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    background: linear-gradient(180deg, rgba(245,245,247,1) 98%, rgba(242,242,244,1) 100%);
    position: relative;
}

.sub_banner_section .main_container {
    height: 100%;
    width: 100%;
    gap: 10px;
    position: absolute;
}

.sub_banner_section .text_container {
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding: 5px 0px 5px 100px;
}

.sub_banner_section .banner_text_1 {
    color: #383737;
    font-family: 'Roboto';
    font-weight: bold;
    font-size: 2rem;
}

.sub_banner_section .banner_text_2 {
    cursor: pointer;
    color: #3977c3;
    font-family: 'Roboto';
    white-space: normal;
    font-size: 1rem;
    text-decoration: none;
}

.sub_banner_section .image_container, .sub_banner_section .image_container_2 {
    flex: 1;
    justify-content: center;
    padding: 5px 100px 5px 0px;
}

.sub_banner_section .image_container img, .sub_banner_section .image_container_2 img {
    /*max-width: 70%;*/
    height: auto;
    object-fit: contain;
}

/* Sub Banner Image Fill */

.sub_banner_section .image_container_fill {
    flex: 1;
    position: relative;
    justify-content: flex-end;
}

.sub_banner_section .image_container_fill img {
    flex: 1;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.sub_banner_section .image_container_fill .sub_image_transparent_cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sub_banner_section .image_container_fill .image_cover {
    background: linear-gradient(90deg, rgba(245, 245, 247, 1) 0%, rgba(245, 245, 247, 0) 75%);
}

.sub_banner_section .image_container_fill span {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 5px;
    color: lightgray;
    font-size: 0.3rem;
    opacity: 0.5;
}

@media (max-width: 1200px) {
    .sub_banner_section {
        height: 30vh;
    }
    .sub_banner_section .banner_text_1, .sub_banner_section .banner_text_2 {
        text-align: center;
    }
    .sub_banner_section .image_container, .sub_banner_section .image_container_fill {
        display: none;
    }
    .sub_banner_section .text_container {
        align-items: center;
        padding: 20px;
    }
}

/* Sub Section */

.sub_section {
    padding: 150px;
}

.sub_section .two_column_container {
    gap: 50px;
    width: 100%;
}

.sub_section.text_only .two_column_container {
    gap: 200px;
}

.sub_section.text_only .text_container {
    justify-content: initial;
}

.sub_section.tall_image {
    padding: 0;
}

.sub_section.tall_image .text_container {
    padding: 150px 100px 150px 150px; /* Text on the left */
}

.sub_section .image_container, .sub_section .image_container_2 {
    flex: 1;
    position: relative;
    justify-content: flex-end;
}

.sub_section .image_container img, .sub_section .image_container_2 img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.sub_section .text_container {
    flex: 1;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.sub_section .header_text {
    font-family: 'Questrial', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.sub_section .sub_header_text {
    font-family: 'Questrial', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
}

.sub_section .sub_text_container {
    flex-direction: column;
    gap: 20px;
}

.sub_section .sub_text {
    font-family: 'Questrial', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.sub_section .sub_image_transparent_cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sub_section.fbc_color_scheme {
    background-color: #373737;
    color: white;
}

.sub_section .list_container {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 20px;
    row-gap: 65px;
    column-gap: 100px;
    justify-content: left;
}

.list_container {
    margin-top: 30px;
}

.list_container .header_text {
    margin-bottom: 0;
}

.list_container .text_container {
    gap: 5px;
}

.list_container img {
    height: 3rem;
}

@media (max-width: 1700px) {
    .sub_section .image_container {
        display: none;
    }
    .sub_section.tall_image .text_container {
        padding: 150px;
    }
}

@media (max-width: 1200px) {
    .sub_section {
        padding: 50px;
    }
    .sub_section.tall_image .text_container {
        padding: 50px;
    }
    .sub_section .list_container {
        column-gap: 50px;
    }
}

@media (max-width: 768px) {
    .sub_section .two_column_container {
        flex-direction: column !important;
        gap: 0;
    }
    .sub_section.text_only .two_column_container {
        gap: 50px;
    }
    .sub_section .list_container {
        column-gap: 20px;
    }
}

@media (max-width: 480px) {
    .sub_section .list_container {
        grid-template-columns: 100%;
        row-gap: 30px;
        column-gap: 20px;
        border-top: 1px solid white;
        padding-top: 60px;
    }
    .sub_section .list_container img {
        display: none;
    }
}

/* Tabbed Cards */

.tabbed_cards_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 30px;
    width: 100%;
}
.tabbed_card_container {
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid lightgray;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s; /* Add transition for smooth animation */
    animation-fill-mode: forwards;
    /*background: #DAECF8;*/
    /* <a> */
    display: flex;
    color: initial;
    white-space: normal;
}
.tabbed_card_container .card_cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 10px;
}
.tabbed_card_container:hover .card_cover {
    opacity: 1;
}
.tabbed_card_container .card_cover i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
}
.tabbed_cards_container .img_container {
    position: relative;
}
.tabbed_card_container .img_container img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}
.tabbed_card_container .img_container .img_cover {
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(180deg, rgba(150,150,150,0) 80%, rgba(150,150,150,0.3) 100%)
}
.tabbed_card_text_container {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    font-family: 'Questrial', sans-serif;
    padding: 30px;
    gap: 20px;
    background-color: white;
    border-radius: 0 0 10px 10px;
}
.tabbed_card_container .top_container_tab {
    height: 30px;
    border-radius: 10px 10px 0 0;
}
.tabbed_card_container:nth-child(4n + 1) .top_container_tab {
    background: #cf2121;
}
.tabbed_card_container:nth-child(4n + 2) .top_container_tab {
    background: #3977C4;
}
.tabbed_card_container:nth-child(4n + 3) .top_container_tab {
    background: #F68714;
}
.tabbed_card_container:nth-child(4n + 4) .top_container_tab {
    background: #3E9247;
}

/* View Text */

.tabbed_cards_container .tabbed_card_container .tabbed_card_text_container .card_text_size.view_text {
    color: #3977C4;
    font-weight: bold;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.tabbed_cards_container .tabbed_card_container .tabbed_card_text_container .card_text_size.view_text i {
    font-size: 0.6rem;
}

@media (max-width: 1200px) {
    .tabbed_cards_container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .tabbed_cards_container {
        grid-template-columns: 1fr;
    }
}

@media (pointer: coarse) {
    .tabbed_card_container:hover .card_cover {
        opacity: 0;
    }
}

/* Our Team */

.our_team_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.our_team_container .sub_section {
    padding: 100px;
}
.our_team_container .sub_section:nth-child(4n) {
    border-left: 2px solid #f5f5f7;
}
.our_team_container .sub_section:nth-child(4n - 1) {
    border-right: 2px solid #f5f5f7;
}
.our_team_container .sub_section:nth-child(4n - 2) {
    background-color: #f5f5f7;
    border-left: 2px solid white;
}
.our_team_container .sub_section:nth-child(4n - 3) {
    background-color: #f5f5f7;
    border-right: 2px solid white;
}
.our_team_container .sub_section .text_container {
    justify-content: normal;
    align-items: normal;
}
.our_team_container .sub_section .header_container {
    flex-direction: column;
}
.our_team_container .sub_section .header_text {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: left;
}
.our_team_container .sub_section .sub_header_text {
    font-size: 1.2rem;
    font-weight: normal;
}
.our_team_container .sub_section .sub_text_container {
    text-align: justify;
}
.our_team_container .sub_section .contact_info {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1200px) {
    .our_team_container {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .our_team_container .sub_section {
        padding: 50px;
    }
    .our_team_container .sub_section:nth-child(4n),
    .our_team_container .sub_section:nth-child(4n - 1),
    .our_team_container .sub_section:nth-child(4n - 2),
    .our_team_container .sub_section:nth-child(4n - 3) {
        border-left: none;
        border-right: none;
        background-color: initial; /* Or set to a desired color */
    }
    .our_team_container .sub_section:nth-child(odd) {
        background-color: #f5f5f7;
    }
    .our_team_container .sub_section.filler {
        display: none;
    }
}


/* Popup */

.popup_open {
    cursor: pointer;
}

.popup_cover {
    transition: all 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup_cover.active_popup {
    opacity: 1;
    pointer-events: auto;
}

.popup_cover:not(.active_popup) {
    opacity: 0;
    pointer-events: none;
}

.popup_container {
    position: fixed;
    transition: all 0.4s ease-in-out;
    flex-flow: column;
}

.popup_cover.active_popup .popup_container {
    transform: translateY(0px);
}

.popup_cover:not(.active_popup) .popup_container {
    transform: translateY(-100vh);
}

.popup_cover header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3977c3;
    color: white;
    padding: 0px 10px 0px 10px;
    height: 30px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border: 1px solid #D9D9D9;
    border-bottom: none;
}

.popup_cover header:hover {
    cursor: pointer;
    background: #6fb1e4;
}

.popup_cover #popupIframe {
    border: 1px solid #D9D9D9;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}