/* style/tintc.css */

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

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

.page-tintc__flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tintc__flex-column {
    flex-direction: column;
}

/* --- Section Styling --- */
.page-tintc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background);
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

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

.page-tintc__hero-content-wrapper {
    padding: 40px 0;
    text-align: center;
    background-color: var(--background); /* Ensure consistency */
    width: 100%;
    box-sizing: border-box;
}

.page-tintc__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive H1 */
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-tintc__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tintc__section-description {
    font-size: 1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* --- Buttons --- */
.page-tintc__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
}

.page-tintc__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-tintc__cta-button--secondary {
    background: var(--gold); /* Use gold for secondary to stand out */
    color: #333333; /* Dark text for gold background */
}

.page-tintc__cta-button--secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-tintc__view-all-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-tintc__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--deep-green);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-tintc__view-all-button:hover {
    background: var(--glow);
    color: #11271B; /* Darker text for lighter hover background */
    border-color: var(--glow);
}

/* --- News Grid / Card Styles --- */
.page-tintc__latest-news-section,
.page-tintc__in-depth-analysis-section,
.page-tintc__special-events-section,
.page-tintc__faq-section,
.page-tintc__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--background); /* Default dark background */
}

.page-tintc__light-bg {
    background-color: var(--background); /* Use overall background for light-bg sections */
    color: var(--text-main); /* Light text on this dark background */
}

.page-tintc__dark-bg {
    background-color: var(--card-bg); /* Darker background for sections */
    color: var(--text-main); /* Light text on dark background */
}

.page-tintc__text-contrast-fix {
    color: var(--text-main); /* Ensure light text on dark background */
}

.page-tintc__news-grid,
.page-tintc__analysis-grid,
.page-tintc__event-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tintc__news-card,
.page-tintc__analysis-card,
.page-tintc__event-card {
    background-color: var(--background); /* Darker background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row have same height */
    border: 1px solid var(--border);
}

.page-tintc__news-card:hover,
.page-tintc__analysis-card:hover,
.page-tintc__event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-tintc__news-card-title,
.page-tintc__analysis-card-title,
.page-tintc__event-card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take up space */
}

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

.page-tintc__news-card-title a:hover,
.page-tintc__analysis-card-title a:hover,
.page-tintc__event-card-title a:hover {
    color: var(--glow);
}

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

.page-tintc__news-card-excerpt,
.page-tintc__analysis-card-excerpt,
.page-tintc__event-card-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-tintc__read-more {
    display: inline-block;
    color: var(--glow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-tintc__read-more:hover {
    color: var(--gold);
}

/* --- Promotional Banner --- */
.page-tintc__promotional-banner {
    padding: 60px 0;
    background-color: var(--deep-green); /* Light background for banner */
    text-align: center;
}

.page-tintc__promotional-banner .page-tintc__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-tintc__banner-content {
    flex: 1;
    text-align: center;
}

.page-tintc__banner-title {
    font-size: clamp(1.5em, 3.5vw, 2.5em);
    color: var(--text-main);
    margin-bottom: 15px;
}

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

.page-tintc__banner-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tintc__banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* --- FAQ Section --- */
.page-tintc__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__faq-item {
    background-color: var(--background); /* Card BG for FAQ item */
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    transition: background-color 0.3s ease;
}

.page-tintc__faq-question:hover {
    background-color: #11271B; /* Slightly lighter dark background on hover */
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
    background-color: var(--deep-green);
}

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

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

.page-tintc__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--glow);
}

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

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

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

/* --- Bottom CTA Section --- */
.page-tintc__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--card-bg);
}
.page-tintc__cta-bottom-section .page-tintc__cta-button {
    margin-top: 30px;
}


