/* style/index-core-features.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --background-main: #140C0C;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
  --text-dark: #333333;
  --text-light: #ffffff;
}

/* Base styles for the page */
.page-index-core-features {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-main); /* Assuming body background from shared.css is dark */
}

/* Hero Section */
.page-index-core-features__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-index-core-features__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-index-core-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-core-features__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to slightly overlap the image for visual flow, but not cover content */
  position: relative;
  z-index: 1;
  background-color: rgba(20, 12, 12, 0.85); /* Slightly transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  margin-left: 20px;
  margin-right: 20px;
}

.page-index-core-features__hero-title {
  color: var(--gold-color);
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.page-index-core-features__hero-description {
  color: var(--text-main);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-index-core-features__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Section Styles */
.page-index-core-features__section {
  padding: 80px 0;
  background-color: var(--background-main);
}

.page-index-core-features__section--dark-bg {
  background-color: var(--card-bg);
}

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

.page-index-core-features__section-title {
  color: var(--gold-color);
  text-align: center;
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-core-features__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-index-core-features__content-block {
  font-size: 1.05em;
  color: var(--text-main);
}

.page-index-core-features__content-block h3 {
  color: var(--gold-color);
  font-size: clamp(1.4em, 2.5vw, 2em);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-index-core-features__content-block h4 {
  color: var(--primary-color);
  font-size: clamp(1.2em, 2vw, 1.6em);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index-core-features__content-block p {
  margin-bottom: 20px;
}

.page-index-core-features__content-block ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-index-core-features__content-block li {
  margin-bottom: 10px;
  color: var(--text-main);
}

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

.page-index-core-features__btn-primary {
  background: var(--button-gradient);
  color: var(--text-light);
  border: none;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-index-core-features__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 176, 74, 0.6);
}

.page-index-core-features__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(243, 197, 77, 0.2);
}

.page-index-core-features__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(243, 197, 77, 0.4);
}

.page-index-core-features__btn-tertiary {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  font-size: 0.9em;
  padding: 10px 20px;
  border-radius: 5px;
}

.page-index-core-features__btn-tertiary:hover {
  background: var(--deep-red-color);
  transform: translateY(-2px);
}

/* Game Grid */
.page-index-core-features__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-index-core-features__game-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-index-core-features__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index-core-features__game-card-title {
  color: var(--gold-color);
  font-size: 1.5em;
  margin: 20px 15px 10px;
}

.page-index-core-features__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index-core-features__game-card-title a:hover {
  text-decoration: underline;
}

.page-index-core-features__game-card-description {
  color: var(--text-main);
  font-size: 0.95em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index-core-features__game-card .page-index-core-features__btn-tertiary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Inline Image */
.page-index-core-features__image-inline {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

/* FAQ Section */
.page-index-core-features__faq-list {
  margin-top: 40px;
}

.page-index-core-features__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-core-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--gold-color);
  font-weight: bold;
  font-size: 1.15em;
  background-color: rgba(255,255,255,0.05);
}

.page-index-core-features__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-core-features__faq-question::marker {
  display: none;
}

.page-index-core-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-index-core-features__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-main);
  font-size: 1em;
}

.page-index-core-features__faq-answer p {
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-features__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
  .page-index-core-features__section {
    padding: 60px 0;
  }
  .page-index-core-features__section-title {
    margin-bottom: 40px;
  }
  .page-index-core-features__game-card {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .page-index-core-features__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-index-core-features__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-index-core-features__hero-description {
    font-size: 1em;
  }
  .page-index-core-features__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-core-features__btn-primary,
  .page-index-core-features__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-index-core-features__section {
    padding: 40px 0;
  }
  .page-index-core-features__container {
    padding: 0 15px;
  }
  .page-index-core-features__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }
  .page-index-core-features__content-block h3 {
    font-size: clamp(1.2em, 4vw, 1.6em);
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-index-core-features__content-block h4 {
    font-size: clamp(1.1em, 3.5vw, 1.4em);
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-index-core-features__content-block {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-index-core-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-core-features__section,
  .page-index-core-features__card,
  .page-index-core-features__container,
  .page-index-core-features__game-card,
  .page-index-core-features__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-index-core-features__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-index-core-features__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-core-features__game-card {
    min-height: auto;
  }
  .page-index-core-features__game-card-image {
    height: 180px; /* Slightly smaller for mobile */
  }
  .page-index-core-features__game-card .page-index-core-features__btn-tertiary {
    width: calc(100% - 30px);
  }
  .page-index-core-features__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }
  .page-index-core-features__faq-answer {
    padding: 0 20px 15px;
  }

  /* Buttons specific mobile overrides */
  .page-index-core-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-core-features__cta-buttons > a {
    width: 100%;
  }
}