/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000; /* Assuming body background is black from shared.css */
}

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

.page-news__section-title {
    font-size: 32px;
    font-weight: bold;
    color: #E8B900;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Adjust based on shared.css body padding */
    padding-bottom: 60px;
    background: #0A2033;
    color: #ffffff;
    overflow: hidden;
}

.page-news__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.page-news__hero-content {
    flex: 1;
    text-align: left;
}

.page-news__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #E8B900;
}

.page-news__hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-news__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Lighter dark background for contrast */
    color: #ffffff;
}

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

.page-news__news-card {
    background-color: #0A2033;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.page-news__card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image-wrapper img {
    transform: scale(1.05);
}

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

.page-news__card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #E8B900;
    line-height: 1.4;
}

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

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

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

/* Categories Section */
.page-news__categories-section {
    padding: 60px 0;
    background-color: #0A2033;
    color: #ffffff;
}

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

.page-news__category-tag {
    background-color: #E8B900;
    color: #0A2033;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__category-tag:hover {
    background-color: #ffffff;
    color: #0A2033;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Lighter dark background for contrast */
    color: #ffffff;
}

.page-news__cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.page-news__cta-content {
    flex: 1;
    text-align: left;
}

.page-news__cta-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #E8B900;
}

.page-news__cta-description {
    font-size: 18px;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
}

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

.page-news__btn-primary {
    background-color: #E8B900;
    color: #0A2033;
    border: 2px solid #E8B900;
}

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

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

.page-news__btn-secondary:hover {
    background-color: #E8B900;
    color: #0A2033;
}

.page-news__cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__cta-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0A2033; /* Dark background for FAQ */
    color: #ffffff;
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #0A2033;
    border: 1px solid #E8B900;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

.page-news__faq-question:hover {
    background: #1a3044;
    border-color: #ffc700;
}

.page-news__faq-question:active {
    background: #05101a;
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #E8B900;
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #E8B900;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: #f0f0f0;
    background-color: #1a1a1a;
    border-radius: 0 0 5px 5px;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 16px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .page-news__hero-content {
        text-align: center;
        margin-top: 40px;
    }

    .page-news__hero-title {
        font-size: 40px;
    }

    .page-news__cta-container {
        flex-direction: column;
    }

    .page-news__cta-content {
        text-align: center;
    }

    .page-news__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure proper offset on mobile if shared.css doesn't handle body padding */
        padding-bottom: 40px;
    }

    .page-news__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 16px;
    }

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

    .page-news__latest-news-section,
    .page-news__categories-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__card-image-wrapper {
        height: 180px;
    }

    .page-news__card-title {
        font-size: 18px;
    }

    .page-news__card-summary {
        font-size: 14px;
    }

    .page-news__category-tag {
        padding: 8px 15px;
        font-size: 14px;
    }

    .page-news__cta-title {
        font-size: 28px;
    }

    .page-news__cta-description {
        font-size: 16px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-news__faq-question {
        padding: 15px;
    }

    .page-news__faq-question h3 {
        font-size: 16px;
    }

    .page-news__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .page-news__faq-answer {
        padding: 0 15px;
    }

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image and container responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__hero-image,
    .page-news__card-image-wrapper,
    .page-news__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news__hero-content,
    .page-news__latest-news-section,
    .page-news__categories-section,
    .page-news__cta-content,
    .page-news__faq-section,
    .page-news__news-card,
    .page-news__category-tags,
    .page-news__faq-list,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}