:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--deep-navy); /* Match the brand's deep navy as a base */
    line-height: 1.6;
}

.page-news__section {
    padding: 60px 0;
    text-align: center;
}

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

/* HERO Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-navy); /* Ensuring a consistent background */
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(79, 168, 255, 0.3); /* Glow effect */
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-news__hero-content h1 {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(79, 168, 255, 0.5); /* Subtle text shadow for glow */
}

.page-news__hero-content p {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Recent Articles Section */
.page-news__recent-articles h2 {
    font-size: 2.5em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-news__article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

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

.page-news__article-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-news__article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* Ensure no extra space below image */
}

.page-news__article-card:hover .page-news__article-image-wrapper img {
    transform: scale(1.05);
}

.page-news__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.page-news__article-content h3 {
    font-size: 1.4em;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-date {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__article-summary {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: var(--gold-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--glow-color);
}

.page-news__view-all-button-wrapper {
    margin-top: 50px;
}

/* Why Follow Section */
.page-news__why-follow h2 {
    font-size: 2.5em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

.page-news__why-follow p {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-news__why-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-news__why-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--text-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.page-news__why-list li:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-news__why-list li strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Categories Section */
.page-news__categories-section h2 {
    font-size: 2.5em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

.page-news__categories-section p {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-news__category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-news__category-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-news__category-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-news__category-card p {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Call to Action Section (Re-used for general CTA) */
.page-news__cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: #ffffff;
    border-radius: 10px;
    margin: 60px auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.page-news__cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-news__cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-news__faq-section h2 {
    font-size: 2.5em;
    color: var(--text-main);
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
    display: none;
}

details.page-news__faq-item summary.page-news__faq-question:hover {
    background: rgba(var(--primary-color), 0.1); /* Slightly lighter hover */
}

.page-news__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
    background: var(--deep-navy); /* Darker background for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-secondary);
    text-align: left;
}

.page-news__faq-answer p {
    margin-bottom: 0;
}

.page-news__faq-answer a {
    color: var(--gold-color);
    text-decoration: none;
}

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

/* Subscribe Section */
.page-news__subscribe-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--primary-color);
    border-radius: 10px;
    margin: 60px auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.page-news__subscribe-section h2 {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-news__subscribe-section p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__subscribe-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.page-news__subscribe-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    background-color: var(--deep-navy);
    color: var(--text-main);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.page-news__subscribe-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__section {
        padding: 40px 0;
    }

    .page-news__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-content h1 {
        font-size: 2em; /* Smaller H1 for mobile */
    }

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

    .page-news__hero-image img {
        border-radius: 4px;
    }

    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__recent-articles h2,
    .page-news__cta-section h2,
    .page-news__faq-section h2,
    .page-news__subscribe-section h2,
    .page-news__why-follow h2,
    .page-news__categories-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news__article-card {
        margin: 0 auto;
    }

    .page-news__article-content h3 {
        font-size: 1.2em;
    }

    .page-news__article-image-wrapper {
        height: 180px;
    }

    .page-news__cta-section,
    .page-news__subscribe-section {
        padding: 40px 20px;
        margin: 40px auto;
    }

    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-qtext {
        font-size: 1em;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }

    .page-news__subscribe-form {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-news__subscribe-input {
        width: 100%;
        box-sizing: border-box;
    }

    .page-news__why-list li {
        padding: 15px;
    }

    .page-news__categories-grid {
        grid-template-columns: 1fr;
    }

    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button containers responsive */
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none;
}