/* style/news.css */
/* Core styles, typography, and layout */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

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

.page-news__section-intro {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding for first section */
    padding-bottom: 60px;
    background-color: #08160F; /* Background */
}

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

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

.page-news__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
}

/* CTA Button - General */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Responsive button */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-news__cta-button--small {
    font-size: 0.95em;
    padding: 12px 25px;
}

.page-news__cta-button--large {
    font-size: 1.3em;
    padding: 18px 40px;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-news__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
}

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

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

.page-news__card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to fill space */
    display: flex;
    flex-direction: column;
}

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

.page-news__card-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #22C768; /* Auxiliary color */
}

.page-news__card-date {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-news__card-snippet {
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    color: #22C768; /* Auxiliary color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start; /* Align link to the start */
}

.page-news__read-more-link:hover {
    color: #11A84E; /* Main color */
}

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

/* Why Follow Section */
.page-news__why-follow-section {
    padding: 80px 0;
    background-color: #11A84E; /* Main color as dark background */
    color: #F2FFF6; /* Text Main for dark background */
}

.page-news__why-follow-section .page-news__section-intro--white {
    color: #F2FFF6;
}

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

.page-news__feature-item {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-news__feature-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-news__feature-description {
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
}

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

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

.page-news__category-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

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

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

.page-news__category-card .page-news__card-content { /* Reusing card content style */
    padding: 20px;
    flex-grow: 1;
}

.page-news__category-title {
    font-size: 1.3em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
}

.page-news__category-description {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
}

/* Access News Section */
.page-news__access-news-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-news__method-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news__method-title {
    font-size: 1.6em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-news__method-description {
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green - Dark background for contrast */
    color: #F2FFF6;
}

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

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #2E7A4E; /* Border */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B;
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #11A84E; /* Main color on open */
    border-bottom: 1px solid #2E7A4E;
}

.page-news__faq-question:hover {
    background-color: #22C768; /* Auxiliary color on hover */
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #F2C14E; /* Gold */
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

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

/* CTA Section at the bottom */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to right, #08160F, #11A84E, #08160F); /* Gradient background */
}

.page-news__cta-container {
    max-width: 900px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__news-image {
        height: 180px;
    }
    .page-news__category-image {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-intro {
        font-size: 1em;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
    .page-news__hero-description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-image-wrapper,
    .page-news__news-card,
    .page-news__category-card,
    .page-news__feature-item,
    .page-news__method-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px; /* Add padding for content within cards/sections */
    }
    /* Specific override for hero image wrapper padding */
    .page-news__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Video responsiveness - if any */
    .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; /* Small top padding for video section */
    }
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Button responsiveness */
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        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;
        text-align: center; /* Center button text if it wraps */
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
    }

    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__why-follow-section,
    .page-news__categories-section,
    .page-news__access-news-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__latest-news-section,
    .page-news__why-follow-section,
    .page-news__categories-section,
    .page-news__access-news-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-news__news-card,
    .page-news__category-card,
    .page-news__feature-item,
    .page-news__method-item {
        padding: 20px;
    }
    .page-news__news-image {
        height: 150px;
    }
    .page-news__category-image {
        height: 120px;
    }
    .page-news__feature-title {
        font-size: 1.3em;
    }
    .page-news__method-title {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__main-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }
    .page-news__hero-description {
        font-size: 0.95em;
    }
    .page-news__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-news__cta-button--large {
        font-size: 1.1em;
        padding: 15px 30px;
    }
    .page-news__news-card,
    .page-news__category-card,
    .page-news__feature-item,
    .page-news__method-item {
        padding: 15px;
    }
    .page-news__news-image {
        height: 120px;
    }
    .page-news__category-image {
        height: 100px;
    }
    .page-news__feature-title {
        font-size: 1.3em;
    }
    .page-news__method-title {
        font-size: 1.4em;
    }
}