﻿/* =========================================================
   RECOGNISED BY GOVERNMENT
   INFINITE RESPONSIVE CARD SLIDER
========================================================= */

.recognised-section {
    width: 100%;
    padding: 50px 0;
    overflow: hidden;
    background: #ffffff;
}


    /* =========================================================
   SECTION HEADING
========================================================= */

    .recognised-section .section-heading {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-bottom: 30px;
    }

        .recognised-section .section-heading span {
            display: block;
            width: 55px;
            height: 2px;
            background: #a87522;
            flex-shrink: 0;
        }

        .recognised-section .section-heading h2 {
            margin: 0;
            padding: 0;
            color: #222222;
            font-size: 26px;
            font-weight: 700;
            line-height: 1.3;
            text-align: center;
        }


/* =========================================================
   SLIDER WRAPPER
========================================================= */

.recognised-slider-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}


/* =========================================================
   SCROLL VIEWPORT
========================================================= */

.recognised-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Prevent browser touch scrolling from interfering */
    touch-action: pan-y;
    /* Smooth mobile rendering */
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   TRACK
========================================================= */

.recognised-track {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: max-content;
    gap: 20px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   CARD
========================================================= */

.recognised-card {
    width: 220px;
    min-width: 220px;
    height: 190px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(168, 117, 34, 0.20);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}


    /* =========================================================
   CARD HOVER
========================================================= */

    .recognised-card:hover {
        transform: translateY(-6px);
        border-color: #a87522;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }


/* =========================================================
   LOGO CONTAINER
========================================================= */

.recognised-logo {
    width: 115px;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}


    /* =========================================================
   LOGO IMAGE
========================================================= */

    .recognised-logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
        pointer-events: none;
        user-select: none;
    }


/* =========================================================
   CARD TITLE
========================================================= */

.recognised-card h6 {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #222222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    word-break: normal;
}


/* =========================================================
   LEFT / RIGHT FADE
========================================================= */

.recognised-slider-wrapper::before,
.recognised-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 5;
    pointer-events: none;
}


/* Left fade */

.recognised-slider-wrapper::before {
    left: 0;
    background: linear-gradient( to right, #ffffff 0%, rgba(255, 255, 255, 0) 100% );
}


/* Right fade */

.recognised-slider-wrapper::after {
    right: 0;
    background: linear-gradient( to left, #ffffff 0%, rgba(255, 255, 255, 0) 100% );
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    .recognised-card {
        width: 235px;
        min-width: 235px;
        height: 195px;
    }

    .recognised-track {
        gap: 22px;
    }

    .recognised-logo {
        width: 120px;
        height: 108px;
    }
}


/* =========================================================
   LAPTOP / DESKTOP
========================================================= */

@media (max-width: 1199px) {

    .recognised-section {
        padding: 45px 0;
    }

    .recognised-card {
        width: 210px;
        min-width: 210px;
        height: 185px;
    }

    .recognised-track {
        gap: 18px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .recognised-section {
        padding: 40px 0;
    }

        .recognised-section .section-heading {
            gap: 12px;
            margin-bottom: 25px;
        }

            .recognised-section .section-heading h2 {
                font-size: 22px;
            }

            .recognised-section .section-heading span {
                width: 45px;
            }

    .recognised-card {
        width: 190px;
        min-width: 190px;
        height: 175px;
        padding: 16px 12px;
    }

    .recognised-logo {
        width: 100px;
        height: 90px;
        margin-bottom: 10px;
    }

    .recognised-card h6 {
        font-size: 13px;
    }

    .recognised-track {
        gap: 16px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .recognised-section {
        padding: 35px 0;
    }

        .recognised-section .section-heading {
            gap: 8px;
            margin-bottom: 22px;
        }

            .recognised-section .section-heading h2 {
                font-size: 18px;
                letter-spacing: 0.3px;
            }

            .recognised-section .section-heading span {
                width: 30px;
                height: 2px;
            }

    .recognised-card {
        width: 165px;
        min-width: 165px;
        height: 165px;
        padding: 14px 10px;
        border-radius: 10px;
    }

    .recognised-logo {
        width: 85px;
        height: 80px;
        margin-bottom: 8px;
    }

    .recognised-card h6 {
        font-size: 12px;
        line-height: 1.3;
    }

    .recognised-track {
        gap: 12px;
    }

    .recognised-slider-wrapper::before,
    .recognised-slider-wrapper::after {
        width: 35px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .recognised-section {
        padding: 30px 0;
    }

        .recognised-section .section-heading {
            margin-bottom: 20px;
        }

            .recognised-section .section-heading h2 {
                font-size: 16px;
            }

            .recognised-section .section-heading span {
                width: 22px;
            }

    .recognised-card {
        width: 145px;
        min-width: 145px;
        height: 150px;
        padding: 12px 8px;
    }

    .recognised-logo {
        width: 75px;
        height: 70px;
    }

    .recognised-card h6 {
        font-size: 11px;
    }

    .recognised-track {
        gap: 10px;
    }

    .recognised-slider-wrapper::before,
    .recognised-slider-wrapper::after {
        width: 25px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 360px) {

    .recognised-card {
        width: 135px;
        min-width: 135px;
        height: 145px;
    }

    .recognised-logo {
        width: 68px;
        height: 65px;
    }

    .recognised-card h6 {
        font-size: 10px;
    }
}


/* =========================================================
   REDUCED MOTION
   Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .recognised-card {
        transition: none;
    }

    .recognised-track {
        transform: none !important;
    }
}
