/* ===== BASE STYLES ===== */
.tnsm-container {
    position: relative;
    width: 100%;
    background: #fff;
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.tnsm-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    border: 1px solid #ddd;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.tnsm-hero-overlay-gray {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(195 195 195 / 25%);
    z-index: 1;
    pointer-events: none;
}

.tnsm-hero-overlay-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.tnsm-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: clamp(300px, 53.5vw, 770px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
}

.tnsm-hero-logo {
    z-index: 1000;
    width: 30%;
    object-fit: contain;
    display: block;
}

.tnsm-hero-title {
    color: #fff;
    text-align: center;
    font-size: clamp(20px, 2.8vw, 40px);
    font-weight: 700;
    line-height: 1.4;
    align-self: stretch;
    margin: 0 0 12px 0;
    z-index: 2;
}

.tnsm-hero-desc {
    color: #ebebeb;
    text-align: center;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 400;
    line-height: 1.8;
    align-self: stretch;
    margin-top: 16px;
    z-index: 2;
}

/* ===== BUTTONS ===== */
.tnsm-hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    z-index: 2;
}

.tnsm-hero-button-left,
.tnsm-hero-button-right {
    width: 100%;
    padding: 12px 16px;
    border-radius: 60px;
    background: #D72323;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.9vw, 10px);
    color: #fff;
    font-size: clamp(12px, 1.5vw, 18px);
    font-weight: 700;
    cursor: pointer;
}

.tnsm-hero-button-left {
    width: clamp(200px, 24vw, 330px);
}

.tnsm-hero-button-right {
    width: clamp(220px, 26vw, 360px);
}

.tnsm-hero-button-left-icon,
.tnsm-hero-button-right-icon {
    width: clamp(18px, 1.6vw, 24px);
    height: clamp(18px, 1.6vw, 24px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnsm-hero-button-left-icon {
    margin-left: clamp(-12px, -1.4vw, -20px);
}

.tnsm-hero-button-left-text,
.tnsm-hero-button-right-text {
    color: #FFF;
    text-align: center;
    font-size: clamp(12px, 1.5vw, 18px);
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
}

/* ===== HISTORY SECTION ===== */
.tnsm-history {
    width: 85%;
    margin: 48px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 2vw, 31px) clamp(12px, 1.5vw, 17px);
}

.tnsm-history-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 6vw, 169px);
}

.tnsm-history-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 60%;
}

.tnsm-history-right {
    width: clamp(300px, 42vw, 569px);
    height: clamp(220px, 34vw, 410px);
    border-radius: 0px 40px 0px 40px;
}

.tnsm-history-logo {
    width: 40%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 -48px;
}

