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

    [data-template='pages-brands'] #main-content .container {
        padding: 0;
        max-width: 100%;
    }
    img {
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
    .APAcontainer{
       height: inherit !important;
   }
    .apa-page-heading{
        position: relative;
        background-image: url('../img/static-banner.png');
        background-size: cover;
        padding: 50px 0px;
    }
    .apa-page-heading:before{
        content: '';
        background-color: #444444;
        opacity: 0.7;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .apa-page-heading h1.apa-page-title{
        font-size: 52px;
        font-family: "Roboto";
        font-weight: 500;
        position: relative;
        color: #fff;
        margin: 0;
        text-align: center;
    }
    .apa-brand-page-section {
        max-width: 1440px;
        margin: 0 auto;
        padding:40px;
    }
    .apapoc-section-heading{
        font-size: 30px;
        font-family: "Roboto";
        font-weight: 600;
        position: relative;
        color: #222222;
        margin: 0 0 20px; 
        text-align: center;
    }
    .apa-brand-box {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        align-items: stretch;
        padding: 40px 0px;
    }
    .apa-brand-card {
        flex: 1 1 32.3%;
        display: flex;
        max-width: 32.3%;
    }
    .apa-brandcard-inner{
        position: relative;
        box-shadow: 0px 0px 5px #00000033;
        border-radius: 3px;
        padding: 60px 20px 80px;
        margin-top: 80px;
        margin-left: 30px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    .apa-brandcard-inner p {
        font-family: "Roboto";
        font-size: 15px;
        line-height: 24px;
        color: #0F172A;
        padding-bottom: 20px;
        min-height: 180px;
    }
    .apa-brand-logo {
        position: absolute;
        top: -65px;
        right: 10px;
        background: #fff;
        border: 1px solid #eeeeee;
        box-shadow: 0px 0px 5px #b7b7b74a;
        border-radius: 50%;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        padding: 5px;
    }
    .apapoc-view-btn {
        position: absolute;
        padding: 20px;
        bottom: 0;
        left: 0;
        right: 0;
    }
    a.apapoc-brand-btn {
        display: block;
        width: 100%;
        text-align: center;
        border: 2px solid #252525;
        background-color: #ffffff;
        color: #000;
        padding: 10px;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
    }
    a.apapoc-brand-btn:hover {
        border: 2px solid #252525;
        background-color: #252525;
        color: #ffffff;
        text-decoration: none;
        transition: 0.5s all;
    }
    .apa-brand-title {
        position: absolute;
        top: -10px;
        left: -20px;
        padding: 10px;
        padding-left: 10px;
        background: #E1523D;
        width: 200px;
    }
    .apa-brand-title:before {
        content: '';
        width: 20px;
        height: 20px;
        position: absolute;
        bottom: -20px;
        left: 0px;
        border-bottom: solid 10px transparent;
        border-right: solid 10px #C14634;
        border-left: solid 10px transparent;
        border-top: solid 10px #C14634;
    }
    .apa-brand-title h3 {
        font-family: 'Roboto';
        font-size: 18px;
        color: #fff;
        font-weight: 500;
        margin: 0;
        letter-spacing: unset;
    }
    p.apapoc-text {
        font-size: 14px;
        text-align: center;
        font-family: 'Roboto';
        line-height: 24px;
        margin: 0px;
    }

    @media (max-width: 1200px) {
        .apa-brand-card {
            flex: 1 1 48%; 
            max-width: 100%;
        }
    }
    @media (max-width: 768px) {
        .apa-brand-card {
            flex: 1 1 100%;
        }
    }

    @media (max-width:550px){
        .apa-page-heading{
            padding: 20px 0px;
        }
        .apa-brand-page-section {
            padding: 20px 0px;
        }
        .apa-brand-page-section {
            padding: 0p 20px;
        }
        .apa-brand-logo {
            position: relative;
            margin: 0 auto;
            top: unset;
            border: none;
            box-shadow: none;
        }
        .apa-brand-title {
            position: relative;
            top: unset;
            margin: 0 auto;
            width: 100%;
            left: 0;
            background: #fff;
        }
        .apa-brand-title:before {
            display: none;
        }

        .apa-brand-title h3 {
            text-align: center;
            color: #E1523D;
            font-size: 24px;
            font-weight: 600;
            padding-bottom: 20px;
        }
        .apa-brandcard-inner {
            padding-top: 20px;
        }
    }

    /* Initially hide the content */
    .content-container {
        display: none; /* Hidden until data is ready */
        visibility: hidden; /* Prevents flashes of content */
    }

    /* Loading spinner or message styling */
    .loading-message {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        font-size: 1.5em;
        color: #555;
    }

    
.pagination {
    display: flex;
    justify-content: center;
}
.pagination .pagination-list{
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-list .pagination-item a{
        padding: 10px 15px;
    border-radius: 2px;
    border: 1px solid #D4D4D4;
    line-height: 20px;
}
.pagination-item.pagination-item--previous > a, .pagination-item.pagination-item--next > a{
    border: 1px solid #D4D4D4;
}
.pagination-item.pagination-item--current{
    background: #ddd;
        margin: 0 0 0 0.35714rem;
}
.apa-brand-logo{
    background-image: url('../img/BrandDefault.png');
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 75%;
}