/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or 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__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from parent section for contrast */
}

.page-news__link {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__link:hover {
    color: #4dbff2; /* Lighter shade on hover */
    text-decoration: underline;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted padding-top for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0, #1a7eb3); /* Gradient for dark section */
    color: #ffffff;
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

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

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-news__btn-primary {
    background: #26A9E0; /* Main brand color */
    color: #ffffff;
    border-color: #26A9E0;
    margin-right: 15px;
}

.page-news__btn-primary:hover {
    background: #1a7eb3;
    border-color: #1a7eb3;
    transform: translateY(-2px);
}

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

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

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

/* Content Sections */
.page-news__content-section {
    padding: 60px 0;
}

.page-news__dark-section {
    background-color: #000000; /* Body background color from shared.css */
    color: #ffffff;
    padding: 60px 0;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__card-title a {
    color: #ffffff; /* White titles on dark background */
}

/* Categories Section */
.page-news__categories-section {
    background-color: #000000; /* Dark section */
    color: #ffffff;
}

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

.page-news__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-news__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff; /* White title on dark card content */
}

.page-news__card-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-news__card-title a:hover {
    color: #26A9E0;
    text-decoration: underline;
}

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

/* Highlights Section */
.page-news__highlights-section {
    padding: 60px 0;
}

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

.page-news__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__feature-item .page-news__paragraph {
    color: #555555;
}

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

/* Guide Section */
.page-news__guide-section {
    padding: 60px 0;
}

.page-news__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-news__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #26A9E0;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__list-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-news__list-item .page-news__paragraph {
    color: #e0e0e0;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #000000; /* Dark section */
    color: #ffffff;
}

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

.page-news__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Change to 'x' or '-' visually */
    content: '−'; /* Change content for active state */
}

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

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-news__faq-answer .page-news__paragraph {
    font-size: 1em;
    color: #555555;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__card-title {
        font-size: 1.3em;
    }
    .page-news__feature-title {
        font-size: 1.6em;
    }
    .page-news__list-title {
        font-size: 1.4em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    /* Fixed header spacing for mobile */
    .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: 1.1em;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news__paragraph {
        font-size: 1em;
    }

    .page-news__grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .page-news__feature-item {
        padding: 25px;
    }

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

    .page-news__list-item {
        padding: 20px;
    }

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

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

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

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        padding: 15px 20px;
        font-size: 1em;
    }
    
    /* Mobile image responsive optimization */
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Content area image CSS dimensions lower bound (by scope, not class name) */
    /* All img elements within .page-news must not display smaller than 200px */
    .page-news img {
      min-width: 200px;
      min-height: 200px;
      object-fit: cover;
    }
    .page-news__card-image {
        min-width: 200px;
        min-height: 200px;
        height: 200px; /* Adjust if needed to fit min-size */
    }
    .page-news__hero-image {
        min-width: 100%; /* Hero image should always be full width */
        min-height: 200px;
    }
}

/* Ensure content area images are at least 200x200 */
.page-news__content-area img,
.page-news__categories-section img,
.page-news__highlights-section img,
.page-news__guide-section img,
.page-news__cta-section img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Color contrast emergency fix - if needed */
.page-news__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-news__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}