.tnsm-history-title {
    color: #000;
    font-size: clamp(18px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.4;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.tnsm-history-desc {
    color: #000;
    font-weight: 400;
    line-height: 1.85;
}

/* ===== HISTORY CORE VALUES ===== */
.tnsm-history-core-values {
    width: 100%;
    margin: 108px auto;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: #FFF8F8;
    padding: 48px 0;
}

.tnsm-history-core-values-content {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.tnsm-history-core-values-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tnsm-history-core-values-top,
.tnsm-history-core-values-bottom {
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2.2vw, 20px);
}

.tnsm-history-core-values-bottom {
    margin-top: clamp(12px, 2vw, 20px);
}

.tnsm-history-core-values-item {
    width: clamp(220px, 23.5vw, 340px);
    border-radius: 20px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(14px, 2.5vw, 24px);
    flex-shrink: 0;
    scale: 0.9;
}

.tnsm-history-core-values-item.red {
    background: #D72323;
    flex-direction: column;
}

.tnsm-history-core-values-item.gray {
    background: #fff;
    border: 1.5px solid #D72323;
}

.tnsm-history-core-values-icon,
.tnsm-history-core-values-icon-gray {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(40px, 2.5vw, 45px);
}

.tnsm-history-core-values-icon {
    color: #fff;
}

.tnsm-history-core-values-icon-gray {
    color: #D72323;
}

.tnsm-history-core-values-title,
.tnsm-history-core-values-title-gray {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 200%;
    align-self: stretch;
    margin: 8px 0;
}

.tnsm-history-core-values-title {
    color: #FFF;
}

.tnsm-history-core-values-title-gray {
    color: #D72323;
}

.tnsm-history-core-values-desc,
.tnsm-history-core-values-desc-gray {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    align-self: stretch;
}

.tnsm-history-core-values-desc {
    color: #FFF;
}

.tnsm-history-core-values-desc-gray {
    color: #4C4C4C;
}

.tnsm-history-core-values-inner-gray {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.tnsm-history-core-values-inner {
    /* Placeholder for inner styling if needed */
}

.tnsm-history-core-values-right {
    gap: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    width: 30%;
}

.tnsm-history-core-values-subtitle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tnsm-history-core-values-bar {
    width: 48px;
    height: 2px;
    background: #D72323;
    border-radius: 1px;
}

.tnsm-history-core-values-subtitle-text {
    color: #D72323;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 200%;
    display: flex;
    align-items: center;
}

.tnsm-history-core-values-banner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tnsm-history-core-values-banner-title {
    color: #000;
    font-size: clamp(18px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.85;
    width: 100%;
}

.tnsm-history-core-values-banner-desc {
    color: #4f4f4f;
    font-size: clamp(14px, 1.1vw, 20px);
    font-weight: 400;
    line-height: 1.85;
    width: 100%;
}

/* ===== VISION SECTION ===== */
.tnsm-vision {
    width: 85%;
    margin: 108px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnsm-vision-content {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8em;
    margin: 0 auto;
}

.tnsm-vision-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 50%;
}

.tnsm-vision-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tnsm-vision-right-image-wrapper {
    width: clamp(250px, 30vw, 400px);
    max-width: 100%;
    height: clamp(250px, 35vw, 450px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tnsm-vision-right-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    position: relative;
    z-index: 1;
    border-radius: 12px;
}

.tnsm-vision-title {
    color: #000;
    font-size: clamp(18px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    width: 342px;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
    text-align: left;
}

.tnsm-vision-desc {
    color: #4f4f4f;
    font-size: clamp(14px, 1.2vw, 20px);
    font-weight: 400;
    line-height: 1.85;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tnsm-vision-images {
    width: clamp(300px, 45vw, 588px);
    max-width: 100%;
    height: clamp(120px, 18vw, 228px);
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: clamp(16px, 3vw, 40px);
}

.tnsm-vision-image-left,
.tnsm-vision-image-right {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* ===== MISSION SECTION ===== */
.tnsm-mission {
    width: 100%;
    margin: 108px auto;
}

.tnsm-mission-content {
    width: 100%;
    margin: 0 auto;
    background: #FFF8F8;
    padding: 3em 0;
}

.tnsm-mission-header {
    width: 100%;
    flex-shrink: 1;
}

.tnsm-mission-title {
    width: 100%;
    color: #434343;
    text-align: center;
    font-size: clamp(18px, 2.2vw, 36px);
    font-weight: 700;
    margin: 1em 0 2em;
}

.tnsm-mission-cards {
    width: 85%;
    margin: 32px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.tnsm-mission-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tnsm-mission-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(215, 35, 35, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 36px;
    padding: 4px;
    color: #c60000;
}

.tnsm-mission-card-title {
    margin: 4px 0 0 0;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.tnsm-mission-card-desc {
    color: #4c4c4c;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 8px;
    flex: 1 1 auto;
}

/* ===== VALUE SECTION ===== */
.tnsm-value {
    height: auto;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

.tnsm-value-content {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.tnsm-value-header {
    /* Placeholder for header styling */
}

.tnsm-value-title {
    color: #000;
    text-align: center;
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.4;
    height: auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnsm-value-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

.tnsm-value-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    gap: 64px;
    width: 85%;
    margin: 0 auto;
}

.tnsm-value-item-image {
    width: 100%;
    max-width: 572px;
    height: 334px;
    background: lightgray 50% / cover no-repeat;
    border-radius: 20px;
    flex-shrink: 0;
}

.tnsm-value-item-content {
    width: 40%;
}

.tnsm-value-item-content-inner {
    width: 100%;
    height: auto;
    position: relative;
    padding: 24px 16px 16px 16px;
    margin: 0 auto;
}

.tnsm-value-item-content-label {
    width: auto;
    height: auto;
    position: absolute;
    top: 16px;
    left: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.tnsm-value-item-content-label-text {
    width: 100%;
    color: #000;
    text-align: center;
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.4;
    display: flex;
    align-items: center;
    border-left: 3px solid #CE0045;
    padding: 0 16px;
}

.tnsm-value-item-content-desc {
    height: auto;
    margin-top: 56px;
    color: #4f4f4f;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 400;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    padding: 0 16px;
}

/* ===== BACKGROUND IMAGES ===== */
.tnsm-vision-image-left-bg {
    background-image: url('/images/vct-tnsm-im5.png');
}

.tnsm-vision-image-right-bg {
    background-image: url('/images/vct-tnsm-im6.png');
}

.tnsm-mission-image-bg {
    background: url('/images/vct-tnsm-im7.png') lightgray 50% / cover no-repeat;
}

.tnsm-value-item-image-1-bg {
    background-image: url('/images/vct-tnsm-im8.png');
}

.tnsm-value-item-image-2-bg {
    background-image: url('/images/vct-tnsm-im9.png');
}

.tnsm-value-item-image-3-bg {
    background-image: url('/images/vct-tnsm-im10.png');
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Responsive (max-width: 1024px) */
@media (max-width: 1024px) {
    .tnsm-history-content {
        flex-direction: column;
        gap: clamp(16px, 4vw, 32px);
    }

    .tnsm-hero-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .tnsm-hero-button-left,
    .tnsm-hero-button-right {
        width: 100%;
        max-width: 320px;
    }

    .tnsm-history-left,
    .tnsm-history-right {
        width: 100% !important;
        max-width: 640px;
        margin: 0 auto;
    }

    .tnsm-history-right {
        height: clamp(200px, 52vw, 420px);
        border-radius: 20px;
    }

    .tnsm-history-core-values-content {
        flex-direction: column-reverse;
    }

    .tnsm-history-core-values {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }

    .tnsm-history-core-values-item-red,
    .tnsm-history-core-values-item-gray {
        width: 45%;
    }

    .tnsm-history-core-values-left,
    .tnsm-history-core-values-right {
        width: auto;
        margin: 18px auto;
        align-items: center;
    }

    .tnsm-mission-cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .tnsm-vision-images {
        width: 70%;
    }

    .tnsm-vision {
        flex-direction: column;
        gap: clamp(8px, 1.5vw, 12px);
        padding: clamp(8px, 1.5vw, 12px) clamp(6px, 1.5vw, 10px);
        margin: 0 auto;
    }

    .tnsm-vision-content {
        flex-direction: column;
        gap: clamp(2px, 0.5vw, 4px);
        height: auto;
        align-items: center;
    }

    .tnsm-vision-left {
        align-items: center;
        justify-content: center;
        margin: 2em auto;
        display: flex;
        flex-direction: column;
        width: 80%;
    }

    .tnsm-vision-title {
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        font-size: 28px;
    }

    .tnsm-vision-desc {
        text-align: center;
        margin: 8px auto 0;
    }

    .tnsm-vision-images {
        display: none;
    }

    .tnsm-vision-right {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        margin: 0;
    }

    .tnsm-vision-right-image-wrapper {
        width: clamp(80px, 15vw, 150px);
        height: clamp(60px, 10vw, 120px);
        margin: 4px 0 0 0;
        padding: 0;
    }

    .tnsm-mission {
        border-radius: 24px;
        margin: 0 auto;
    }

    .tnsm-mission-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .tnsm-mission-image {
        max-width: 680px;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .tnsm-mission-header {
        width: 100%;
    }

    .tnsm-mission-title {
        font-size: clamp(18px, 3.2vw, 28px);
    }

    .tnsm-value {
        padding: 0 12px;
    }

    .tnsm-value-item {
        gap: 12px;
    }

    .tnsm-value-item-image {
        max-width: 520px;
        height: 320px;
    }

    .tnsm-value-item-content {
        max-width: 520px;
    }

    .tnsm-value-item-content-inner {
        padding: 20px 14px 14px 14px;
    }
}

/* Mobile Responsive (max-width: 600px) */
@media (max-width: 768px) {
    .tnsm-history {
        padding: 12px;
    }

    .tnsm-hero-content {
        max-width: 90vw;
    }

    .tnsm-history-logo {
        margin: 0 -30px;
    }
    

    .tnsm-history-title {
        font-size: clamp(18px, 5.6vw, 24px);
    }

    .tnsm-history-desc {
        font-size: 13px;
    }

    .tnsm-history-core-values-top,
    .tnsm-history-core-values-bottom {
        flex-direction: column;
    }

    .tnsm-history-core-values-item {
        width: 90%;
        margin: 0 auto;
    }

    .tnsm-history-core-values-banner-title {
        font-size: clamp(15px, 4.5vw, 18px);
    }

    .tnsm-history-core-values-banner-desc {
        font-size: 13px;
    }

    .tnsm-vision {
        padding: clamp(6px, 1vw, 10px) !important;
        border-radius: clamp(12px, 2vw, 20px) !important;
        min-height: clamp(60px, 10vw, 120px) !important;
    }

    .tnsm-vision-left {
        width: 100%;
        margin: 16px 0;
    }


    .tnsm-vision-images {
        display: none;
    }

    .tnsm-mission {
        border-radius: 16px;
    }

    .tnsm-mission-content {
        gap: 14px;
    }

    .tnsm-mission-image {
        aspect-ratio: 16/9;
        border-radius: 16px;
    }

    .tnsm-mission-title {
        font-size: 28px;
    }

    .tnsm-value-title {
        font-size: clamp(18px, 5vw, 24px);
    }

    .tnsm-value-list {
        gap: 16px;
        margin-top: 20px;
    }

    .tnsm-value-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto;
        gap: 10px;
    }

    .tnsm-value-item-image {
        max-width: 100%;
        border-radius: 16px;
        aspect-ratio: 16/9;
    }

    .tnsm-value-item-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
        padding: 16px;
    }

    .tnsm-value-item-content-inner {
        padding: 0;
    }

    .tnsm-value-item-content-label {
        position: static;
        margin-bottom: 8px;
    }

    .tnsm-value-item-content-label-text {
        font-size: clamp(13px, 4vw, 16px);
    }

    .tnsm-value-item-content-desc {
        margin-top: 8px;
        font-size: clamp(12px, 3.5vw, 14px);
        line-height: 1.6;
        padding: 0 4px;
        text-align: justify;
    }
}

/* Large Desktop Responsive (max-width: 1200px) */
@media (max-width: 1200px) {
    .tnsm-value {
        padding: 0 12px;
    }

    .tnsm-value-item {
        gap: 12px;
    }

    .tnsm-value-item-image {
        max-width: 520px;
        height: 320px;
    }

    .tnsm-value-item-content {
        max-width: 520px;
    }

    .tnsm-value-item-content-inner {
        padding: 20px 14px 14px 14px;
    }
}

/* Medium Desktop Responsive (max-width: 900px) */
@media (max-width: 900px) {
    .tnsm-value {
        padding: 0 10px;
    }

    .tnsm-value-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto;
    }

    .tnsm-value-item-image {
        max-width: 680px;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .tnsm-value-item-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 720px;
    }

    .tnsm-value-item-content-inner {
        max-width: 640px;
        padding: 16px 14px;
    }

    .tnsm-value-item-content-label {
        position: static;
        margin-bottom: 8px;
    }

    .tnsm-value-item-content-desc {
        margin-top: 8px;
        padding: 0 6px;
    }
}