/* style/news.css */

/* Variables for colors */
:root {
    --uiwnbet-primary: #11A84E;
    --uiwnbet-secondary: #22C768;
    --uiwnbet-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --uiwnbet-card-bg: #11271B;
    --uiwnbet-bg: #08160F;
    --uiwnbet-text-main: #F2FFF6;
    --uiwnbet-text-secondary: #A7D9B8;
    --uiwnbet-border: #2E7A4E;
    --uiwnbet-glow: #57E38D;
    --uiwnbet-gold: #F2C14E;
    --uiwnbet-divider: #1E3A2A;
    --uiwnbet-deep-green: #0A4B2C;
    --uiwnbet-light-text: #ffffff;
    --uiwnbet-dark-text: #333333;
}

/* General styles for the page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--uiwnbet-dark-text); /* Default for light backgrounds */
    background-color: var(--uiwnbet-light-bg, #f8f8f8); /* Fallback if body background is not set */
}

/* Dark background sections */
.page-news__dark-section {
    background-color: var(--uiwnbet-bg);
    color: var(--uiwnbet-text-main);
}

.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__card-excerpt,
.page-news__dark-section .page-news__event-text {
    color: var(--uiwnbet-text-secondary);
}

.page-news__dark-section a {
    color: var(--uiwnbet-gold);
}

/* Light background sections */
.page-news__light-bg {
    background-color: var(--uiwnbet-light-bg, #ffffff);
    color: var(--uiwnbet-dark-text);
}

.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__card-excerpt,
.page-news__light-bg .page-news__event-text {
    color: #555555;
}

/* Container */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--uiwnbet-text-main);
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--uiwnbet-text-secondary);
}

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-news__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--uiwnbet-btn-gradient);
    color: var(--uiwnbet-light-text);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--uiwnbet-primary);
    border: 2px solid var(--uiwnbet-primary);
}

.page-news__btn-secondary:hover {
    background-color: var(--uiwnbet-primary);
    color: var(--uiwnbet-light-text);
}

.page-news__cta-button {
    margin-top: 30px;
    font-size: 1.2rem;
    padding: 18px 35px;
}

/* Article Grid */
.page-news__latest-articles,
.page-news__industry-insights {
    padding: 80px 0;
}

.page-news__article-grid,
.page-news__insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-news__article-card,
.page-news__insight-card {
    background-color: #ffffff;
    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;
    border: 1px solid #e0e0e0;
}

.page-news__article-card:hover,
.page-news__insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.page-news__card-content {
    padding: 25px;
}

.page-news__card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__card-title a {
    color: var(--uiwnbet-dark-text);
    text-decoration: none;
}

.page-news__card-title a:hover {
    color: var(--uiwnbet-primary);
}

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

.page-news__card-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__read-more {
    color: var(--uiwnbet-primary);
    text-decoration: none;
    font-weight: bold;
}

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

.page-news__view-all-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* Event Highlights */
.page-news__event-highlights {
    padding: 80px 0;
    background-color: var(--uiwnbet-bg);
}

.page-news__event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-news__event-item {
    background-color: var(--uiwnbet-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-news__event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news__event-content {
    padding: 25px;
    color: var(--uiwnbet-text-main);
}

.page-news__event-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__event-title a {
    color: var(--uiwnbet-text-main);
    text-decoration: none;
}

.page-news__event-title a:hover {
    color: var(--uiwnbet-gold);
}

.page-news__event-date {
    font-size: 0.9rem;
    color: var(--uiwnbet-text-secondary);
    margin-bottom: 15px;
}

.page-news__event-text {
    font-size: 1rem;
    color: var(--uiwnbet-text-secondary);
    margin-bottom: 20px;
}

/* Community Responsibility */
.page-news__community-responsibility {
    padding: 80px 0;
    text-align: center;
}

.page-news__responsibility-content {
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--uiwnbet-text-secondary);
}

.page-news__responsibility-content p {
    margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
}

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

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--uiwnbet-dark-text);
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
    background-color: #f5f5f5;
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--uiwnbet-primary);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−';
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
}

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

.page-news__faq-answer a {
    color: var(--uiwnbet-primary);
    text-decoration: underline;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Images responsiveness */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__hero-description {
        font-size: 1rem;
    }
    .page-news__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px !important;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-news__hero-description {
        font-size: 0.95rem;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
        padding: 12px 20px;
    }
    .page-news__cta-button {
        font-size: 1.1rem;
        padding: 15px 25px;
    }
    .page-news__article-grid,
    .page-news__insight-grid,
    .page-news__event-list {
        grid-template-columns: 1fr;
    }
    .page-news__latest-articles,
    .page-news__industry-insights,
    .page-news__event-highlights,
    .page-news__community-responsibility,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 50px 0;
    }
    .page-news__card-title,
    .page-news__event-title {
        font-size: 1.2rem;
    }
    .page-news__card-excerpt,
    .page-news__event-text {
        font-size: 0.95rem;
    }
    .page-news__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }
    
    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-image-wrapper,
    .page-news__article-card,
    .page-news__insight-card,
    .page-news__event-item,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__industry-insights,
    .page-news__event-highlights,
    .page-news__community-responsibility,
    .page-news__faq-section,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .page-news__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-news__hero-description {
        font-size: 0.9rem;
    }
    .page-news__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .page-news__cta-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
    .page-news__card-title,
    .page-news__event-title {
        font-size: 1.1rem;
    }
    .page-news__card-date,
    .page-news__event-date {
        font-size: 0.85rem;
    }
    .page-news__card-excerpt,
    .page-news__event-text {
        font-size: 0.9rem;
    }
    .page-news__faq-item summary {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    .page-news__faq-answer {
        font-size: 0.9rem;
        padding: 0 15px 12px 15px;
    }
}