/* style/news.css */

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

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--body-bg); /* Explicitly set for clarity, though body handles it */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    text-align: center;
    color: var(--text-main);
    background-color: var(--deep-green);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-news__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
    max-width: 100%;
}

.page-news__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 100%;
}

.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: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-news__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--deep-green);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--glow-color);
}

/* Section common styles */
.page-news__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 25px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-news__section-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-news__light-bg {
    background-color: var(--body-bg);
    color: var(--text-main);
}

.page-news__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

/* News Grid */
.page-news__news-grid,
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-news__news-card,
.page-news__article-card,
.page-news__promotion-card {
    background-color: var(--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;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.page-news__news-card:hover,
.page-news__article-card:hover,
.page-news__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

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

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

.page-news__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-main);
}

.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(--gold-color);
}

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

.page-news__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    align-self: flex-start;
    transition: background 0.3s ease, transform 0.3s ease;
}

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

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

/* Promotions Section */
.page-news__promotion-card {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__promotion-card .page-news__card-image {
    height: 350px; /* Larger image for promotion */
}

/* Why Choose Section */
.page-news__why-choose-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.page-news__why-choose-text {
    flex: 2;
}

.page-news__why-choose-text p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-news__features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.page-news__features-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2357E38D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
    background-size: 18px;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.5;
}

.page-news__features-list li strong {
    color: var(--gold-color);
}

.page-news__why-choose-image {
    flex: 1;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
    height: auto;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news__faq-item[open] {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: 1px solid var(--border-color);
}

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

.page-news__faq-question::marker {
    display: none;
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-news__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.4em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__why-choose-content {
        flex-direction: column;
        text-align: center;
    }
    .page-news__why-choose-image {
        max-width: 100%;
    }
    .page-news__features-list {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-news__hero-title {
        font-size: 1.8em;
        line-height: 1.3;
    }
    .page-news__hero-description {
        font-size: 0.95em;
    }
    .page-news__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }
    .page-news__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-news__news-grid,
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news__card-image {
        height: 180px;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__card-text {
        font-size: 0.9em;
    }
    .page-news__why-choose-content {
        gap: 30px;
    }
    .page-news__features-list li {
        font-size: 0.95em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 18px 20px;
    }
    .page-news__faq-answer {
        padding: 18px 20px;
        font-size: 0.95em;
    }

    /* Mobile specific overrides with !important */
    .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__hero-content,
    .page-news__why-choose-text {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-section {
        padding-top: 10px !important; /* body handles header-offset */
    }
    .page-news__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-news__view-all-button-container .page-news__btn-primary {
        width: auto !important; /* Allow button to shrink if content is short */
        max-width: 100% !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    .page-news__promotion-card .page-news__card-image {
        height: auto !important; /* Make promotion image fully responsive */
    }
}