/* style/news.css */

/* General styles for the page-news scope */
.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__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: #08160F; /* Background */
}

.page-news__main-title {
    font-size: 48px;
    font-weight: bold;
    color: #F2C14E; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__intro-text {
    font-size: 18px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    transform: translateY(-2px);
}

.page-news__latest-news-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

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

.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;
    display: flex;
    flex-direction: column;
}

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

.page-news__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #2E7A4E; /* Border */
}

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

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

.page-news__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

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

.page-news__card-title a:hover {
    color: #57E38D; /* Glow */
}

.page-news__card-summary {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    align-self: flex-start; /* Align to start of flex container */
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
    text-decoration: none;
}

.page-news__read-more-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.page-news__promotional-cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, #11A84E 0%, #22C768 100%); /* Main & Auxiliary colors */
    color: #F2FFF6; /* Text Main */
}

.page-news__promotional-cta-section .page-news__section-title {
    color: #F2FFF6; /* Text Main */
}

.page-news__promotional-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #F2FFF6; /* Text Main */
}

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

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #1e3a2a; /* Darker Divider for hover */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 5px 5px;
  color: #A7D9B8; /* Text Secondary */
}
details.page-news__faq-item .page-news__faq-answer p {
    margin-bottom: 0;
}


/* --- Responsive Styles --- */

/* Mobile adaptation for all elements */
@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

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

    .page-news__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__read-more-btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .page-news__cta-buttons,
    .page-news__view-all-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news__news-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 20px;
        padding: 0 15px;
    }

    .page-news__news-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__card-image {
        height: 180px; /* Adjust image height for mobile */
        max-width: 100% !important;
        width: 100% !important;
    }

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

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

    .page-news__promotional-cta-section {
        padding: 50px 0;
    }

    .page-news__promotional-text {
        font-size: 16px;
        padding: 0 15px;
    }

    /* FAQ Section Mobile */
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 16px; }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }

    /* General image responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}