/* style/news.css */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-news__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-news__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

/* Latest Articles Section */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

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

.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(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-news__article-summary {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

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

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

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(17, 168, 78, 0.4);
}

.page-news__view-all-button:hover {
  background: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.6);
}

/* Promotions Section */
.page-news__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

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

.page-news__promotion-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.page-news__promotion-image {
  width: 100%;
  height: 338px; /* 16:9 aspect ratio for 600x338 */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__promotion-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin: 0 25px 15px 25px;
  line-height: 1.3;
}

.page-news__promotion-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin: 0 25px 25px 25px;
  line-height: 1.6;
}

.page-news__promotion-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(42, 209, 111, 0.4);
  margin-left: 25px;
}

.page-news__promotion-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.6);
}

/* Game Updates Section */
.page-news__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__game-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  padding-bottom: 20px;
}

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

.page-news__game-image {
  width: 100%;
  height: 250px; /* Example height for game cards */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__game-title {
  font-size: 1.3em;
  margin: 0 25px 10px 25px;
  line-height: 1.4;
}

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

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

.page-news__game-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin: 0 25px 20px 25px;
  line-height: 1.6;
}

.page-news__game-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  margin-left: 25px;
}

.page-news__game-button:hover {
  background: var(--secondary-color);
}

/* Security Section */
.page-news__security-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-news__security-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 1.1em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__security-item::before {
  content: '✅';
  margin-right: 15px;
  font-size: 1.2em;
  color: var(--glow-color);
}

.page-news__security-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
  margin-top: 20px;
}

.page-news__security-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

/* How-To Section */
.page-news__how-to-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__how-to-item {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-news__how-to-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__how-to-title a:hover {
  color: var(--gold-color);
}

.page-news__how-to-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}

.page-news__how-to-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.page-news__how-to-button:hover {
  background: var(--secondary-color);
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-news__faq-question:hover {
  background-color: rgba(10, 75, 44, 0.7);
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold-color);
  line-height: 1;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
  background-color: var(--card-bg);
}

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

/* CTA Section */
.page-news__cta-section {
  padding-bottom: 80px;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px 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: #ffffff;
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

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

.page-news__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-news__hero-description {
    font-size: 1.1em;
  }

  .page-news__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }

  .page-news__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 0;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-image-wrapper {
    margin-bottom: 30px;
    max-height: 400px;
  }

  .page-news__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__articles-grid,
  .page-news__promotion-cards,
  .page-news__games-grid,
  .page-news__how-to-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-image,
  .page-news__promotion-image,
  .page-news__game-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-news__article-content,
  .page-news__promotion-card .page-news__promotion-title,
  .page-news__promotion-card .page-news__promotion-text,
  .page-news__promotion-card .page-news__promotion-button,
  .page-news__game-card .page-news__game-title,
  .page-news__game-card .page-news__game-description,
  .page-news__game-card .page-news__game-button,
  .page-news__how-to-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__promotion-card .page-news__promotion-button,
  .page-news__game-card .page-news__game-button {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
    text-align: center;
  }

  .page-news__security-list {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-news__security-item {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-news__faq-answer {
    padding: 15px 20px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: calc(100% - 30px) !important;
    margin-left: 15px;
    margin-right: 15px;
    padding: 14px 20px;
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-articles,
  .page-news__promotions-section,
  .page-news__game-updates-section,
  .page-news__security-section,
  .page-news__how-to-section,
  .page-news__faq-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-news__hero-section {
    padding-top: 10px !important;
  }

  .page-news__hero-image-wrapper {
    width: 100%;
    margin-left: -15px;
    margin-right: -15px;
  }
}