/* style/news.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg-color: #D32F2F;
  --background-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --dark-text: #333333;
  --light-text: #ffffff;
}

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

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

.page-news__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-news__dark-section {
  background-color: var(--deep-red-color);
  color: var(--light-text);
}

.page-news__card-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-news__section-title--light {
  color: var(--light-text);
}

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

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

/* Hero Section */
.page-news__hero-section {
  padding-top: 10px; /* Assuming body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.page-news__hero-content {
  text-align: center;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: 3.2em;
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-news__cta-buttons--center {
  margin-top: 50px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  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__btn-primary {
  background: var(--button-gradient);
  color: var(--dark-text);
  border: none;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-news__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* Latest News Section */
.page-news__latest-section {
  padding: 60px 0;
}

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

.page-news__news-card {
  background-color: var(--deep-red-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

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

.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.page-news__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__card-excerpt {
  font-size: 1em;
  color: var(--text-main-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  margin-top: auto;
}

.page-news__card-link:hover {
  border-color: var(--gold-color);
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 60px 0;
}

.page-news__promo-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-news__promo-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 50%;
}

.page-news__promo-item {
  background-color: var(--background-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-main-color);
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 40px;
}

.page-news__promo-item::before {
  content: '★';
  color: var(--gold-color);
  position: absolute;
  left: 15px;
  top: 15px;
  font-size: 1.2em;
}

/* New Games Section */
.page-news__new-games-section {
  padding: 60px 0;
}

.page-news__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__game-card {
  background-color: var(--deep-red-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-news__game-card:hover {
  transform: translateY(-5px);
}

.page-news__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-news__game-content {
  padding: 15px;
  text-align: center;
}

.page-news__game-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-news__game-title a {
  color: var(--gold-color);
  text-decoration: none;
}

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

.page-news__game-description {
  font-size: 0.95em;
  color: var(--text-main-color);
  margin-bottom: 15px;
}

.page-news__game-link {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--dark-text);
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-news__game-link:hover {
  opacity: 0.9;
}

/* Platform Updates Section */
.page-news__platform-updates-section {
  padding: 60px 0;
}

.page-news__update-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-news__update-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__update-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 50%;
}

.page-news__update-item {
  background-color: var(--background-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-main-color);
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 40px;
}

.page-news__update-item::before {
  content: '✓';
  color: var(--gold-color);
  position: absolute;
  left: 15px;
  top: 15px;
  font-size: 1.2em;
}

/* Expert Tips Section */
.page-news__expert-tips-section {
  padding: 60px 0;
}

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

.page-news__tip-item {
  background-color: var(--deep-red-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__tip-item:hover {
  transform: translateY(-5px);
}

.page-news__tip-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__tip-excerpt {
  font-size: 1em;
  color: var(--text-main-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__tip-link {
  display: inline-block;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  margin-top: auto;
}

.page-news__tip-link:hover {
  border-color: var(--gold-color);
}

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

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

.page-news__faq-item {
  background-color: var(--deep-red-color);
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--primary-color);
  border-radius: 10px;
  position: relative;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-question:hover {
  background-color: var(--secondary-color);
}

.page-news__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  color: var(--text-main-color);
  background-color: var(--deep-red-color);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.page-news__faq-answer p {
  margin: 0;
}

/* General image styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__promo-content,
  .page-news__update-content {
    flex-direction: column;
  }
  .page-news__promo-image,
  .page-news__promo-list,
  .page-news__update-image,
  .page-news__update-list {
    width: 100%;
  }
  .page-news__promo-image,
  .page-news__update-image {
    margin-bottom: 30px;
  }
  .page-news__news-grid,
  .page-news__games-grid,
  .page-news__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-news__hero-container {
    padding: 0 15px;
  }

  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  /* Buttons */
  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    margin-top: 25px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Card and Container */
  .page-news__section,
  .page-news__news-card,
  .page-news__game-card,
  .page-news__tip-item,
  .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;
    overflow-x: hidden;
  }

  .page-news__news-grid,
  .page-news__games-grid,
  .page-news__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-news__game-image {
    height: 150px;
  }

  .page-news__promo-content,
  .page-news__update-content {
    gap: 20px;
  }

  .page-news__promo-item,
  .page-news__update-item {
    font-size: 1em;
    padding: 12px 15px 12px 35px;
  }

  .page-news__promo-item::before,
  .page-news__update-item::before {
    left: 10px;
    top: 12px;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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