/**
 * Shared Section: Global Enterprise Component Styles
 * "Trusted by Global Enterprises"
 */

.shared-global-enterprise {
    position: relative;
    background-color: #000000;
    color: #ffffff;
    padding: clamp(60px, 6vw, 100px) 0;
    overflow: hidden;
}

.shared-global-enterprise .container {
    position: relative;
    z-index: 2;
}

/* Header & Typography */
.global-enterprise__header {
    /* text-align: center; */
    /* margin-bottom: clamp(36px, 4vw, 66px); */
}

.global-enterprise__subtext {
    /* margin-bottom: clamp(14px, 1.5vw, 22px); */
    /* margin-bottom: clamp(24px, 2.75vw, 40px); */
    margin-bottom: clamp(16px, 1.4vw, 24px);
}

.global-enterprise__subtext .slabel {
    margin: 0;
}

.global-enterprise__title {
    /* font-size: clamp(28px, 2.7vw, 44px); */
    font-size: clamp(26px, 2.5vw, 48px);
    /* font-weight: 600; */
    line-height: 140%;
    color: #ffffff;
    margin: 0;
}

.global-enterprise__title .highlight {
    color: var(--primary, #d9f131);
    font-weight: 600;
}

.global-enterprise__title p {
    margin: 0;
    font: inherit;
    color: inherit;
    display: inline;
}

/* Grid Layout */
.global-enterprise__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    /* gap: 20px; */
    gap: clamp(20px,3.45vw,66px);
    width: 100%;
}

/* Card Styling */
.global-enterprise__card {
    display: flex;
    flex-direction: column;
    /* gap: clamp(64px, 8vw, 150px); */
    gap: clamp(64px, 6.75vw, 130px);
    /* padding: clamp(24px,2.3vw,40px) clamp(20px,1.75vw,30px); */
    padding: clamp(24px,2.1vw,40px) clamp(20px,1.575vw,30px);
    padding-top: 10px;
    /* padding: 40px 30px; */
    background-color: #121820;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    cursor: default;
    overflow: hidden;
}

