/* style/tintc.css */

/* General styles for the page-tintc scope */
.page-tintc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Assuming body handles #000000 background */
}

.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-tintc__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 60px;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    background-color: #000000; /* Ensure section has dark background if image doesn't cover all */
}

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

.page-tintc__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the wrapper area */
    display: block;
    filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-tintc__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    position: relative; /* Ensure content is above other elements, but not overlapping image */
    z-index: 2;
    color: #ffffff;
}

.page-tintc__hero-title {
    font-size: 3em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-tintc__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-tintc__btn-primary:hover {
    background-color: #1a7fb3;
    border-color: #1a7fb3;
}

.page-tintc__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-tintc__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Latest News Section */
.page-tintc__latest-news-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Dark background for this section */
}

.page-tintc__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-tintc__news-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__news-card-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for card image */
    overflow: hidden;
}

.page-tintc__news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-tintc__news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Light text for card content */
}

.page-tintc__news-date {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-bottom: 10px;
}

.page-tintc__news-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-tintc__news-title a {
    color: #26A9E0; /* Brand color for linked titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__news-title a:hover {
    color: #1a7fb3;
}

.page-tintc__news-summary {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-tintc__read-more-btn {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-tintc__read-more-btn:hover {
    color: #1a7fb3;
}

.page-tintc__view-all-news {
    text-align: center;
    margin-top: 40px;
}

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

.page-tintc__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-tintc__category-card {
    background-color: rgba(255, 255, 255, 0.08); /* Card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff; /* Light text */
}

.page-tintc__category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(38, 169, 224, 0.2); /* Slight brand color tint on hover */
}

.page-tintc__category-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-tintc__category-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

/* Featured Article Section */
.page-tintc__featured-article-section {
    padding: 60px 0;
    background-color: #0d0d0d;
}

.page-tintc__featured-article-card {
    display: flex;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-tintc__featured-image-wrapper {
    flex: 1;
    min-width: 50%;
    overflow: hidden;
}

.page-tintc__featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-tintc__featured-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.page-tintc__article-date {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-bottom: 10px;
}

.page-tintc__article-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-tintc__article-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__article-title a:hover {
    color: #1a7fb3;
}

.page-tintc__article-summary {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 15px;
}


/* Call to Action Section */
.page-tintc__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #000000;
}

.page-tintc__cta-section .page-tintc__container {
    background-color: #26A9E0; /* Brand color background for CTA */
    padding: 40px;
    border-radius: 10px;
    color: #ffffff;
}

.page-tintc__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-tintc__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-tintc__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-tintc__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-tintc__faq-question::-webkit-details-marker {
    display: none;
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff; /* White text when open */
    background-color: #26A9E0; /* Brand color background when open */
}

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

.page-tintc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-tintc__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #e0e0e0;
}

.page-tintc__faq-answer p {
    margin-bottom: 10px;
}
.page-tintc__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Global image responsiveness (applies to all images within page-tintc) */
.page-tintc img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure containers for images and buttons are responsive */
.page-tintc__hero-image-wrapper,
.page-tintc__news-card-image-wrapper,
.page-tintc__featured-image-wrapper,
.page-tintc__container,
.page-tintc__news-grid,
.page-tintc__categories-grid,
.page-tintc__cta-buttons,
.page-tintc__featured-article-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll for contained elements */
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-tintc__hero-title {
        font-size: 2.5em;
    }
    .page-tintc__hero-description {
        font-size: 1.1em;
    }
    .page-tintc__section-title {
        font-size: 2em;
    }
    .page-tintc__news-title {
        font-size: 1.2em;
    }
    .page-tintc__category-title {
        font-size: 1.5em;
    }
    .page-tintc__featured-article-card {
        flex-direction: column;
    }
    .page-tintc__featured-image-wrapper {
        min-width: 100%;
    }
    .page-tintc__article-title {
        font-size: 1.6em;
    }
    .page-tintc__cta-title {
        font-size: 2em;
    }
    .page-tintc__cta-description {
        font-size: 1.1em;
    }
    .page-tintc__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-tintc__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-tintc__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }
    .page-tintc__hero-image-wrapper {
        height: 300px !important; /* Smaller height for mobile hero image */
    }
    .page-tintc__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tintc__hero-content {
        margin-top: 20px !important;
        padding: 0 15px !important;
    }
    .page-tintc__hero-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    .page-tintc__hero-description {
        font-size: 1em !important;
        max-width: 100% !important;
    }
    .page-tintc__hero-cta {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }

    /* 通用图片与容器 */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tintc__container,
    .page-tintc__news-grid,
    .page-tintc__categories-grid,
    .page-tintc__cta-buttons,
    .page-tintc__featured-article-card,
    .page-tintc__latest-news-section,
    .page-tintc__categories-section,
    .page-tintc__featured-article-section,
    .page-tintc__cta-section,
    .page-tintc__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* 按钮与按钮容器 */
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary,
    .page-tintc a[class*="button"],
    .page-tintc a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }
    .page-tintc__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    /* 其他内容模块 */
    .page-tintc__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px !important;
    }
    .page-tintc__news-grid {
        grid-template-columns: 1fr !important; /* Single column for news cards */
        gap: 20px !important;
    }
    .page-tintc__news-card {
        flex-direction: column !important;
    }
    .page-tintc__news-card-image-wrapper {
        height: 180px !important;
    }
    .page-tintc__news-card-content {
        padding: 15px !important;
    }
    .page-tintc__news-title {
        font-size: 1.1em !important;
    }
    .page-tintc__categories-grid {
        grid-template-columns: 1fr !important; /* Single column for categories */
        gap: 20px !important;
    }
    .page-tintc__category-card {
        padding: 20px !important;
    }
    .page-tintc__category-title {
        font-size: 1.4em !important;
    }
    .page-tintc__featured-article-card {
        flex-direction: column !important;
    }
    .page-tintc__featured-content {
        padding: 20px !important;
    }
    .page-tintc__article-title {
        font-size: 1.4em !important;
    }
    .page-tintc__cta-title {
        font-size: 1.8em !important;
    }
    .page-tintc__cta-description {
        font-size: 1em !important;
    }
    .page-tintc__faq-question {
        font-size: 1.1em !important;
        padding: 15px !important;
    }
    .page-tintc__faq-answer {
        padding: 15px !important;
    }
    .page-tintc {
        font-size: 15px; /* Base font size for mobile */
    }
}