: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(--card-bg); /* Assuming shared.css sets body background to var(--card-bg) */
}

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

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

.page-news__section-description {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* 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);
    overflow: hidden;
}

.page-news__hero-section .page-news__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-news__hero-content {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.page-news__main-title {
    color: var(--gold-color);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive font size */
}

.page-news__hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-news__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

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

/* Latest News Section */
.page-news__latest-news-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-news__news-card {
    background-color: var(--deep-navy);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

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

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

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

.page-news__card-description {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-news__card-link:hover {
    color: var(--glow-color);
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 60px;
}

.page-news__view-all-button {
    padding: 12px 30px;
    font-size: 16px;
}

/* Why Follow Section */
.page-news__why-follow-section {
    padding: 80px 0;
    background-color: var(--deep-navy);
}

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

.page-news__benefit-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__benefit-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__benefit-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--deep-navy);
    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 25px;
    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(0, 0, 0, 0.1);
}

.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-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
    padding: 0 25px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-navy);
}

.page-news__cta-section .page-news__section-title {
    color: var(--gold-color);
}

.page-news__cta-section .page-news__section-description {
    margin-bottom: 50px;
}

/* Footer Placeholder */
.page-news__footer {
    padding: 40px 20px;
    background-color: var(--deep-navy);
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--divider-color);
}

.page-news__footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-section .page-news__container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .page-news__hero-content {
        text-align: center;
    }

    .page-news__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-news__main-title {
        font-size: clamp(28px, 5vw, 40px);
    }

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

@media (max-width: 768px) {
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__why-follow-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

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

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-news__main-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-news__hero-description {
        font-size: 16px;
    }

    .page-news__cta-button {
        padding: 12px 25px;
        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__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__card-title {
        font-size: 18px;
    }

    .page-news__card-image {
        height: 180px;
    }

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

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

    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px 20px;
    }

    .page-news__faq-qtext {
        font-size: 16px;
    }

    .page-news__faq-toggle {
        font-size: 24px;
        width: 24px;
    }

    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section .page-news__container,
    .page-news__latest-news-section .page-news__container,
    .page-news__why-follow-section .page-news__container,
    .page-news__faq-section .page-news__container,
    .page-news__cta-section .page-news__container,
    .page-news__view-all-button-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .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;
    }

    .page-news__cta-buttons {
        display: flex;
        flex-direction: column; 
    }
}