/* Fallback Card Gradient Backgrounds */
.global-enterprise__card--safety-science {
    background: linear-gradient(180deg, #18283a 0%, #101c29 100%);
}

.global-enterprise__card--islamic-banking {
    background: linear-gradient(180deg, #1b232c 0%, #11171e 100%);
}

.global-enterprise__card--beauty-leader {
    background: linear-gradient(180deg, #2b2e34 0%, #17181c 100%);
}

.global-enterprise__card--maritime-solutions {
    background: linear-gradient(180deg, #3d2713 0%, #1e1308 100%);
}

.global-enterprise__card--retail-icon {
    background: linear-gradient(180deg, #1b232f 0%, #10151c 100%);
}

.global-enterprise__card--global-qsr {
    background: linear-gradient(180deg, #3a131b 0%, #1c080d 100%);
}

.global-enterprise__card--healthcare-finance {
    background: linear-gradient(180deg, #1d3227 0%, #0e1913 100%);
}

.global-enterprise__card--cybersecurity-leader {
    background: linear-gradient(180deg, #27333e 0%, #141a20 100%);
}

.global-enterprise__card--marine-robotics {
    background: linear-gradient(180deg, #19528d 0%, #0d2c4e 100%);
}

.global-enterprise__card--family-law {
    background: linear-gradient(180deg, #1a2839 0%, #0f1823 100%);
}

/* Card Hover & Focus States (Hover effect removed) */
.global-enterprise__card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.global-enterprise__card:focus-visible {
    border-color: var(--primary, #d9f131);
}

.global-enterprise__logo {
    /* width: auto;
    height: auto;
    object-fit: contain;
    max-height: 40px;
    max-width: 200px; */
    width: 100%;
    height: auto;
    object-fit: contain;
    /* max-height: 27px; */
    max-width: min(30vw,200px);
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}


.global-enterprise__card-title {
    font-size: clamp(16px, 1.05vw, 1.25rem);
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 160%;
}

.global-enterprise__card-desc {
    font-size: clamp(14px, 0.835vw, 16px);
    /* font-weight: 400; */
    /* line-height: 1.55; */
    line-height: 150%;
    color: rgba(255, 255, 255, 0.60);
    margin: 0;
}

.global-enterprise__card-desc > p {
    margin: 0 0 10px 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: 0px;
}
.global-enterprise__card-desc > p strong {
    color: white;
}

.global-enterprise__card-desc > p:last-child {
    margin-bottom: 0;
}

.global-enterprise__card-desc a {
    color: inherit;
    text-decoration: underline;
}

/* Mobile Scroll Indicators & Expand Wrap (hidden on desktop) */
.global-enterprise__more-wrap {
    display: none;
}

.global-enterprise__mobile-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.global-enterprise__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.global-enterprise__dot.is-active {
    background: var(--primary, #d9f131);
    transform: scale(1.25);
}

/* Breakpoint: Laptop / Small Desktop (1025px - 1320px) */
@media (max-width: 1320px) {
    /* .global-enterprise__grid {
        gap: 16px;
    } */

    .global-enterprise__card {
        /* padding: 28px 20px 24px; */
        
    }

    .global-enterprise__logo-wrap {
        height: 34px;
    }

    /* .global-enterprise__logo {
        max-height: 32px;
    } */
}

/* Breakpoint: Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .global-enterprise__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        /* gap: 16px; */
    }

    /* .global-enterprise__card {
        min-height: 300px;
    } */
}

/* Breakpoint: Mobile (< 768px): 2-Column Grid Layout */
@media (max-width: 767px) {
    .shared-global-enterprise {
        padding: 48px 0 54px;
    }

    .global-enterprise__header {
        /* text-align: center; */
        /* margin-bottom: 24px; */
    }

    /* .global-enterprise__subtext {
        display: flex;
        justify-content: center;
        margin-bottom: 14px;
    } */

    /* .global-enterprise__subtext .slabel {
        margin-left: auto;
        margin-right: auto;
    } */

    .global-enterprise__title {
        text-align: left;
    }

    /* 2-Column Grid System (Replacing Horizontal Carousel) */
    .global-enterprise__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .global-enterprise__card {
        flex: none;
        width: 100%;
        min-width: 0;
        /* min-height: 220px; */
        height: auto;
        padding: 18px 14px 16px;
        /* gap: 24px; */
        /* border-radius: 8px; */
        display: flex;
        flex-direction: column;
        /* justify-content: space-between; */
        box-sizing: border-box;
        scroll-snap-align: none;
    }

    .global-enterprise__logo-wrap {
        height: auto;
        max-height: 26px;
        display: flex;
        align-items: center;
    }

    /* .global-enterprise__logo {
        max-height: 24px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    } */

    .global-enterprise__card-title {
        margin: 0 0 6px 0;
        line-height: 130%;
    }

    .global-enterprise__card-desc > p {
        margin: 0 0 6px 0;
    }
    .global-enterprise__card-desc > p strong {
        color: white;
    }

    .global-enterprise__card-desc > p:last-child {
        margin-bottom: 0;
    }

    /* Show first 6 cards on mobile by default (3 rows of 2) */
    .global-enterprise__grid .global-enterprise__card:nth-child(n+7) {
        display: none;
    }

    /* Expand remaining cards when user clicks "more" */
    .global-enterprise__grid.is-expanded .global-enterprise__card:nth-child(n+7) {
        display: flex;
        animation: geFadeIn 0.35s ease forwards;
    }

    @keyframes geFadeIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .global-enterprise__more-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 24px;
        width: 100%;
    }

    .global-enterprise__more-btn {
        text-decoration: underline;
        background: transparent;
        border: none;
        color: #ffffff;
        cursor: pointer;
        padding: 8px 16px;
        font-family: inherit;
        font-weight: 500;
        text-align: center;
        /* text-transform: lowercase; */
        /* letter-spacing: 0.02em; */
        /* transition: opacity 0.2s ease, transform 0.2s ease; */
        outline: none;
    }

    /* .global-enterprise__more-btn:hover,
    .global-enterprise__more-btn:active {
        opacity: 0.8;
        transform: translateY(-1px);
    } */

    /* Mobile scroll dots removed */
    .global-enterprise__mobile-dots {
        display: none !important;
    }
}
