/* style/news.css */

:root {
    --primary-color: #F2C14E; /* Main */
    --secondary-color: #FFD36B; /* Auxiliary */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --site-bg: #0A0A0A; /* Body background from shared.css is var(--bg-color), assuming it aligns with this dark background */
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

.page-news {
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif; /* Example font */
    line-height: 1.6;
    background-color: var(--site-bg); /* Ensure main content area has a background, though body handles the overall */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    box-sizing: border-box;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper is responsive */
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any background elements */
    padding: 0 15px; /* Add horizontal padding for smaller screens */
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color); /* Use secondary color for title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow */
}

.page-news__description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
}

/* CTA Button Styles */
.page-news__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on dark/gradient button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: #0A0A0A; /* Dark text on primary color hover */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* General Section Styles */
.page-news__section {
    padding: 60px 20px;
    box-sizing: border-box;
    width: 100%; /* Ensure sections take full width */
    max-width: 100%;
}

.page-news__dark-section {
    background-color: var(--card-bg); /* Darker background for some sections */
    color: var(--text-main);
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for content */
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-news__section-description,
.page-news__section-footer-text {
    font-size: 1.1em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Grid */
.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__article-card {
    background-color: var(--card-bg);
    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;
    color: var(--text-main); /* Ensure text is visible on card background */
    border: 1px solid var(--border-color); /* Add border for definition */
}

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

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Make the entire card clickable */
}

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

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

.page-news__card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__card-meta {
    font-size: 0.9em;
    color: rgba(255, 246, 214, 0.7);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.5;
}

.page-news__view-all {
    text-align: center;
}

/* About Us Summary */
.page-news__about-us-summary {
    background-color: var(--primary-color); /* Use primary color for a different section */
    color: #0A0A0A; /* Dark text on primary color background */
    text-align: center;
}

.page-news__about-us-summary .page-news__section-title {
    color: #0A0A0A; /* Dark title on primary color background */
}

.page-news__description-long {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--site-bg);
}

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

.page-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--secondary-color);
    background-color: #1a1a1a; /* Slightly lighter than card-bg for contrast */
    transition: background-color 0.3s ease;
}

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

.page-news__faq-qtext {
    flex-grow: 1;
}

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

/* Details tag specific styling for FAQ */
.page-news__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* For Webkit browsers */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-news__section {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

    /* Button responsiveness */
    .page-news__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-news__section-description,
    .page-news__section-footer-text {
        font-size: 1em;
    }

    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsiveness */
    .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-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure containers hide overflow */
    }

    /* Button containers for mobile */
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container,
    .page-news__view-all {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important; /* Allow multiple buttons to wrap */
      gap: 10px; /* Space between wrapped buttons */
      overflow: hidden !important;
    }
    .page-news__cta-buttons {
      display: flex;
      flex-direction: column; /* Stack buttons vertically on mobile */
    }
}