/* style/news.css */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px 60px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #CC0000 0%, #800000 100%); /* Main brand color gradient */
    color: #ffffff;
}

.page-news__hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-news__main-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

/* CTA Button - General Style */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #FFD700; /* Auxiliary color for CTA */
    color: #CC0000; /* Contrasting text color */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.page-news__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__cta-button--secondary {
    background: #CC0000;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-news__cta-button--secondary:hover {
    background: #e6c200;
    color: #CC0000;
    border-color: #e6c200;
}

.page-news__cta-button--large {
    padding: 18px 45px;
    font-size: 1.3em;
}

/* Section Common Styles */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #CC0000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-news__section-title--light {
    color: #FFD700; /* Light text for dark backgrounds */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-news__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #666666; /* Darker text for light backgrounds */
}

.page-news__section-intro--light {
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}

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

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

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

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

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

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

.page-news__article-title a.page-news__article-link {
    color: #CC0000; /* Main brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a.page-news__article-link:hover {
    color: #FFD700; /* Auxiliary color on hover */
}

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

.page-news__article-date {
    font-size: 0.85em;
    color: #888888;
    text-align: right;
    margin-top: auto;
}

.page-news__view-all-cta {
    text-align: center;
    margin-top: 50px;
}

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #CC0000 0%, #800000 100%); /* Dark background with gradient */
    color: #ffffff; /* Light text */
}

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-news__category-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.page-news__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-news__category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-news__category-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700; /* Auxiliary color for titles */
}

.page-news__category-description {
    font-size: 0.9em;
    color: #f0f0f0;
    padding: 0 15px;
}

/* Featured Guides Section (Similar to Latest Articles but distinct) */
.page-news__featured-guides-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

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