/* style/news.css */

/* General styles for the page-news scope */
.page-news {
    background-color: var(--background-color, #08160F);
    color: var(--text-main-color, #F2FFF6);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-news__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-main-color, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
    border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--background-color, #08160F);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-news__hero-content {
    max-width: 900px;
    margin-top: 20px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__intro-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--gold-color, #F2C14E);
    border: 2px solid var(--gold-color, #F2C14E);
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background: var(--gold-color, #F2C14E);
    color: #08160F;
}

/* News List Section */
.page-news__news-list-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-news__news-card {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.page-news__news-card-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.page-news__news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__news-card-meta {
    font-size: 14px;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 16px;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-btn {
    display: inline-block;
    color: var(--glow-color, #57E38D);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

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

/* Featured News Section */
.page-news__featured-news-section {
    padding: 80px 0;
    background-color: var(--deep-green-color, #0A4B2C);
}

.page-news__featured-article {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page-news__featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__featured-content {
    flex: 1;
    min-width: 300px;
}

.page-news__featured-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-news__featured-meta {
    font-size: 15px;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 25px;
}

.page-news__featured-text {
    font-size: 17px;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-news__faq-item {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main-color, #F2FFF6);
    cursor: pointer;
    background-color: var(--card-bg-color, #11271B);
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none;
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-question:hover {
    background-color: var(--divider-color, #1E3A2A);
}

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

.page-news__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color, #57E38D);
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--text-secondary-color, #A7D9B8);
    line-height: 1.7;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-green-color, #0A4B2C);
}

.page-news__cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
}

.page-news__cta-text {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }

    .page-news__featured-article {
        flex-direction: column;
        align-items: center;
    }

    .page-news__featured-image {
        max-width: 100%;
        margin-bottom: 30px;
    }

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

    .page-news__btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px !important;
    }

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

    .page-news__hero-section {
        padding-bottom: 30px !important;
    }

    .page-news__main-title {
        font-size: 36px !important;
        margin-bottom: 15px !important;
    }

    .page-news__intro-description {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }

    .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__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
    }

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

    .page-news__news-card-image {
        height: 180px;
    }

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

    .page-news__featured-news-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0 !important;
    }

    .page-news__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

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

    /* Images responsiveness */
    .page-news img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Image containers responsiveness */
    .page-news__hero-image-wrapper,
    .page-news__news-card,
    .page-news__featured-article,
    .page-news__news-list-section,
    .page-news__featured-news-section,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Specific section padding for mobile */
    .page-news__hero-section,
    .page-news__news-list-section,
    .page-news__featured-news-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Video section (if any, not present in this news page, but for safety) */
    .page-news__video-section {
        padding-top: 10px !important;
    }

    /* Ensure text contrast on mobile */
    .page-news {
      font-size: 16px !important;
      line-height: 1.6 !important;
    }
}