

.tnc-hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: start;
    justify-content: center;
    overflow: hidden;
}

.text-center{
    text-align: center;
}

/* Lớp phủ màu tối phủ lên ảnh nền */
.tnc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Độ tối của ảnh nền */
    display: flex;
    align-items: center;
}

.tnc-hero-title {
    color: #ff9800; /* Màu cam chủ đạo */
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Thanh đứng màu trắng bên trái chữ */
.vertical-line {
    display: inline-block;
    width: 8px;
    height: 60px; /* Chiều cao thanh đứng */
    background-color: #ffffff;
    margin-right: 20px;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .tnc-hero {
        /* height: 250px; */
    }
    .tnc-hero-title {
        font-size: 2.5rem;
    }
    .vertical-line {
        height: 40px;
        width: 5px;
    }
}


.tnc-product-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Khung chứa thanh tìm kiếm */
.tnc-search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 15px; /* Tránh bị dính sát mép trên màn hình điện thoại */
}

/* Wrapper bo tròn hiện đại */
.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
}

/* Ô nhập liệu tinh tế */
.search-input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 20px; /* Chừa 50px bên phải để không bị chữ đè lên icon */
    font-size: 15px;
    border: 1.5px solid #e2e8f0; /* Màu viền xám nhạt hiện đại */
    border-radius: 99px; /* Bo tròn hoàn toàn dạng viên thuốc cực đẹp */
    outline: none;
    background-color: #ffffff;
    transition: all 0.3s ease; /* Hiệu ứng mượt mà */
}

/* Hiệu ứng khi người dùng nhấn vào ô tìm kiếm */
.search-input-wrapper input:focus {
    border-color: #ff9800; /* Đổi sang viền màu xanh công nghệ */
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15); /* Đổ bóng nhẹ xung quanh */
}

/* Nút bấm chứa SVG */
.search-input-wrapper button {
    position: absolute;
    right: 6px; /* Căn phải */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #64748b; /* Màu icon gốc (xám) */
    transition: all 0.2s ease;
}

/* Hiệu ứng khi di chuột vào nút tìm kiếm */
.search-input-wrapper button:hover {
    color: #3b82f6; /* Icon chuyển sang xanh giống viền */
    background-color: #f1f5f9; /* Nền tròn xám nhạt nổi lên */
}

/* Định dạng kích thước của SVG */
.search-input-wrapper button svg {
    width: 20px;
    height: 20px;
}

/* Sidebar & Layout */
.tnc-main-layout {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tnc-sidebar {
    width: 300px;
    border: 1px solid #ff9800;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
}

.sidebar-header {
    background-color: #ff9800;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    position: relative;
    border-bottom: 1px solid #eee;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    gap: 1rem;
    color: #333;
    font-weight: 500;
    transition: background 0.3s;
}

.sidebar-menu li a:hover {
    background-color: #fff5e6;
    color: #ff9800;
}

.arrow {
    margin-left: auto;
    font-size: 0.8rem;
}

/* Submenu logic */
.product-list-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 150px;
    background: white;
    border: 1px solid #eee;
    list-style: none;
    padding: 0;
    display: none; /* Ẩn mặc định */
    z-index: 10;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.05);
}

.sidebar-menu img {
    width: 30px;
    height: 30px;
}

.has-submenu:hover .product-list-submenu {
    display: block;
}

.product-list-submenu li a {
    padding: 10px 15px;
    border-bottom: none;
}

/* Banner Image */
.tnc-banner {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.tnc-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.45) 5%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0.45) 95%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: 1;
}

.tnc-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .tnc-main-layout {
        flex-direction: column;
    }
    .tnc-sidebar {
        width: 100%;
    }
    .product-list-submenu {
        position: static;
        width: 100%;
    }
}

/* --- TNC New Products Section --- */
:root {
    --primary-color: #ff9800;
    --text-dark: #333;
    --text-light: #777;
    --bg-light: #ffffff;
    --border-color: #f0f0f0;
 
    --shadow-card: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.10);
 
    --transition: 0.3s ease;
}

