/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark backgrounds */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Specific section background/text colors based on body being dark (#121212) */
.page-news__dark-bg {
    background-color: rgba(1, 116, 57, 0.2); /* Slightly transparent brand green */
    color: #ffffff;
    padding: 60px 0;
}

.page-news__light-bg {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for contrast on dark body */
    color: #ffffff;
    padding: 60px 0;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    background-image: url('[GALLERY:hero:1920x1080:ku3933 app,news,hero,banner,online betting]');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure hero section has a decent height */
    overflow: hidden; /* Prevent content overflow */
    box-sizing: border-box;
}

.page-news__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.page-news__hero-title {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login type buttons */
    border: 2px solid #C30808;
    margin: 10px;
}

.page-news__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    margin: 10px;
}

.page-news__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Featured News Section */
.page-news__featured-article {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter transparent for contrast */
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.page-news__featured-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
}

.page-news__featured-content {
    width: 50%;
    padding-right: 20px;
}

.page-news__article-title {
    font-size: 2em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #017439;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 10px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-btn:hover {
    color: #ffffff;
}

/* Latest News & Insights Sections */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

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

.page-news__card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #017439;
}

.page-news__card-meta {
    font-size: 0.85em;
    color: #cccccc;
    margin-bottom: 10px;
}

.page-news__card-excerpt {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-news__view-all-button-container {
    text-align: center;
}

/* Video Section */
.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-news__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-news__video-description {
    text-align: center;
    font-size: 1.1em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(1, 116, 57, 0.4); /* Slightly darker brand green for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-item.active .page-news__faq-question {
    background-color: #017439;
}