/* style/news.css */

/* --- General Styles --- */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Body background is dark, so text should be light */
    line-height: 1.6;
    background-color: transparent; /* Rely on shared.css for body background */
}

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

.page-news__section-title {
    font-size: 2.5rem;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for contrast */
    overflow: hidden;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text block */
    padding: 30px;
    border-radius: 10px;
}

.page-news__main-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-news__cta-button {
    display: inline-block;
    background-color: #EA7C07; /* Login/Promotional color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background-color: #d46a00;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for news section */
}

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

.page-news__article-card {
    background-color: #282828;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    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.5);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.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: 1.4rem;
    color: #26A9E0;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

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

.page-news__article-excerpt {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-news__read-more {
    display: inline-block;
    color: #EA7C07;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

.page-news__view-all-button {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__view-all-button:hover {
    background-color: #1e87b8;
}

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

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

.page-news__faq-item {
    background-color: #282828;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-news__faq-item[open] {
    background-color: #3a3a3a;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #26A9E0;
    background-color: #282828;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: #EA7C07;
    font-weight: bold;
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #cccccc;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2rem;
    }

    .page-news__hero-content {
        padding: 25px;
    }

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

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

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

    .page-news__article-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

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

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

    .page-news__cta-button,
    .page-news__view-all-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container,
    .page-news__view-all-button-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__latest-articles-section,
    .page-news__faq-section {
        padding: 50px 0;
    }

    .page-news__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

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

    .page-news__article-title {
        font-size: 1.1rem;
    }

    .page-news__article-excerpt {
        font-size: 0.9rem;
    }

    .page-news__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 18px;
        font-size: 0.95rem;
    }

    /* Mobile image and video responsiveness */
    .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,
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__faq-section,
    .page-news__articles-grid,
    .page-news__article-card,
    .page-news__faq-list,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Remove extra padding from specific elements if already handled by container */
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__hero-content,
    .page-news__article-content,
    .page-news__faq-question,
    .page-news__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}