/* style/tintc.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-tintc {
    background-color: var(--background-color, #08160F); /* Fallback to custom deep green if shared var not set */
    color: #F2FFF6; /* Text Main color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure nothing spills out */
    box-sizing: border-box;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tintc__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: #F2C14E; /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tintc__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-tintc__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main for button text */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tintc__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-tintc__cta-button--secondary {
    background: #11271B; /* Card BG for secondary button */
    border: 2px solid #2E7A4E; /* Border color */
    color: #A7D9B8; /* Text Secondary */
    margin-left: 20px;
}

.page-tintc__cta-button--secondary:hover {
    background: #1E3A2A; /* Darker version of Deep Green */
    color: #F2FFF6; /* Text Main */
    border-color: #57E38D; /* Glow color */
}

/* Section Titles */
.page-tintc__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold color */
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-tintc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2AD16F; /* Button top color */
    border-radius: 2px;
}

/* News and Promotion Grids */
.page-tintc__news-grid,
.page-tintc__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.page-tintc__card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

.page-tintc__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #F2FFF6; /* Text Main */
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take up space */
}

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

.page-tintc__card-title a:hover {
    color: #2AD16F; /* Button top color */
}

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

.page-tintc__card-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take up space */
}

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

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

/* View All Button Container */
.page-tintc__view-all-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 60px;
}

.page-tintc__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: #11271B; /* Card BG */
    border: 2px solid #2E7A4E; /* Border color */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-tintc__view-all-button:hover {
    background: #2E7A4E; /* Border color */
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-tintc__faq-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-tintc__faq-list {
    margin-top: 30px;
}

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

.page-tintc__faq-item[open] {
    background-color: #1E3A2A; /* Deep Green alternative */
    border-color: #2AD16F; /* Button top color */
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    list-style: none; /* Remove default marker for details summary */
}

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

.page-tintc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #2AD16F; /* Button top color */
    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: 0 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

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

/* CTA Section at the bottom */
.page-tintc__cta-section {
    background: linear-gradient(90deg, #0A4B2C 0%, #13994A 100%); /* Deep Green to Button top color */
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__cta-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tintc__cta-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-tintc__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-tintc__section-title {
        font-size: 2em;
    }

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

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

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

    .page-tintc__hero-image {
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-tintc__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em);
    }

    .page-tintc__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-tintc__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-tintc__cta-button--secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .page-tintc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tintc__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-tintc__news-grid,
    .page-tintc__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-tintc__news-card,
    .page-tintc__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tintc__news-thumbnail,
    .page-tintc__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-tintc__card-title {
        font-size: 1.2em;
    }

    .page-tintc__faq-section {
        margin: 40px auto;
        padding: 0 15px;
    }

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

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

    .page-tintc__cta-section {
        padding: 40px 15px;
        margin-top: 50px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tintc__cta-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }

    .page-tintc__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Mobile specific for image/video containers */
    .page-tintc__featured-news,
    .page-tintc__promotions-updates,
    .page-tintc__industry-insights,
    .page-tintc__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}