/* 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-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-border: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
}

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

.page-news__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--page-news-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.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;
}

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

.page-news__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: var(--page-news-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: var(--page-news-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--page-news-button-gradient);
    color: var(--page-news-text-main);
    border: none;
}

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

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

.page-news__btn-secondary:hover {
    background: var(--page-news-gold);
    color: var(--page-news-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
}

/* Featured News */
.page-news__featured-news {
    background-color: var(--page-news-card-bg);
}

.page-news__featured-card {
    display: flex;
    background-color: var(--page-news-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-news-border);
}

.page-news__featured-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
}

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

.page-news__featured-title {
    font-size: 1.8em;
    color: var(--page-news-text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__featured-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__featured-title a:hover {
    color: var(--page-news-gold);
}

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

.page-news__featured-summary {
    font-size: 1em;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
}

/* Latest News Grid */
.page-news__latest-news {
    background-color: var(--page-news-bg);
}

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

.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-news-border);
    display: flex;
    flex-direction: column;
}

.page-news__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card look */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

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

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

.page-news__article-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__article-title a:hover {
    color: var(--page-news-gold);
}

.page-news__article-meta {
    font-size: 0.85em;
    color: var(--page-news-text-secondary);
    margin-bottom: 8px;
}

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

.page-news__view-all {
    text-align: center;
}

/* Why Choose Section */
.page-news__why-choose {
    background-color: var(--page-news-deep-green);
    color: var(--page-news-text-main);
}

.page-news__dark-section .page-news__section-title {
    color: var(--page-news-gold);
}

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

.page-news__feature-item {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-news-border);
    text-align: center;
}

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

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

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--page-news-text-main);
    cursor: pointer;
    background-color: var(--page-news-card-bg);
    list-style: none;
}

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

.page-news__faq-question:hover {
    background-color: var(--page-news-deep-green);
}

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

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

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

/* CTA Section */
.page-news__cta-section {
    background-color: var(--page-news-deep-green);
    text-align: center;
}

.page-news__cta-description {
    font-size: 1.1em;
    color: var(--page-news-text-secondary);
    max-width: 800px;
    margin: 20px auto 40px auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-news__featured-card {
        flex-direction: column;
    }
    .page-news__featured-image,
    .page-news__featured-content {
        width: 100%;
    }
    .page-news__featured-image {
        height: 350px;
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-news__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }
    .page-news__hero-image-wrapper {
        max-height: 300px;
    }
    .page-news__hero-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        margin-left: 0 !important;
    }
    .page-news__btn-secondary {
        margin-top: 15px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__featured-image {
        height: 250px;
    }
    .page-news__featured-content,
    .page-news__article-content,
    .page-news__feature-item {
        padding: 20px;
    }
    .page-news__article-image {
        height: 200px;
    }
    .page-news__articles-grid {
        gap: 20px;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !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-section,
    .page-news__featured-card,
    .page-news__article-card,
    .page-news__feature-item,
    .page-news__faq-item,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-image-wrapper {
        max-height: 200px;
    }
    .page-news__hero-title {
        font-size: clamp(1.2em, 8vw, 2em);
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__featured-image {
        height: 200px;
    }
    .page-news__article-image {
        height: 180px;
    }
}