﻿/* GENERAL */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
main {
    flex: 1; 
}
footer {
    margin-top: auto; 
}

.validation-summary-valid {
    display: none;
}
.content-container {
    background: linear-gradient(to bottom right, #f0f7ff, #e6f3ff)
}
.cta-link {
    padding:4px;
    display: inline-block;
    background-color: var(--bs-primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}

    .cta-link:hover {
        background-color: var(--bs-secondary);
        color:white;
    }
/* GENERAL - END */


/* NAV */
.dropdown-item {
    padding: 0.1rem 0.5rem;
}
.dropdown-toggle::after {
    display: none;
}
.XBlackPoints {
    list-style-type: square;
}
    .XBlackPoints li {
        margin-left: 20px;
        padding-left: 20px;
    }
.XGreenPoints {
    list-style-type: none;
}

    .XGreenPoints li:before {
        content: "\2713";
        color: #00dbb9;
        font-weight: bold;
        padding-right: 10px;
    }
.XNoPoints {
    list-style-type:none;
}
/* NAV - END*/


/* CONTACT US */
.google-maps {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}
.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}
.contact-us-img {
    border-radius: 12px;
    max-height: 350px;
}
/* CONTACT US - END */


/* SPLIDE */
.child-item-carousel {
    background-color: #E0E0E0;
    padding-top: 20px;
}
.splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .splide__slide img.img-fluid {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
.x-splide {
    max-height: 450px;
}
.x-splide-image {
    max-height: 450px;
}
.splide__list {
    z-index: 1;
    max-height: 450px;
}

.thumbnail-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

    .thumbnail-box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Makes images cover the area while maintaining aspect ratio */
    }
.thumbnail-contain img {
    object-fit: contain;
}
/* SPLIDE - END */


/* PRODUCT */
.x-image {
    max-height: 280px;
}
.XProductHeading p, .XProductHeading ul li {
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 400;
}
/* PRODUCT - END */


/* PARENT */
.thumbnails {
    display: flex;
    margin: 1rem auto 0;
    padding: 0;
    justify-content: center;
}
.thumbnail {
    width: 70px;
    height: 70px;
    overflow: hidden;
    list-style: none;
    margin: 0 0.2rem;
    cursor: pointer;
    opacity: 0.3;
}

    .thumbnail.is-active {
        opacity: 1;
    }
.load-modal-content {
    cursor: pointer;
}
    .load-modal-content:hover {
        background: #f9f9f9;
        border: 1px solid #0099b9;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.listing-button{
    width:75px;
}
/* PARENT - END */

/*HOME PAGE*/
.hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.benefits {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 1000px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #205D96, #0090ae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}
.benefits {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.benefits-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
    .benefit-item:hover {
        transform: translateY(-2px);
        background: #f0f9ff;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .benefit-item p {
        margin: 0;
        line-height: 1.4;
    }
.benefit-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.stats {
    margin-top: 2rem;
    padding: 2rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
    text-align: center;
}
    .stats h3 {
        font-size: 2.5rem;
        color: #1e40af;
        margin-bottom: 0.5rem;
    }
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s;
}
    .cta-button:hover {
        border: 1px solid black;
    }
.section-title {
    margin-bottom: 2rem;
    position: relative;
}
    .section-title:after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background: var(--bs-primary);
        margin-top: 1rem;
    }
.overview-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
}
.leadership-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}
.leadership-title {
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.leadership-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
    .leadership-items li {
        padding: 0.75rem 0 0.75rem 1.5rem;
        position: relative;
        color: #374151;
    }
        .leadership-items li:before {
            content: '◆';
            color: #3b82f6;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
.final-note {
    font-size: 1.125rem;
    color: #4b5563;
    padding: 1.5rem 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 2rem;
}
.header-gradient {
    background: linear-gradient(90deg, #2193b0 0%, #6dd5ed 100%);
}
/* END home Page - Overview */


/* OUR REACH */
.flag-container {
    height: 50px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.country-card {
    transition: transform 0.2s;
    border: 2px solid #2193b0;
    background: #f1f5f9;
    border-radius: 12px;
}
    .country-card:hover {
        transform: translateY(-5px);
        transform: scale(1.1);
        color: var(--bs-primary);
    }
.flag-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid black;
}
/* OUR REACH - END */

/* SPINNER */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* semi-transparent white */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* ensure it's on top */
}
.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}
    .loader::before, .loader::after {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #000;
        animation: prixClipFix 2s linear infinite;
    }
    .loader::after {
        inset: 8px;
        transform: rotate3d(90, 90, 0, 180deg );
        border-color: var(--bs-primary);
    }

@keyframes rotate {
    0% {  transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}
@keyframes prixClipFix {
    0% { clip-path: polygon(50% 50%,0 0,0 0,0 0,0 0,0 0) }
    50% { clip-path: polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0) }
    75%, 100% { clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%) }
}
/* SPINNER - END */

/* MARKHAM GLOBAL PAGE */
.header-container {
    margin-top: -24px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 300px;
}

.header-image {
    width: 100%;
    height: 100%; /* or set a specific height */
    object-fit: cover;
}
/* MARKHAM GLOBAL PAGE - END */

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media only screen and (min-width: 320px) and (max-width: 990px) {
    .dropdown-toggle::after {
        display: none;
    }
}
