/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Inherited from shared, but for clarity */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-news__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-news__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* General Button Styles */
.page-news__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-news__btn-primary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-news__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-news__btn-register:hover {
    background-color: #9c0606;
    transform: translateY(-2px);
}

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__description {
    color: #333333;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-news__category-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news__card-title {
    font-size: 1.5em;
    margin: 20px 15px 10px;
    color: #017439;
}

.page-news__card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #005a2d;
}

.page-news__card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-news__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-news__card-link:hover {
    background-color: #005a2d;
}

/* Guides Section */
.page-news__guides-section {
    padding: 80px 0;
}

.page-news__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter dark background for better contrast */
    color: #ffffff;
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__description {
    color: #ffffff;
}

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

.page-news__guide-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__guide-item img {
    width: 100%;
    
    object-fit: cover;
    display: block;
}

.page-news__guide-title {
    font-size: 1.3em;
    margin: 20px 15px 10px;
    color: #ffffff;
}

.page-news__guide-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-news__guide-text {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px 20px;
}

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

/* Why Choose Section */
.page-news__why-choose-section {
    padding: 80px 0;
}

.page-news__why-choose-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 20px;
}

.page-news__why-choose-list li {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: #333333;
    line-height: 1.8;
}

.page-news__list-item-title {
    color: #017439;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(1, 116, 57, 0.8); /* Darker brand color for summary */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(1, 116, 57, 1);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−';
}

.page-news__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #cccccc;
    background-color: rgba(255, 255, 255, 0.03);
}

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-content {
    max-width: 900px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__why-choose-list {
        grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__container {
        padding: 15px;
    }
    .page-news__category-grid,
    .page-news__guide-grid {
        grid-template-columns: 1fr;
    }
    .page-news__why-choose-list {
        grid-template-columns: 1fr;
    }
    .page-news__why-choose-list li {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-secondary {
        margin-left: 0;
    }

    /* Image Responsive Adaptations */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__category-card,
    .page-news__guide-item,
    .page-news__hero-section,
    .page-news__cta-section,
    .page-news__categories-section,
    .page-news__guides-section,
    .page-news__why-choose-section,
    .page-news__faq-section,
    .page-news__cta-buttons,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Button Responsive Adaptations */
    .page-news__hero-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-register,
    .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;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__hero-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
}