/* style/news.css */

/* Base styles for the page content wrapper */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Use specified text color */
    background-color: #0A0A0A; /* Use specified background color */
    padding-bottom: 50px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-news__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    margin-bottom: 40px;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for the hero image area */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-news__hero-content {
    padding: 20px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, #0A0A0A 70%); /* Fade from transparent to dark background */
    margin-top: -150px; /* Overlap with image for smooth transition */
    position: relative;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: #FFF6D6;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__intro-text {
    font-size: 1.1rem;
    color: #FFF6D6;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* News Grid Section */
.page-news__news-grid-section {
    padding: 40px 0;
}

.page-news__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #F2C14E;
    border-radius: 2px;
}

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

.page-news__news-card {
    background: #111111; /* Specified card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12; /* Specified border color */
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px #FFD36B; /* Specified glow color */
}

.page-news__card-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-news__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
    transform: scale(1.05);
}

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

.page-news__card-date {
    display: block;
    font-size: 0.9em;
    color: #999;
    margin-bottom: 10px;
}

.page-news__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__card-title .page-news__card-link {
    color: #FFF6D6; /* Ensure link text is light */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title .page-news__card-link:hover {
    color: #F2C14E;
}

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

.page-news__read-more-btn {
    display: inline-block;
    background: #F2C14E;
    color: #0A0A0A; /* Dark text for primary buttons */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-btn:hover {
    background: #FFD36B;
    transform: translateY(-2px);
}

.page-news__view-all-btn-container {
    text-align: center;
    margin-top: 40px;
}

.page-news__view-all-btn {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Specified button gradient */
    color: #ffffff; /* White text for gradient button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-news__cta-section {
    background: #111111;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #3A2A12;
    border-bottom: 1px solid #3A2A12;
    margin-top: 40px;
}

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

.page-news__cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #FFF6D6;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-news__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Specified button gradient */
    color: #ffffff; /* White text for gradient button */
    padding: 18px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px #FFD36B;
}

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

.page-news__faq-list {
    margin-top: 30px;
}

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #3A2A12;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFF6D6;
    font-weight: 600;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
    display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
    background: rgba(242, 193, 78, 0.1); /* Slightly lighter hover */
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
}
.page-news__faq-toggle {
    font-size: 28px; /* Larger for better visibility */
    font-weight: bold;
    color: #F2C14E;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
    padding: 0 25px 20px;
    background: rgba(17, 17, 17, 0.8); /* Slightly transparent dark */
    border-top: 1px solid #3A2A12;
    border-radius: 0 0 10px 10px;
    color: #CCC;
}
.page-news__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

/* --- Responsive Styles --- */

/* Mobile Landscape & Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    /* Global Content Area */
    .page-news__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important;
        margin-bottom: 20px;
    }
    .page-news__hero-image-wrapper {
        max-height: 400px;
    }
    .page-news__hero-content {
        margin-top: -100px;
        padding: 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-news__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* News Grid Section */
    .page-news__news-grid-section {
        padding: 20px 0;
    }
    .page-news__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__card-image-wrapper {
        height: 180px;
    }
    .page-news__card-content {
        padding: 15px;
    }
    .page-news__card-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .page-news__card-description {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    .page-news__read-more-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .page-news__view-all-btn-container {
        margin-top: 30px;
    }
    .page-news__view-all-btn {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* CTA Section */
    .page-news__cta-section {
        padding: 40px 0;
        margin-top: 20px;
    }
    .page-news__cta-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-news__cta-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    .page-news__faq-section {
        padding: 40px 0;
    }
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-qtext {
        font-size: 1em;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 20px 15px;
    }
    .page-news__faq-answer p {
        padding-top: 10px;
        font-size: 0.95em;
    }

    /* Universal Image and Container Responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding is handled by .page-news__container */
    }
    
    /* Button specific responsive styles for multiple buttons */
    .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; /* Spacing between buttons if they wrap */
    }
    .page-news__cta-buttons {
      display: flex;
      flex-direction: column; /* Stack buttons vertically on mobile */
      align-items: center; /* Center stacked buttons */
    }
}