.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color from custom colors */
    background-color: var(--background, #08160F); /* Default background color from custom colors */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 20px 0 60px; /* Small top padding, larger bottom padding */
    background-color: var(--background, #08160F);
    overflow: hidden; /* Ensure nothing overflows */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-news__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--text-main, #F2FFF6);
}

.page-news__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
    letter-spacing: 0.5px;
}

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

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border, #2E7A4E);
}

.page-news__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

.page-news__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary, #A7D9B8);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 80px 0;
    background-color: var(--card-bg, #11271B); /* Dark background for this section */
    color: var(--text-main, #F2FFF6);
}

.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(--background, #08160F); /* Slightly darker card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    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 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
    transform: scale(1.05);
}

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

.page-news__article-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-news__article-title a:hover {
    color: var(--glow, #57E38D); /* Highlight on hover */
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-block;
    color: var(--glow, #57E38D);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

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

/* Featured Guides Section */
.page-news__featured-guides-section {
    padding: 80px 0;
    background-color: var(--background, #08160F);
    color: var(--text-main, #F2FFF6);
}

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

.page-news__guide-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-news__guide-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-news__guide-image {
    width: 100%;
    height: 300px; /* Fixed height for guide images */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-news__guide-card:hover .page-news__guide-image {
    transform: scale(1.05);
}

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

.page-news__guide-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-news__guide-title a:hover {
    color: var(--glow, #57E38D);
}

.page-news__guide-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* CTA Banner Section */
.page-news__cta-banner-section {
    padding: 60px 0;
    background-color: var(--deep-green, #0A4B2C); /* Using Deep Green from custom colors */
    color: var(--text-main, #F2FFF6);
    text-align: center;
}

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

.page-news__cta-banner-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-news__cta-banner-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--background, #08160F);
    color: var(--text-main, #F2FFF6);
}

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

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

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
}

.page-news__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--glow, #57E38D);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

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

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-news__faq-answer a {
    color: var(--glow, #57E38D);
    text-decoration: underline;
}

.page-news__faq-answer a:hover {
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    /* General containers for mobile */
    .page-news__container,
    .page-news__hero-content,
    .page-news__cta-banner-content,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-news__hero-section {
        padding: 10px 0 40px; /* Adjust padding for mobile */
    }

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

    .page-news__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }

    .page-news__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-news__latest-articles-section,
    .page-news__featured-guides-section,
    .page-news__cta-banner-section,
    .page-news__faq-section {
        padding: 50px 0;
    }

    .page-news__articles-grid,
    .page-news__guides-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 20px;
    }

    .page-news__article-image,
    .page-news__guide-image {
        height: 180px; /* Adjust image height for mobile cards */
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }

    .page-news__article-card,
    .page-news__guide-card {
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .page-news__article-title,
    .page-news__guide-title {
        font-size: 1.2rem;
    }

    .page-news__article-excerpt,
    .page-news__guide-excerpt {
        font-size: 0.95rem;
    }

    .page-news__cta-banner-title {
        font-size: 1.8rem;
    }

    .page-news__cta-banner-description {
        font-size: 1rem;
    }

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

    .page-news__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Ensure all images and videos are responsive */
    .page-news img,
    .page-news video {
        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__guide-image-wrapper,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}