/* style/news.css */

/* Base Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f9fa;
    padding-top: var(--header-offset, 120px);
}

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

.page-news__dark-bg {
    background-color: #1E90FF; /* Auxiliary color for dark sections */
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #1E90FF;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-title--white {
    color: #ffffff;
}

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

.page-news__section-description--white {
    color: #f0f0f0;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #FFD700; /* Primary color */
    color: #1E90FF; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Primary color text */
    border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
    background-color: #FFD700;
    color: #1E90FF;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

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

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8);
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Gold color for hero title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Latest Articles Section */
.page-news__latest-articles,
.page-news__categories,
.page-news__popular-articles,
.page-news__cta-bottom {
    padding: 80px 0;
}

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

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    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-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.page-news__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    min-height: 70px; /* Ensure consistent card height */
}

.page-news__article-title a {
    color: #1E90FF; /* Dark blue for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #FFD700; /* Gold on hover */
}

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

.page-news__article-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    min-height: 90px; /* Ensure consistent card height */
}

.page-news__read-more {
    display: inline-block;
    color: #FFD700; /* Gold color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #1E90FF; /* Dark blue on hover */
}

/* Featured Video Section */
.page-news__featured-video {
    padding: 80px 0;
    text-align: center;
}

.page-news__video-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-news__video-cta {
    margin-top: 30px;
}

/* Categories Section */
.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-news__category-card {
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-news__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-news__category-title {
    font-size: 1.5em;
    color: #1E90FF;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-news__category-desc {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
}

/* Popular Articles Section */
.page-news__articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.page-news__list-item:hover {
    transform: translateX(5px);
}

.page-news__list-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.page-news__list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-news__list-title {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.page-news__list-title a {
    color: #1E90FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__list-title a:hover {
    color: #FFD700;
}

.page-news__list-excerpt {
    font-size: 0.95em;
    color: #666666;
}

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

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

.page-news__faq-item {
    background-color: #2a9dfa; /* Slightly lighter blue for FAQ items */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: #1E90FF; /* Auxiliary color for question background */
    transition: background-color 0.3s ease;
}

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

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

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 1em;
}

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

.page-news__faq-answer a:hover {
    color: #e6c200;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

.page-news__cta-bottom .page-news__btn-primary {
    font-size: 1.2em;
    padding: 15px 35px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-title {
        font-size: 1.2em;
        min-height: auto;
    }
    .page-news__article-excerpt {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__hero-section {
        padding: 80px 0;
        min-height: 400px;
    }
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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__latest-articles,
    .page-news__categories,
    .page-news__popular-articles,
    .page-news__faq-section,
    .page-news__featured-video,
    .page-news__cta-bottom {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-card {
        margin-bottom: 20px;
    }
    .page-news__category-card {
        margin-bottom: 20px;
    }
    .page-news__list-item {
        flex-direction: column;
        text-align: center;
    }
    .page-news__list-image-wrapper {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    .page-news__list-content {
        padding: 15px;
    }
    .page-news__video-wrapper {
        margin: 20px auto;
    }
    .page-news img,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .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: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__article-title {
        font-size: 1.1em;
    }
    .page-news__article-excerpt {
        font-size: 0.9em;
    }
}