@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


.company-ratings-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.7vw;
    font-weight: 400;
    line-height: 5.20vw;
    text-align: center;
    width: 100%;
    color: #1E4EBB;
    padding-top: 5vw;
}

.company-ratings {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-ratings-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0vw;
    justify-content: center;
    align-items: center;
}

.company-ratings-content {
    display: flex;
    justify-content: space-between;
    width: 75%;
    padding-top: 8vw;
}

.company-ratings-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.company-ratings-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5vw;
    font-weight: 500;
    line-height: 2.6vw;
    text-align: left;
}

.company-ratings-body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2vw;
    font-weight: 400;
    line-height: 2.08vw;
    text-align: left;
    width: 100%;
    box-sizing: border-box; 
    
}

.company-ratings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15.9vw;
    height: 1.3vw;
    padding: 1.35vw 3.0vw;
    gap: 0.8vw;
    text-align: center;
    border-radius: 1.1vw;
    background-color: var(--C-1, #FDB121);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2vw;
    font-weight: 500;
    line-height: 2.4vw;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;       /
}

.company-ratings-button:hover {
    opacity: 0.8;
}

.company-ratings-button-image {
    width: 1.5vw; 
    height: auto; 
    position: absolute; 
    left: 3.6vw; 
    top: 50%; 
    transform: translateY(-50%); 
}

.company-ratings-button-text {
    z-index: 1;
}

.company-ratings-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5vw;
    margin-bottom: 2vw;
    width: 100%;
}