.tnc-new-products,
.tnc-specific-products {
    padding: 60px 0;
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Swiper Base */
.mySwiper {
    padding: 10px 10px 60px 10px !important; /* Tạo khoảng trống cho bóng đổ và pagination */
    position: relative;
    overflow: hidden;
    width: calc(100% - 100px);
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

/* Image & Hover Effect */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Đổi sang contain nếu là ảnh sản phẩm để tránh mất góc */
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.btn-detail {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.product-card:hover .btn-detail {
    transform: translateY(0);
}

/* Product Info */
.product-info {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: lowercase; /* Giữ theo yêu cầu của bạn */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng tên sản phẩm */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; /* Đảm bảo các card cao bằng nhau */
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    margin-top: auto;
}

/* Navigation & Pagination Custom */
.swiper-wrapper{
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: var(--primary-color);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 30px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: #ccc !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    width: 50px !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .swiper-wrapper {padding: 0px !important;}
    .mySwiper { width: 100%; padding-right: 0px !important; padding-left: 0px !important; }
    .swiper-button-next, .swiper-button-prev { display: none; }
    .tnc-new-products,.tnc-specific-products { padding: 40px 0; }
}

.special-products-section {
    padding: 60px 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
}

.special-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.special-products-header {
    text-align: center;
    margin-bottom: 30px;
}

.special-products-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.special-products-header-line {
    width: 50px;
    height: 3px;
    background: #ff9800;
    margin: 0 auto;
}

/* Tabs */
.special-products-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.special-products-tab-item {
    background: none;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    transition: 0.3s;
}

.special-products-tab-item.active {
    color: #ff9800;
}

.special-products-divider {
    color: #ff9800;
}

/* Product Card */
.special-products-card {
    border: 1px solid #eee;
    text-align: center;
    background: #fff;
    height: 100%;
}

.special-products-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.special-products-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-products-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.special-products-card:hover .special-products-overlay {
    opacity: 1;
}

.special-products-btn-view {
    background: #ff9800;
    color: #fff;
    padding: 8px 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
}

.special-products-info {
    padding: 15px 10px;
}

.special-products-name {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.special-products-price {
    color: #ff9800;
    font-weight: 700;
    font-size: 15px;
}

/* Slider Controls */
.special-products-slider-outer {
    position: relative;
    padding-bottom: 50px;
}

.special-products-swiper {
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Fix Navigation Button */
.special-products-next {
    right: -50px !important; /* Move it outside the grid */
    color: #333 !important;
    z-index: 10;
}

/* If the button is still invisible, it might be hidden behind the edge of the screen. 
   On screens smaller than 1300px, we should bring it inside. */
@media (max-width: 1300px) {
    .special-products-next {
        right: 0px !important; 
        background: rgba(255,255,255,0.8);
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }
}

/* Fix Pagination Bars */
.special-products-pagination {
    position: absolute;
    bottom: 0px !important; /* Force to bottom of the outer container */
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    z-index: 10;
}

.special-products-pagination .swiper-pagination-bullet {
    width: 30px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: #ccc !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.special-products-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    width: 50px !important;
}

.tnc-specific-products img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/1;
    object-fit: cover;
}

.featured-news {
    padding: 60px 0 80px;
}
 
.featured-news__container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 24px;
}
 
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
 
.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 12px;
}
 
.section-underline {
    display: inline-block;
    width: 48px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
 
/* =========================================
   News Grid Layout
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    gap: 28px;
    align-items: start;
}
 
/* =========================================
   Side column stacks
   ========================================= */
.news-side {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}
 
/* Thiết lập chiều cao toàn màn hình trên desktop */
.featured-news {
    padding: 2vh 0;
    box-sizing: border-box;
    height: 90vh;
    min-height: 600px; /* Đảm bảo giao diện không bị vỡ trên màn hình quá lùn */
    display: flex;
    align-items: center;
}

.featured-news__container {
    height: 100%;
    padding: 0 3rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Tiêu đề phần */
.section-header {
    margin-bottom: 2vh;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
}

.section-underline {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color, #ff9800);
}

/* Khung lưới tin tức chiếm phần còn lại của màn hình */
.news-grid {
    display: grid;
    gap: 20px;
    flex: 1;
    min-height: 0; /* Cho phép các thành phần con co giãn mượt mà */
}

/* =========================================
   News Card — shared
   ========================================= */
.news-card {
    background: var(--bg-light, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.08));
    transition: box-shadow var(--transition, 0.3s), transform var(--transition, 0.3s);
}
 
.news-card:hover {
    box-shadow: var(--shadow-card-hover, 0 4px 16px rgba(0,0,0,0.12));
}
 
/* =========================================
   Main (featured) Card
   ========================================= */
.news-card--main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
 
.news-card--main .news-card__image-wrap {
    display: block;
    overflow: hidden;
    flex: 1; /* Tự động nhận diện diện tích còn lại */
    min-height: 0;
}
 
.news-card--main .news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
 
.news-card--main:hover .news-card__image {
    transform: scale(1.04);
}
 
.news-card--main .news-card__body {
    padding: 15px;
    flex-shrink: 0;
}
 
.news-card--main .news-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
 
/* =========================================
   Side Cards — horizontal layout
   ========================================= */
.news-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    min-height: 0;
}

.news-card--side {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1; /* Chia đều không gian dọc cho 3 bài viết */
    min-height: 0;
}
 
.news-card--side .news-card__image-wrap {
    flex: 0 0 180px; /* Thu hẹp chiều rộng của ảnh phụ để cân đối không gian chữ */
    width: 180px;
    overflow: hidden;
}
 
.news-card--side .news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
 
.news-card--side:hover .news-card__image {
    transform: scale(1.06);
}
 
.news-card--side .news-card__body {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Đẩy tiêu đề lên trên, nút xem thêm xuống dưới */
    min-height: 0;
}
 
.news-card--side .news-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    /* Giới hạn tiêu đề tối đa 2 dòng để không bị tràn chữ */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
/* =========================================
   Card Body Elements
   ========================================= */
.news-card__title a {
    color: var(--text-dark, #333);
    transition: color var(--transition, 0.3s);
    text-decoration: none;
}
 
.news-card__title a:hover {
    color: var(--primary-color, #ff9800);
}
 
.news-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light, #777);
    font-size: 0.8rem;
    margin-top: 4px;
}
 
.news-card__icon {
    display: flex;
    align-items: center;
    color: var(--text-light, #777);
}
 
.news-card__icon svg {
    width: 13px;
    height: 13px;
}
 
.news-card__date {
    line-height: 1;
}
 
.news-card__link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark, #333);
    border-bottom: 1px solid var(--primary-color, #ff9800);
    padding-bottom: 1px;
    transition: color var(--transition, 0.3s), border-color var(--transition, 0.3s);
    text-decoration: none;
    width: fit-content;
    margin-top: 4px;
}
 
.news-card__link:hover {
    color: var(--primary-color, #ff9800);
    border-color: var(--primary-color, #ff9800);
}
 
/* =========================================
   Animation delays for staggered reveal
   ========================================= */
.news-card[data-index="0"] { transition-delay: 0.05s; }
.news-card[data-index="1"] { transition-delay: 0.15s; }
.news-card[data-index="2"] { transition-delay: 0.25s; }
.news-card[data-index="3"] { transition-delay: 0.35s; }
 
/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .featured-news {
        height: auto; /* Trở lại tự động cuộn trang trên thiết bị nhỏ */
        padding: 40px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
 
    .news-card--main .news-card__image-wrap {
        aspect-ratio: 16 / 9;
    }
}
 
@media (max-width: 540px) {
    .featured-news {
        padding: 30px 0;
    }
 
    .news-card--side {
        flex-direction: column;
    }
 
    .news-card--side .news-card__image-wrap {
        flex: none;
        width: 100%;
        height: 180px;
    }
 
    .section-title {
        font-size: 1.2rem;
    }
}

.tnc-cta {
    background-color: #ff9800;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0px 20px; /* Thêm padding để container không sát mép trình duyệt */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.tnc-cta-container {
    max-width: 1100px; /* Thu hẹp nhẹ so với 1200px để gọn hơn */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.tnc-cta-content {
    flex: 1;
}

.tnc-cta-text {
    color: #ffffff;
    font-size: 1.6rem; /* Giảm nhẹ font chữ */
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: left;
}

.tnc-cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #ff9800;
    padding: 12px 30px; /* Gọn gàng hơn */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tnc-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.tnc-cta-image {
    flex: 0 0 30%; /* Giảm tỉ lệ chiếm dụng của logo */
    display: flex;
    justify-content: flex-end;
}

.svg-placeholder {
    width: 100%;
    max-width: 250px; /* Thu nhỏ logo lại để tinh tế hơn */
    height: auto;
}

.svg-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive cho Mobile & Tablet */
@media (max-width: 768px) {
    .tnc-cta {
        padding: 30px 15px;
    }

    .tnc-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .tnc-cta-text {
        font-size: 1.3rem; /* Chữ nhỏ lại trên mobile */
        text-align: center;
        margin-bottom: 20px;
    }

    .tnc-cta-image {
        flex: 0 0 auto;
        justify-content: center;
        order: -1; /* Đưa logo lên trên nội dung nếu muốn, hoặc xóa dòng này để giữ nguyên thứ tự */
    }

    .svg-placeholder {
        max-width: 150px; /* Logo nhỏ xinh trên mobile */
    }
    
    .tnc-cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}