/* style/news.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-dark: #08160F;
    --card-background: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--background-dark);
}

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

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background effect */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    margin-top: 80px;
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-news__description {
    font-size: 1.15em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.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: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

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

.page-news__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

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

.page-news__introduction-section,
.page-news__benefits-section,
.page-news__faq-section {
    padding: 60px 0;
    background-color: #0d1e16; /* Slightly lighter dark green */
    color: var(--text-main);
}

.page-news__highlights-section,
.page-news__guide-section,
.page-news__conclusion-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    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-color: var(--gold-color);
    border-radius: 2px;
}

.page-news__section-title--light {
    color: var(--text-main);
}

.page-news__section-title--light::after {
    background-color: var(--gold-color);
}

.page-news__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-news__text-block--light {
    color: var(--text-main);
}

.page-news__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-news__text-block a:hover {
    text-decoration: underline;
}

.page-news__highlight-text {
    color: var(--gold-color);
    font-weight: 700;
}

.page-news__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.page-news__list-item {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--text-secondary);
}

.page-news__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

.page-news__list--light .page-news__list-item {
    color: var(--text-main);
}

.page-news__categories-section {
    padding: 60px 0;
    background-color: var(--card-background);
    color: var(--text-main);
}

.page-news__category {
    margin-bottom: 60px;
}

.page-news__category-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-news__category-description {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.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(--background-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px 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 25px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-news__card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--primary-color);
}

.page-news__card-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: auto; /* Pushes content to top */
}

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

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: var(--background-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-news__faq-item summary {
    cursor: pointer;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
    margin-top: -1px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__category-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__hero-content {
        margin-top: 40px;
        padding: 15px;
    }
    .page-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__introduction-section,
    .page-news__highlights-section,
    .page-news__categories-section,
    .page-news__benefits-section,
    .page-news__guide-section,
    .page-news__faq-section,
    .page-news__conclusion-section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__category-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .page-news__category-description {
        margin-bottom: 20px;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__card-image {
        height: 180px;
    }
    .page-news__card-title {
        font-size: 1.1em;
    }
    .page-news__list-item,
    .page-news__text-block {
        font-size: 1em;
    }
    .page-news__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-news__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 1em;
    }
    
    /* Mobile image and container responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__container,
    .page-news__hero-section,
    .page-news__introduction-section,
    .page-news__highlights-section,
    .page-news__categories-section,
    .page-news__benefits-section,
    .page-news__guide-section,
    .page-news__faq-section,
    .page-news__conclusion-section,
    .page-news__category,
    .page-news__news-card,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__hero-section { /* Adjust padding for hero section on mobile */
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__view-all-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__category-title {
        font-size: 1.3em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 10px 15px;
        font-size: 0.95em;
    }
}