/* style/news.css */

/* General Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly setting for clarity, though shared.css defines body */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: calc(var(--header-offset, 120px) + 60px); /* Account for fixed header + extra padding */
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-news__lead-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 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; /* Required for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

/* Content Section */
.page-news__content-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EA7C07;
    border-radius: 2px;
}

.page-news__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333333;
}

/* Articles Grid */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

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

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    display: block;
}

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

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

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

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

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
    color: #26A9E0;
}

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

/* Guides Grid */
.page-news__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-news__guide-card {
    background-color: #eaf7ff; /* Lighter blue background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__guide-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #26A9E0;
    line-height: 1.4;
}

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

.page-news__guide-title a:hover {
    color: #EA7C07;
}

.page-news__guide-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Testimonial */
.page-news__testimonial {
    background-color: #f8f8f8;
    border-left: 5px solid #26A9E0;
    padding: 25px;
    margin: 40px 0;
    font-style: italic;
    color: #555555;
    border-radius: 0 10px 10px 0;
}

.page-news__testimonial p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-news__testimonial cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: bold;
    color: #26A9E0;
    margin-top: 10px;
}

.page-news__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #eaf7ff;
    color: #26A9E0;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    user-select: none;
    list-style: none; /* For <summary> */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-news__faq-answer {
    padding: 0 20px 20px;
    color: #555555;
    font-size: 1em;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3em;
    }
    .page-news__lead-text {
        font-size: 1.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-news__hero-section {
        padding-top: calc(var(--header-offset, 120px) + 30px) !important; /* Adjust for mobile header offset */
        padding-bottom: 60px;
    }
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__lead-text {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    .page-news__articles-grid,
    .page-news__guides-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-news__article-card,
    .page-news__guide-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-section,
    .page-news__content-section .page-news__container,
    .page-news__article-card,
    .page-news__guide-card,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Handled by container for general content */
        /* padding-right: 15px; */ /* Handled by container for general content */
    }
    .page-news__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__content-image {
        padding: 0 15px;
    }
    .page-news__testimonial {
        margin-left: 15px;
        margin-right: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }

    /* Ensure content section padding for mobile */
    .page-news__content-section .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__lead-text {
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__guide-title {
        font-size: 1.1em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-news__faq-answer {
        padding: 0 15px 15px;
    }
}

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