/* style/news.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

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

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

.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px);
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #007bff);
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    color: var(--light-text-color);
}

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

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

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-news__btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.page-news__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

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

.page-news__section {
    padding: 60px 0;
}

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

.page-news__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.page-news__light-bg {
    background-color: var(--background-color);
    color: var(--dark-text-color);
}

.page-news__dark-bg {
    background-color: #1a1a1a; /* Darker background for contrast with body */
    color: var(--light-text-color);
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__text-block {
    color: var(--light-text-color);
}

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

.page-news__card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--dark-text-color);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.page-news__card--dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
}

.page-news__card--dark .page-news__card-title a,
.page-news__card--dark .page-news__card-link {
    color: var(--primary-color);
}

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

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

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

.page-news__card-title a:hover {
    color: #1a8cc7;
}

.page-news__card-description {
    font-size: 1em;
    margin: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-news__card-link {
    display: inline-block;
    margin: 0 20px 20px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-news__feature-item,
.page-news__info-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--dark-text-color);
}

.page-news__info-item.page-news__card--dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
}

.page-news__feature-title,
.page-news__info-title {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-news__feature-title a,
.page-news__info-title a {
    text-decoration: none;
    color: var(--primary-color);
}

.page-news__feature-item.page-news__card--dark .page-news__feature-title a,
.page-news__info-item.page-news__card--dark .page-news__info-title a {
    color: var(--primary-color);
}

.page-news__info-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

.page-news__faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    color: var(--dark-text-color);
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    padding-right: 10px;
    list-style: none;
}

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

.page-news__faq-qtext {
    flex-grow: 1;
    color: var(--dark-text-color);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
}

.page-news__faq-answer {
    padding-top: 15px;
    font-size: 1.1em;
    color: #555555;
}

.page-news__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-news__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
}

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

    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 450px;
    }

    .page-news__hero-title {
        font-size: 2.5em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__section {
        padding: 40px 0;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__articles-grid,
    .page-news__feature-grid,
    .page-news__info-grid {
        grid-template-columns: 1fr;
    }

    .page-news__card,
    .page-news__feature-item,
    .page-news__info-item {
        padding: 20px;
    }

    .page-news__card-title {
        font-size: 1.3em;
    }

    .page-news__feature-title,
    .page-news__info-title {
        font-size: 1.4em;
    }

    .page-news__faq-item summary {
        font-size: 1.1em;
    }

    .page-news__faq-answer {
        font-size: 1em;
    }

    .page-news__cta-section {
        padding: 60px 0;
    }

    .page-news__cta-title {
        font-size: 2em;
    }

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

    /* Mobile image responsive adaptation */
    .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__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Button responsive adaptation */
    .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__hero-cta-buttons,
    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        align-items: center;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

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