/* style/tintc.css */

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

/* Base styles for the page content */
.page-tintc {
    color: var(--page-tintc-text-main); /* Default text color for the page */
    background-color: var(--page-tintc-bg); /* Custom background for the main content area */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.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;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, larger bottom padding */
    background-color: var(--page-tintc-deep-green); /* Darker green background for hero */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Ensure image itself doesn't exceed this height */
}

.page-tintc__hero-content {
    position: relative; /* Ensure content is above any background elements */
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-tintc__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--page-tintc-gold); /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-tintc__description {
    font-size: 1.1rem;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.page-tintc__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--page-tintc-gold); /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

/* Latest News Section */
.page-tintc__latest-news-section {
    padding: 60px 0;
    background-color: var(--page-tintc-bg);
}

.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); /* Dark green background for cards */
    border: 1px solid var(--page-tintc-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tintc__news-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-tintc__news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-tintc__news-card:hover .page-tintc__news-image {
    transform: scale(1.05);
}

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

.page-tintc__news-date {
    font-size: 0.9rem;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 10px;
    display: block;
}

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

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

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

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

.page-tintc__read-more-btn {
    display: inline-block;
    background: var(--page-tintc-btn-gradient);
    color: var(--page-tintc-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-tintc__read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 10px var(--page-tintc-glow);
}

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

.page-tintc__view-all-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--page-tintc-gold);
    color: var(--page-tintc-gold);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.page-tintc__view-all-btn:hover {
    background-color: var(--page-tintc-gold);
    color: var(--page-tintc-bg); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(242, 193, 78, 0.4);
}

/* Promotions & Events Section */
.page-tintc__promotions-events {
    padding: 60px 0;
    background-color: var(--page-tintc-deep-green); /* Deep green background for promotions */
}

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

.page-tintc__promotion-card {
    background-color: var(--page-tintc-card-bg);
    border: 1px solid var(--page-tintc-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-tintc__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--page-tintc-glow);
}

.page-tintc__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-tintc__promotion-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--page-tintc-gold);
    margin-bottom: 10px;
}

.page-tintc__promotion-text {
    font-size: 1rem;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-flex; /* Use flex for button content alignment */
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-tintc__btn-primary {
    background: var(--page-tintc-btn-gradient);
    color: var(--page-tintc-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-tintc-glow);
}

.page-tintc__btn-secondary {
    background-color: transparent;
    color: var(--page-tintc-gold);
    border: 2px solid var(--page-tintc-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tintc__btn-secondary:hover {
    background-color: var(--page-tintc-gold);
    color: var(--page-tintc-bg); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

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


/* Video Section */
.page-tintc__video-section {
    padding: 60px 0;
    background-color: var(--page-tintc-bg);
    text-align: center;
}

.page-tintc__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%; /* Ensure width is 100% on desktop as well */
    max-width: 1000px; /* Limit max width for video */
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--page-tintc-border);
}

.page-tintc__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer; /* Indicate it's clickable */
}

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

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

.page-tintc__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-tintc-gold);
    transition: background-color 0.3s ease;
}

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

.page-tintc__faq-item summary:hover {
    background-color: var(--page-tintc-divider);
}

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-tintc-gold);
}

.page-tintc__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--page-tintc-text-secondary);
    line-height: 1.7;
}

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

.page-tintc__faq-answer a {
    color: var(--brand-secondary); /* Use auxiliary brand color for links */
    text-decoration: underline;
}

.page-tintc__faq-answer a:hover {
    color: var(--page-tintc-gold);
}

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

.page-tintc__cta-content {
    max-width: 900px;
}

/* Dark Section - for text contrast */
.page-tintc__dark-section {
    background-color: var(--page-tintc-deep-green);
    color: var(--page-tintc-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tintc__hero-image-wrapper {
        max-height: 500px;
    }
    .page-tintc__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-tintc__hero-section {
        padding: 10px 0 40px;
    }
    .page-tintc__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    .page-tintc__description {
        font-size: 1rem;
    }
    .page-tintc__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-tintc__news-grid,
    .page-tintc__promotion-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }
    .page-tintc__news-image-wrapper,
    .page-tintc__promotion-image {
        height: 180px;
    }
    .page-tintc__news-title,
    .page-tintc__promotion-title {
        font-size: 1.3rem;
    }
    .page-tintc__read-more-btn,
    .page-tintc__view-all-btn,
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Mobile image responsiveness */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-tintc__hero-image-wrapper,
    .page-tintc__news-image-wrapper,
    .page-tintc__promotion-image-wrapper,
    .page-tintc__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile video responsiveness */
    .page-tintc video,
    .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__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-tintc__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsiveness */
    .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; */ /* Handled by container padding */
        /* padding-right: 15px; */ /* Handled by container padding */
    }
    .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: 15px; /* Adjust gap for stacked buttons */
        flex-direction: column; /* Stack buttons vertically by default */
    }
}

@media (max-width: 480px) {
    .page-tintc__hero-section {
        padding-bottom: 30px;
    }
    .page-tintc__main-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
    .page-tintc__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-tintc__news-title,
    .page-tintc__promotion-title {
        font-size: 1.2rem;
    }
    .page-tintc__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }
    .page-tintc__faq-answer {
        padding: 0 15px 15px;
    }
}