/* style/tintc.css */

/* Custom Colors */
:root {
    --page-tintc-card-bg: #11271B;
    --page-tintc-background: #08160F;
    --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-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page-tintc scope */
.page-tintc {
    font-family: 'Arial', sans-serif;
    color: var(--page-tintc-text-main); /* Ensure light text on dark body background */
    background-color: var(--page-tintc-background); /* Body background handled by shared.css, this is for internal sections if needed */
}

.page-tintc__section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--page-tintc-background);
}

.page-tintc__dark-bg {
    background-color: var(--page-tintc-deep-green);
    color: var(--page-tintc-text-main);
}

.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for content safety */
    box-sizing: border-box;
}

.page-tintc__section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--page-tintc-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-tintc__section-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--page-tintc-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-tintc-background);
    overflow: hidden;
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent image being too tall */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 400px; /* Minimum height for hero image */
}

.page-tintc__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 15px;
}

.page-tintc__main-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    color: var(--page-tintc-text-main);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-tintc__intro-text {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--page-tintc-text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-tintc__btn-primary {
    background: var(--page-tintc-button-gradient);
    color: var(--page-tintc-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-tintc__btn-secondary:hover {
    background-color: var(--page-tintc-gold);
    color: var(--page-tintc-background);
    transform: translateY(-2px);
}

.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
    width: 100%; /* Ensure container responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* News Grid */
.page-tintc__latest-news {
    background-color: var(--page-tintc-background);
}

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

.page-tintc__news-card {
    background-color: var(--page-tintc-card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-tintc-border);
    display: flex;
    flex-direction: column;
}

.page-tintc__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--page-tintc-divider);
}

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

.page-tintc__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--page-tintc-text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-tintc__card-date {
    font-size: 14px;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 15px;
}

.page-tintc__card-text {
    font-size: 16px;
    color: var(--page-tintc-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-tintc__guide-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-tintc__guide-image {
    width: 50%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-tintc-border);
}

.page-tintc__guide-text-block {
    width: 50%;
}

.page-tintc__sub-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--page-tintc-gold);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-tintc__guide-text-block p {
    font-size: 17px;
    color: var(--page-tintc-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-tintc__promotions-section {
    background-color: var(--page-tintc-deep-green);
}

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

.page-tintc__promo-card {
    background-color: var(--page-tintc-card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-tintc-border);
    display: flex;
    flex-direction: column;
}

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

.page-tintc__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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;
}

.page-tintc__faq-item details > summary {
    list-style: none; /* Hide default marker */
}

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

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-tintc-text-main);
    cursor: pointer;
    background-color: var(--page-tintc-card-bg);
    transition: background-color 0.3s ease;
}

.page-tintc__faq-question:hover {
    background-color: rgba(17, 39, 27, 0.8); /* Slightly lighter on hover */
}

.page-tintc__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    color: var(--page-tintc-gold);
    line-height: 1;
    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;
    font-size: 16px;
    color: var(--page-tintc-text-secondary);
    line-height: 1.6;
    text-align: left;
}

/* CTA Section */
.page-tintc__cta-section {
    padding: 80px 20px;
    background-color: var(--page-tintc-deep-green);
}

.page-tintc__cta-section .page-tintc__section-title {
    color: var(--page-tintc-text-main);
}

.page-tintc__cta-section .page-tintc__section-description {
    color: var(--page-tintc-text-secondary);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-tintc__guide-content {
        flex-direction: column;
    }

    .page-tintc__guide-image,
    .page-tintc__guide-text-block {
        width: 100%;
    }

    .page-tintc__guide-image {
        margin-bottom: 30px;
    }

    .page-tintc__hero-image-wrapper {
        max-height: 50vh;
    }
}

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

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

    .page-tintc__hero-image {
        min-height: 250px;
    }

    .page-tintc__main-title {
        font-size: clamp(28px, 7vw, 48px);
    }

    .page-tintc__intro-text {
        font-size: clamp(16px, 3vw, 18px);
    }

    .page-tintc__section-title {
        font-size: clamp(24px, 5vw, 36px);
    }

    .page-tintc__section-description {
        font-size: clamp(15px, 2.5vw, 16px);
    }

    /* Mobile images */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video (if any, though not in this specific page) */
    .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;
    }

    /* Mobile buttons */
    .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;
        margin-left: 0 !important;
        margin-right: 0 !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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* General content containers for mobile */
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tintc__news-grid,
    .page-tintc__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tintc__card-image {
        height: 180px;
    }

    .page-tintc__card-title {
        font-size: 20px;
    }

    .page-tintc__sub-title {
        font-size: 22px;
    }

    .page-tintc__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-tintc__hero-image-wrapper {
        max-height: 40vh;
    }
}