/* style/news.css */

/* Variables */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --light-text: #ffffff;
    --dark-text: #333333;
    --header-offset: 0px; /* This will be set by shared.css */
}

/* Ensure content area text color contrasts with body background */
/* Assuming body background is dark (from --background-color: #0A0A0A), use light text */
.page-news {
    color: var(--text-main-color); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
}

.page-news__section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for mobile padding */
}

.page-news__section-title {
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width for flex child */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px; /* Add padding for content on mobile */
}

.page-news__main-title {
    color: var(--secondary-color);
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-news__hero-description {
    color: var(--text-main-color);
    font-size: 1.15em;
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
    border: none; /* Ensure no default button border */
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-news__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-news__cta-button--small {
    padding: 12px 30px;
    font-size: 1em;
}

/* Latest Articles Section */
.page-news__latest-articles {
    background-color: var(--background-color);
}

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

.page-news__article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

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

.page-news__article-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: var(--primary-color);
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-news__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--secondary-color);
}

.page-news__view-all-news {
    text-align: center;
    margin-top: 50px;
}

/* Featured Promotions Section */
.page-news__featured-promotions {
    background-color: var(--primary-color); /* Use primary color as background */
    color: var(--light-text); /* Ensure light text for primary color background */
    padding-bottom: 80px;
}

.page-news__featured-promotions .page-news__section-title {
    color: var(--light-text); /* White text for dark section title */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-news__featured-promotions .page-news__section-description {
    color: var(--light-text);
}

.page-news__promotion-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.page-news__promotion-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.page-news__promotion-content {
    padding: 30px;
    text-align: center;
}

.page-news__promotion-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--background-color);
    padding-top: 40px;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  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: var(--secondary-color);
  font-weight: bold;
}
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(255, 255, 255, 0.05);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: var(--card-bg);
  border-radius: 0 0 10px 10px;
  color: var(--text-main-color);
}
.page-news__faq-answer p {
    margin: 0;
    padding-top: 10px;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-news__section-title {
        font-size: 2.5em;
    }
    .page-news__hero-image {
        margin-bottom: 20px;
    }
    .page-news__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-news__promotion-card {
        flex-direction: column;
    }
    .page-news__promotion-image {
        max-height: 300px;
    }
    .page-news__promotion-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-image {
        border-radius: 8px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }
    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news__cta-button {
        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;
    }
    /* Button container for mobile */
    .page-news__view-all-news {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__article-card {
        border-radius: 8px;
    }
    .page-news__card-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__promotion-card {
        border-radius: 8px;
    }
    .page-news__promotion-content {
        padding: 20px;
    }
    .page-news__promotion-title {
        font-size: 1.5em;
    }
    .page-news__promotion-text {
        font-size: 0.95em;
    }
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 1em; }
    .page-news__faq-toggle { font-size: 20px; width: 24px; }
    details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

    /* Mobile image responsive optimization */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-news__section,
    .page-news__article-card,
    .page-news__promotion-card,
    .page-news__faq-item,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none !important;
}

/* Text contrast for specific sections if needed (example, already handled by background color choices) */
.page-news__dark-section {
    background: var(--primary-color); /* Example: primary color is dark enough */
    color: var(--light-text);
}