/* style/tintc.css */

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

/* Base styles for the page, assuming a dark body background from shared.css */
.page-tintc {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Light text on dark background */
    background-color: var(--color-background); /* Dark background */
    line-height: 1.6;
}

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

.page-tintc__section-title {
    font-size: 2.5em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-tintc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-glow);
    border-radius: 2px;
}

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

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}

.page-tintc__hero-content {
    text-align: center;
    max-width: 900px;
    margin-top: 20px;
}

.page-tintc__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-tintc__hero-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-tintc__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
}

.page-tintc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-tintc__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
    margin-left: 15px;
}

.page-tintc__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background);
}

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

.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(--color-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;
    border: 1px solid var(--color-border);
}

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

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

.page-tintc__news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}

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

.page-tintc__news-card-content {
    padding: 25px;
}

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

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

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

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

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

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

/* Promotions & Updates Section */
.page-tintc__promotions-updates {
    padding: 60px 0;
    background-color: var(--color-deep-green);
}

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

.page-tintc__promo-card {
    background-color: var(--color-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;
    border: 1px solid var(--color-border);
    padding-bottom: 25px; /* Added padding for content below image */
}

.page-tintc__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tintc__promo-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-tintc__promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}

.page-tintc__promo-title {
    font-size: 1.6em;
    color: var(--color-text-main);
    margin: 0 25px 10px;
    line-height: 1.3;
}

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

.page-tintc__promo-title a:hover {
    color: var(--color-glow);
}

.page-tintc__promo-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin: 0 25px 20px;
}

.page-tintc__promo-card .page-tintc__btn-primary,
.page-tintc__promo-card .page-tintc__btn-secondary {
    margin: 0 25px; /* Adjust margin for buttons inside promo card */
    display: block; /* Make buttons block level for better stacking */
    width: calc(100% - 50px);
    text-align: center;
}

.page-tintc__promo-card .page-tintc__btn-secondary {
    margin-top: 15px;
    margin-left: 25px; /* Override default margin-left */
}

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

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

.page-tintc__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-tintc__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

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

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

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

.page-tintc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: var(--color-glow);
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    content: '−';
}

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

/* General text styles */
.page-tintc p,
.page-tintc li {
    color: var(--color-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tintc__hero-content {
        padding: 0 15px;
    }
    .page-tintc__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-tintc__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-tintc {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-tintc__container {
        padding: 0 15px;
    }
    .page-tintc__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-tintc__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-tintc__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-tintc__hero-description {
        font-size: 0.95em;
    }
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        display: block;
        width: 100% !important;
        margin: 10px 0 !important;
        max-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__news-grid,
    .page-tintc__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-tintc__news-card-image-wrapper {
        height: 180px;
    }
    .page-tintc__news-card-content,
    .page-tintc__promo-card .page-tintc__promo-title,
    .page-tintc__promo-card .page-tintc__promo-description {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    .page-tintc__promo-card .page-tintc__btn-primary,
    .page-tintc__promo-card .page-tintc__btn-secondary {
        width: calc(100% - 30px) !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    .page-tintc__section-title {
        font-size: 1.8em;
    }
    /* Mobile image responsiveness */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-section,
    .page-tintc__news-card,
    .page-tintc__promo-card,
    .page-tintc__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-tintc__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-tintc__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-tintc__section-title {
        font-size: 1.5em;
    }
    .page-tintc__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-tintc__news-card-image-wrapper {
        height: 150px;
    }
    .page-tintc__promo-image-wrapper {
        height: 200px;
    }
}

/* Ensure content area images are at least 200px wide/high */
.page-tintc__content-area img,
.page-tintc__news-card-image,
.page-tintc__promo-image {
    min-width: 200px;
    min-height: 200px;
}