/* style/news.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-bg-dark: #08160F;
    --color-bg-card: #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;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-bg-dark); /* Ensure body background is respected */
}

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

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

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--color-text-main);
}

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

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

.page-news__btn-primary {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

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

.page-news__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

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

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

.page-news__section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

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

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

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

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

.page-news__article-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.page-news__article-date {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    display: block;
}

.page-news__article-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1;
}

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

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

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

.page-news__read-more {
    align-self: flex-start;
}

.page-news__cta-buttons {
    text-align: center;
}

.page-news__view-all-button {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Featured News Section */
.page-news__featured-news {
    background-color: var(--color-bg-dark);
    padding: 60px 0;
    border-top: 1px solid var(--color-divider);
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.page-news__featured-main {
    background-color: var(--color-bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.page-news__featured-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

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

.page-news__featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1;
}

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

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

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

.page-news__featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.page-news__sidebar-card:hover {
    transform: translateX(5px);
}

.page-news__sidebar-image-wrapper {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.page-news__sidebar-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-news__sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

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

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

.page-news__sidebar-excerpt {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-top: 5px;
}

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

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-subtitle {
    color: var(--color-text-main);
}

.page-news__cta-section .page-news__btn-primary {
    margin-top: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--color-bg-dark);
    padding: 60px 0;
    border-top: 1px solid var(--color-divider);
}

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

.page-news__faq-item {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-item summary {
    list-style: none;
    outline: none;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

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

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

.page-news__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__featured-grid {
        grid-template-columns: 1fr;
    }
    .page-news__featured-image-wrapper {
        height: 300px;
    }
    .page-news__sidebar-card {
        flex-direction: row;
    }
    .page-news__sidebar-image-wrapper {
        width: 100px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px !important;
    }
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-news__main-title {
        font-size: 2rem;
    }
    .page-news__description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8rem;
    }
    .page-news__section-subtitle {
        font-size: 0.95em;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
    }
    .page-news__featured-image-wrapper {
        height: 250px;
    }
    .page-news__sidebar-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-news__sidebar-image-wrapper {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }
    .page-news__sidebar-content {
        padding: 15px;
        width: 100%;
    }
    .page-news__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-image-wrapper,
    .page-news__article-image-wrapper,
    .page-news__featured-image-wrapper,
    .page-news__sidebar-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-news__cta-button,
    .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,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column;
    }
}