/* style/tintc.css */
/* Base styles for the news page */
.page-tintc {
    background-color: #08160F; /* Background color as per custom palette */
    color: #F2FFF6; /* Main text color as per custom palette */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Ensure body padding-top is handled by shared.css, not here */

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

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: #08160F;
    overflow: hidden; /* Ensure no overflow */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.page-tintc__main-title {
    color: #F2FFF6;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-tintc__lead-text {
    color: #A7D9B8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Sections */
.page-tintc__section {
    padding: 60px 0;
    background-color: #08160F; /* Consistent background */
    border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-tintc__section:last-of-type {
    border-bottom: none;
}

.page-tintc__section-title {
    color: #F2FFF6;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.page-tintc__section-description {
    color: #A7D9B8;
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-tintc__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: 2px solid transparent;
}

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

.page-tintc__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow color for secondary button text */
    border: 2px solid #2E7A4E; /* Border color */
}

.page-tintc__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
}

/* News Grid / Card Styles */
.page-tintc__news-grid,
.page-tintc__cockfighting-list,
.page-tintc__tips-grid,
.page-tintc__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-tintc__news-card,
.page-tintc__cockfighting-item,
.page-tintc__tip-card,
.page-tintc__promo-card {
    background-color: #11271B; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-tintc__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-tintc__news-card img,
.page-tintc__cockfighting-item img,
.page-tintc__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-tintc__card-title {
    color: #F2FFF6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tintc__card-date {
    color: #A7D9B8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.page-tintc__card-excerpt {
    color: #A7D9B8;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Push read more to bottom */
}

.page-tintc__read-more {
    color: #57E38D;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
}

.page-tintc__read-more:hover {
    text-decoration: underline;
}

.page-tintc__all-news-cta,
.page-tintc__all-events-cta,
.page-tintc__all-promos-cta {
    text-align: center;
    margin-top: 50px;
}

/* Tips Card Specifics */
.page-tintc__tip-card {
    padding: 25px;
    text-align: center;
    background-color: #11271B;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-tintc__tip-title {
    color: #F2FFF6;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-tintc__tip-excerpt {
    color: #A7D9B8;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-tintc__faq-item {
    background-color: #11271B;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #2E7A4E;
}

.page-tintc__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6;
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

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

.page-tintc__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #57E38D;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-tintc__faq-answer {
    padding: 0 25px 20px 25px;
    color: #A7D9B8;
    font-size: 1rem;
    line-height: 1.6;
}

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

.page-tintc__faq-answer a {
    color: #57E38D;
    text-decoration: underline;
}

.page-tintc__faq-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}

/* CTA Banner */
.page-tintc__cta-banner {
    background-color: #0A4B2C; /* Deep Green for CTA background */
    text-align: center;
    padding: 80px 0;
}

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

.page-tintc__cta-title {
    color: #F2FFF6;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.page-tintc__cta-description {
    color: #A7D9B8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

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

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

    .page-tintc__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-tintc__lead-text {
        font-size: 1rem;
    }

    .page-tintc__section {
        padding: 40px 0;
    }

    .page-tintc__section-title {
        font-size: 1.8rem;
    }

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

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

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Constrain width for mobile buttons */
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-tintc__news-grid,
    .page-tintc__cockfighting-list,
    .page-tintc__tips-grid,
    .page-tintc__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-tintc__news-card img,
    .page-tintc__cockfighting-item img,
    .page-tintc__promo-card img {
        height: 200px; /* Adjust height for smaller screens */
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Ensure all images and containers are responsive */
    .page-tintc img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-section,
    .page-tintc__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-tintc__container */
    }

    .page-tintc__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-tintc__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }
    
    .page-tintc__faq-contact-buttons {
        flex-direction: column;
        align-items: flex-start; /* Align to left for better readability */
    }

    /* Video responsiveness - if a video element is added */
    .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; /* Small top padding */
    }
}

/* Ensure content area images are not too small */
.page-tintc__news-card img,
.page-tintc__cockfighting-item img,
.page-tintc__promo-card img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific for .page-tintc__hero-section h1 (no fixed font-size) */
.page-tintc__hero-section h1 {
    /* clamp already handles this */
}

/* Ensure no filter on images */
.page-tintc img {
    filter: none !important;
}