/* 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-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-tintc-border: #2E7A4E;
    --page-tintc-glow: #57E38D;
    --page-tintc-gold: #F2C14E;
    --page-tintc-divider: #1E3A2A;
    --page-tintc-deep-green: #0A4B2C;
}

.page-tintc {
    background-color: var(--page-tintc-bg);
    color: var(--page-tintc-text-main);
    font-family: 'Arial', sans-serif;
}

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

.page-tintc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-tintc-deep-green);
    overflow: hidden;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-top: 30px;
    border-radius: 8px;
}

.page-tintc__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--page-tintc-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-tintc__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--page-tintc-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-tintc__latest-news-section,
.page-tintc__categories-section,
.page-tintc__featured-articles-section,
.page-tintc__promotions-cta-section,
.page-tintc__faq-section,
.page-tintc__final-cta-section {
    padding: 60px 0;
    background-color: var(--page-tintc-bg);
}

.page-tintc__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--page-tintc-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-tintc__section-description {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--page-tintc-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.page-tintc__news-grid,
.page-tintc__category-grid,
.page-tintc__featured-grid {
    display: grid;
    gap: 30px;
}

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

.page-tintc__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-tintc__featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-tintc__news-card,
.page-tintc__category-card,
.page-tintc__featured-card {
    background-color: var(--page-tintc-card-bg);
    border: 1px solid var(--page-tintc-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--page-tintc-text-main);
}

.page-tintc__news-card:hover,
.page-tintc__category-card:hover,
.page-tintc__featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-tintc__news-card-image,
.page-tintc__category-card-image,
.page-tintc__featured-card-image {
    width: 100%;
    height: 220px; /* Consistent height for news cards */
    object-fit: cover;
    display: block;
}

.page-tintc__featured-card-image {
    height: 280px; /* Slightly taller for featured articles */
}

.page-tintc__category-card-image {
    height: 180px;
}

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

.page-tintc__category-card-title,
.page-tintc__news-card-title {
    font-size: 1.4rem;
    color: var(--page-tintc-text-main);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-tintc__category-card-title {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
}

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

.page-tintc__news-card-summary,
.page-tintc__featured-card-summary,
.page-tintc__category-card-description {
    font-size: 1rem;
    color: var(--page-tintc-text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__news-card-link,
.page-tintc__featured-card-link {
    display: inline-block;
    background: var(--page-tintc-btn-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
    text-align: center;
    margin-top: auto; /* Push to bottom */
}

.page-tintc__news-card-link:hover,
.page-tintc__featured-card-link:hover {
    opacity: 0.9;
}

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

.page-tintc__view-all-button {
    display: inline-block;
    background: var(--page-tintc-btn-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.page-tintc__view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

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

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

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

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

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

.page-tintc__faq-item {
    background-color: var(--page-tintc-card-bg);
    border: 1px solid var(--page-tintc-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tintc__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-tintc-text-main);
    cursor: pointer;
    user-select: none;
    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(--page-tintc-deep-green);
}

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

.page-tintc__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--page-tintc-glow);
}

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

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

.page-tintc__faq-answer a {
    color: var(--page-tintc-glow);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-tintc__news-grid,
    .page-tintc__category-grid,
    .page-tintc__featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

    .page-tintc__main-title {
        font-size: 2.2rem;
    }

    .page-tintc__hero-description {
        font-size: 0.95rem;
    }

    .page-tintc__latest-news-section,
    .page-tintc__categories-section,
    .page-tintc__featured-articles-section,
    .page-tintc__promotions-cta-section,
    .page-tintc__faq-section,
    .page-tintc__final-cta-section {
        padding: 40px 0;
    }

    .page-tintc__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-tintc__section-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .page-tintc__news-grid,
    .page-tintc__category-grid,
    .page-tintc__featured-grid {
        grid-template-columns: 1fr;
    }

    .page-tintc__news-card-image,
    .page-tintc__category-card-image,
    .page-tintc__featured-card-image {
        height: 200px;
    }

    .page-tintc__featured-card-image {
        height: 250px;
    }

    .page-tintc__news-card-content,
    .page-tintc__featured-card-content {
        padding: 20px;
    }

    .page-tintc__news-card-title,
    .page-tintc__category-card-title {
        font-size: 1.2rem;
    }

    .page-tintc__news-card-summary,
    .page-tintc__featured-card-summary,
    .page-tintc__category-card-description {
        font-size: 0.95rem;
    }

    .page-tintc__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary,
    .page-tintc__news-card-link,
    .page-tintc__featured-card-link,
    .page-tintc__view-all-button {
        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__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-tintc__faq-toggle {
        font-size: 1.5rem;
    }

    .page-tintc__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Image responsive adaptions */
    .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__latest-news-section,
    .page-tintc__categories-section,
    .page-tintc__featured-articles-section,
    .page-tintc__promotions-cta-section,
    .page-tintc__faq-section,
    .page-tintc__final-cta-section,
    .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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-tintc__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-tintc__hero-image {
        padding: 0 15px; /* Add padding to image itself if container has none */
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .page-tintc__main-title {
        font-size: 1.8rem;
    }
    .page-tintc__section-title {
        font-size: 1.5rem;
    }
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-tintc__faq-item summary {
        font-size: 0.95rem;
    }
}