.page-news {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is white */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__main-title {
    font-size: 44px;
    font-weight: 700;
    color: #017439; /* Brand color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-news__description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555555;
}

.page-news__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register font */
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

/* Content Area */
.page-news__content-area {
    padding: 50px 0;
}

.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-news__text-block {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
    color: #444444;
}

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

.page-news__news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    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 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__card-image {
    width: 100%;
    height: 200px; /* 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: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #017439; /* Brand color for card titles */
}

.page-news__card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #005a2d;
}

.page-news__card-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to grow */
}

.page-news__card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__card-link:hover {
    color: #005a2d;
    text-decoration: underline;
}

.page-news__cta-section {
    text-align: center;
    padding-top: 20px;
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 50px 0;
    background-color: #f9f9f9; /* Light background for FAQ section */
}

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
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: #f5f5f5;
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 18px; /* Increased font size for better readability */
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    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: #f9f9f9;
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 38px;
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__news-card {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }
    .page-news__hero-image {
        margin-bottom: 20px;
    }
    .page-news__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Using clamp for H1 */
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-news__btn-primary {
        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__hero-content {
        padding: 0 15px;
    }

    /* Content Area */
    .page-news__content-area {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-news__text-block {
        font-size: 15px;
        padding: 0 15px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 20px;
        padding: 0 15px;
    }
    .page-news__news-card {
        max-width: 100% !important; /* Ensure card takes full width */
    }
    .page-news__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9; /* Maintain aspect ratio */
    }
    .page-news__card-content {
        padding: 20px;
    }
    .page-news__card-title {
        font-size: 20px;
    }
    .page-news__card-excerpt {
        font-size: 15px;
    }
    .page-news__btn-secondary {
        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__cta-section {
        padding: 0 15px;
    }

    /* FAQ Section */
    .page-news__faq-section {
        padding: 40px 0;
    }
    .page-news__faq-list {
        padding: 0 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: 20px;
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* General image and container rules */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
    }
    /* Buttons and button containers */
    .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; /* Ensure vertical stacking for multiple buttons */
    }
}