/* style/news.css */
/* Page-specific styles for the News Center */

.page-news {
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-news__hero-section {
    background-color: #003366; /* Primary color background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

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

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

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-news__hero-cta-button {
    display: inline-block;
    background-color: #FFD700; /* Auxiliary color for CTA */
    color: #003366;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__hero-cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #003366; /* Primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    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: #FFD700; /* Auxiliary color for underline */
    border-radius: 2px;
}

.page-news__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-news__latest-updates-section,
.page-news__promotions-section,
.page-news__partnerships-section,
.page-news__community-section,
.page-news__call-to-action-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

.page-news__article-image,
.page-news__promotion-image,
.page-news__community-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
    min-width: 200px;
    min-height: 200px;
}

.page-news__partner-logo {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    min-width: 200px;
    min-height: 75px;
}

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

.page-news__article-title,
.page-news__promotion-title,
.page-news__partner-name,
.page-news__community-title {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a,
.page-news__promotion-title a,
.page-news__partner-name a,
.page-news__community-title a {
    text-decoration: none;
    color: #003366;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promotion-title a:hover,
.page-news__partner-name a:hover,
.page-news__community-title a:hover {
    color: #FFD700;
}

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

.page-news__article-excerpt,
.page-news__promotion-description,
.page-news__partner-description,
.page-news__community-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-button,
.page-news__view-promo-button {
    display: inline-block;
    background-color: #003366;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-button:hover,
.page-news__view-promo-button:hover {
    background-color: #FFD700;
    color: #003366;
    transform: translateY(-2px);
}

.page-news__call-to-action-section {
    background-color: #f8f8f8;
    text-align: center;
}

.page-news__cta-buttons {
    text-align: center;
    margin-top: 40px;
}

.page-news__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-news__cta-button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

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

.page-news__cta-button--secondary:hover {
    background-color: #003366;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__hero-section {
        padding: 60px 15px;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__section-intro {
        font-size: 1em;
    }

    .page-news__articles-grid,
    .page-news__promotions-grid,
    .page-news__partners-grid,
    .page-news__community-grid {
        grid-template-columns: 1fr;
    }

    .page-news__latest-updates-section,
    .page-news__promotions-section,
    .page-news__partnerships-section,
    .page-news__community-section,
    .page-news__call-to-action-section {
        padding: 40px 15px;
    }

    .page-news__article-image,
    .page-news__promotion-image,
    .page-news__community-image {
        height: 200px;
        max-width: 100%; /* Ensure images are responsive */
        min-width: unset; /* Override desktop min-width */
        min-height: unset;
    }
    
    .page-news__partner-logo {
        height: auto;
        max-width: 150px; /* Ensure logos are not too large */
        min-width: unset;
        min-height: unset;
    }

    .page-news__cta-button {
        display: block;
        margin: 15px auto;
        width: 80%;
        max-width: 300px;
    }

    /* Ensure all images within .page-news are responsive and do not overflow */
    .page-news img {
        max-width: 100%;
        height: auto;
    }

    /* Prevent horizontal scroll issues for the main content area */
    .page-news {
        overflow-x: hidden;
    }
}