/* style/c7clubs-news-game-updates.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #1A1A1A;
  --background-light: #f5f5f5;
  --card-background: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

.page-c7clubs-news-game-updates {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--background-dark);
}

.page-c7clubs-news-game-updates__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-c7clubs-news-game-updates__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  padding-top: 120px; /* Fixed header spacing for desktop */
}

.page-c7clubs-news-game-updates__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-c7clubs-news-game-updates__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #cccccc;
}

.page-c7clubs-news-game-updates__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-c7clubs-news-game-updates__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-c7clubs-news-game-updates__cta-button:first-of-type {
  background: var(--card-background);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-c7clubs-news-game-updates__cta-button:first-of-type:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-c7clubs-news-game-updates__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-c7clubs-news-game-updates__cta-button--primary:hover {
  background: #e6c200; /* Darken primary color */
  color: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Section Titles */
.page-c7clubs-news-game-updates__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
  font-weight: bold;
}

.page-c7clubs-news-game-updates__section-subtitle {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

/* News Grid */
.page-c7clubs-news-game-updates__latest-news-section,
.page-c7clubs-news-game-updates__game-updates-section,
.page-c7clubs-news-game-updates__industry-insights-section {
  padding: 40px 0;
  background-color: var(--background-dark);
}

.page-c7clubs-news-game-updates__news-grid,
.page-c7clubs-news-game-updates__game-updates-grid,
.page-c7clubs-news-game-updates__insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-c7clubs-news-game-updates__news-card,
.page-c7clubs-news-game-updates__game-update-card,
.page-c7clubs-news-game-updates__insight-card {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.page-c7clubs-news-game-updates__news-card:hover,
.page-c7clubs-news-game-updates__game-update-card:hover,
.page-c7clubs-news-game-updates__insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-c7clubs-news-game-updates__news-card-image,
.page-c7clubs-news-game-updates__game-update-card-image,
.page-c7clubs-news-game-updates__insight-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-c7clubs-news-game-updates__news-card-content,
.page-c7clubs-news-game-updates__game-update-card-content,
.page-c7clubs-news-game-updates__insight-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-c7clubs-news-game-updates__news-card-title,
.page-c7clubs-news-game-updates__game-update-card-title,
.page-c7clubs-news-game-updates__insight-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-c7clubs-news-game-updates__news-card-title a,
.page-c7clubs-news-game-updates__game-update-card-title a,
.page-c7clubs-news-game-updates__insight-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-c7clubs-news-game-updates__news-card-title a:hover,
.page-c7clubs-news-game-updates__game-update-card-title a:hover,
.page-c7clubs-news-game-updates__insight-card-title a:hover {
  color: #ffffff;
}

.page-c7clubs-news-game-updates__news-card-excerpt,
.page-c7clubs-news-game-updates__game-update-card-excerpt,
.page-c7clubs-news-game-updates__insight-card-excerpt {
  font-size: 0.95em;
  color: #b0b0b0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-c7clubs-news-game-updates__news-card-date,
.page-c7clubs-news-game-updates__insight-card-date {
  font-size: 0.85em;
  color: #888888;
  margin-top: auto; /* Push date to bottom */
}

.page-c7clubs-news-game-updates__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-c7clubs-news-game-updates__faq-section {
  padding: 80px 0;
  background-color: #222222;
  color: var(--text-light);
}

.page-c7clubs-news-game-updates__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-c7clubs-news-game-updates__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-c7clubs-news-game-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #333333;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid transparent;
}

.page-c7clubs-news-game-updates__faq-item.active .page-c7clubs-news-game-updates__faq-question {
  border-bottom-color: var(--border-color);
}

.page-c7clubs-news-game-updates__faq-question:hover {
  background: #444444;
}

.page-c7clubs-news-game-updates__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-c7clubs-news-game-updates__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-c7clubs-news-game-updates__faq-item.active .page-c7clubs-news-game-updates__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

.page-c7clubs-news-game-updates__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  background: #2a2a2a;
}

.page-c7clubs-news-game-updates__faq-item.active .page-c7clubs-news-game-updates__faq-answer {
  max-height: 2000px !important;
  padding: 25px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 8px 8px;
}

/* CTA Section */
.page-c7clubs-news-game-updates__cta-section {
  background: var(--primary-color);
  padding: 80px 0;
  text-align: center;
  color: var(--secondary-color);
}

.page-c7clubs-news-game-updates__cta-section .page-c7clubs-news-game-updates__section-title {
  color: var(--secondary-color);
  padding-top: 0;
}

.page-c7clubs-news-game-updates__cta-section .page-c7clubs-news-game-updates__section-subtitle {
  color: #333333;
  margin-bottom: 40px;
}

.page-c7clubs-news-game-updates__cta-section .page-c7clubs-news-game-updates__cta-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-c7clubs-news-game-updates__cta-section .page-c7clubs-news-game-updates__cta-button:hover {
  background: #000000;
  color: var(--primary-color);
}

/* General image styling for responsiveness */
.page-c7clubs-news-game-updates img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-c7clubs-news-game-updates__hero-title {
    font-size: 2.8em;
  }
  .page-c7clubs-news-game-updates__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-c7clubs-news-game-updates__hero-section {
    padding: 80px 0 40px; /* Mobile padding for hero */
    padding-top: 100px !important; /* Fixed header spacing for mobile */
  }

  .page-c7clubs-news-game-updates__hero-title {
    font-size: 2.2em;
  }

  .page-c7clubs-news-game-updates__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-c7clubs-news-game-updates__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-c7clubs-news-game-updates__cta-button {
    width: 100%;
    max-width: 100% !important; /* Ensure buttons fit screen */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-c7clubs-news-game-updates__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-c7clubs-news-game-updates__section-subtitle {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-c7clubs-news-game-updates__news-grid,
  .page-c7clubs-news-game-updates__game-updates-grid,
  .page-c7clubs-news-game-updates__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-c7clubs-news-game-updates__news-card-image,
  .page-c7clubs-news-game-updates__game-update-card-image,
  .page-c7clubs-news-game-updates__insight-card-image {
    height: 180px;
  }

  .page-c7clubs-news-game-updates__news-card-title,
  .page-c7clubs-news-game-updates__game-update-card-title,
  .page-c7clubs-news-game-updates__insight-card-title {
    font-size: 1.2em;
  }

  .page-c7clubs-news-game-updates__faq-section {
    padding: 60px 0;
  }

  .page-c7clubs-news-game-updates__faq-question {
    padding: 15px 20px;
  }

  .page-c7clubs-news-game-updates__faq-question h3 {
    font-size: 1em;
  }

  .page-c7clubs-news-game-updates__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-c7clubs-news-game-updates__faq-item.active .page-c7clubs-news-game-updates__faq-answer {
    padding: 20px !important;
  }

  .page-c7clubs-news-game-updates__cta-section {
    padding: 60px 0;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-c7clubs-news-game-updates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-c7clubs-news-game-updates__container,
  .page-c7clubs-news-game-updates__news-card,
  .page-c7clubs-news-game-updates__game-update-card,
  .page-c7clubs-news-game-updates__insight-card,
  .page-c7clubs-news-game-updates__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-c7clubs-news-game-updates__news-grid,
  .page-c7clubs-news-game-updates__game-updates-grid,
  .page-c7clubs-news-game-updates__insights-grid {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-c7clubs-news-game-updates__view-all-button-container {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-c7clubs-news-game-updates__hero-section .page-c7clubs-news-game-updates__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-c7clubs-news-game-updates__latest-news-section .page-c7clubs-news-game-updates__container,
  .page-c7clubs-news-game-updates__game-updates-section .page-c7clubs-news-game-updates__container,
  .page-c7clubs-news-game-updates__industry-insights-section .page-c7clubs-news-game-updates__container,
  .page-c7clubs-news-game-updates__faq-section .page-c7clubs-news-game-updates__container,
  .page-c7clubs-news-game-updates__cta-section .page-c7clubs-news-game-updates__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}