.company-ratings-search {
    display: flex;
    align-items: center;
    width: 74%;
    max-width: 74%;
    height: 4.5vw;
    gap: 0.5vw;
    border-radius: 1.4vw;
    background: var(--C-Fill, #F7F5F5);
    border: 1px solid var(--C-Fill-Corners, #EAEAEA);
    padding: 0.15vw 1.5vw;
    position: relative;
}

.company-ratings-search-icon {
    width: 1.8vw;
    height: 1.8vw;
    opacity: 0.7;
}

.company-ratings-search-input {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 1vw;
    font-weight: 400;
    line-height: 2.4vw;
    color: var(--C-Grey, #555555);
    background: transparent;
    border: none !important; 
    padding: 0;
    outline: none !important; 
    box-shadow: none !important;
    cursor: text; 
}



@media (min-width: 769px) {
    .shape1,
    .shape2, .company-ratings-people, .company-mobile-title,
    .company-mobile-subtitle {
        display: none;
    }

    /* /company-ratings/ only: lay each company row out as SWA-style columns
       (title | sliding card carousel | see-more) instead of the original
       layout where the title was absolutely positioned over the carousel and
       two background-coloured masks hid all but the centre card. With the
       title now in its own column the masks are no longer needed, which
       removes the large empty gutters while keeping the cards in a carousel.
       Scoped to .ratings-page-style so the home page is unaffected. */
    .ratings-page-style .company-set {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1vw;
        height: auto;
        padding: 40px;
        overflow: hidden;
    }

    .ratings-page-style .title-container {
        position: static;
        left: auto;
        width: 250px;
        max-width: 250px;
        flex-shrink: 0;
        gap: 10px;
    }

    /* Title column typography matched to SWA's ratings list (fixed px). */
    .ratings-page-style .company-initial {
        width: 50px;
        height: 50px;
        font-size: 25px;
        font-weight: 500;
        margin-bottom: 0;
    }

    .ratings-page-style .company-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .ratings-page-style .company-name {
        font-size: 16px;
        font-weight: 600;
    }

    .ratings-page-style .company-location {
        font-size: 14px;
        color: #555555;
        width: auto;
        margin-bottom: 4px;
    }

    .ratings-page-style .star {
        width: 20px;
        height: 20px;
    }

    .ratings-page-style .star-rating-container {
        gap: 10px;
    }

    .ratings-page-style .percentage-value {
        font-size: 16px;
        font-weight: 500;
    }

    /* Carousel viewport: fixed width so it reveals ~2 cards like SWA (whose
       fs-col-2 is capped at 530px incl. arrows), rather than filling all the
       available space. Height grows to the 193px cards. */
    .ratings-page-style .content-container {
        flex: 0 0 460px;
        max-width: 460px;
        height: auto;
        overflow: hidden;
    }

    /* Native left-aligned horizontal scroll, like SWA: the strip starts at the
       first card (flush left) and the arrows scroll it. Scrollbar hidden. */
    .ratings-page-style .carousel-wrapper {
        max-width: none;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ratings-page-style .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .ratings-page-style .image-container {
        width: max-content;
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: 1vw;
        transform: none;
    }

    /* Card dimensions match SWA: 225 x 193, 20px radius, icon + pill centred
       in flow (10px apart) rather than absolutely bottom-anchored. */
    .ratings-page-style .image-box {
        box-sizing: border-box;
        width: 225px;
        min-width: 225px;
        height: 193px;
        margin: 0;
        padding: 20px;
        gap: 10px;
        justify-content: center;
    }

    /* SWA card icon is 45px; bring it into flow (relative keeps it above the
       gradient background layers, which rely on z-index). */
    .ratings-page-style .icon-image {
        position: relative;
        top: auto;
        z-index: 2;
        width: 45px;
    }

    /* SWA pill: 50px radius, min-width 180px, in flow under the icon. Condensed:
       tight padding and a small gap so the title + stars sit snugly. */
    .ratings-page-style .text-box {
        position: relative;
        bottom: auto;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: auto;
        min-width: 180px;
        max-width: 80%;
        margin: 0;
        padding: 15px 0px;
        border-radius: 50px;
    }

    /* Card titles match SWA's 16px pill header. */
    .ratings-page-style .stat {
        font-size: 16px;
    }

    /* Trust Score percentage and SWA-sized 20px stars. */
    .ratings-page-style .stat-value {
        font-size: 16px;
    }

    .ratings-page-style .company-rating-star {
        width: 20px;
        height: 20px;
    }

    /* Masks were only there to hide cards behind the absolute title. */
    .ratings-page-style .carousel-mask {
        display: none;
    }

    /* Arrows flow inline, flanking the carousel. */
    .ratings-page-style .carousel-arrow {
        position: static;
        flex-shrink: 0;
    }

    /* Auto margins on the outer sides of the two arrows split the free space
       evenly, centring the carousel group between the title and the button. */
    .ratings-page-style .left-arrow {
        left: auto;
        right: auto;
        margin-left: auto;
    }

    .ratings-page-style .right-arrow {
        left: auto;
        right: auto;
        margin-right: auto;
    }

    .ratings-page-style .see-more-link {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {

    .company-ratings-title, .company-ratings-subtitle {
        display: none; 
    }
    .mobile-background {
        width: 100%; 
        height: 120vw;
        background-color: #FEE0A6; 
        position: relative; 
        z-index: -1; 
    }

    .shape1 {
        width: 17vw; 
        max-width: none; 
        height: auto; 
        position: absolute; 
        top: 7%;
        left: 29vw;
    }

    .shape2 {
        width: 11vw;
        max-width: none; 
        height: auto; 
        position: absolute; 
        top: 7%;
        left: 58vw;
    }

    .company-ratings-people {
        width: 65vw;
        max-width: none;
        height: auto;
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translateX(-50%);
    }

    .company-mobile-title {
        font-family: 'Poppins', sans-serif;
        font-size: 10.5vw; 
        font-weight: 400;
        color: #1E4EBB;
        position: absolute;
        line-height: 9.5vw;
        top: 20%; 
        left: 50%;
        text-align: center;
        transform: translateX(-50%);
    }

    .company-mobile-subtitle {
        font-family: 'Poppins', sans-serif;
        font-size: 6.5vw; 
        font-weight: 400;
        color: #1E4EBB;
        line-height: 8.5vw;
        padding-left: 12vw;
        padding-right: 12vw;
        padding-top: 5vw;
        text-align: center;
        align-items: center;
       
    }

    .company-ratings-body {
        width: 60%;
    }

    .company-ratings-content {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .company-ratings-body {
        font-size: 4vw;
        padding-left: 1vw;
        width: 100%;
        padding-bottom: 7vw;
        padding-right: 20vw;
    }

    .company-ratings-button{
        width: 80vw;
        height: 6.5vw;
        border-radius: 3.1vw;
        font-size: 3.7vw;
    }
    
    .company-ratings-button-image {
        width: 4.2vw; 
        height: auto;  
        left: 19.6vw; 
        top: 50%; 
        transform: translateY(-50%); 
    }

    .company-ratings-search {
        width: 83vw;
        max-width: 100%;
        height: 7.8vw;
        border-radius: 3.1vw;
    }

    .company-ratings-search-icon {
        width: 3.5vw;
        height: 3.5vw;
        opacity: 0.7;
    }

    .company-ratings-search-text {
        font-size: 3vw;
    }

    .company-ratings-search-input {
        font-size: 2.5vw;

    }
}