/* style/player-community-events.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light-grey: #f1f3f5;
  --card-background: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

/* Base styles for the page content, considering dark body background */
.page-player-community-events {
  color: var(--text-light);
  background-color: var(--background-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-player-community-events__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Ensure content is below fixed nav */
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-dark) 100%);
  color: var(--text-light);
}

.page-player-community-events__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-player-community-events__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-player-community-events__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-player-community-events__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

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

.page-player-community-events__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-player-community-events__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-player-community-events__cta-button:hover {
  background: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-player-community-events__section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-player-community-events__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-player-community-events__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-player-community-events__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-light);
}

.page-player-community-events__paragraph strong {
  color: var(--primary-color);
}

.page-player-community-events__paragraph a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-player-community-events__paragraph a:hover {
  color: #e0b800;
}

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

.page-player-community-events__activity-card {
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  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-player-community-events__activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-player-community-events__activity-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-player-community-events__activity-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-player-community-events__activity-card p {
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
  color: var(--text-light);
}

.page-player-community-events__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-player-community-events__card-button:hover {
  background-color: #a70000;
}

.page-player-community-events__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-player-community-events__benefit-item {
  background: var(--card-background);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.page-player-community-events__benefit-item:hover {
  transform: translateX(5px);
}

.page-player-community-events__benefit-item strong {
  color: var(--primary-color);
}

.page-player-community-events__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 30px;
}

.page-player-community-events__step-item {
  background: var(--card-background);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  position: relative;
  padding-left: 70px;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.page-player-community-events__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--background-dark);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-player-community-events__step-item a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-player-community-events__step-item a:hover {
  color: #e0b800;
}

.page-player-community-events__button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-player-community-events__cta-button--large {
  padding: 18px 50px;
  font-size: 1.4em;
  border-radius: 8px;
}

/* FAQ Section */
.page-player-community-events__faq-section {
  background-color: var(--background-dark);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-player-community-events__faq-list {
  margin-top: 40px;
}

.page-player-community-events__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-player-community-events__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-player-community-events__faq-item.active .page-player-community-events__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-player-community-events__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-player-community-events__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-player-community-events__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

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

.page-player-community-events__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-player-community-events__faq-item.active .page-player-community-events__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

.page-player-community-events__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-player-community-events__main-title {
    font-size: 2.8em;
  }
  .page-player-community-events__hero-description {
    font-size: 1.1em;
  }
  .page-player-community-events__section-title {
    font-size: 2em;
  }
  .page-player-community-events__paragraph {
    font-size: 1em;
  }
  .page-player-community-events__activity-card h3 {
    font-size: 1.3em;
  }
  .page-player-community-events__activity-card p {
    font-size: 0.95em;
  }
  .page-player-community-events__benefit-item,
  .page-player-community-events__step-item {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-player-community-events {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-player-community-events__hero-section {
    padding-top: 140px !important; /* Mobile: Ensure content is below fixed nav */
    padding: 40px 15px;
  }

  .page-player-community-events__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-player-community-events__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-player-community-events__section {
    padding: 40px 15px;
  }

  .page-player-community-events__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-player-community-events__paragraph {
    font-size: 0.95em;
  }

  .page-player-community-events__activity-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-player-community-events__activity-img {
    height: 180px;
  }

  .page-player-community-events__activity-card h3 {
    font-size: 1.2em;
    margin: 15px 15px 8px 15px;
  }

  .page-player-community-events__activity-card p {
    font-size: 0.9em;
    padding: 0 15px;
    margin-bottom: 15px;
  }

  .page-player-community-events__card-button {
    margin: 0 15px 15px 15px;
    padding: 8px 15px;
  }

  .page-player-community-events__benefit-item,
  .page-player-community-events__step-item {
    font-size: 0.95em;
    padding: 15px;
    padding-left: 60px;
  }

  .page-player-community-events__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
    left: 15px;
  }

  .page-player-community-events__cta-button--large {
    padding: 15px 40px;
    font-size: 1.2em;
  }

  .page-player-community-events__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-player-community-events__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-player-community-events__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-player-community-events__faq-answer {
    padding: 0 15px;
  }
  
  .page-player-community-events__faq-item.active .page-player-community-events__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and do not cause overflow */
  .page-player-community-events img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-player-community-events__section,
  .page-player-community-events__container,
  .page-player-community-events__activity-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-player-community-events__hero-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-player-community-events__main-title {
    font-size: 1.8em;
  }
  .page-player-community-events__section-title {
    font-size: 1.6em;
  }
  .page-player-community-events__cta-button--large {
    font-size: 1.1em;
    padding: 12px 30px;
  }
}