/* style/tintc.css */

/* Custom properties for colors */
:root {
    --page-tintc-primary: #11A84E;
    --page-tintc-secondary: #22C768;
    --page-tintc-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-tintc-card-bg: #11271B;
    --page-tintc-background: #08160F; /* Body background from shared is likely this */
    --page-tintc-text-main: #F2FFF6;
    --page-tintc-text-secondary: #A7D9B8;
    --page-tintc-border: #2E7A4E;
    --page-tintc-glow: #57E38D;
    --page-tintc-gold: #F2C14E;
    --page-tintc-divider: #1E3A2A;
    --page-tintc-deep-green: #0A4B2C;
}

.page-tintc {
    background-color: var(--page-tintc-background);
    color: var(--page-tintc-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as per instruction, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't overflow */
    box-sizing: border-box;
}

.page-tintc__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-tintc__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background effect */
}

.page-tintc__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
    background-color: rgba(17, 39, 27, 0.8); /* Semi-transparent card background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 80px; /* Push content down from the top */
}

.page-tintc__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Using clamp as per instruction */
    color: var(--page-tintc-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-tintc__intro-text {
    font-size: 1.1em;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 30px;
}

.page-tintc__cta-button {
    display: inline-block;
    background: var(--page-tintc-button-gradient);
    color: var(--page-tintc-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 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);
}

.page-tintc__cta-button--secondary {
    background: var(--page-tintc-card-bg); /* Dark background for secondary button */
    border: 1px solid var(--page-tintc-border);
    color: var(--page-tintc-text-main);
}
.page-tintc__cta-button--secondary:hover {
    background: var(--page-tintc-border);
}

/* Section Titles */
.page-tintc__section-title {
    font-size: 2.5em;
    color: var(--page-tintc-gold);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.page-tintc__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--page-tintc-glow);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Latest News Section */
.page-tintc__latest-news-section,
.page-tintc__featured-articles-section,
.page-tintc__cta-section,
.page-tintc__faq-section {
    padding: 60px 0;
    border-top: 1px solid var(--page-tintc-divider);
}

.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: var(--page-tintc-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    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 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__news-card-image {
    width: 100%;
    height: 220px;
    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.4em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-tintc__news-card-title a {
    color: var(--page-tintc-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover {
    color: var(--page-tintc-gold);
}

.page-tintc__news-card-date {
    font-size: 0.9em;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 15px;
}

.page-tintc__news-card-description {
    font-size: 1em;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__read-more-link {
    color: var(--page-tintc-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-tintc__read-more-link:hover {
    color: var(--page-tintc-glow);
}

.page-tintc__view-all-button-container {
    text-align: center;
}

/* Featured Articles Section */
.page-tintc__articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-tintc__article-item {
    background-color: var(--page-tintc-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-tintc__article-image {
    width: 300px; /* Fixed width for desktop */
    height: 200px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.page-tintc__article-content {
    padding: 25px;
    flex-grow: 1;
}

.page-tintc__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tintc__article-title a {
    color: var(--page-tintc-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__article-title a:hover {
    color: var(--page-tintc-gold);
}

.page-tintc__article-meta {
    font-size: 0.9em;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 15px;
}

.page-tintc__article-description {
    font-size: 1em;
    color: var(--page-tintc-text-secondary);
}

/* CTA Section */
.page-tintc__cta-section .page-tintc__container {
    background-color: var(--page-tintc-deep-green); /* Use deep green for CTA background */
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__cta-section .page-tintc__section-title {
    color: var(--page-tintc-text-main);
    margin-bottom: 25px;
}
.page-tintc__cta-section .page-tintc__section-title::after {
    background: var(--page-tintc-text-main);
}

.page-tintc__cta-description {
    font-size: 1.1em;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    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 */
}

/* FAQ Section */
.page-tintc__faq-section {
    background-color: var(--page-tintc-background);
}

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

.page-tintc__faq-item {
    background-color: var(--page-tintc-card-bg);
    border: 1px solid var(--page-tintc-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tintc__faq-item summary {
    display: block; /* For details tag */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-tintc-gold);
    background-color: var(--page-tintc-deep-green);
    border-bottom: 1px solid var(--page-tintc-border);
    position: relative;
    transition: background-color 0.3s ease;
}

.page-tintc__faq-item summary:hover {
    background-color: var(--page-tintc-deep-green); /* Keep same hover as background */
    color: var(--page-tintc-glow);
}

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

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.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 + to become x or simply change to - */
}

.page-tintc__faq-answer {
    padding: 20px 25px;
    background-color: var(--page-tintc-card-bg);
    color: var(--page-tintc-text-secondary);
    font-size: 1em;
}
.page-tintc__faq-answer p {
    margin: 0;
}

/* General Link Styling */
.page-tintc a {
    color: var(--page-tintc-gold);
    text-decoration: none;
}
.page-tintc a:hover {
    color: var(--page-tintc-glow);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-tintc__hero-content {
        padding: 30px;
    }
    .page-tintc__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-tintc__section-title {
        font-size: 2em;
    }
    .page-tintc__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-tintc__article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-tintc__article-image {
        width: 100%;
        height: 250px;
    }
    .page-tintc__article-content {
        padding: 20px;
    }
}

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

    .page-tintc__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image containers */
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-image-wrapper,
    .page-tintc__news-card,
    .page-tintc__article-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-tintc__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-tintc__hero-content {
        margin-top: 40px;
        padding: 20px;
    }

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

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

    .page-tintc__news-grid {
        grid-template-columns: 1fr;
    }

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

    .page-tintc__article-item {
        flex-direction: column;
    }
    .page-tintc__article-image {
        width: 100%;
        height: 200px;
    }

    /* Buttons */
    .page-tintc__cta-button,
    .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-left: 15px;
        padding-right: 15px;
    }
    
    .page-tintc__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-tintc__cta-section .page-tintc__container {
        padding: 40px 20px;
    }

    .page-tintc__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-tintc__faq-answer {
        padding: 15px 20px;
    }
}