/* style/tintc.css */

/* Custom Colors */
:root {
    --page-tintc-bg: #08160F; /* Background */
    --page-tintc-card-bg: #11271B; /* Card BG */
    --page-tintc-text-main: #F2FFF6; /* Text Main */
    --page-tintc-text-secondary: #A7D9B8; /* Text Secondary */
    --page-tintc-border: #2E7A4E; /* Border */
    --page-tintc-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-tintc-glow: #57E38D; /* Glow */
    --page-tintc-gold: #F2C14E; /* Gold */
    --page-tintc-divider: #1E3A2A; /* Divider */
    --page-tintc-deep-green: #0A4B2C; /* Deep Green */
    --page-tintc-primary: #11A84E; /* Main Color */
    --page-tintc-secondary: #22C768; /* Auxiliary Color */
}

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

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

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.6); /* Slightly darken image for text contrast */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-tintc__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: var(--page-tintc-text-main);
}

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

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

/* General Sections */
.page-tintc__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--page-tintc-text-main);
}

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

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

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    min-width: 150px; /* Ensure buttons are not too small */
    box-sizing: border-box;
}

.page-tintc__btn-primary {
    background: var(--page-tintc-btn-gradient);
    color: #ffffff; /* White text on dark button */
    margin-right: 15px;
}

.page-tintc__btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px var(--page-tintc-glow);
}

.page-tintc__btn-secondary {
    background-color: transparent;
    border: 2px solid var(--page-tintc-primary);
    color: var(--page-tintc-primary);
}

.page-tintc__btn-secondary:hover {
    background-color: var(--page-tintc-primary);
    color: #ffffff;
    box-shadow: 0 0 10px var(--page-tintc-primary);
}

/* News List Section */
.page-tintc__news-list-section {
    background-color: var(--page-tintc-bg);
    padding: 60px 0;
}

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

.page-tintc__news-card {
    background-color: var(--page-tintc-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;
    min-width: 200px; /* Ensure cards are not too small */
}

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

.page-tintc__news-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement, will be scaled down */
}

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

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

.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-primary);
}

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

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

.page-tintc__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--page-tintc-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-tintc__read-more-btn:hover {
    background-color: var(--page-tintc-secondary);
}

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

/* CTA Section */
.page-tintc__cta-section {
    background-color: var(--page-tintc-card-bg); /* Darker background for contrast */
    padding: 80px 0;
    text-align: center;
}

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

/* FAQ Section */
.page-tintc__faq-section {
    background-color: var(--page-tintc-bg);
    padding: 60px 0;
}

.page-tintc__faq-list {
    max-width: 900px;
    margin: 40px auto 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;
    color: var(--page-tintc-text-main);
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-tintc-card-bg);
    color: var(--page-tintc-text-main);
    position: relative;
    user-select: none;
}

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

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

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

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    transform: rotate(45deg);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tintc__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-tintc__section-title {
        font-size: 2em;
    }
    .page-tintc__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tintc__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-tintc__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-tintc__hero-description {
        font-size: 1em;
    }
    .page-tintc__section-title {
        font-size: 1.8em;
    }
    .page-tintc__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-tintc__container {
        padding: 20px 15px;
    }
    .page-tintc__news-grid {
        grid-template-columns: 1fr;
    }
    .page-tintc__news-card-image {
        height: 180px;
    }
    .page-tintc__news-card-title {
        font-size: 1.2em;
    }
    .page-tintc__news-card-excerpt {
        font-size: 0.9em;
    }
    .page-tintc__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-tintc__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-tintc__faq-answer {
        font-size: 0.9em;
        padding: 0 20px 15px 20px;
    }

    /* Mobile specific image, video, button responsive styles */
    .page-tintc img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      min-width: unset !important; /* Allow smaller images if needed for layout, but still >= 200px overall */
      min-height: unset !important;
    }
    
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__cta-section,
    .page-tintc__news-list-section,
    .page-tintc__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-tintc__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-tintc__video, /* Added for future proofing, if video is introduced */
    .page-tintc video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-tintc__video-section,
    .page-tintc__video-container,
    .page-tintc__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .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,
    .page-tintc__button-group,
    .page-tintc__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-tintc__cta-buttons {
        flex-direction: column;
    }
}