/* style/tintc.css */

/* Base styles */
.page-tintc {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    overflow-x: hidden;
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Background */
    text-align: center;
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-tintc__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tintc__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Glow */
}

.page-tintc__intro-text {
    font-size: 1.1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 40px;
}

.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-tintc__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111; /* Dark text for bright button */
    border: none;
}

.page-tintc__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-tintc__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Border color */
}

.page-tintc__btn-secondary:hover {
    background-color: #F2C14E; /* Main color */
    color: #111111; /* Dark text for bright button */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* General Section Styles */
.page-tintc__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #FFD36B; /* Auxiliary color / Glow */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-tintc__section-description {
    font-size: 1.1rem;
    color: #FFF6D6; /* Text Main */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

/* Categories Section */
.page-tintc__categories-section {
    background-color: #111111; /* Card BG */
    padding: 60px 0;
}

.page-tintc__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tintc__category-card {
    background-color: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #FFF6D6; /* Text Main */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tintc__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
    border-color: #F2C14E; /* Main color */
}

.page-tintc__category-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

.page-tintc__category-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

/* Featured News Section */
.page-tintc__featured-news-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-tintc__news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.page-tintc__news-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.page-tintc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
    border-color: #F2C14E; /* Main color */
}

.page-tintc__news-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-tintc__news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-tintc__news-date {
    font-size: 0.9rem;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 10px;
    display: block;
}

.page-tintc__news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.page-tintc__news-title a {
    color: #F2C14E; /* Main color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__news-title a:hover {
    color: #FFD36B; /* Auxiliary color */
}

.page-tintc__news-excerpt {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
}

.page-tintc__read-more {
    display: inline-block;
    color: #FFD36B; /* Auxiliary color */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.page-tintc__read-more:hover {
    color: #F2C14E; /* Main color */
}

.page-tintc__view-all-button-container {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

/* Guides Section */
.page-tintc__guides-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
}

.page-tintc__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tintc__guide-card {
    background-color: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #FFF6D6; /* Text Main */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tintc__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
    border-color: #F2C14E; /* Main color */
}

.page-tintc__guide-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-tintc__guide-title a {
    color: #F2C14E; /* Main color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__guide-title a:hover {
    color: #FFD36B; /* Auxiliary color */
}

.page-tintc__guide-excerpt {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
}

/* FAQ Section */
.page-tintc__faq-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-tintc__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tintc__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-tintc__faq-item:hover {
    border-color: #F2C14E; /* Main color */
    box-shadow: 0 4px 12px rgba(242, 193, 78, 0.2);
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F2C14E; /* Main color */
    cursor: pointer;
    background-color: #111111; /* Card BG */
    list-style: none; /* For details/summary */
}

.page-tintc__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-tintc__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #FFD36B; /* Auxiliary color */
}

.page-tintc__faq-answer {
    padding: 0 20px;
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tintc__faq-item[open] .page-tintc__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 10px;
    padding-bottom: 20px;
}

/* Conclusion Section */
.page-tintc__conclusion-section {
    padding: 60px 0 80px 0;
    background-color: #0A0A0A; /* Background */
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tintc__hero-content {
        padding: 0 40px;
    }
    .page-tintc__categories-grid,
    .page-tintc__news-list,
    .page-tintc__guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-tintc__news-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-tintc__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-tintc__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-tintc__intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-tintc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* 通用图片与容器 */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-tintc__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-tintc__news-image {
        height: 180px;
    }

    .page-tintc__categories-section,
    .page-tintc__featured-news-section,
    .page-tintc__guides-section,
    .page-tintc__faq-section,
    .page-tintc__conclusion-section {
        padding: 40px 0;
    }

    .page-tintc__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-tintc__section-description {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    /* Sản phẩm/dịch vụ (Categories Grid) */
    .page-tintc__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .page-tintc__category-card {
        padding: 25px;
    }
    .page-tintc__category-title {
        font-size: 1.3rem;
    }
    .page-tintc__category-description {
        font-size: 0.95rem;
    }

    /* Tin tức (News List) */
    .page-tintc__news-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .page-tintc__news-card {
        flex-direction: column;
    }
    .page-tintc__news-content {
        padding: 15px;
    }
    .page-tintc__news-title {
        font-size: 1.2rem;
    }
    .page-tintc__news-excerpt {
        font-size: 0.95rem;
    }

    /* Hướng dẫn (Guides Grid) */
    .page-tintc__guides-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .page-tintc__guide-card {
        padding: 25px;
    }
    .page-tintc__guide-title {
        font-size: 1.3rem;
    }
    .page-tintc__guide-excerpt {
        font-size: 0.95rem;
    }

    /* Câu hỏi thường gặp (FAQ List) */
    .page-tintc__faq-list {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-tintc__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-tintc__faq-toggle {
        font-size: 1.2rem;
    }
    .page-tintc__faq-answer {
        font-size: 0.95rem;
        padding: 0 15px 15px 15px;
    }

    .page-tintc__view-all-button-container {
        padding: 0 15px;
    }
    .page-tintc__conclusion-section .page-tintc__cta-buttons {
        padding: 0 15px;
    }
}