/* style/news.css */

/* --- General Styles & Body Background (Inherited from shared.css, dark theme) --- */
/* Body background: #08160F (dark) from custom palette */
/* Text Main: #F2FFF6 */
/* Text Secondary: #A7D9B8 */

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Ensure text is light on dark background */
    background-color: var(--background-color, #08160F); /* Explicitly use background color from custom palette */
}

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

.page-news__section-title,
.page-news__cta-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1, H2 */
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px 40px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color, #08160F);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image {
    width: 100%;
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-news__hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main, #F2FFF6);
}

.page-news__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-main, #F2FFF6);
}

.page-news__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
    max-width: 100%; /* Important for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    min-width: 200px; /* Ensure buttons are not too small */
}

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

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-news__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1);
    color: var(--glow-color, #57E38D);
    border-color: var(--glow-color, #57E38D);
}

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

.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: var(--card-bg-color, #11271B); /* Card BG from custom palette */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 200px; /* Ensure card content is not too small */
}

.page-news__news-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

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

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

.page-news__news-card-title a {
    color: var(--text-main, #F2FFF6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: var(--glow-color, #57E38D);
}

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

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

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

/* --- About 55vin Section --- */
.page-news__about-55vin-section {
    padding: 60px 0;
    background-color: var(--deep-green-color, #0A4B2C); /* Use Deep Green for this section */
    color: var(--text-main, #F2FFF6);
}

.page-news__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-news__about-image {
    width: 50%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-news__text-block {
    width: 50%;
    line-height: 1.7;
}

.page-news__text-block p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main, #F2FFF6);
}

.page-news__text-block strong {
    color: var(--glow-color, #57E38D);
}

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

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

.page-news__feature-item {
    background-color: var(--card-bg-color, #11271B);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-news__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-news__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary, #A7D9B8);
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--deep-green-color, #0A4B2C); /* Use Deep Green for this section */
}

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

.page-news__faq-item {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--card-bg-color, #11271B);
    border-bottom: 1px solid var(--divider-color, #1E3A2A);
    transition: background-color 0.3s ease;
}

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

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

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

.page-news__faq-answer p {
    margin-top: 15px;
}

/* --- CTA Section --- */
.page-news__cta-section {
    padding: 80px 0;
    background: linear-gradient(to right, #11A84E, #22C768); /* Use brand colors for CTA background */
    text-align: center;
    color: #ffffff;
}

.page-news__cta-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.page-news__cta-description {
    font-size: 1.3em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ffffff;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container fills width */
    max-width: 100%; /* Ensure container fills width */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-news__hero-section {
        padding: 40px 15px 30px;
        padding-top: 10px;
    }

    .page-news__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-news__about-image {
        width: 80%;
        margin-bottom: 30px;
    }

    .page-news__text-block {
        width: 100%;
    }

    .page-news__btn-secondary {
        margin-left: 0;
        margin-top: 15px; /* Add space between buttons on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-news__section-title,
    .page-news__cta-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-news__main-title {
        font-size: clamp(2em, 8vw, 3em);
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure width is 100% */
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min-width */
        min-height: 200px !important; /* Enforce min-height */
    }

    /* Mobile container responsiveness */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__content-area,
    .page-news__news-grid,
    .page-news__features-grid,
    .page-news__faq-list,
    .page-news__cta-buttons,
    .page-news__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-news__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Mobile button responsiveness */
    .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;
        margin-left: 0 !important; /* Remove margin-left for secondary button */
        margin-bottom: 10px !important; /* Space between stacked buttons */
        min-width: unset !important; /* Allow buttons to shrink */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        align-items: center;
        gap: 10px;
    }

    .page-news__about-image {
        width: 100%;
    }

    .page-news__feature-icon {
        width: 150px; /* Adjust icon size for mobile */
        height: 150px;
        min-width: 150px !important; /* Enforce min-width */
        min-height: 150px !important; /* Enforce min-height */
    }
    
    .page-news__news-card-image {
        height: auto; /* Allow image height to adjust */
    }
}

/* Ensure no image filters are used */
.page-news img {
    filter: none !important;
}