/* style/news.css */

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

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--g7bet-text-main); /* Main text color for dark background */
  background-color: var(--g7bet-background); /* Body background handled by shared, this is for main content area */
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: var(--g7bet-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-news__intro-text {
  font-size: 1.1em;
  color: var(--g7bet-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: var(--g7bet-button-gradient);
  color: #ffffff; /* White text for gradient button */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-news__btn-secondary:hover {
  background-color: var(--g7bet-glow-color);
  color: var(--g7bet-background);
  transform: translateY(-3px);
}

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

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

.page-news__section-title {
  font-size: 2.5em;
  color: var(--g7bet-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

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

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

.page-news__card {
  background-color: var(--g7bet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--g7bet-border-color);
  display: flex;
  flex-direction: column;
  color: var(--g7bet-text-main);
}

.page-news__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__article-image,
.page-news__promotion-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-news__article-content,
.page-news__promotion-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title,
.page-news__promotion-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

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

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

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

.page-news__article-excerpt,
.page-news__promotion-excerpt {
  font-size: 1em;
  color: var(--g7bet-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--g7bet-deep-green);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background-color: var(--g7bet-primary-color);
}

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

.page-news__faq-section {
  padding: 60px 20px;
  background-color: var(--g7bet-background);
  color: var(--g7bet-text-main);
}

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

.page-news__faq-item {
  background-color: var(--g7bet-card-bg);
  border: 1px solid var(--g7bet-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--g7bet-text-main);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--g7bet-deep-green);
  color: var(--g7bet-text-main);
  transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
  background-color: var(--g7bet-primary-color);
}

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

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

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

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

.page-news__faq-answer p {
  margin-bottom: 10px;
  color: var(--g7bet-text-secondary);
}

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

.page-news__cta-bottom {
  background-color: var(--g7bet-deep-green);
  text-align: center;
  padding: 60px 20px;
  margin-top: 50px;
  border-top: 1px solid var(--g7bet-border-color);
}

.page-news__cta-title {
  font-size: 2em;
  color: var(--g7bet-text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-title,
  .page-news__promotion-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-news__intro-text {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__article-grid,
  .page-news__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card,
  .page-news__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__article-image,
  .page-news__promotion-image,
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-title,
  .page-news__promotion-title {
    font-size: 1.2em;
  }
  .page-news__article-excerpt,
  .page-news__promotion-excerpt {
    font-size: 0.95em;
  }
  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-news__view-all-button-wrapper {
    margin-top: 30px;
  }
  .page-news__faq-section {
    padding: 40px 15px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-news__cta-bottom {
    padding: 40px 15px;
    margin-top: 30px;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-news__main-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }
  .page-news__intro-text {
    font-size: 0.95em;
  }
  .page-news__container {
    padding: 20px 10px;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__section-description {
    font-size: 0.9em;
  }
  .page-news__article-title,
  .page-news__promotion-title {
    font-size: 1.1em;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
  .page-news__faq-answer {
    font-size: 0.9em;
  }
  .page-news__cta-title {
    font-size: 1.6em;
  }
  .page-news__cta-description {
    font-size: 0.95em;
  }
}