/* style/resources-rules-gameplay.css */

:root {
    --primary-color: #8B0000;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #111;
    --bg-light: #f1f3f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-rules-gameplay {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from body, but explicitly set for clarity */
}

/* Fixed header padding */
.page-resources-rules-gameplay__introduction-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

.page-resources-rules-gameplay__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-resources-rules-gameplay__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-resources-rules-gameplay__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-resources-rules-gameplay__main-title {
    font-size: 3.2em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-rules-gameplay__heading {
    font-size: 2.2em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-rules-gameplay__dark-bg .page-resources-rules-gameplay__heading {
    color: var(--text-light);
}

.page-resources-rules-gameplay__sub-heading {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-rules-gameplay__dark-bg .page-resources-rules-gameplay__sub-heading {
    color: var(--text-light);
}

.page-resources-rules-gameplay__paragraph {
    font-size: 1.1em;
    margin-bottom: 1em;
    line-height: 1.7;
}

.page-resources-rules-gameplay__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-rules-gameplay__link:hover {
    color: #ffc107; /* Slightly darker gold */
    text-decoration: underline;
}

.page-resources-rules-gameplay__cta-button {
    display: block;
    width: fit-content;
    margin: 40px auto 20px auto;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-rules-gameplay__cta-button:hover {
    background: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-rules-gameplay__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 1em;
    font-size: 1.1em;
}

.page-resources-rules-gameplay__list.page-resources-rules-gameplay__list--unstyled {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.page-resources-rules-gameplay__list-item {
    margin-bottom: 0.5em;
}

.page-resources-rules-gameplay__nested-list {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 5px;
}

.page-resources-rules-gameplay__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-resources-rules-gameplay__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources-rules-gameplay__text-content {
    flex: 1;
}

.page-resources-rules-gameplay__image {
    flex-shrink: 0;
    width: 45%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* FAQ Styles */
.page-resources-rules-gameplay__faq-list {
    margin-top: 40px;
}

.page-resources-rules-gameplay__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-rules-gameplay__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;
  color: var(--text-dark);
}

.page-resources-rules-gameplay__faq-item.active .page-resources-rules-gameplay__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg);
  border-radius: 0 0 5px 5px;
}

.page-resources-rules-gameplay__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-rules-gameplay__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-rules-gameplay__faq-question:active {
  background: #eeeeee;
}

.page-resources-rules-gameplay__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(--text-dark);
}

.page-resources-rules-gameplay__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-resources-rules-gameplay__faq-item.active .page-resources-rules-gameplay__faq-toggle {
  color: #333;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-rules-gameplay__main-title {
        font-size: 2.5em;
    }
    .page-resources-rules-gameplay__heading {
        font-size: 1.8em;
    }
    .page-resources-rules-gameplay__sub-heading {
        font-size: 1.5em;
    }
    .page-resources-rules-gameplay__paragraph, .page-resources-rules-gameplay__list-item {
        font-size: 1em;
    }
    .page-resources-rules-gameplay__cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    .page-resources-rules-gameplay__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources-rules-gameplay__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-resources-rules-gameplay__image {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding-top for fixed header */
    .page-resources-rules-gameplay__introduction-section {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-rules-gameplay__container {
        padding: 15px;
    }
    .page-resources-rules-gameplay__dark-bg, .page-resources-rules-gameplay__light-bg {
        padding: 40px 0;
    }
    .page-resources-rules-gameplay__main-title {
        font-size: 2em;
    }
    .page-resources-rules-gameplay__heading {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-resources-rules-gameplay__sub-heading {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources-rules-gameplay__paragraph, .page-resources-rules-gameplay__list-item,
    .page-resources-rules-gameplay__faq-question h3, .page-resources-rules-gameplay__faq-answer p {
        font-size: 15px;
    }
    .page-resources-rules-gameplay__cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
    .page-resources-rules-gameplay__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-rules-gameplay__section,
    .page-resources-rules-gameplay__card,
    .page-resources-rules-gameplay__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-rules-gameplay__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-rules-gameplay__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-rules-gameplay__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-rules-gameplay__faq-answer {
        padding: 0 15px;
    }
    .page-resources-rules-gameplay__faq-item.active .page-resources-rules-gameplay__faq-answer {
        padding: 15px !important;
    }
}