/* style/resources-latest-gambling-trends.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --card-bg-dark-opacity: rgba(255, 255, 255, 0.1);
}

.page-resources-latest-gambling-trends {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark);
}

.page-resources-latest-gambling-trends__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

.page-resources-latest-gambling-trends__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-resources-latest-gambling-trends__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-resources-latest-gambling-trends__hero-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-latest-gambling-trends__hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-resources-latest-gambling-trends__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-latest-gambling-trends__btn-primary,
.page-resources-latest-gambling-trends__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-latest-gambling-trends__btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 2px solid var(--primary-color);
}

.page-resources-latest-gambling-trends__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-resources-latest-gambling-trends__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-latest-gambling-trends__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.page-resources-latest-gambling-trends__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-resources-latest-gambling-trends__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources-latest-gambling-trends__introduction-section,
.page-resources-latest-gambling-trends__future-outlook-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources-latest-gambling-trends__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-light);
}

.page-resources-latest-gambling-trends__trends-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-resources-latest-gambling-trends__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-latest-gambling-trends__card {
    background-color: var(--card-bg-dark-opacity);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.page-resources-latest-gambling-trends__card:hover {
    transform: translateY(-5px);
}

.page-resources-latest-gambling-trends__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-resources-latest-gambling-trends__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources-latest-gambling-trends__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-latest-gambling-trends__card-text {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-resources-latest-gambling-trends__card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.page-resources-latest-gambling-trends__card-link:hover {
    color: var(--secondary-color);
}

.page-resources-latest-gambling-trends__video-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources-latest-gambling-trends__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 30px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-resources-latest-gambling-trends__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-resources-latest-gambling-trends__video-caption {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9em;
}

.page-resources-latest-gambling-trends__responsible-gambling-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-resources-latest-gambling-trends__image-full-width {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 40px;
    object-fit: cover;
    display: block;
}

.page-resources-latest-gambling-trends__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources-latest-gambling-trends__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-latest-gambling-trends__faq-item {
    background-color: var(--card-bg-dark-opacity);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-gambling-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources-latest-gambling-trends__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-latest-gambling-trends__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-latest-gambling-trends__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    text-align: justify;
}

.page-resources-latest-gambling-trends__faq-answer p {
    margin-bottom: 15px;
}

.page-resources-latest-gambling-trends__faq-item.active .page-resources-latest-gambling-trends__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-resources-latest-gambling-trends__faq-item.active .page-resources-latest-gambling-trends__faq-toggle {
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-latest-gambling-trends__hero-title {
        font-size: 3em;
    }
    .page-resources-latest-gambling-trends__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-latest-gambling-trends__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile hero isn't hidden */
    }
    .page-resources-latest-gambling-trends__hero-title {
        font-size: 2.5em;
    }
    .page-resources-latest-gambling-trends__hero-description {
        font-size: 1em;
    }
    .page-resources-latest-gambling-trends__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-latest-gambling-trends__btn-primary,
    .page-resources-latest-gambling-trends__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-latest-gambling-trends__container,
    .page-resources-latest-gambling-trends__introduction-section,
    .page-resources-latest-gambling-trends__trends-section,
    .page-resources-latest-gambling-trends__video-section,
    .page-resources-latest-gambling-trends__responsible-gambling-section,
    .page-resources-latest-gambling-trends__future-outlook-section,
    .page-resources-latest-gambling-trends__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-resources-latest-gambling-trends__grid {
        grid-template-columns: 1fr;
    }
    .page-resources-latest-gambling-trends__card-image {
        height: 200px;
    }
    .page-resources-latest-gambling-trends img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-latest-gambling-trends video,
    .page-resources-latest-gambling-trends__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-latest-gambling-trends__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources-latest-gambling-trends__section-title {
        font-size: 1.8em;
    }
    .page-resources-latest-gambling-trends__text-block {
        font-size: 1em;
    }
    .page-resources-latest-gambling-trends__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources-latest-gambling-trends__faq-answer {
        padding: 0 20px;
    }
    .page-resources-latest-gambling-trends__faq-item.active .page-resources-latest-gambling-trends__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-latest-gambling-trends__hero-title {
        font-size: 2em;
    }
    .page-resources-latest-gambling-trends__hero-description {
        font-size: 0.9em;
    }
    .page-resources-latest-gambling-trends__section-title {
        font-size: 1.5em;
    }
    .page-resources-latest-gambling-trends__faq-question {
        font-size: 0.9em;
    }
}