/* style/tintc.css */

/* Variables */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --site-bg-dark: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --light-bg-color: #f9f9f9;
    --dark-text-color: #333333;
}

.page-tintc {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for dark sections */
    background-color: var(--site-bg-dark); /* Default background for the main content area */
}

.page-tintc__dark-bg {
    background-color: var(--site-bg-dark);
    color: var(--text-main);
}

.page-tintc__light-bg {
    background-color: var(--light-bg-color);
    color: var(--dark-text-color);
}

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

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    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 */
    overflow: hidden;
}

.page-tintc__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-tintc__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-tintc__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-tintc__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__intro-text {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-tintc__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-tintc__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-button--secondary {
    background: var(--primary-color);
}

.page-tintc__cta-button--secondary:hover {
    background: var(--secondary-color);
}

/* Section Titles */
.page-tintc__section-title {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-tintc__section-description {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

/* News Grid */
.page-tintc__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-tintc__card {
    background: var(--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;
    color: var(--text-main);
}

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

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

.page-tintc__card-content {
    padding: 25px;
}

.page-tintc__card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-tintc__card-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.page-tintc__card-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-tintc__card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-tintc__card-link:hover {
    color: var(--secondary-color);
}

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

/* Categories Section */
.page-tintc__categories-section {
    padding: 60px 20px;
}

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

.page-tintc__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: var(--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;
    padding-bottom: 20px;
}

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

.page-tintc__category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-tintc__category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    padding: 0 15px;
}

/* Insights Section */
.page-tintc__insights-section {
    padding: 60px 20px;
}

.page-tintc__insights-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--dark-text-color);
}

/* Call to Action Section */
.page-tintc__cta-section {
    padding: 80px 20px;
    text-align: center;
}

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

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

.page-tintc__cta-content .page-tintc__section-description {
    color: var(--text-main);
}

/* FAQ Section */
.page-tintc__faq-section {
    padding: 60px 20px;
}

.page-tintc__faq-list {
    margin-top: 30px;
}

details.page-tintc__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-tintc__faq-item summary.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
    font-weight: 600;
}

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

details.page-tintc__faq-item summary.page-tintc__faq-question:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}

.page-tintc__faq-qtext {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.page-tintc__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-tintc__faq-item .page-tintc__faq-answer {
    padding: 0 25px 25px;
    background: rgba(var(--card-bg-rgb), 0.8);
    border-radius: 0 0 8px 8px;
    color: rgba(var(--text-main-rgb), 0.8);
}

.page-tintc__faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-tintc__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tintc__main-title {
        font-size: 28px;
    }

    .page-tintc__intro-text {
        font-size: 16px;
    }

    .page-tintc__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-tintc__section-title {
        font-size: 28px;
    }

    .page-tintc__section-description {
        font-size: 15px;
    }

    .page-tintc__container {
        padding: 30px 15px;
    }

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

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

    .page-tintc__card-content {
        padding: 20px;
    }

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

    .page-tintc__card-text {
        font-size: 14px;
    }

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

    .page-tintc__category-card img {
        height: 120px;
    }

    .page-tintc__category-title {
        font-size: 16px;
    }

    .page-tintc__insights-content p {
        font-size: 15px;
    }

    details.page-tintc__faq-item summary.page-tintc__faq-question {
        padding: 15px 20px;
    }

    .page-tintc__faq-qtext {
        font-size: 15px;
    }

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

    .page-tintc__faq-answer p {
        font-size: 14px;
    }

    /* Image responsiveness */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-container,
    .page-tintc__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button container responsiveness */
    .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 {
        display: flex;
        flex-direction: column; 
    }
}

/* Color contrast safety */
.page-tintc p, .page-tintc li, .page-tintc a {
    color: inherit; /* Ensure text color inherits from parent section's color for contrast */
}

/* Primary color in RGB for rgba usage */
:root {
  --primary-color-rgb: 242, 193, 78; /* #F2C14E */
  --card-bg-rgb: 17, 17, 17; /* #111111 */
  --text-main-rgb: 255, 246, 214; /* #FFF6D6 */
}