/* style/news-industry-updates.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

.page-news-industry-updates {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Body background is light, so use dark text */
    line-height: 1.6;
    background-color: var(--secondary-color);
}

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

.page-news-industry-updates__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-news-industry-updates__section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #555;
}

/* Hero Section */
.page-news-industry-updates__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #00A65A);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-news-industry-updates__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.page-news-industry-updates__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-news-industry-updates__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-updates__hero-image {
    width: 100%;
    max-width: 800px; /* Constrain image width for better layout */
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 12px;
}

.page-news-industry-updates__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.page-news-industry-updates__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--register-login-color);
    color: var(--register-login-font-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    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-news-industry-updates__cta-button:hover {
    background: #FF4500; /* A slightly different red for hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Latest News Section */
.page-news-industry-updates__latest-news {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-news-industry-updates__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news-industry-updates__news-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news-industry-updates__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.page-news-industry-updates__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-news-industry-updates__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news-industry-updates__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news-industry-updates__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-industry-updates__card-title a:hover {
    color: #00A65A;
}

.page-news-industry-updates__card-excerpt {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news-industry-updates__card-date {
    font-size: 14px;
    color: #999;
    margin-top: auto; /* Push date to bottom */
    margin-bottom: 15px;
}

.page-news-industry-updates__read-more {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-news-industry-updates__read-more:hover {
    background: #00A65A;
}

/* Content Rows (Market Trends, Regulatory Updates, Technology Innovations, Responsible Gaming) */
.page-news-industry-updates__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news-industry-updates__dark-bg .page-news-industry-updates__section-title,
.page-news-industry-updates__dark-bg .page-news-industry-updates__section-intro {
    color: var(--text-light);
}

.page-news-industry-updates__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-news-industry-updates__market-trends,
.page-news-industry-updates__regulatory-updates,
.page-news-industry-updates__technology-innovations,
.page-news-industry-updates__responsible-gaming-focus {
    padding: 80px 0;
}

.page-news-industry-updates__content-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-news-industry-updates__content-row--reverse {
    flex-direction: row-reverse;
}

.page-news-industry-updates__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
}

.page-news-industry-updates__text-block p {
    margin-bottom: 20px;
}

.page-news-industry-updates__image-block {
    flex: 1;
    min-width: 300px;
}

.page-news-industry-updates__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-news-industry-updates__responsible-gaming-focus .page-news-industry-updates__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.page-news-industry-updates__responsible-gaming-focus .page-news-industry-updates__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* FAQ Section */
.page-news-industry-updates__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-news-industry-updates__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-news-industry-updates__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news-industry-updates__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-news-industry-updates__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-news-industry-updates__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-toggle {
    color: #C30808;
    transform: rotate(45deg);
}

.page-news-industry-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fdfdfd;
    border-top: 1px dashed var(--border-light);
    border-radius: 0 0 8px 8px;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
}

.page-news-industry-updates__faq-answer p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.page-news-industry-updates__cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #00A65A);
    color: var(--text-light);
}

.page-news-industry-updates__cta-content {
    max-width: 800px;
}

.page-news-industry-updates__cta-section .page-news-industry-updates__section-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-news-industry-updates__cta-section .page-news-industry-updates__section-intro {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-updates__hero-title {
        font-size: 40px;
    }

    .page-news-industry-updates__section-title {
        font-size: 30px;
    }

    .page-news-industry-updates__content-row {
        flex-direction: column;
        text-align: center;
    }

    .page-news-industry-updates__content-row--reverse {
        flex-direction: column;
    }

    .page-news-industry-updates__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news-industry-updates__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news-industry-updates__hero-title {
        font-size: 32px;
    }

    .page-news-industry-updates__hero-description {
        font-size: 18px;
    }

    .page-news-industry-updates__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-news-industry-updates__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-news-industry-updates__section-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .page-news-industry-updates__latest-news, 
    .page-news-industry-updates__market-trends,
    .page-news-industry-updates__regulatory-updates,
    .page-news-industry-updates__technology-innovations,
    .page-news-industry-updates__responsible-gaming-focus,
    .page-news-industry-updates__faq-section,
    .page-news-industry-updates__cta-section {
        padding: 50px 0;
    }

    .page-news-industry-updates__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news-industry-updates__card-image {
        height: 180px;
    }

    .page-news-industry-updates__card-title {
        font-size: 18px;
    }

    .page-news-industry-updates__card-excerpt {
        font-size: 15px;
    }

    .page-news-industry-updates__read-more {
        font-size: 14px;
        padding: 8px 15px;
    }

    .page-news-industry-updates__text-block {
        font-size: 16px;
    }

    .page-news-industry-updates__faq-question {
        padding: 15px 20px;
    }

    .page-news-industry-updates__faq-question h3 {
        font-size: 16px;
    }

    .page-news-industry-updates__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-news-industry-updates__faq-answer {
        padding: 0 20px;
    }

    .page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
        padding: 15px 20px !important;
    }

    .page-news-industry-updates__faq-answer p {
        font-size: 15px;
    }

    .page-news-industry-updates__responsible-gaming-focus .page-news-industry-updates__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}