: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: #244D84;
    --glow: #4FA8FF;
    --gold: #F2C14E;
    --divider: #1B3357;
    --deep-navy: #08162B;
    --primary-rgb: 17, 59, 122; /* RGB for #113B7A for rgba usage */
}

/* General styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--deep-navy);
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

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

.page-news__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small padding top, body has --header-offset */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for aesthetic */
}

.page-news__hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(0deg, rgba(8, 22, 43, 0.8) 0%, rgba(8, 22, 43, 0.4) 50%, rgba(8, 22, 43, 0.8) 100%);
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 15px;
    max-width: 900px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main);
    max-width: 800px;
    margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-secondary:hover {
    background-color: var(--gold);
    color: var(--deep-navy);
}

/* Latest Articles Section */
.page-news__latest-articles {
    background-color: var(--deep-navy);
}

.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 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;
    border: 1px solid var(--border);
}

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

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

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

.page-news__article-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: var(--glow);
}

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

.page-news__article-excerpt {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
}

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

.page-news__read-more:hover {
    color: var(--gold);
    text-decoration: underline;
}

.page-news__view-all {
    text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--deep-navy);
    padding-bottom: 60px;
}

.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    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-rgb), 0.1); /* Lighter hover for dark background */
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--primary-rgb), 0.05); /* Slightly lighter than card bg */
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
}
.page-news__faq-answer p {
    margin-bottom: 10px;
}
.page-news__faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--deep-navy);
    padding-top: 0;
}

.page-news__cta-box {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.page-news__cta-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-news__cta-content {
    width: 50%;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
}

.page-news__cta-content .page-news__section-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--gold);
}

.page-news__cta-content p {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 25px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .page-news__hero-content {
        position: static; /* Make content flow normally */
        background: none;
        padding: 20px 15px;
    }
    .page-news__hero-section {
        padding-top: 0; /* Adjust for static content */
    }
    .page-news__hero-image {
        max-height: 300px;
    }
    .page-news__main-title {
        font-size: 32px;
    }
    .page-news__hero-description {
        font-size: 18px;
    }
    .page-news__cta-box {
        flex-direction: column;
    }
    .page-news__cta-image,
    .page-news__cta-content {
        width: 100%;
    }
    .page-news__cta-image {
        max-height: 250px;
    }
    .page-news__cta-content {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .page-news__section {
        padding: 30px 0;
    }
    .page-news__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-news__hero-image {
        max-height: 200px;
    }
    .page-news__main-title {
        font-size: 24px;
        max-width: 100%;
        padding: 0 10px;
    }
    .page-news__hero-description {
        font-size: 16px;
        max-width: 100%;
        padding: 0 10px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-excerpt {
        font-size: 15px;
    }
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-qtext {
        font-size: 16px;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
    .page-news__cta-image {
        max-height: 180px;
    }
    .page-news__cta-content .page-news__section-title {
        font-size: 22px;
    }
    .page-news__cta-content p {
        font-size: 16px;
    }

    /* General image and container rules for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-box,
    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-content {
        padding: 15px;
    }
}