/* style/news.css */

/* Base styles for the page content, ensuring light text on dark body background initially */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the page, assuming dark body background */
}

/* Fixed header offset for the video section, as per specific instruction */
.page-news__video-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* General container for content */
.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;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
    overflow: hidden;
}

.page-news__hero-content {
    max-width: 900px;
    z-index: 2;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register and Login font color for emphasis */
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay to allow text readability */
}

/* General Section Styling */
.page-news__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-news__content-area {
    background-color: #ffffff; /* Light background for content area */
    color: #333333; /* Dark text for contrast on light background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px 0; /* Padding handled by container */
}

.page-news__dark-section {
    background-color: #017439; /* Brand color dark background */
    color: #ffffff; /* Light text */
}

.page-news__section-title {
    font-size: 2.5em;
    color: inherit; /* Inherit color from parent section */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFFF00; /* Accent color */
    border-radius: 2px;
}

.page-news__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
    color: inherit; /* Inherit color from parent section */
}

.page-news__text-block a {
    color: #FFFF00; /* Link color within text blocks */
    text-decoration: underline;
}

.page-news__text-block a:hover {
    color: #f0f0f0;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

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

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

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand color */
    border: 2px solid #017439;
    margin: 10px;
}

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

.page-news__video-cta {
    margin-top: 30px;
}

/* Articles Grid */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text on light card background */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-news__article-title a {
    color: #017439; /* Brand color for article titles */
    text-decoration: none;
}

.page-news__article-title a:hover {
    text-decoration: underline;
}

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

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

.page-news__read-more {
    color: #C30808; /* Login/Register color for read more */
    text-decoration: none;
    font-weight: bold;
}

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

/* Promotion Cards */
.page-news__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
    border-radius: 8px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-news__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.page-news__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight color for promo titles */
}

.page-news__promo-title a {
    color: inherit;
    text-decoration: none;
}
.page-news__promo-title a:hover {
    text-decoration: underline;
}

.page-news__promo-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
}

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

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensure it's a block element */
}

/* Game Categories */
.page-news__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-news__game-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    padding: 20px;
    color: #333333;
}

.page-news__game-card:hover {
    transform: translateY(-5px);
}

.page-news__game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.page-news__game-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-news__game-title a {
    color: #017439;
    text-decoration: none;
}

.page-news__game-title a:hover {
    text-decoration: underline;
}

.page-news__game-description {
    font-size: 0.95em;
    color: #555555;
}

/* Guide Section */
.page-news__guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__guide-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-news__guide-card:hover {
    transform: translateY(-5px);
}

.page-news__guide-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-news__guide-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__guide-title a:hover {
    text-decoration: underline;
}

.page-news__guide-description {
    font-size: 1em;
    color: #f0f0f0;
}