/* style/news-latest-industry-trends.css */

/* Global styles for this page content */
.page-news-latest-industry-trends {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background #121212 */
    background-color: transparent; /* Body background is handled by shared.css #121212 */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-news-latest-industry-trends__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-news-latest-industry-trends__section--intro,
.page-news-latest-industry-trends__section--laws,
.page-news-latest-industry-trends__section--strategies,
.page-news-latest-industry-trends__section--conclusion {
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    border-radius: 8px;
}

.page-news-latest-industry-trends__section--tech,
.page-news-latest-industry-trends__section--market-analysis,
.page-news-latest-industry-trends__section--responsible-gambling,
.page-news-latest-industry-trends__section--faq {
    background-color: #0A192F; /* Brand primary color for some sections */
    border-radius: 8px;
}

.page-news-latest-industry-trends__heading {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for headings */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    position: relative;
}

.page-news-latest-industry-trends__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-news-latest-industry-trends__paragraph {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light grey for paragraphs */
    text-align: justify;
}

.page-news-latest-industry-trends__paragraph .highlight {
    color: #FFD700; /* Highlighted text in gold */
    font-weight: bold;
}

.page-news-latest-industry-trends__paragraph a {
    color: #FFD700; /* Links in gold */
    text-decoration: underline;
}

.page-news-latest-industry-trends__paragraph a:hover {
    color: #ffffff;
}

/* Hero Section */
.page-news-latest-industry-trends__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    background-color: #0A192F; /* Dark blue background for hero */
    overflow: hidden;
}

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

.page-news-latest-industry-trends__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit hero image height */
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly for text contrast */
    border-radius: 0;
}

.page-news-latest-industry-trends__hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    width: 80%;
    max-width: 900px;
    color: #ffffff;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-news-latest-industry-trends__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news-latest-industry-trends__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-news-latest-industry-trends__cta-button,
.page-news-latest-industry-trends__btn-primary,
.page-news-latest-industry-trends__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news-latest-industry-trends__cta-button,
.page-news-latest-industry-trends__btn-primary {
    background: #FFD700; /* Gold background */
    color: #0A192F; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

.page-news-latest-industry-trends__cta-button:hover,
.page-news-latest-industry-trends__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-news-latest-industry-trends__btn-secondary {
    background: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-news-latest-industry-trends__btn-secondary:hover {
    background: #FFD700;
    color: #0A192F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-news-latest-industry-trends__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Images */
.page-news-latest-industry-trends__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 30px;
    object-fit: cover;
    filter: none; /* Ensure no filter changes image color */
}

.page-news-latest-industry-trends__image--center {
    margin-left: auto;
    margin-right: auto;
}

.page-news-latest-industry-trends__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 45%;
}

.page-news-latest-industry-trends__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 45%;
}

.page-news-latest-industry-trends__section::after {
    content: "";
    display: table;
    clear: both;
}

/* FAQ Section */
.page-news-latest-industry-trends__section--faq {
    padding-bottom: 80px;
}

.page-news-latest-industry-trends__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for FAQ item */
}

.page-news-latest-industry-trends__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 15px;
    opacity: 0;
}

.page-news-latest-industry-trends__faq-item.active .page-news-latest-industry-trends__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #2a2a2a; /* Lighter dark background for answer */
    border-radius: 0 0 5px 5px;
}

.page-news-latest-industry-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #0A192F; /* Brand primary color for question */
    border: 1px solid #FFD700; /* Gold border */
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news-latest-industry-trends__faq-question:hover {
    background: #1a293f; /* Slightly lighter primary on hover */
    border-color: #e6c200;
}

.page-news-latest-industry-trends__faq-question:active {
    background: #000a1a;
}

.page-news-latest-industry-trends__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #ffffff; /* White text for question */
}

.page-news-latest-industry-trends__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold toggle icon */
    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-latest-industry-trends__faq-item.active .page-news-latest-industry-trends__faq-toggle {
    color: #ffffff; /* White toggle when active */
    transform: rotate(45deg); /* Plus to X effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-latest-industry-trends__hero-title {
        font-size: 42px;
    }
    .page-news-latest-industry-trends__hero-description {
        font-size: 18px;
    }
    .page-news-latest-industry-trends__heading {
        font-size: 30px;
    }
    .page-news-latest-industry-trends__paragraph {
        font-size: 17px;
    }
    .page-news-latest-industry-trends__image--left,
    .page-news-latest-industry-trends__image--right {
        max-width: 100%;
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-news-latest-industry-trends {
        font-size: 16px;
        line-height: 1.6;
        /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news-latest-industry-trends__hero-section {
        padding: 0;
    }
    
    .page-news-latest-industry-trends__hero-image {
        max-height: 400px;
    }

    .page-news-latest-industry-trends__hero-content {
        width: 90%;
        padding: 15px;
    }

    .page-news-latest-industry-trends__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-news-latest-industry-trends__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-news-latest-industry-trends__cta-button,
    .page-news-latest-industry-trends__btn-primary,
    .page-news-latest-industry-trends__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-news-latest-industry-trends__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .page-news-latest-industry-trends__section {
        padding: 40px 0;
    }

    .page-news-latest-industry-trends__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news-latest-industry-trends__heading {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .page-news-latest-industry-trends__paragraph {
        font-size: 16px;
    }

    /* Images Mobile */
    .page-news-latest-industry-trends img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news-latest-industry-trends__section,
    .page-news-latest-industry-trends__card,
    .page-news-latest-industry-trends__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news-latest-industry-trends__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* FAQ Mobile */
    .page-news-latest-industry-trends__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-news-latest-industry-trends__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-news-latest-industry-trends__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-news-latest-industry-trends__faq-answer {
        padding: 0 15px;
    }
    
    .page-news-latest-industry-trends__faq-item.active .page-news-latest-industry-trends__faq-answer {
        padding: 15px !important;
    }
}