/* style/news.css */

/* Custom Colors */
:root {
    --page-news-bg: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-border: #2E7A4E;
    --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-btn-text: #F2FFF6;
    --page-news-glow: #57E38D;
}

.page-news {
    background-color: var(--page-news-bg);
    color: var(--page-news-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Section Titles */
.page-news__section-title {
    font-size: clamp(2em, 5vw, 2.8em);
    font-weight: 700;
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__section-description {
    color: var(--page-news-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(2.5em, 6vw, 3.5em);
    font-weight: 800;
    color: var(--page-news-text-main);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-news__intro-text {
    font-size: 1.2em;
    color: var(--page-news-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-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

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

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

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

.page-news__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: var(--page-news-glow);
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: var(--page-news-bg);
}

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

.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

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

.page-news__article-summary {
    font-size: 0.95em;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__article-date {
    font-size: 0.85em;
    color: var(--page-news-text-secondary);
    text-align: right;
}

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

/* Why Choose Us Section */
.page-news__dark-section {
    background-color: var(--page-news-card-bg);
    padding: 80px 0;
    color: var(--page-news-text-main);
}

.page-news__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-news__feature-item {
    background-color: rgba(17, 39, 27, 0.6); /* Slightly lighter card bg for contrast */
    border: 1px solid var(--page-news-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-news__feature-title {
    font-size: 1.5em;
    color: var(--page-news-text-main);
    margin-bottom: 15px;
}

.page-news__feature-text {
    color: var(--page-news-text-secondary);
    font-size: 1em;
}

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
    background-color: var(--page-news-bg);
}

.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__category-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--page-news-text-main);
    text-align: center;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__category-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    border-radius: 8px;
}

.page-news__category-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-news-text-main);
}

/* Promo CTA Section */
.page-news__promo-cta {
    padding: 80px 0;
    background-color: var(--page-news-card-bg);
    text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--page-news-bg);
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border: 1px solid var(--page-news-border);
    border-radius: 10px;
    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.3);
}

.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(--page-news-text-main);
    cursor: pointer;
    background-color: rgba(17, 39, 27, 0.6);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

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

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

.page-news__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--page-news-text-secondary);
}

/* Contact CTA Section */
.page-news__contact-cta {
    padding: 80px 0;
    background-color: var(--page-news-bg);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__container,
    .page-news__hero-content,
    .page-news__latest-articles .page-news__container,
    .page-news__why-choose-us .page-news__container,
    .page-news__categories-section .page-news__container,
    .page-news__promo-cta .page-news__container,
    .page-news__faq-section .page-news__container,
    .page-news__contact-cta .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-news__hero-image,
    .page-news__article-thumbnail,
    .page-news__category-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news__articles-grid,
    .page-news__category-grid,
    .page-news__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__main-title {
        font-size: 2.2em;
    }

    .page-news__intro-text {
        font-size: 1em;
    }

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

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

    .page-news__article-title {
        font-size: 1.2em;
    }
    
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__why-choose-us,
    .page-news__categories-section,
    .page-news__promo-cta,
    .page-news__faq-section,
    .page-news__contact-cta {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__hero-section {
        padding: 30px 0;
        padding-top: 10px !important;
    }
}