/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Assuming body background is light/white */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce image on top, text below */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #f0f8ff; /* Light background for hero */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-news__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
    color: #26A9E0; /* Brand color for H1 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
}

.page-news__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-news__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
    background-color: #1a7fb3;
    border-color: #1a7fb3;
}

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Main brand color */
    border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb3;
    border-color: #1a7fb3;
}

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

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-news__section-intro {
    font-size: 1.05rem;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Latest Updates Section */
.page-news__latest-updates-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-news__article-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #1a7fb3;
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Push read more link to bottom */
}

.page-news__read-more-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: #1a7fb3;
    text-decoration: underline;
}

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

/* Why Follow Section (Dark Background) */
.page-news__why-follow-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Main brand color as background */
    color: #ffffff; /* White text for contrast */
}

.page-news__why-follow-section .page-news__section-title,
.page-news__why-follow-section .page-news__section-intro {
    color: #ffffff;
}

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

.page-news__feature-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-news__feature-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__feature-description {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__feature-description .highlight {
    color: #ffdd57; /* A contrasting highlight color */
    font-weight: bold;
}

.page-news__why-follow-section .page-news__read-more-link {
    color: #ffdd57; /* Highlight color for links on dark background */
}

.page-news__why-follow-section .page-news__read-more-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Access Guide Section */
.page-news__access-guide-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-news__guide-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 25px; /* Padding for button */
}

.page-news__guide-image {
    width: 100%;
    height: 200px; /* Fixed height for guide images */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-news__guide-title {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 15px;
    padding: 0 25px;
    font-weight: bold;
}

.page-news__guide-description {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 25px;
    padding: 0 25px;
    flex-grow: 1;
}

.page-news__guide-description .highlight {
    color: #EA7C07; /* Login color for highlight */
    font-weight: bold;
}

.page-news__guide-item .page-news__btn-primary {
    align-self: center; /* Center the button */
    margin-top: auto; /* Push button to bottom */
}


/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-news__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.page-news__faq-item {
    border-bottom: 1px solid #eee;
}

.page-news__faq-item:last-child {
    border-bottom: none;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #eeeeee;
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for question */
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    color: #555555;
    margin-left: 15px;
    width: 20px; /* Fixed width for consistent alignment */
    text-align: center;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−"; /* Change to minus when open */
}

/* Hide default details marker */
.page-news__faq-item summary {
    list-style: none;
}
.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-news__faq-answer {
    padding: 15px 25px 25px 25px;
    background-color: #ffffff;
    font-size: 1rem;
    color: #555555;
}

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

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

.page-news__faq-answer .highlight {
    color: #EA7C07; /* Login color for highlight */
    font-weight: bold;
}

.page-news__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .page-news__description {
        font-size: 1rem;
    }

    .page-news__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .page-news__article-grid,
    .page-news__feature-list,
    .page-news__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-news__article-image,
    .page-news__guide-image {
        height: 200px;
    }
}

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

    .page-news__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .page-news__description {
        font-size: 0.95rem;
    }

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-news__latest-updates-section,
    .page-news__why-follow-section,
    .page-news__access-guide-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__article-card,
    .page-news__feature-item,
    .page-news__guide-item {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Mobile card shadow */
        padding: 20px; /* Adjust padding for mobile cards */
    }
    
    .page-news__article-image,
    .page-news__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-news__faq-list {
        margin-top: 20px;
    }

    .page-news__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}