/* style/news.css */
:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --text-main-color: #FFF5E1;
    --card-bg-color: #D32F2F;
    --background-section-color: #B71C1C;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-section-color);
    line-height: 1.6;
}

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

/* Hero Banner Section */
.page-news__hero-banner {
    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(--deep-red-color);
}

.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 full width for flex item */
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-news__main-title {
    color: var(--gold-color);
    font-size: clamp(2em, 4vw, 3em);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__intro-text {
    color: var(--text-main-color);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #000000; /* Black text for gold button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    background-color: var(--background-section-color);
    padding: 60px 0;
}

.page-news__section-title {
    color: var(--gold-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__article-card {
    background-color: var(--card-bg-color);
    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 var(--border-color);
}

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

.page-news__article-image-wrapper {
    height: 220px;
    overflow: hidden;
}

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

.page-news__article-card:hover .page-news__article-image-wrapper img {
    transform: scale(1.05);
}

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-news__article-meta {
    font-size: 0.9em;
    color: var(--text-main-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

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

.page-news__read-more {
    display: inline-block;
    color: var(--glow-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--glow-color);
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

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

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

.page-news__view-all-button {
    padding: 12px 30px;
    font-size: 1.1em;
    background: var(--button-gradient);
    color: #000000;
}

.page-news__view-all-button:hover {
    opacity: 0.9;
}

/* Promotion CTA Section */
.page-news__promotion-cta-section {
    background-color: var(--deep-red-color);
    padding: 80px 0;
    text-align: center;
}

.page-news__promotion-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__promotion-title {
    color: var(--gold-color);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold-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: var(--primary-color);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-red-color);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.5em);
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-banner {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-news__hero-image img {
        border-radius: 4px;
    }
    .page-news__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 10px;
    }
    .page-news__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-card {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__promotion-cta-section {
        padding: 50px 15px;
    }
    .page-news__promotion-title {
        font-size: 1.8em;
    }
    .page-news__promotion-description {
        font-size: 1em;
    }
    .page-news__faq-section {
        padding: 40px 0;
    }
    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; }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-news__view-all-button-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.2em, 8vw, 1.8em);
    }
    .page-news__promotion-title {
        font-size: 1.5em;
    }
    .page-news__cta-button {
        font-size: 15px;
    }
    .page-news__article-title {
        font-size: 1.1em;
    }
    .page-news__faq-qtext {
        font-size: 0.95em;
    }
}