/* style/news.css */
/* Base styles for page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Main text color for dark background */
    background-color: #08160F; /* Overall page background */
    line-height: 1.6;
}

/* Headings */
.page-news h1,
.page-news h2,
.page-news h3,
.page-news h4,
.page-news h5,
.page-news h6 {
    color: #F2FFF6; /* Main text color for headings */
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    color: #F2C14E; /* Gold for main title */
}

.page-news__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: #F2FFF6;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #11A84E, #22C768);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.page-news__section-title--gold {
    color: #F2C14E; /* Gold for specific section titles */
}

.page-news__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #F2C14E;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Text elements */
.page-news p {
    margin-bottom: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

.page-news__text-block {
    margin-bottom: 1.5rem;
}

/* Links */
.page-news a {
    color: #2AD16F; /* Green for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news a:hover {
    color: #57E38D; /* Glow color on hover */
    text-decoration: underline;
}

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

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: none;
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-news__btn-primary--gold {
    background: linear-gradient(180deg, #F2C14E 0%, #D4A93D 100%);
    color: #11271B;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-news__btn-primary--gold:hover {
    background: linear-gradient(180deg, #D4A93D 0%, #F2C14E 100%);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #2AD16F;
    border: 2px solid #2AD16F;
}

.page-news__btn-secondary:hover {
    background-color: #11A84E;
    color: #F2FFF6;
}

/* Layout sections */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.page-news__hero-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for text block */
    border-radius: 10px;
}

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

.page-news__cta-center {
    text-align: center;
    margin-top: 40px;
}

.page-news__content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #08160F; /* Default for content sections */
}

.page-news__dark-bg {
    background-color: #11271B; /* Card BG color for dark background sections */
}

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

.page-news__article-card {
    background-color: #11271B; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px 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 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #F2FFF6;
}

.page-news__article-title a {
    color: inherit; /* Inherit color from parent */
}

.page-news__article-title a:hover {
    color: #57E38D; /* Glow color on hover */
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: #A7D9B8;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: #A7D9B8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #2AD16F;
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start;
}

.page-news__read-more:hover {
    text-decoration: underline;
    color: #57E38D;
}

.page-news__grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-news__grid-2col--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-news__grid-2col--reverse > *:first-child {
    order: 2; /* Reverse order for the first child */
}

.page-news__grid-2col--reverse > *:last-child {
    order: 1; /* Reverse order for the last child */
}

.page-news__image-wrapper {
    text-align: center;
}

.page-news__image-full {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-news__guide-item {
    background-color: #11271B;
    padding: 25px;
    border: 1px solid #2E7A4E;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-news__guide-item:hover {
    transform: translateY(-3px);
}

.page-news__guide-title {
    font-size: 1.2rem;
    color: #F2FFF6;
    margin-bottom: 10px;
}

.page-news__guide-title a {
    color: inherit;
}

.page-news__guide-title a:hover {
    color: #57E38D;
}

.page-news__guide-description {
    font-size: 0.95rem;
    color: #A7D9B8;
}

.page-news__cta-download {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #11271B;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #2E7A4E;
}

.page-news__cta-download-content {
    flex: 1;
    text-align: left;
}

.page-news__cta-download-image {
    flex: 0 0 300px;
    text-align: center;
}

.page-news__cta-download-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* FAQ Section */
.page-news__faq-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 60px 20px;
}

.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #F2FFF6;
    background-color: #0A4B2C; /* Deep Green for summary background */
    user-select: none;
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color for toggle icon */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 500px; /* Sufficient height for answer */
    padding-top: 15px;
}

/* Conclusion Section */
.page-news__conclusion-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 60px 20px;
    text-align: center;
    background-color: #11271B;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #2E7A4E;
}

/* Images and Videos Responsive */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-news__hero-content-wrapper {
        padding: 15px;
    }

    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-news__content-section {
        padding: 40px 15px;
    }

    .page-news__articles-grid,
    .page-news__guides-grid {
        gap: 20px;
    }

    .page-news__grid-2col {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }

    .page-news__grid-2col--reverse > *:first-child {
        order: unset; /* Reset order for stacking */
    }

    .page-news__grid-2col--reverse > *:last-child {
        order: unset; /* Reset order for stacking */
    }

    .page-news__cta-download {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

    .page-news__cta-download-content {
        text-align: center;
    }

    .page-news__cta-download-image {
        flex: 0 0 auto;
        width: 250px;
        margin-top: 20px;
    }

    .page-news__faq-section,
    .page-news__conclusion-section {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }

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

    .page-news__description {
        font-size: 0.95rem;
    }

    .page-news__section-title {
        font-size: clamp(1.6rem, 5.5vw, 2.2rem);
        margin-bottom: 2rem;
    }

    .page-news__sub-title {
        font-size: 1.3rem;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        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;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__content-section {
        padding: 30px 10px;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 25px;
    }

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

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

    .page-news__guides-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__cta-download {
        margin: 40px auto;
        padding: 25px 10px;
        flex-direction: column;
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__cta-download-image {
        width: 200px;
    }

    .page-news__faq-section,
    .page-news__conclusion-section {
        padding: 30px 10px;
        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__hero-image-wrapper,
    .page-news__cta-download-image,
    .page-news__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-news__hero-content-wrapper {
        padding: 10px;
    }
    .page-news__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-news__section-title {
        font-size: clamp(1.4rem, 6.5vw, 2rem);
    }
}