/* Theme custom */
.header {
    transition: background-color 0.5s;
}

.header .logo {
    background: none;
    padding: 0 10px;
}

.header .logo img {
    max-height: 50px;
    margin-right: 8px;
}

.header-background {
    background-color: var(--header-background, hsla(0, 0%, 100%, .8));
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    transition: background-color .3s linear;
}

@media (max-width: 992px) {
    .header-background {
        background-color: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.mobile-nav-active .mobile-nav-toggle {
    top: 30px;
}

section,
.section {
    padding: 20px 0 50px 0;
}

.section-title {
    padding-bottom: 40px;
}

.hero .hero-wrapper {
    padding: 40px 80px 80px 80px;
}

.hero .hero-wrapper .hero-media .main-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(0deg);
    transform-origin: center;
    transition: all 0.5s ease;
    will-change: transform;
}

.hero .hero-wrapper .hero-media .main-image:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

@media (max-width: 992px) {

    .hero .hero-wrapper {
        padding: 0 0 50px 0;
    }

    .hero .hero-wrapper .hero-media {
        margin-top: 3rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.news-hero .featured-post .post-image img {
    transition: transform 0.6s ease;
}

.news-hero .featured-post .post-image:hover img {
    transform: scale(1.05);
}

.news-hero .featured-post .post-overlay .date {
    color: #ffffff;
}

.news-hero .primary-post {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.news-hero .primary-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.news-hero .primary-post .post-image:hover img {
    transform: scale(1.05);
}

.news-hero .primary-post .post-content {
    padding: 1.5rem;
}

.news-hero .primary-post .post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.news-hero .primary-post.post-content table td {
    padding: 10px;
}

.news-hero .primary-post .post-title {
    font-size: 2rem;
    margin: 0.3rem 0 0.5rem 0;
    line-height: 1.2;
    font-weight: 600;
}

.news-hero .secondary-post .post-image img {
    transition: transform 0.6s ease;
}

.news-hero .secondary-post .post-image:hover img {
    transform: scale(1.05);
}

/* Featured image */
.about .about-image {
    overflow: hidden;
    border-radius: 1rem;
    height: 100%;
    position: relative;
}

.about .about-image .floating-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--surface-color);
    padding: 0.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about .about-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .featured-programs .row {
        flex-direction: column;
    }

    .featured-programs .program-item {
        text-align: left;
    }

    .news-hero .tab-post .post-content {
        padding-left: 0;
    }
}

/* Cooperation slideshow */
@keyframes moveSlideshowToLeft {
    0% {
        transform: translate(0);
    }

    to {
        transform: translate(-100%);
    }
}

@keyframes moveSlideshowToRight {
    0% {
        transform: translate(0);
    }

    to {
        transform: translate(100%);
    }
}

.mastering-tools .tools-slideshow {
    display: flex;
    flex-direction: row;
    row-gap: 30px;
    overflow: hidden;
    transform: translateZ(0);
    width: 100%;
    position: relative;
    height: auto;
}

.mastering-tools .tools-slideshow:hover #toolsRow1 {
    animation-play-state: paused;
}

.mastering-tools .tools-slideshow.toRight {
    justify-content: flex-end;
}

@media screen and (max-width: 575px) {
    .mastering-tools .tools-slideshow.toRight {
        margin-top: 30px;
    }
}

.mastering-tools .tools-slideshow #toolsRow1 {
    height: 100%;
    transform: translateZ(0);
    display: flex;
    animation: 25s linear infinite;
}

.mastering-tools .tools-slideshow #toolsRow1 {
    animation-name: moveSlideshowToRight;
}

.mastering-tools .tools-slideshow #toolsRow1 .cardSlim {
    margin-right: 15px;
}

.mastering-tools .tools-slideshow .cardSlim {
    width: -moz-max-content;
    width: max-content;
    min-width: 256px;
}

.mastering-tools .tools-slideshow .cardSlim .subtitle {
    width: -moz-max-content;
    width: max-content;
}

@media screen and (max-width: 575px) {
    .mastering-tools .tools-slideshow .cardSlim {
        min-width: unset;
    }
}

/* custome */
.scale-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scale-wrapper::-webkit-scrollbar {
    height: 6px;
}

.scale-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}