/* style/news.css */

/* --- Base Styles --- */
.page-news {
    font-family: 'Arial', sans-serif; /* Placeholder, use actual font */
    line-height: 1.6;
    color: #F2FFF6; /* Text Main, assuming dark body background #08160F */
    background-color: #08160F; /* Background color */
}

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

.page-news__section-title {
    font-size: 2.5rem;
    color: #F2C14E; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__intro-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #A7D9B8; /* Text Secondary */
}

/* --- Buttons --- */
.page-news__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 30px;
}

.page-news__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button text wrap */
    word-wrap: break-word; /* Button text wrap */
}

.page-news__cta-button--primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
}

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

.page-news__cta-button--secondary {
    background: transparent;
    color: #2AD16F; /* Main color for secondary button text */
    border: 2px solid #2AD16F;
}

.page-news__cta-button--secondary:hover {
    background-color: rgba(42, 209, 111, 0.1);
    color: #F2FFF6;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for visual separation from header */
}

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

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image slightly for text contrast */
}

.page-news__hero-content {
    position: relative; /* Ensure content is above image */
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

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

/* --- Featured Articles Section --- */
.page-news__featured-articles {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-news__article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.page-news__article-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #F2FFF6; /* Ensure link color is visible */
    text-decoration: none;
}

.page-news__article-title a:hover {
    color: #2AD16F;
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-news__article-summary {
    font-size: 1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-news__read-more {
    display: inline-block;
    color: #2AD16F; /* Main color */
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95rem;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

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

.page-news__list-items {
    margin-bottom: 50px;
}

.page-news__list-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border color */
}

.page-news__list-item-image {
    width: 150px;
    height: 112px; /* Maintain 4:3 aspect ratio for 400x300 */
    min-width: 150px; /* Prevent shrinking below this */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.page-news__list-item-content {
    flex-grow: 1;
}

.page-news__list-item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-news__list-item-title a {
    color: #F2FFF6; /* Ensure link color is visible */
    text-decoration: none;
}

.page-news__list-item-title a:hover {
    color: #2AD16F;
}

.page-news__list-item-meta {
    font-size: 0.85rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 10px;
}

.page-news__list-item-summary {
    font-size: 0.95rem;
    color: #F2FFF6; /* Text Main */
}

/* --- Why Choose Us Section --- */
.page-news__why-choose-us {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-news__content-text p {
    font-size: 1.05rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-news__content-text strong {
    color: #F2C14E; /* Gold */
}

/* --- CTA Banner Section --- */
.page-news__cta-banner {
    padding: 60px 0;
    position: relative;
    text-align: center;
    background-color: #08160F; /* Background color */
}

.page-news__cta-banner-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text contrast */
    border-radius: 12px;
    display: block;
}

.page-news__cta-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-question:hover {
    background-color: #1A3427; /* Slightly lighter Card BG on hover */
}

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    margin-left: 15px;
    color: #2AD16F; /* Main color */
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2rem;
    }
    .page-news__hero-image-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-news__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-news__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important; /* Button responsive */
        max-width: 100% !important; /* Button responsive */
        box-sizing: border-box !important; /* Button responsive */
        white-space: normal !important; /* Button text wrap */
        word-wrap: break-word !important; /* Button text wrap */
    }
    
    .page-news__featured-articles,
    .page-news__category-news,
    .page-news__why-choose-us,
    .page-news__cta-banner,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__article-grid {
        grid-template-columns: 1fr;
    }

    .page-news__article-card,
    .page-news__list-item {
        margin-bottom: 20px;
        padding: 15px;
        max-width: 100% !important; /* Card responsive */
        width: 100% !important; /* Card responsive */
        box-sizing: border-box !important; /* Card responsive */
    }

    .page-news__list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-news__list-item-image {
        width: 100%;
        height: auto;
        max-width: 250px; /* Limit image width in stacked layout */
        margin-bottom: 15px;
        min-width: 200px; /* Ensure minimum size */
    }
    
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__cta-banner-content {
        padding: 0 15px;
    }

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

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

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

    /* Mobile image, video, button responsive overrides */
    .page-news img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-group, /* Ensure button container is responsive */
    .page-news__list-item, /* Ensure list item container is responsive */
    .page-news__article-card,
    .page-news__hero-section,
    .page-news__featured-articles,
    .page-news__category-news,
    .page-news__why-choose-us,
    .page-news__cta-banner,
    .page-news__faq-section
    {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        padding: 30px 0;
        padding-top: 10px !important;
    }
    .page-news__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-news__cta-group {
        gap: 10px;
    }
    .page-news__cta-button {
        font-size: 0.95rem;
    }
    .page-news__section-title {
        font-size: 1.5rem;
    }
    .page-news__list-item-image {
        max-width: 100%;
        height: auto;
        min-width: unset; /* Allow smaller if content requires, but still > 200px */
    }
    .page-news__article-title {
        font-size: 1.2rem;
    }
    .page-news__list-item-title {
        font-size: 1.1rem;
    }
}