/* style/news.css */

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

.page-news {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background);
}

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

/* Sections */
.page-news__hero-section,
.page-news__latest-news-section,
.page-news__featured-section,
.page-news__industry-insights,
.page-news__faq-section,
.page-news__cta-bottom {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-news__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-news__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

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

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
}

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

.page-news__text-block {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

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

.page-news__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.page-news__button-group {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

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

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

.page-news__news-card:hover {
    transform: translateY(-5px);
}

.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.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

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

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

.page-news__read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

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

/* Featured Section */
.page-news__featured-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-news__featured-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.page-news__featured-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-news__featured-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Industry Insights */
.page-news__insights-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-news__insights-text {
    width: 50%;
}

.page-news__insights-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    user-select: none;
    list-style: none; /* For details/summary */
}

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

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

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

.page-news__faq-item[open] .page-news__faq-question {
    background-color: var(--color-deep-green);
}

/* Dark and Light Background Classes */
.page-news__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__featured-section,
    .page-news__industry-insights,
    .page-news__faq-section,
    .page-news__cta-bottom {
        padding: 40px 0;
    }

    .page-news__featured-content,
    .page-news__insights-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-news__featured-image,
    .page-news__featured-text,
    .page-news__insights-image,
    .page-news__insights-text {
        width: 100%;
    }

    .page-news__insights-content .page-news__insights-image {
        order: -1; /* Image above text for insights on mobile */
    }

    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-news__container {
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile container responsiveness */
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__featured-section,
    .page-news__industry-insights,
    .page-news__faq-section,
    .page-news__cta-bottom,
    .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;
    }

    .page-news__hero-section {
        padding-top: 10px !important;
    }

    /* Mobile button responsiveness */
    .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__button-group {
        flex-direction: column;
        gap: 10px;
    }

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

    .page-news__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .page-news__news-card {
        margin-bottom: 20px;
    }

    .page-news__card-image {
        height: 180px;
    }

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

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