/* Training Page Styles */

/* Banner */
.tr-banner {
    margin-top: 80px;
    width: 100%;
    overflow: hidden;
}

.tr-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Intro */
.tr-intro {
    padding: 100px 0 80px;
    background: #fff;
}

.tr-intro-desc {
    max-width: 1100px;
    margin: 50px auto 0;
    text-align: center;
}

.tr-intro-desc p {
    font-size: clamp(16px, 1.5vw, 24px);
    color: #333;
    line-height: 2;
}

.tr-intro-image {
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
}

.tr-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Modules */
.tr-modules {
    padding: 100px 0;
    background: #f8f9fb;
}

.tr-modules-tabs,
.tr-modules-dots {
    display: none;
}

.tr-modules-track {
    display: block;
}

.tr-module-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.tr-module-item:last-child {
    margin-bottom: 0;
}

.tr-module-item--reverse {
    flex-direction: row-reverse;
}

.tr-module-image {
    flex: 1.2;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
}

.tr-module-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tr-module-text {
    flex: 1;
    min-width: 0;
}

.tr-module-text h3 {
    font-size: clamp(22px, 2.2vw, 36px);
    font-weight: 600;
    color: #003869;
    margin-bottom: 24px;
}

.tr-module-text p {
    font-size: clamp(15px, 1.4vw, 22px);
    color: #333;
    line-height: 2;
}

/* News Section */
.tr-news {
    padding: 100px 0;
    background: #fff;
}

.news-section-heading {
    position: relative;
}

.news-mobile-controls,
.news-mobile-carousel {
    display: none;
}

.tr-news-grid {
    display: flex;
    gap: 24px;
    margin-top: 60px;
    min-height: 480px;
}

/* 左侧大图：占 1/2 宽度 */
.tr-news-card-large {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

/* 右侧容器：占 1/2 宽度，纵向排列 */
.tr-news-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 右侧小卡片：均分高度 */
.tr-news-card-small {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.tr-news-card-large:hover,
.tr-news-card-small:hover {
    transform: translateY(-4px);
}

.tr-news-card--large {
    grid-row: 1 / 3;
}

.tr-news-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tr-news-card-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 32px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.tr-news-card-text h3 {
    font-size: clamp(18px, 1.6vw, 26px);
    font-weight: 600;
    margin-bottom: 10px;
}

.tr-news-card-text p {
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.8;
    opacity: 0.92;
}
.tr-news-more-wrapper {
    padding: 30px 0 80px 0;
}

.tr-news-more-wrapper .container {
    display: flex;
    justify-content: flex-end;
}

.tr-news-more-link {
    font-size: 18px;
    color: #666;
    transition: color 0.3s;
}

.tr-news-more-link:hover {
    color: #1a3fb7;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .tr-module-item {
        gap: 40px;
        margin-bottom: 60px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .tr-intro {
        padding: 60px 0 50px;
    }

    .tr-intro-desc {
        margin-top: 30px;
    }

    .tr-intro-image {
        margin-top: 40px;
    }

    .tr-modules {
        padding: 60px 0;
    }

    .tr-modules-tabs {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tr-modules-tabs::-webkit-scrollbar {
        display: none;
    }

    .tr-modules-tab {
        flex: 0 0 auto;
        min-width: 128px;
        padding: 0 24px;
        height: 52px;
        border-radius: 999px;
        border: 2px solid #2d5fe8;
        background: #fff;
        color: #2d5fe8;
        font-size: 16px;
        font-weight: 600;
        line-height: 48px;
        text-align: center;
        white-space: nowrap;
    }

    .tr-modules-tab.is-active {
        background: linear-gradient(180deg, #3a6cff 0%, #2a57df 100%);
        color: #fff;
    }

    .tr-modules-track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tr-modules-track::-webkit-scrollbar {
        display: none;
    }

    .tr-module-item,
    .tr-module-item--reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 0;
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
    }

    .tr-module-image {
        flex: none;
        width: 100%;
    }

    .tr-module-text {
        flex: none;
        width: 100%;
    }

    .tr-module-text h3 {
        margin-bottom: 16px;
    }

    .tr-modules-dots {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 24px;
    }

    .tr-modules-dot {
        width: 12px;
        height: 12px;
        border: 0;
        padding: 0;
        border-radius: 50%;
        background: rgba(112, 128, 144, 0.35);
    }

    .tr-modules-dot.is-active {
        background: #315de8;
    }

    .tr-news {
        padding: 60px 0;
    }

    .news-section-heading {
        margin-bottom: 24px;
    }

    .news-mobile-controls {
        position: absolute;
        top: calc(100% - 20px);
        right: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .news-mobile-arrow {
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 50%;
        background: #2f53d6;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 8px 18px rgba(47, 83, 214, 0.2);
    }

    .news-mobile-current {
        min-width: 14px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        color: #111;
        text-align: center;
    }

    .news-mobile-carousel {
        display: block;
        margin-top: 20px;
    }

    .news-mobile-track {
        display: flex;
        flex-direction: column;
        gap: 18px;
        max-height: 398px;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .news-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .news-mobile-card {
        position: relative;
        flex: 0 0 190px;
        width: 100%;
        height: 190px;
        overflow: hidden;
        scroll-snap-align: start;
        background: #d7e2f7;
        box-shadow: 0 8px 24px rgba(17, 29, 71, 0.12);
    }

    .news-mobile-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 21, 48, 0.02) 12%, rgba(6, 21, 48, 0.82) 100%);
        pointer-events: none;
    }

    .news-mobile-card-img {
        width: 100%;
        height: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

    .news-mobile-card-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        padding: 18px 18px 20px;
        color: #fff;
    }

    .news-mobile-card-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 10px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .news-mobile-card-desc {
        font-size: 14px;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.95);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .tr-news-grid {
        display: none;
    }
}
