/* style/c7clubs-cockfighting-rules.css */

/* Variables and Base Styles (from shared.css, but for reference) */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey/Black */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1A1A1A;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

/* Base page content styling - ensure light text on dark body background */
.page-c7clubs-cockfighting-rules {
  background-color: var(--secondary-color); /* Matches body background from shared.css */
  color: var(--text-light); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space before footer */
}

.page-c7clubs-cockfighting-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-c7clubs-cockfighting-rules__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-c7clubs-cockfighting-rules__section:last-of-type {
  border-bottom: none;
}

.page-c7clubs-cockfighting-rules__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-c7clubs-cockfighting-rules__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
  color: rgba(255, 255, 255, 0.85); /* Slightly muted light text */
}

/* Hero Section */
.page-c7clubs-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 60px; /* Adjusted padding-top for fixed header as per strict instruction */
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
  border-bottom: 5px solid var(--primary-color);
}

.page-c7clubs-cockfighting-rules__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-c7clubs-cockfighting-rules__hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-c7clubs-cockfighting-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-c7clubs-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-c7clubs-cockfighting-rules__cta-button:hover {
  background: #e6c200; /* Darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-c7clubs-cockfighting-rules__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.page-c7clubs-cockfighting-rules__cta-button--secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.page-c7clubs-cockfighting-rules__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 30px;
}

/* Rules Overview Section */
.page-c7clubs-cockfighting-rules__rules-overview {
  background-color: var(--secondary-color);
}

.page-c7clubs-cockfighting-rules__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-c7clubs-cockfighting-rules__grid-item {
  background-color: #2a2a2a; /* Slightly lighter dark background for contrast */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-c7clubs-cockfighting-rules__grid-title {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
}

.page-c7clubs-cockfighting-rules__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-c7clubs-cockfighting-rules__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}

.page-c7clubs-cockfighting-rules__list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-c7clubs-cockfighting-rules__image-full {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Bet Types Section */
.page-c7clubs-cockfighting-rules__bet-types {
  background-color: #1a1a1a;
}

.page-c7clubs-cockfighting-rules__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-c7clubs-cockfighting-rules__card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-c7clubs-cockfighting-rules__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-c7clubs-cockfighting-rules__card-title {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-c7clubs-cockfighting-rules__card-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Betting Techniques Section */
.page-c7clubs-cockfighting-rules__betting-techniques {
  background-color: #1a1a1a;
}

.page-c7clubs-cockfighting-rules__feature-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.page-c7clubs-cockfighting-rules__feature-item {
  background-color: #2a2a2a;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--primary-color);
}

.page-c7clubs-cockfighting-rules__feature-title {
  color: var(--primary-color);
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-c7clubs-cockfighting-rules__feature-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-c7clubs-cockfighting-rules__sub-list {
    list-style: disc;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.7);
}

.page-c7clubs-cockfighting-rules__sub-list li {
    margin-bottom: 5px;
}


.page-c7clubs-cockfighting-rules__image-center {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Benefits Section */
.page-c7clubs-cockfighting-rules__benefits {
  background-color: #1a1a1a;
}

.page-c7clubs-cockfighting-rules__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-c7clubs-cockfighting-rules__benefit-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-c7clubs-cockfighting-rules__benefit-title {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-c7clubs-cockfighting-rules__benefit-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Get Started Section */
.page-c7clubs-cockfighting-rules__get-started {
  background-color: #1a1a1a;
}

.page-c7clubs-cockfighting-rules__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-c7clubs-cockfighting-rules__step-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-c7clubs-cockfighting-rules__step-number {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: -55px auto 20px; /* Position above card */
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-c7clubs-cockfighting-rules__step-title {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-c7clubs-cockfighting-rules__step-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.page-c7clubs-cockfighting-rules__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-c7clubs-cockfighting-rules__faq-section {
  background-color: #1a1a1a;
}

.page-c7clubs-cockfighting-rules__faq-list {
  margin-top: 30px;
}

/* FAQ容器样式 */
.page-c7clubs-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ item */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.page-c7clubs-cockfighting-rules__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 20px; /* Adjusted padding */
  opacity: 0;
  color: rgba(255, 255, 255, 0.8); /* Light text */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-c7clubs-cockfighting-rules__faq-item.active .page-c7clubs-cockfighting-rules__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: #3a3a3a; /* Slightly lighter background when active */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-c7clubs-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px; /* Adjusted radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light); /* Light text */
}

.page-c7clubs-cockfighting-rules__faq-question:hover {
  background: #3a3a3a; /* Darker on hover */
  border-color: var(--primary-color);
}

.page-c7clubs-cockfighting-rules__faq-question:active {
  background: #4a4a4a;
}

/* 问题标题样式 */
.page-c7clubs-cockfighting-rules__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color); /* Gold color for question */
}

/* 切换图标 */
.page-c7clubs-cockfighting-rules__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Gold color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px; /* Adjusted margin */
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger size */
  height: 32px;
}

.page-c7clubs-cockfighting-rules__faq-item.active .page-c7clubs-cockfighting-rules__faq-toggle {
  color: var(--text-light); /* White color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* FAQ image */
.page-c7clubs-cockfighting-rules__faq-section .page-c7clubs-cockfighting-rules__image-center {
    margin-top: 50px;
}

/* Conclusion Section */
.page-c7clubs-cockfighting-rules__conclusion {
  background-color: var(--secondary-color);
  text-align: center;
  padding-bottom: 80px;
}