/* style/tintc.css */

/* Variables from custom palette */
: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%);
}

.page-tintc {
    background-color: var(--page-tintc-background); /* Dark background */
    color: var(--page-tintc-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    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(--page-tintc-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tintc__section-description {
    font-size: 1.1em;
    color: var(--page-tintc-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 30px;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-tintc__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-tintc__main-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-tintc-text-main);
    margin-bottom: 20px;
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-tintc__hero-description {
    font-size: 1.2em;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1.1em;
    border: none;
}

.page-tintc__btn-primary {
    background: var(--page-tintc-button-gradient);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

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

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

/* Dark/Light Sections */
.page-tintc__dark-section {
    background-color: var(--page-tintc-deep-green);
    color: var(--page-tintc-text-main);
    padding: 60px 0;
}

.page-tintc__light-bg {
    background-color: var(--page-tintc-background);
    color: var(--page-tintc-text-main);
    padding: 60px 0;
}

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

.page-tintc__news-card,
.page-tintc__promo-card {
    background-color: var(--page-tintc-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-tintc__news-card:hover,
.page-tintc__promo-card:hover {
    transform: translateY(-5px);
}

.page-tintc__news-image,
.page-tintc__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-tintc__news-title,
.page-tintc__promo-title {
    font-size: 1.4em;
    color: var(--page-tintc-gold);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tintc__news-title a,
.page-tintc__promo-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-tintc__news-excerpt,
.page-tintc__promo-excerpt {
    font-size: 1em;
    color: var(--page-tintc-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__news-card .page-tintc__btn-secondary,
.page-tintc__promo-card .page-tintc__btn-primary {
    align-self: flex-start;
    margin-top: auto;
    margin-left: 0; /* Override default margin-left for standalone buttons */
}

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

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

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

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

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

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

.page-tintc__faq-qtext {
    flex-grow: 1;
    color: var(--page-tintc-gold);
}

.page-tintc__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--page-tintc-glow);
}

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

/* CTA Bottom */
.page-tintc__cta-bottom {
    padding: 80px 0;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-tintc__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-tintc__news-image, .page-tintc__promo-image {
        height: 180px;
    }
}

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

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

    .page-tintc__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-tintc__hero-description {
        font-size: 1em;
    }

    .page-tintc__section-title {
        font-size: 2em;
    }

    .page-tintc__section-description {
        font-size: 0.95em;
    }

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

    .page-tintc__news-card,
    .page-tintc__promo-card {
        flex-direction: column;
    }

    .page-tintc__news-image,
    .page-tintc__promo-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }

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

    .page-tintc__news-title,
    .page-tintc__promo-title {
        font-size: 1.2em;
    }

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        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-bottom: 15px; /* Add space between stacked buttons */
        padding: 12px 20px;
    }

    .page-tintc__cta-buttons {
        flex-direction: column;
        gap: 0; /* Remove gap if buttons have margin-bottom */
    }

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

    .page-tintc__faq-answer {
        padding: 15px 20px;
    }
    
    /* Mobile image and video responsive rules (mandatory) */
    .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, .page-tintc__promotions-events, .page-tintc__responsible-gambling-news, .page-tintc__faq-section, .page-tintc__cta-bottom {
      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;
    }
    
    .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;
    }
}