/* TMU News Hero Banner Section */
.tmu-news-hero-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmu-news-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tmu-news-hero-image {
    position: absolute;
    top: -170px;
    left: 0;
    width: 100%;
    aspect-ratio: 480/299;
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.tmu-news-hero-overlay-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(258deg, rgba(1, 94, 200, 0.45) 14.67%, rgba(4, 66, 200, 0.20) 65.96%);
    pointer-events: auto;
}

.tmu-news-hero-overlay-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(4, 66, 200, 0.00) 35.17%, rgba(4, 66, 200, 0.45) 100%);
    pointer-events: auto;
}

.tmu-news-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tmu-news-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 394px;
    max-width: 90%;
    text-align: center;
}

.tmu-news-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 4.8px;
    color: #FFFFFF;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 4px 20px;
    margin: 0;
    white-space: nowrap;
}

.tmu-news-hero-title {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 4px 30px;
    margin: 0;
    white-space: nowrap;
}


/* CSS Variables from Figma Design */
:root {
    --system-black: #000000;
    --primary-orange: #F48020;
    --neutral-40: #A3A3A3;
    --neutral-200: #E5E7EB;
    --color-151515: #151515;
    --news-white: #FFFFFF;
}

.contact {
    top: 300px;
    left: -50px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    position: sticky
}

.contact.fixed {
    position: fixed;
    top: 0;
    left: 255px;
    z-index: 100;
}

.contact .line {
    width: 1px;
    height: 79px;
    background-color: #E5E5E5;
}

.contact .social-network {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.article-title {
    font-family: 'Lora', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
    color: var(--system-black);
    width: 100%;
    margin: 0;
    word-break: auto-phrase;
}

.article-meta {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    /* width: 100%; */
    justify-content: space-between;
    flex-wrap: wrap;
}

.meta-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.meta-category {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-orange);
    /* white-space: nowrap; */
}

.meta-separator {
    width: 21px;
    height: 21px;
    transform: rotate(90deg);
    flex-shrink: 0;
}

.meta-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #737373;
    white-space: nowrap;
}
.meta-detail {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}
.meta-calendar {
    display: flex;
    gap: 8px;
    align-items: center;
    &:hover {
        cursor: pointer;
    }
    .icon {
        width: 28px;
        height: 28px;
        border-radius: 0;
    }
    span {
        font-weight: 600;
        font-size: 14px;
        line-height: 150%;
        letter-spacing: 0%;
        text-align: center;
        color: #1E4F9E;
    }
}

/* Content Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
    width: 297px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    margin-right: 0;
}

.sidebar-news-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    position: sticky;
    top: 0;
}

.sidebar-news-section .sidebar-title {
    margin: 0;
}

.sidebar-title {
    font-family: 'Lora', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 1.2;
    color: var(--system-black);
    margin: 0;
    width: 100%;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.sidebar-news-list a:not(:first-child) {
    padding-top: 16px;
}

.sidebar-news-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 0 0 16px 0;
    width: 100%;
    border-bottom: 1px dashed #E5E5E5;
    border-image: repeating-linear-gradient(
            to right,
            #E5E5E5 0 6.6px,
            transparent 6.6px 13.2px
    ) 1;
    position: relative;
    cursor: pointer;
}

.sidebar-news-item:hover {
    .sidebar-news-title {
        color: #1E4F9E;
    }
}

.sidebar-news-item:not(:first-child) {
    padding-top: 16px;
}

.sidebar-news-item.last {
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-news-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-151515);
    margin: 0;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;

    word-break: auto-phrase;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sidebar-news-meta {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
}

.sidebar-news-meta .meta-category {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-orange);
    /* white-space: nowrap; */
}

.sidebar-news-meta .meta-separator {
    width: 21px;
    height: 21px;
    transform: rotate(90deg);
    flex-shrink: 0;
}

.sidebar-news-meta .meta-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #737373;
    white-space: nowrap;
}

/* Section Divider */
.section-divider {
    height: 1px;
    width: 100%;
    background: var(--neutral-200);
    margin: 0 auto;
    max-width: 1250px;
}

.social-icon-item {
    overflow: hidden;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
}

.social-icon-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.social-icon-link:hover {
    opacity: 0.8;
}

.social-icon-link svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* Related Articles Section */
.related-articles-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

.related-articles-container {
    /* max-width: 1250px; */
    margin: 0 auto;
}

.related-articles-title {
    font-family: 'Lora', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    color: var(--system-black);
    letter-spacing: -0.8px;
    height: 52px;
    width: 100%;
    margin: 0 0 30px 0;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: center;
    width: 100%;
}

.related-article-image-wrapper img {
    transition: transform 0.3s ease;
}

