/* ==========================================================================
   CSS THÊM VÀO cho Trang Giới Thiệu (Dán vào cuối style.css)
   ========================================================================== */

/* == About Page General == */
/* Body background nếu muốn (có thể bỏ qua nếu dùng nền trắng mặc định) */
/* body.page-id-YYY { background: linear-gradient(109deg,#fff 45%, var(--t-primary-light) 100%); } */

/* == About Banner == */
.t-about-banner {
    background: linear-gradient(135deg, var(--t-secondary-color) 0%, #3a506b 25%, var(--t-primary-color) 75%, var(--t-primary-light) 100%);
    /* Sửa lại màu gradient */
    position: relative;
    overflow: hidden;
    padding: 70px 15px;
    /* Điều chỉnh padding */
    color: var(--t-light-color);
    text-align: center;
    min-height: 300px;
    /* Chiều cao tối thiểu */
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-about-banner::before {
    /* Pattern nhẹ */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.03)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.t-about-banner-title {
    font-size: 36px;
    /* Chỉnh lại */
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--t-light-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.t-about-banner-subtitle {
    font-size: 18px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.2s;
    position: relative;
    z-index: 1;
    animation-fill-mode: backwards;
}

.t-banner-btn {
    /* Style nút trong banner */
    position: relative;
    z-index: 1;
    background: var(--t-primary-color);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: bold;
    display: inline-block;
    margin-top: 30px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease-out 0.4s;
    animation-fill-mode: backwards;
    border: 2px solid transparent;
}

.t-banner-btn:hover {
    background: var(--t-light-color);
    color: var(--t-primary-dark) !important;
    border-color: transparent;
    /* Hoặc var(--t-primary-dark) */
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* == About Content Sections General == */
/*.t-about-section {*/
    /*padding: 60px 0;*/
    /* Giảm padding */
    /*position: relative;*/
    /* Cho pseudo-element 
}*/


.t-about-section {
    background: var(--t-light-color);
    max-width: var(--max-width-content);
    margin: 38px auto 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 36px 28px 34px 28px;
    position: relative;
    /* For PDF, restrict scroll, show all content */
    overflow: visible;
}

.t-about-section:nth-child(even) {
    background-color: #f8f9fa;
    /* Màu nền xám nhạt hơn */
}

.t-about-section-sp {
    padding: 60px 1.2EM;
    
    /* Giảm padding */
    position: relative;
    /* Cho pseudo-element */
}

.t-about-section-sp:nth-child(even) {
    background-color:var(--t-primary-color);
    /* Màu nền xám nhạt hơn */
}
.t-about-sp-tt
{

    color: #FFFFFF;

}

.t-about-section:nth-child(even)::before {
    /* Pattern cho section chẵn */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e05e1a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 0;
}

.t-about-section>.t-container {
    /* Đảm bảo container nằm trên pattern */
    position: relative;
    z-index: 1;
}

.t-about-heading {
    text-align: center;
    margin-bottom: 50px;
    /* Tăng khoảng cách dưới */
}

.t-about-title {
    font-size: 30px;
    /* Chỉnh size */
    font-weight: 700;
    color: var(--t-secondary-color);
    margin-bottom: 0;
    /* Bỏ margin dưới */
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    /* Tăng padding dưới */
}

.t-about-title::after {
    /* Gạch chân */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--t-primary-color);
    border-radius: 3px;
}

.t-about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
    /* Căn lề trái */
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

.t-about-content p {
    margin-bottom: 1.2em;
    /* Khoảng cách giữa các đoạn */
}

/* == Feature Cards == */
.t-feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.t-feature-card {
    flex: 1;
    min-width: 290px;
    max-width: 360px;
    background: var(--t-light-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 25px;
    /* Giảm padding */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Căn giữa nội dung card */
    border-top: 3px solid transparent;
    /* Border top thay cho hover */
}

.t-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--t-primary-color);
}

.t-feature-icon {
    font-size: 32px;
    color: var(--t-primary-color);
    margin-bottom: 15px;
    display: inline-block;
    transition: var(--transition);
}

.t-feature-card:hover .t-feature-icon {
    transform: scale(1.1);
}

.t-feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--t-secondary-color);
}

.t-feature-text {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    /* Giảm font */
}

/* == Product Section (Static Cards) == */
.t-product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Căn giữa các card */
    gap: 30px;
    margin-top: 50px;
}

.t-product-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--t-light-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    /* Flex column */
}

