/* style/tintc.css */

/* Base styles for the page content */
.page-tintc {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 40px; /* Small padding-top, body handles header offset */
    overflow: hidden;
    background-color: #0A4B2C; /* Deep Green */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-tintc__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #F2FFF6; /* Text Main */
}

.page-tintc__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
    line-height: 1.2;
}

.page-tintc__intro-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

.page-tintc__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure button adapts to container */
}

.page-tintc__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow */
    border: 2px solid #2E7A4E; /* Border */
}

.page-tintc__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    color: #F2FFF6; /* Text Main */
    border-color: #57E38D; /* Glow */
    transform: translateY(-2px);
}

/* Section common styles */
.page-tintc__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 25px;
    padding-top: 40px;
}

.page-tintc__section-description {
    font-size: 1.05rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Latest News Section */
.page-tintc__latest-news-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-tintc__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-tintc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-tintc__news-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-tintc__news-card-title a:hover {
    color: #57E38D; /* Glow */
}

.page-tintc__news-card-meta {
    font-size: 0.9rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__news-card-link {
    display: inline-block;
    color: #2AD16F; /* Main brand green */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-tintc__news-card-link:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

.page-tintc__view-all-button {
    text-align: center;
    margin-top: 30px;
}

/* Industry News Section */
.page-tintc__industry-news-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-tintc__news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.page-tintc__news-item {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tintc__news-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.page-tintc__news-item-title a:hover {
    color: #57E38D; /* Glow */
}

.page-tintc__news-item-meta {
    font-size: 0.85rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 12px;
}

.page-tintc__news-item-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
}

/* VN58 Updates Section */
.page-tintc__vn58-updates-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-tintc__updates-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.page-tintc__update-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__update-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__update-image {
    width: 150px;
    height: 112px; /* Maintain 4:3 aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-tintc__update-content {
    flex-grow: 1;
}

.page-tintc__update-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.page-tintc__update-title a:hover {
    color: #57E38D; /* Glow */
}

.page-tintc__update-meta {
    font-size: 0.85rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 10px;
}

.page-tintc__update-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-tintc__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-tintc__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
    background-color: #1E3A2A; /* Divider - slightly darker for open state */
}

.page-tintc__faq-question:hover {
    background-color: #1E3A2A; /* Divider */
}

.page-tintc__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: #57E38D; /* Glow */
}

.page-tintc__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

.page-tintc__faq-answer p {
    margin: 0;
}

/* details tag specific styling */
.page-tintc__faq-item > summary {
    list-style: none; /* Remove default marker */
}
.page-tintc__faq-item > summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

/* CTA Section */
.page-tintc__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #08160F; /* Background */
}

/* General text styles */
.page-tintc p,
.page-tintc li {
    color: #A7D9B8; /* Text Secondary */
}

/* Link styles */
.page-tintc a {
    color: #2AD16F; /* Main brand green */
    text-decoration: none;
}

.page-tintc a:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

/* Image responsiveness */
.page-tintc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-tintc__hero-content {
        padding: 0 15px;
    }

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

    .page-tintc__update-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-tintc__update-image {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .page-tintc {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-tintc__container {
        padding: 0 15px;
    }

    .page-tintc__hero-section {
        padding: 40px 15px 30px;
    }

    .page-tintc__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-tintc__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-tintc__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

    .page-tintc__section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        padding-top: 30px;
    }

    .page-tintc__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-tintc__latest-news-section,
    .page-tintc__industry-news-section,
    .page-tintc__vn58-updates-section,
    .page-tintc__faq-section,
    .page-tintc__cta-section {
        padding: 40px 0;
    }

    .page-tintc__news-card-image {
        height: 180px;
    }

    .page-tintc__news-card-title {
        font-size: 1.2rem;
    }

    .page-tintc__news-item-title {
        font-size: 1.1rem;
    }

    .page-tintc__update-item {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-tintc__update-image {
        width: 100%;
        max-width: 250px; /* Limit max width for smaller screens */
        height: auto;
        margin-bottom: 15px;
    }

    .page-tintc__update-title {
        font-size: 1.1rem;
    }

    .page-tintc__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-tintc__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsiveness enforcement */
    .page-tintc img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-image-wrapper,
    .page-tintc__news-grid,
    .page-tintc__news-list,
    .page-tintc__updates-list,
    .page-tintc__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure content doesn't overflow */
    }

    /* Specific padding for sections if needed, but not var(--header-offset) */
    .page-tintc__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }
}