/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for main title highlight */
    font-weight: bold;
}

.page-news__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

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

.page-news__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Primary brand color for text */
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Section common styles */
.page-news__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest Articles Section */
.page-news__latest-articles-section,
.page-news__game-guides-section,
.page-news__why-choose-us-section,
.page-news__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-news__articles-grid,
.page-news__guides-grid,
.page-news__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px; /* Ensure padding for content inside grid */
}

.page-news__article-card,
.page-news__guide-card,
.page-news__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-news__article-card:hover,
.page-news__guide-card:hover,
.page-news__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__article-image,
.page-news__guide-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__article-content,
.page-news__guide-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__article-title,
.page-news__guide-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-news__article-title a:hover,
.page-news__guide-title a:hover {
    color: #005a2e;
    text-decoration: underline;
}

.page-news__article-excerpt,
.page-news__guide-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push to bottom */
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #005a2e;
    text-decoration: underline;
}

/* Promotions Highlight Section */
.page-news__promotions-highlight,
.page-news__cta-bottom-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

.page-news__promotions-highlight .page-news__section-title,
.page-news__cta-bottom-section .page-news__section-title {
    color: #ffffff; /* White title for dark background */
}

/* Why Choose Us Section */
.page-news__feature-item {
    text-align: center;
    padding: 20px;
}
}