/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Header offset for main content */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(38, 169, 224, 0.2) 0%, rgba(18, 18, 18, 0.8) 100%);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.page-news__hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.page-news__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-news__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
}

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

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

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

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

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle background image */
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for section */
    margin-bottom: 60px;
}

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

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

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

.page-news__card-image {
    width: 100%;
    height: 220px;
    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: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-news__card-date {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s ease;
}

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

/* Categories Section */
.page-news__categories-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

.page-news__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-news__category-item {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(38, 169, 224, 0.2);
    color: #26A9E0;
    border: 1px solid #26A9E0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.page-news__category-item:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* All Articles Section */
.page-news__all-articles-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 60px;
}

.page-news__article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-news__article-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-news__article-item:hover {
    transform: translateY(-3px);
}

.page-news__article-thumb {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

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

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

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

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

.page-news__article-item-meta {
    font-size: 0.85em;
    color: #cccccc;
    margin-bottom: 12px;
}

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

.page-news__pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-news__pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(38, 169, 224, 0.1);
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
    background-color: #26A9E0;
    color: #ffffff;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.25);
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: none;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, #26A9E0, #1a7fb3);
    text-align: center;
    color: #ffffff;
    border-radius: 10px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

/* General image styling */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-item {
        flex-direction: column;
    }
    .page-news__article-thumb {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 60px 0;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-card {
        margin: 0 15px; /* Add some side padding for cards */
    }
    .page-news__article-item {
        margin: 0 15px; /* Add some side padding for articles */
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__hero-cta,
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-news__category-list {
        padding: 0 15px;
    }
    .page-news__faq-item,
    .page-news__faq-list {
        margin: 0 15px;
    }

    /* Mobile image adaptation */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that contain images/buttons/videos */
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__categories-section,
    .page-news__all-articles-section,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__article-card,
    .page-news__article-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Override padding for specific sections that have full-width background */
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__all-articles-section,
    .page-news__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__hero-content,
    .page-news__latest-articles-section .page-news__container,
    .page-news__all-articles-section .page-news__container,
    .page-news__cta-section .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__article-item-title {
        font-size: 1.1em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
}