/* style/news.css */
:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --background-color: #140C0C;
  --card-bg-color: #2A1212;
  --text-main-color: #FFF1E8;
  --gold-color: #F3C54D;
  --border-color: #6A1E1E;
  --deep-red-color: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
}

.page-news__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  background-color: var(--card-bg-color);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  position: relative;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

.page-news__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-news__latest-articles-section,
.page-news__promotions-events-section,
.page-news__faq-section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.page-news__section-title {
  font-size: 2.2em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  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-color: var(--primary-color);
  border-radius: 2px;
}

.page-news__articles-grid,
.page-news__promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

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

.page-news__article-image,
.page-news__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__article-content,
.page-news__promo-content {
  padding: 20px;
}

.page-news__article-title,
.page-news__promo-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__article-title a:hover,
.page-news__promo-title a:hover {
  color: var(--secondary-color);
}

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

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

.page-news__read-more-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-button:hover {
  background-color: var(--deep-red-color);
}

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

.page-news__view-all-wrapper .page-news__cta-button {
  padding: 12px 25px;
  font-size: 1em;
}

/* FAQ Styles */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
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;
}
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(var(--primary-color), 0.1);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.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: rgba(var(--primary-color), 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* General Image Responsive Styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image,
  .page-news__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }
  .page-news__hero-content {
    padding: 25px 15px;
    transform: translateY(-15px);
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 10px;
  }
  .page-news__subtitle {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__latest-articles-section,
  .page-news__promotions-events-section,
  .page-news__faq-section {
    padding: 0 15px;
    margin-bottom: 40px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image,
  .page-news__promo-image {
    height: 200px;
  }
  .page-news__article-title,
  .page-news__promo-title {
    font-size: 1.2em;
  }
  .page-news__article-excerpt,
  .page-news__promo-description {
    font-size: 0.95em;
  }
  .page-news__read-more-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__articles-grid,
  .page-news__promotions-grid,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  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;
  }
}