/* Custom Styles */
* {
    scroll-behavior: smooth;
}

section {
    padding: 0 !important;
}

/* PaginationJS */
.paginationjs * {
    border: none !important;
    background-color: transparent !important;
    font-size: 16px !important;
}

.paginationjs .paginationjs-icon {
    font-size: 70% !important;
}

.paginationjs *:hover {
    background-color: transparent !important;
}

.paginationjs-page.active a {
    color: var(--primary-color) !important;
    font-size: 16px !important;
}
/* End PaginationJS */

/* Breadcrumb */
#breadcrumb {
    padding-top: 3rem;
    padding-bottom: 0;
}

#breadcrumb.news-detail {
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.breadcrumb-item.active {
    color: #B3B3B3;
}

.breadcrumb * {
    font-size: 14px !important;
}

.breadcrumb-item a {
    text-decoration: none;
}

/* End Breadcrumb */

/* Grid */
section.grid {
    padding: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    height: 450px;
}

.grid-item:hover .headline-card-overlay img {
    opacity: 90%;
}

.grid-item-1 {
    grid-area: 1 / 1 / 3 / 2;
}

.grid-item-2 {
    grid-area: 1 / 2 / 2 / 3;
}

.grid-item-3 {
    grid-area: 2 / 2 / 3 / 3;
}

/* End Grid */

/* Headline Card */
.headline-card {
    position: relative;
    height: 100%;
}

.headline-card-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.headline-card-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.headline-card-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: ease-in-out 200ms;
}

.headline-card-content {
    position: absolute;
    bottom: 0;
    color: white;
}

.grid-mobile {
    display: none;
}

.grid-mobile .swiper-slide {
    height: 300px;
}

.grid-mobile .swiper-slide img {
    object-position: top;
}

/* End Headline Card */

/* Swiper */
.swiper {
    height: auto !important;
}

.swiper .card {
    box-shadow: none;
    transition: ease-in-out 200ms;
}

.swiper-slide a:hover {
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.1) !important;
}

/* End Swiper */

/* News */
#corporateNews .card,
#csrNews .card {
    box-shadow: none;
}

#corporateNews a,
#csrNews a {
    text-decoration: none;
}

.news-mobile {
    display: none;
}

/* End News */

/* News All */
#allNews a {
    text-decoration: none;
}

#allNews .card {
    box-shadow: none;
    transition: ease-in-out 200ms;
}

#allNews .card:hover {
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.1) !important;
}

.search-input {
    position: relative;
}

.search-input .search-icon {
    position: absolute;
    display: inline-block;
    top: 30%;
    right: 5%;
}

/* End News All */

/* News Detail */
#newsDetail span {
    font-size: 16px !important;
}

#newsDetail a {
    text-decoration: none;
}

.news-footer span {
    color: #B3B3B3;
}

/* End News Detail */

/* Other Publication */
.other-publication-item .left {
    width: 85px;
    height: 85px;
}

.other-publication-item .right {
    display: flex;
    height: 85px;
    align-items: center;
}

.other-publication-item img {
    width: 85px;
    height: 85px;
    object-fit: cover;
}

.other-publication-item a {
    text-decoration: none;
    color: #000000;
}

/* End Other Publication */

/* Mobile */
@media (max-width: 768px) {
    #breadcrumb {
        display: none;
    }

    #search {
        margin-top: 60px;
    }

    .grid-mobile {
        display: block;
    }

    .grid-desktop {
        display: none;
    }

    .news-mobile {
        display: block;
    }

    .news-desktop {
        display: none;
    }

    .banner {
        margin-top: 100px !important;
        height: 250px;
    }

    .banner img {
        height: 100%;
        object-fit: cover;
    }
}

/* Tablet */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    #breadcrumb {
        display: none;
    }

    #grid {
        margin-top: 120px !important;
    }

    .grid {
        height: 350px;
    }

    .banner {
        margin-top: 100px !important;
        height: 350px;
    }

    /* News All */
    #search {
        margin-top: 60px;
    }

    /* End News All */
}