.t-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.t-product-image {
    height: 180px;
    /* Giảm chiều cao ảnh */
    background: #f0f0f0;
    /* Nền ảnh */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.t-product-image img {
    max-height: 100%;
    width: auto;
    /* Chỉnh lại hiển thị ảnh */
    transition: var(--transition);
}

.t-product-card:hover .t-product-image img {
    transform: scale(1.03);
}

.t-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--t-primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.t-product-details {
    padding: 15px 20px 20px;
    /* Chỉnh padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Flex column */
}

.t-product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--t-secondary-color);
    line-height: 1.4;
    /* Chỉnh line-height */
}

.t-product-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
    /* Đẩy footer xuống dưới */
    /* Bỏ cắt dòng bằng webkit */
    /* display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; */
}

.t-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
    /* Viền mỏng hơn */
    margin-top: auto;
    /* Đẩy xuống dưới cùng */
}

.t-product-rating {
    color: #ffc107;
    font-size: 13px;
}

.t-product-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--t-primary-color);
    display: flex;
    align-items: center;
}

.t-product-link i {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.t-product-link:hover i {
    transform: translateX(3px);
}

/* == Contact Info Card (Reused styles from contact page CSS needed) == */
.t-contact-info-card {
    /* Đảm bảo style này tồn tại từ CSS trang liên hệ */
    background: linear-gradient(135deg, var(--t-secondary-color) 0%, #3a506b 100%);
    color: white;
    border-radius: 8px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
    
}

.t-contact-info-card::before {
    /* Bỏ pattern */
    display: none;
}

.t-contact-info-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    color: white;
}

.t-contact-info-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--t-primary-color);
    border-radius: 3px;
}

.t-contact-info-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.t-contact-info-icon {
    /* Đảm bảo class này tồn tại từ CSS trang liên hệ */
    margin-right: 15px;
    font-size: 18px;
    color: var(--t-primary-light);
    flex-shrink: 0;
    width: 30px;
    /* Căn chỉnh icon */
    text-align: center;
}

.t-contact-info-text {
    line-height: 1.6;
    font-size: 15px;
}

.t-contact-info-text strong {
    color: white;
    font-weight: 500;
    display: block;
    margin-bottom: 3px;
}

.t-contact-info-text a {
    color: white;
    transition: var(--transition);
}

.t-contact-info-text a:hover {
    color: var(--t-primary-light);
    text-decoration: underline;
}

.t-contact-action {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cho phép nút xuống dòng */
.t-contact-btn {
    /* Style dùng chung cho nút */
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    border-radius: var(--border-radius);
    display: inline-block;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    /* Thêm border */
}

.t-btn-primary {
    background-color: var(--t-primary-color);
    border-color: var(--t-primary-color);
}

.t-btn-primary:hover {
    background-color: var(--t-primary-dark);
    border-color: var(--t-primary-dark);
    color: white !important;
    transform: translateY(-2px);
}

.t-btn-outline {
    background-color: transparent;
    border-color: white;
}

.t-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-2px);
}

/* == Responsive Adjustments for About Page == */
@media (max-width: 992px) {

    .t-feature-card,
    .t-product-card {
        /* flex-basis: calc(50% - 15px); */
        /* 2 cột */
        min-width: calc(50% - 15px);
        /* Đảm bảo 2 cột */
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .t-about-banner {
        padding: 50px 15px;
    }

    .t-about-banner-title {
        font-size: 30px;
    }

    .t-about-section {
        padding: 40px 0;
    }

    .t-about-title {
        font-size: 26px;
    }

    .t-feature-cards,
    .t-product-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .t-feature-card,
    .t-product-card {
        flex-basis: 100%;
        /* 1 cột */
        min-width: 100%;
        max-width: 450px;
        /* Giới hạn chiều rộng tối đa trên mobile */
        margin: 0 auto 20px auto;
        /* Căn giữa và thêm margin dưới */
    }

    .t-contact-info-card {
        padding: 25px;
    }

    .t-contact-action {
        justify-content: center;
    }

    /* Căn giữa nút */
}

@media (max-width: 480px) {
    .t-about-banner-title {
        font-size: 26px;
    }

    .t-about-title {
        font-size: 24px;
    }

    .t-contact-info-title {
        font-size: 22px;
    }

    .t-feature-card,
    .t-product-card {
        padding: 20px;
    }

    .t-feature-title,
    .t-product-title {
        font-size: 16px;
    }

    .t-feature-text,
    .t-product-desc {
        font-size: 13px;
    }
}

/* ==========================================================================
   Kết thúc CSS cho Trang Giới Thiệu
   ========================================================================== */