/* style/news.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --background-color: #0a0a0a; /* Body background from shared.css */
    --text-light: #ffffff;
    --text-dark: #333333;
}

.page-news {
    color: var(--text-light); /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top margin, body already handles --header-offset */
    background: var(--background-color);
    color: var(--text-light);
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-news__hero-content {
    max-width: 900px;
    width: 100%;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-news__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: var(--login-button-color); /* Custom color for Login/Register buttons */
    color: var(--secondary-color);
    border: 2px solid var(--login-button-color);
}

.page-news__btn-primary:hover {
    background-color: #d16e06; /* Darken #EA7C07 */
    border-color: #d16e06; /* Darken #EA7C07 */
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* Light background for this section */
    color: var(--text-dark);
}

.page-news__latest-news-section .page-news__section-title {
    color: var(--text-dark);
}

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

.page-news__news-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

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

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

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--primary-color);
}

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

.page-news__card-excerpt {
    font-size: 1em;
    color: #555;
}

.page-news__view-all-button {
    text-align: center;
}

/* Categories Section */
.page-news__categories-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background for this section */
    color: var(--text-light);
}

.page-news__categories-section .page-news__section-title {
    color: var(--text-light);
}

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.page-news__category-card {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-news__category-card:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Archive Section */
.page-news__archive-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-news__archive-section .page-news__section-title {
    color: var(--text-dark);
}

.page-news__archive-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-news__archive-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    color: var(--text-dark);
}

.page-news__archive-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-news__archive-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.page-news__archive-image {
    width: 250px; /* Fixed width for desktop */
    height: 150px; /* Fixed height for desktop */
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.page-news__archive-content {
    padding: 20px;
    flex-grow: 1;
}

.page-news__archive-title {
    font-size: 1.2em;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--primary-color);
}

.page-news__archive-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}

.page-news__archive-excerpt {
    font-size: 0.95em;
    color: #666;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-light);
}

.page-news__faq-section .page-news__section-title {
    color: var(--text-light);
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-news__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding: 40px 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-news__description {
        font-size: 1em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__archive-image {
        width: 200px;
        height: 120px;
    }
    .page-news__archive-title {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 20px 15px;
        padding-top: 10px !important;
    }
    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr;
    }
    .page-news__card-image {
        height: 200px;
    }
    .page-news__categories-grid {
        grid-template-columns: 1fr;
    }
    .page-news__archive-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-news__archive-link {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-news__archive-image {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }
    .page-news__archive-content {
        padding: 15px;
    }
    .page-news__section-title {
        margin-bottom: 30px;
    }
    .page-news__container,
    .page-news__latest-news-section,
    .page-news__categories-section,
    .page-news__archive-section,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__video-section {
        padding-top: 10px !important;
    }
    .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: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}