.related-article-card:hover {
    .related-article-image-wrapper img {
        transform: scale(1.1);
    }

    .related-article-title {
        color: #1E4F9E;
    }
}

.related-article-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    cursor: pointer;
}

.related-article-card a {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.related-article-image-wrapper {
    height: 247px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.related-article-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 404px;
    height: 247px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
}

.related-article-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.related-article-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: var(--system-black);
    width: 100%;
    margin: 0;

    word-break: auto-phrase;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-article-meta {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.related-article-meta .meta-category {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-orange);
    /* white-space: nowrap; */
}

.related-article-meta .meta-separator {
    width: 21px;
    height: 21px;
    transform: rotate(90deg);
    flex-shrink: 0;
}

.related-article-meta .meta-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #737373;
    white-space: nowrap;
}

/* Main Content Section */
.main-content-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 120px;
    align-items: flex-start;
    padding: 120px 0;
    width: 100%;
    position: relative;
}

.content-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 58px;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

/* Article Main Content */
.article-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-end;
    width: 895px;
    flex-shrink: 0;
}

.article-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

/* Article Lead */
.article-lead {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-151515);
    width: 100%;
    word-break: auto-phrase;
}

.article-lead p {
    margin: 0;
    word-break: auto-phrase;
}

/* Article Body */
.article-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.content-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.content-image {
    width: 100%;
    height: 526px;
    object-fit: cover;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-caption {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #737373;
    text-align: center;
    width: 761px;
    margin: 0;
}

.with-caption .image-caption {
    /* margin-top: 10px; */
    word-break: auto-phrase;
}

/* Article Text */
.article-text-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    word-break: auto-phrase;
}

.article-text-content p {
    margin: 0 !important;
    padding: 0 !important;
}

.text-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    word-break: auto-phrase;
}

.text-paragraphs p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-151515);
    text-align: left;
    margin: 0;
    width: 100%;
}

.mobile-content-sidebar {
    display: none;
}

.related-articles-container__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.related-articles-container__title h2 {
    margin: 0;
}

.related-articles-container__title a {
    max-width: 170px;
}

.mobile-only {
    display: none;
}

.view-all-btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ============ TRAINING SPECIALTIES MOBILE SLIDER ============ */

/* Training specialties mobile slider container */
.mobile-slider {
    position: relative;
    overflow: hidden;
}

.mobile-slider .slider-container {
    position: relative;
    width: 100%;
}

/* Training specialties slider */
.group-slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 300%; /* 3 slides * 100% */
    will-change: transform;
}

.group-slider.sliding {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual training slide */
.card-slide {
    /* height: 340px; */
    width: 33.333%; /* Each slide takes 1/3 of the container */
    flex-shrink: 0;
}

.card-slide .training-card {
    position: relative;
    border-radius: var(--border-radius-20);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-slide .training-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-slide .training-card__overlay {
    position: absolute;
    width: 319px;
    height: 354px;
    bottom: 12px;
    left: 12px;
    background: rgba(30, 79, 158, 0.9);
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: white;
}

.card-slide .training-card__title {
    font-family: var(--heading-40-lora);
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: var(--line-height-1-3);
}

.card-slide .training-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-slide .training-card__list li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 150%;
    gap: 8px;
    align-items: flex-start;
}

.card-slide .training-card__list li svg {
    margin-top: 2px;
    flex-shrink: 0;
}

.card-slide .training-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(30, 79, 158, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-15);
    font-family: var(--body-16-semibold);
    font-size: var(--font-size-14);
    font-weight: 600;
    z-index: 2;
}

/* Training specialties navigation buttons */
.mobile-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--system-white);
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-slider .slider-btn:hover {
    background: var(--primary-blue);
    color: var(--system-white);
    transform: translateY(-50%) scale(1.05);
}

.mobile-slider .slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.mobile-slider .slider-btn:focus {
    outline: 2px solid rgba(30, 79, 158, 0.9);
    outline-offset: 2px;
}

.mobile-slider .prev-btn {
    left: -22px;
}

.mobile-slider .next-btn {
    right: -22px;
}

.mobile-slider .slider-btn svg {
    width: 20px;
    height: 20px;
}

/* Training specialties dots indicator */
.mobile-slider .slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.mobile-slider .training-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #1E4F9E;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-slider .training-slider-dot:hover {
    background: rgba(30, 79, 158, 0.6);
    transform: scale(1.2);
}

