/* style/news.css */

/* Base Styles for .page-news (inherits from body via shared.css) */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__main-title {
    font-size: 3.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-news__text-block {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ffffff; /* Default text color for general blocks */
}

.page-news__text-block--center {
    text-align: center;
}

.page-news__text-link {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
    font-weight: bold;
}

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

/* Color Contrast Enforcement */
.page-news__dark-bg {
    background-color: #1a1a1a; /* Explicit dark background if needed, otherwise transparent for body */
    color: #ffffff;
}

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

.page-news__light-bg .page-news__section-title {
    color: #26A9E0; /* Brand color */
}

.page-news__light-bg .page-news__text-block,
.page-news__light-bg .page-news__description,
.page-news__light-bg .page-news__list-item,
.page-news__light-bg .page-news__faq-qtext {
    color: #333333;
}

.page-news__light-bg .page-news__text-link {
    color: #26A9E0;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #1a1a1a 0%, #26A9E0 100%); /* Blend dark background with brand color */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-news__hero-section .page-news__container {
    z-index: 1;
}

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

.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;
    font-size: 1.1em;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

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

.page-news__intro-section .page-news__container {
    max-width: 1000px;
}

.page-news__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-news__content-wrapper .page-news__text-block {
    flex: 1;
    color: #333333;
}

.page-news__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

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

.page-news__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-news__card:hover {
    transform: translateY(-5px);
}

.page-news__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsive */
    display: block;
}

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

.page-news__card-title a {
    color: #26A9E0; /* Brand color for card titles */
    text-decoration: none;
}

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

.page-news__card-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #f0f0f0;
}

.page-news__card-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push link to bottom */
}

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

/* Why Us Section */
.page-news__why-us-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
    transition: transform 0.3s ease;
}

.page-news__feature-item:hover {
    transform: translateY(-5px);
}

.page-news__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsive */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-news__feature-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-news__feature-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #333333;
}

/* Call to Action Section */
.page-news__call-to-action {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0 0%, #1a1a1a 100%); /* Brand color blend */
}

.page-news__list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-news__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #ffffff;
}

.page-news__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-size: 1.2em;
}

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

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f9f9f9;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #f0f0f0;
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: #333333; /* Ensure contrast on light background */
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−'; /* Changed by JS */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

.page-news__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
    color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__content-wrapper {
        flex-direction: column;
    }
    .page-news__image-block {
        margin-top: 30px;
    }
    .page-news__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__grid--3-cols {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        min-height: 400px;
    }

    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__description {
        font-size: 1em;
    }
    .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__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-news__intro-section,
    .page-news__categories-section,
    .page-news__why-us-section,
    .page-news__call-to-action,
    .page-news__faq-section,
    .page-news__conclusion-section {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px !important; /* Ensure padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsive for mobile */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__image-block,
    .page-news__card,
    .page-news__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Content area images - enforce min-width 200px rule */
    /* This rule applies to any img within .page-news */
    .page-news img:not(.page-news__feature-icon) { /* Exclude small icons if any, though none should be <200px */
      min-width: 200px !important; /* Enforce global minimum size */
      min-height: 200px !important; /* Enforce global minimum size */
    }

    /* FAQ */
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px;
    }

    .page-news__list {
        padding: 0 15px;
    }
    .page-news__list-item {
        font-size: 1em;
    }
}