/* style/news.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-bg-light-mode: #ffffff;
    --border-color: #e0e0e0;
    --light-grey-bg: #f1f3f5;
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: #0a0a0a; /* Inherited from body, explicit for clarity */
}

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

.page-news__dark-bg {
    background-color: #1a1a1a;
    color: var(--text-color-dark-bg);
}

.page-news__light-bg {
    background-color: var(--light-grey-bg);
    color: var(--text-color-light-bg);
}

/* Fixed Header Spacing */
.page-news__intro-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
}

.page-news__main-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-news__intro-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__articles-section .page-news__section-title,
.page-news__strategy-section .page-news__section-title,
.page-news__community-section .page-news__section-title {
    color: var(--primary-color);
}

.page-news__analysis-section .page-news__section-title,
.page-news__promotions-section .page-news__section-title,
.page-news__conclusion-section .page-news__section-title {
    color: var(--secondary-color);
}

.page-news__section-description {
    font-size: 1.05em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__section-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news__section-description a:hover {
    text-decoration: underline;
}

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

.page-news__article-card,
.page-news__strategy-card {
    background: var(--card-bg-light-mode);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light-bg);
}

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

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

.page-news__article-content,
.page-news__strategy-content {
    padding: 25px;
}

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

.page-news__article-title a,
.page-news__strategy-title a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-news__article-excerpt,
.page-news__strategy-excerpt {
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.page-news__article-excerpt a,
.page-news__strategy-excerpt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news__article-excerpt a:hover,
.page-news__strategy-excerpt a:hover {
    text-decoration: underline;
}

.page-news__read-more-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.page-news__analysis-section {
    padding: 60px 0;
}

.page-news__criteria-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-news__criteria-item {
    background: var(--card-bg-dark-mode);
    border-left: 5px solid var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__criteria-heading {
    font-size: 1.7em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__criteria-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-news__criteria-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-news__cta-box {
    text-align: center;
    margin-top: 50px;
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-news__btn-primary,
.page-news__cta-button.page-news__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    border-color: var(--primary-color);
}

.page-news__btn-primary:hover,
.page-news__cta-button.page-news__btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

.page-news__btn-secondary,
.page-news__cta-button.page-news__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-news__btn-secondary:hover,
.page-news__cta-button.page-news__btn-secondary:hover {
    background: var(--secondary-color);
    color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 193, 7, 0.3);
}

.page-news__strategy-section {
    padding: 60px 0;
}

.page-news__promotions-section {
    padding: 60px 0;
}

.page-news__promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.page-news__promo-image {
    flex: 1;
    max-width: 50%;
    border-radius: 8px;
    height: auto;
    object-fit: cover;
}

.page-news__promo-text {
    flex: 1;
    padding: 20px 0;
}

.page-news__promo-text h3 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__promo-text p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.7;
}

.page-news__promo-text p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news__promo-text p a:hover {
    text-decoration: underline;
}

.page-news__community-section {
    padding: 60px 0;
}

.page-news__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__conclusion-text {
    font-size: 1.15em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-news__conclusion-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-news__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Image responsiveness */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-image,
    .page-news__strategy-image {
        height: 180px;
    }
    .page-news__promo-content {
        flex-direction: column;
        text-align: center;
    }
    .page-news__promo-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-news__intro-section {
        padding-top: 140px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
    }
    .page-news__container {
        padding: 15px;
    }
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news__article-grid,
    .page-news__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-card,
    .page-news__strategy-card {
        margin: 0 auto;
        max-width: 400px;
    }
    .page-news__article-image,
    .page-news__strategy-image {
        height: 160px;
    }
    .page-news__article-content,
    .page-news__strategy-content {
        padding: 20px;
    }
    .page-news__article-title,
    .page-news__strategy-title {
        font-size: 1.3em;
    }
    .page-news__criteria-item {
        padding: 20px;
    }
    .page-news__criteria-heading {
        font-size: 1.5em;
    }
    .page-news__promo-content {
        gap: 20px;
        padding: 20px;
    }
    .page-news__promo-image {
        max-width: 100%;
    }
    .page-news__promo-text h3 {
        font-size: 1.5em;
    }
    .page-news__promo-text p {
        font-size: 1em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 8px 0;
        width: 100%;
        max-width: 300px;
    }
    .page-news__cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    /* Ensure all images and containers are fully responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__intro-section,
    .page-news__articles-section,
    .page-news__analysis-section,
    .page-news__strategy-section,
    .page-news__promotions-section,
    .page-news__community-section,
    .page-news__conclusion-section,
    .page-news__container,
    .page-news__article-card,
    .page-news__strategy-card,
    .page-news__criteria-item,
    .page-news__promo-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-news__cta-box .page-news__btn-primary, 
    .page-news__cta-box .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-news__promo-text .page-news__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__promo-text h3 {
        font-size: 1.3em;
    }
}