/* style/news.css */

/* CSS Reset & Base Styles (Scoped to page-news) */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default for dark background */
    line-height: 1.6;
    background-color: var(--black-color); /* Inherit from shared.css, assuming dark */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    box-sizing: border-box;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

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

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

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

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-news__latest-news,
.page-news__security-info,
.page-news__cta-section {
    padding: 80px 0;
}

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

.page-news__dark-bg {
    background-color: var(--black-color);
    color: #FFFFFF;
}

.page-news__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 80px 0;
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__card-title a,
.page-news__dark-section .page-news__card-text {
    color: #FFFFFF;
}

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

.page-news__grid--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-news__card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-news__card-content {
    padding: 25px;
}

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

.page-news__card--dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__card--dark .page-news__card-title a {
    color: #FFFFFF;
}

.page-news__card--dark .page-news__card-title a:hover {
    color: #f0f0f0;
}

.page-news__card--dark .page-news__card-text {
    color: #f0f0f0;
}

.page-news__security-info .page-news__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-news__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    border-radius: 12px;
    object-fit: cover;
}

.page-news__security-text {
    flex: 1;
    min-width: 300px;
    color: #333333;
}

.page-news__security-text h3 {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-news__security-text p {
    margin-bottom: 15px;
}

.page-news__security-text a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-news__security-text a:hover {
    text-decoration: underline;
}

.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--black-color);
    color: #FFFFFF;
}

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

.page-news__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    padding: 15px 0;
    transition: color 0.3s ease;
}

.page-news__faq-question:hover {
    color: #26A9E0;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px;
}

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

.page-news__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

.page-news__cta-section {
    background-color: #FFFFFF;
    color: #333333;
    text-align: center;
    padding: 80px 0;
}

.page-news__cta-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-news__cta-title {
    font-size: 2.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-news__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__card-title {
        font-size: 1.3em;
    }
    .page-news__security-info .page-news__content-wrapper {
        flex-direction: column;
    }
    .page-news__security-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        min-height: 450px;
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__latest-news,
    .page-news__guides-tips,
    .page-news__security-info,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 50px 0;
    }
    .page-news__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__card-image {
        height: 200px;
    }

    /* Videos - Not present but for completeness */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons */
    .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;
        margin-bottom: 10px;
    }
    .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;
    }
    .page-news__cta-buttons {
        flex-direction: column;
    }

    .page-news__card {
        padding: 0;
    }
    .page-news__card-content {
        padding: 20px;
    }
    .page-news__security-image {
        min-width: unset;
    }
    .page-news__security-text h3 {
        font-size: 1.5em;
    }
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 10px 0;
    }
    .page-news__faq-answer {
        padding: 10px 0;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 0;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__cta-image {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
}