.mobile-slider .training-slider-dot.active {
    background: rgba(30, 79, 158, 0.9);
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

.mobile-slider .training-slider-dot:focus {
    outline: 2px solid rgba(30, 79, 158, 0.9);
    outline-offset: 2px;
}

/* Training specialties touch feedback */
.group-slider:active .card-slide {
    transition: transform 0.1s ease;
}

.contact-mobile {
    display: none;
}

@media (max-width: 1536px) {
    .contact.pc {
        display: none;
    }

    .contact-mobile {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: flex-end;
    }
}
@media (max-width: 1440px) {
    .meta-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-meta {
        width: 100%;
    }
}

/* ============ ENC TRAINING SPECIALTIES MOBILE SLIDER ============ */

/* ============================================
   RESPONSIVE DESIGN - ALL MEDIA QUERIES
   ============================================ */
/* 1279px and below */
@media (min-width: 769px) and (max-width: 1280px) {
    .article-main-content {
        width: 100%;
    }
    .content-image-wrapper {
        gap: 8px;
    }

    .content-layout {
        width: 100%;
    }

    .content-sidebar {
        display: none;
    }

    .article-title {
        font-size: 32px;
        height: auto;
    }

    .related-articles-grid {
        gap: 16px;
    }

    .related-article-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .related-article-image {
        width: 100%;
        height: 200px;
    }

    .related-articles-section {
        /* max-width: calc(100% - 160px);
        padding-inline: 16px;
        margin: 0 auto; */
    }

    .mobile-content-sidebar {
        display: block;
        max-width: calc(100% - 160px);
        padding-inline: 16px;
        margin: 0 auto 30px;
    }
}

/* 480px and below */
@media (max-width: 768px) {
    .main {
        margin-bottom: 60px;
        margin-left: 0;
    }
    .article-content-wrapper {
        gap: 24px;
    }

    /* Content Layout */
    .content-layout {
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    .main .main-content-section {
        padding-top: 24px;
    }

    .article-main-content {
        width: 100%;
    }

    .content-sidebar,
    .section-divider {
        display: none;
    }

    /* Article */
    .article-title {
        font-size: 24px;
        height: auto;
    }

    .article-lead,
    .text-paragraphs p {
        font-size: 14px;
    }

    .article-text-content {
        gap: 16px;
    }

    /* Images */
    img {
        object-fit: contain;
    }

    .content-image-wrapper, .content-image-wrapper img {
        width: 100%;
        height: 229px;
    }

    .article-text-content .content-image-wrapper {
        height: 100%;
    }

    .article-text-content .content-image-wrapper img {
        width: 100%;
        height: 229px;
    }

    .with-caption .image-caption {
        margin-top: 0;
        font-size: 12px;
        width: 100%;
    }

    /* Related Articles */
    .related-articles-container {
        width: 100%;
        padding: 0;
    }
    .related-articles-section {
        margin-top: -20px;
    }
    .related-articles-container__title {
        margin-bottom: 24px;
        .related-articles-title {
            height: unset;
        }
    }
    .related-article-content {
        gap: 8px;
        .related-article-title {
            font-weight: 600;
            font-size: 16px;
            line-height: 150%;
            letter-spacing: 0%;
        }
    }
    .main .main__viewall.sp {
        margin-top: 0;
    }
    .related-article-card {
        gap: 16px;
    }
    .related-articles-section,
    .mobile-content-sidebar {
        padding-inline: 16px;
    }

    .related-articles-title {
        font-size: 24px;
    }

    .related-articles-grid {
        flex-direction: column;
        gap: 24px;
    }

    .related-article-card {
        width: 100%;
    }

    .related-article-image-wrapper {
        width: 100%;
        height: 247px;
    }

    .related-article-image {
        width: 100%;
        height: 247px;
    }

    .related-article-title {
        font-size: 16px;
    }

    /* Sidebar */
    .sidebar-title {
        font-size: 24px;
    }

    .sidebar-news-item {
        border-bottom: 1px dashed #E5E5E5;
        border-image: repeating-linear-gradient(
                to right,
                #E5E5E5 0 6.6px,
                transparent 6.6px 13.2px
        ) 1;
    }

    /* Mobile Content Sidebar */
    .mobile-content-sidebar {
        display: block;
    }

    .mobile-content-sidebar .sidebar-news-section {
        margin-top: 0;
    }

    .mobile-content-sidebar .sidebar-news-meta {
        gap: 16px;
    }

    .mobile-content-sidebar .sidebar-news-title {
        word-break: auto-phrase;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Mobile/Desktop Toggle */
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .view-all-btn,
    .related-articles-grid
    {
        display: none;
    }

    .contact.pc {
        display: none;
    }

    .contact-mobile {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: flex-end;
    }

    .main .tmu-news-hero-banner {
        height: 300px;
        padding-bottom: 0;
    }

    .tmu-news-hero-image {
        width: 200%;
        height: 300px;
        left: -50%;
        top: 0;
    }

    .tmu-news-hero-subtitle {
        font-size: 14px;
        letter-spacing: 2.8px;
    }

    .tmu-news-hero-title {
        font-size: 32px;
    }
}
