/* style/news-thabet88-event.css */

:root {
  --primary-color: #1A2B4C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-bg-dark: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
}

.page-news-thabet88-event {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
}

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

.page-news-thabet88-event__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-news-thabet88-event__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4; /* Slightly dim the background image for text readability */
}

.page-news-thabet88-event__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news-thabet88-event__hero-description {
  font-size: 1.3em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-news-thabet88-event__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-news-thabet88-event__btn-primary,
.page-news-thabet88-event__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-news-thabet88-event__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-news-thabet88-event__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-news-thabet88-event__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-news-thabet88-event__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-news-thabet88-event__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-news-thabet88-event__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-news-thabet88-event__introduction-section,
.page-news-thabet88-event__how-to-participate,
.page-news-thabet88-event__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-news-thabet88-event__upcoming-events,
.page-news-thabet88-event__why-choose-us,
.page-news-thabet88-event__cta-bottom {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-news-thabet88-event__event-card {
  background-color: var(--card-bg-dark);
  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;
}

.page-news-thabet88-event__event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-news-thabet88-event__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news-thabet88-event__card-content {
  padding: 25px;
}

.page-news-thabet88-event__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent card title height */
}

.page-news-thabet88-event__card-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news-thabet88-event__card-title a:hover {
  color: #e6c200;
}

.page-news-thabet88-event__card-description {
  font-size: 0.95em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-news-thabet88-event__card-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.page-news-thabet88-event__card-link:hover {
  color: #e6c200;
  border-color: #e6c200;
}

.page-news-thabet88-event__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news-thabet88-event__steps-list li {
  background-color: var(--card-bg-dark);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news-thabet88-event__steps-list h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-news-thabet88-event__steps-list h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-news-thabet88-event__steps-list h3 a:hover {
  color: #e6c200;
}

.page-news-thabet88-event__steps-list p {
  color: var(--text-light);
  font-size: 1em;
}

.page-news-thabet88-event__steps-list p a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news-thabet88-event__steps-list p a:hover {
  color: #e6c200;
}

.page-news-thabet88-event__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-news-thabet88-event__feature-list li {
  background-color: var(--card-bg-dark);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-news-thabet88-event__feature-list strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.page-news-thabet88-event__faq-list {
  margin-top: 40px;
}

.page-news-thabet88-event__faq-item {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-news-thabet88-event__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
}

.page-news-thabet88-event__faq-question:hover {
  background-color: #152540;
}

.page-news-thabet88-event__faq-question h3 {
  margin: 0;
  color: var(--text-light);
  font-size: 1em; /* Adjust to fit within the question area */
}

.page-news-thabet88-event__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-news-thabet88-event__faq-item.active .page-news-thabet88-event__faq-toggle {
  transform: rotate(45deg);
}

.page-news-thabet88-event__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  background-color: var(--card-bg-dark);
}

.page-news-thabet88-event__faq-item.active .page-news-thabet88-event__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 25px;
}

.page-news-thabet88-event__faq-answer p {
  margin: 0;
}

.page-news-thabet88-event__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news-thabet88-event__faq-answer a:hover {
  color: #e6c200;
}

.page-news-thabet88-event__cta-bottom {
  text-align: center;
  padding: 80px 0;
}

.page-news-thabet88-event__cta-bottom .page-news-thabet88-event__section-title {
  color: var(--secondary-color);
}

.page-news-thabet88-event__cta-bottom .page-news-thabet88-event__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-thabet88-event__hero-title {
    font-size: 3em;
  }

  .page-news-thabet88-event__hero-description {
    font-size: 1.2em;
  }

  .page-news-thabet88-event__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news-thabet88-event__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-news-thabet88-event__hero-title {
    font-size: 2.5em;
  }

  .page-news-thabet88-event__hero-description {
    font-size: 1em;
  }

  .page-news-thabet88-event__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news-thabet88-event__btn-primary,
  .page-news-thabet88-event__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news-thabet88-event__section-title {
    font-size: 1.8em;
  }

  .page-news-thabet88-event__text-block,
  .page-news-thabet88-event__steps-list p,
  .page-news-thabet88-event__feature-list li,
  .page-news-thabet88-event__faq-answer p {
    font-size: 0.95em;
  }

  .page-news-thabet88-event__event-grid {
    grid-template-columns: 1fr;
  }

  .page-news-thabet88-event__card-title {
    font-size: 1.3em;
    min-height: unset;
  }

  .page-news-thabet88-event__steps-list li,
  .page-news-thabet88-event__feature-list li,
  .page-news-thabet88-event__event-card,
  .page-news-thabet88-event__faq-item {
    padding: 15px;
  }

  .page-news-thabet88-event__faq-question {
    padding: 15px 20px;
  }

  .page-news-thabet88-event__faq-answer {
    padding: 0 20px;
  }

  .page-news-thabet88-event__faq-item.active .page-news-thabet88-event__faq-answer {
    padding: 20px;
  }

  .page-news-thabet88-event__hero-section,
  .page-news-thabet88-event__introduction-section,
  .page-news-thabet88-event__upcoming-events,
  .page-news-thabet88-event__how-to-participate,
  .page-news-thabet88-event__why-choose-us,
  .page-news-thabet88-event__faq-section,
  .page-news-thabet88-event__cta-bottom {
    padding: 40px 0;
  }

  /* Images, Videos, and their containers responsiveness */
  .page-news-thabet88-event img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-thabet88-event video,
  .page-news-thabet88-event__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news-thabet88-event__container,
  .page-news-thabet88-event__hero-section,
  .page-news-thabet88-event__introduction-section,
  .page-news-thabet88-event__upcoming-events,
  .page-news-thabet88-event__how-to-participate,
  .page-news-thabet88-event__why-choose-us,
  .page-news-thabet88-event__faq-section,
  .page-news-thabet88-event__cta-bottom,
  .page-news-thabet88-event__event-card,
  .page-news-thabet88-event__steps-list li,
  .page-news-thabet88-event__feature-list li,
  .page-news-thabet88-event__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-news-thabet88-event__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-news-thabet88-event__hero-title {
    font-size: 2em;
  }

  .page-news-thabet88-event__hero-description {
    font-size: 0.9em;
  }

  .page-news-thabet88-event__section-title {
    font-size: 1.5em;
  }

  .page-news-thabet88-event__faq-question h3 {
    font-size: 0.9em;
  }
}