/* --- Responsive Design --- */
@media (min-width: 769px) {
    .page-tintc__promotional-banner .page-tintc__container {
        flex-direction: row;
        text-align: left;
    }
    .page-tintc__banner-content {
        text-align: left;
    }
    .page-tintc__banner-image-wrapper {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .page-tintc__container {
        padding: 0 15px;
    }

    .page-tintc__hero-section {
        padding-top: 10px; /* body handles header offset */
    }

    .page-tintc__hero-content-wrapper {
        padding: 30px 0;
    }

    .page-tintc__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

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

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

    .page-tintc__section-description {
        margin-bottom: 30px;
    }

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

    /* All containers with images/videos/buttons */
    .page-tintc__hero-section,
    .page-tintc__latest-news-section,
    .page-tintc__in-depth-analysis-section,
    .page-tintc__special-events-section,
    .page-tintc__promotional-banner,
    .page-tintc__faq-section,
    .page-tintc__cta-bottom-section,
    .page-tintc__news-grid,
    .page-tintc__analysis-grid,
    .page-tintc__event-cards-grid,
    .page-tintc__news-card,
    .page-tintc__analysis-card,
    .page-tintc__event-card,
    .page-tintc__cta-button,
    .page-tintc__view-all-button,
    .page-tintc__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Removed here to avoid double padding if container also has it */
        /* padding-right: 15px; */
    }
    
    /* Specific section vertical padding adjustment */
    .page-tintc__hero-section,
    .page-tintc__latest-news-section,
    .page-tintc__in-depth-analysis-section,
    .page-tintc__special-events-section,
    .page-tintc__promotional-banner,
    .page-tintc__faq-section,
    .page-tintc__cta-bottom-section {
        padding: 40px 0 !important; /* Adjust section vertical padding */
    }

    .page-tintc__news-grid,
    .page-tintc__analysis-grid,
    .page-tintc__event-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0; /* Remove horizontal padding from grid itself as container handles it */
    }

    .page-tintc__news-card,
    .page-tintc__analysis-card,
    .page-tintc__event-card {
        padding: 0; /* Remove card padding as container handles it */
    }

    .page-tintc__news-card-image,
    .page-tintc__analysis-card-image,
    .page-tintc__event-card-image {
        height: 180px; /* Adjust height for mobile card images */
    }

    /* Buttons responsiveness */
    .page-tintc__cta-button,
    .page-tintc__view-all-button {
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px;
    }

    .page-tintc__promotional-banner .page-tintc__container {
        flex-direction: column;
        gap: 20px;
    }
    .page-tintc__banner-content {
        order: 2; /* Content after image on mobile */
    }
    .page-tintc__banner-image-wrapper {
        order: 1; /* Image first on mobile */
    }
    
    .page-tintc__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-tintc__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

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

/* Applying custom colors */
.page-tintc__cta-button {
    background: var(--button-gradient);
    color: var(--text-main);
}
.page-tintc__cta-button--secondary {
    background: var(--gold);
    color: #333333; /* Dark text for gold background */
}
.page-tintc__news-card,
.page-tintc__analysis-card,
.page-tintc__event-card,
.page-tintc__faq-item {
    background-color: var(--card-bg);
    border-color: var(--border);
}
.page-tintc__faq-item[open] .page-tintc__faq-question {
    background-color: var(--deep-green);
}
.page-tintc__faq-toggle {
    color: var(--glow);
}
.page-tintc__read-more {
    color: var(--glow);
}
.page-tintc__read-more:hover {
    color: var(--gold);
}
.page-tintc__view-all-button {
    background: var(--deep-green);
    color: var(--text-main);
    border-color: var(--border);
}
.page-tintc__view-all-button:hover {
    background: var(--glow);
    color: #11271B; /* Darker text for lighter hover background */
}
.page-tintc__promotional-banner {
    background-color: var(--deep-green);
}
.page-tintc__dark-bg {
    background-color: var(--card-bg);
}
.page-tintc__light-bg {
    background-color: var(--background); /* Use overall background for light-bg sections */
}
.page-tintc__text-contrast-fix {
    color: var(--text-main); /* Ensure light text on dark background */
}
.page-tintc p, .page-tintc li {
    color: var(--text-secondary); /* Default paragraph and list item color */
}
.page-tintc__main-title,
.page-tintc__section-title,
.page-tintc__banner-title,
.page-tintc__news-card-title a,
.page-tintc__analysis-card-title a,
.page-tintc__event-card-title a,
.page-tintc__faq-question {
    color: var(--text-main);
}
/* Ensure dark text on gold button for contrast */
.page-tintc__cta-button--secondary {
    color: #333333;
}