/* style/casino-gameplay-intro.css */

/* Base Styles */
.page-casino-gameplay-intro {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area if needed, or rely on body */
}

.page-casino-gameplay-intro__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-casino-gameplay-intro__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-casino-gameplay-intro__section:nth-of-type(even) {
    background-color: #f9f9f9; /* Light grey background for alternating sections */
}

.page-casino-gameplay-intro__section-title {
    font-size: 36px;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino-gameplay-intro__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #C30808; /* Accent color for underline */
    border-radius: 2px;
}

.page-casino-gameplay-intro__text-block {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Hero Section */
.page-casino-gameplay-intro__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #ffffff); /* Brand color gradient */
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-casino-gameplay-intro__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-casino-gameplay-intro__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-casino-gameplay-intro__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF; /* Text color for hero content */
}

.page-casino-gameplay-intro__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for register/login font */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino-gameplay-intro__intro-description {
    font-size: 22px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-casino-gameplay-intro__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-casino-gameplay-intro__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
}

.page-casino-gameplay-intro__btn-primary {
    background: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

.page-casino-gameplay-intro__btn-primary:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino-gameplay-intro__btn-secondary {
    background: #017439; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-casino-gameplay-intro__btn-secondary:hover {
    background: #005f2e;
    border-color: #005f2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-casino-gameplay-intro__why-choose {
    background-color: #FFFFFF;
}

.page-casino-gameplay-intro__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino-gameplay-intro__feature-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino-gameplay-intro__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino-gameplay-intro__feature-item img {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-casino-gameplay-intro__feature-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
}

/* Popular Games Section */
.page-casino-gameplay-intro__popular-games {
    background-color: #f2f2f2;
}

.page-casino-gameplay-intro__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino-gameplay-intro__game-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino-gameplay-intro__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino-gameplay-intro__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-casino-gameplay-intro__game-title {
    font-size: 22px;
    color: #017439;
    margin: 20px 15px 10px 15px;
}

.page-casino-gameplay-intro__game-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino-gameplay-intro__game-title a:hover {
    color: #C30808;
}

.page-casino-gameplay-intro__game-card p {
    font-size: 16px;
    color: #666;
    padding: 0 15px 20px 15px;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-casino-gameplay-intro__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 15px 20px 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-casino-gameplay-intro__card-button:hover {
    background: #a80707;
    transform: translateY(-2px);
}

/* Basic Rules Section */
.page-casino-gameplay-intro__basic-rules {
    background-color: #FFFFFF;
}

.page-casino-gameplay-intro__rule-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-casino-gameplay-intro__rule-step {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-casino-gameplay-intro__rule-step img {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 20px 0;
    border-radius: 8px;
}

.page-casino-gameplay-intro__step-title {
    font-size: 26px;
    color: #017439;
    margin-bottom: 15px;
}

/* Tips & Strategies Section */
.page-casino-gameplay-intro__tips-strategies {
    background-color: #f2f2f2;
}

.page-casino-gameplay-intro__strategy-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino-gameplay-intro__strategy-item {
    background: #ffffff;
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-casino-gameplay-intro__strategy-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
}

/* Security and Responsible Gaming Section */
.page-casino-gameplay-intro__security-responsible {
    background-color: #FFFFFF;
}

.page-casino-gameplay-intro__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino-gameplay-intro__info-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino-gameplay-intro__info-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
}

.page-casino-gameplay-intro__btn-text-link {
    display: inline-block;
    color: #C30808; /* Use accent color for text links */
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-casino-gameplay-intro__btn-text-link:hover {
    color: #017439;
    text-decoration: underline;
}

/* Promotions Section */
.page-casino-gameplay-intro__promotions {
    background-color: #f2f2f2;
}

.page-casino-gameplay-intro__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino-gameplay-intro__promo-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-casino-gameplay-intro__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-casino-gameplay-intro__promo-title {
    font-size: 22px;
    color: #017439;
    margin: 20px 15px 10px 15px;
}

.page-casino-gameplay-intro__promo-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino-gameplay-intro__promo-title a:hover {
    color: #C30808;
}

.page-casino-gameplay-intro__promo-card p {
    font-size: 16px;
    color: #666;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

/* FAQ Section */
.page-casino-gameplay-intro__faq {
    background-color: #FFFFFF;
}

.page-casino-gameplay-intro__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

/* FAQ容器样式 */
.page-casino-gameplay-intro__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-casino-gameplay-intro__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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-casino-gameplay-intro__faq-item.active .page-casino-gameplay-intro__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-casino-gameplay-intro__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino-gameplay-intro__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-casino-gameplay-intro__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-casino-gameplay-intro__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333;
}

/* 切换图标 */
.page-casino-gameplay-intro__faq-toggle {
  font-size: 28px; /* Larger icon */
  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: 32px; /* Larger hit area */
  height: 32px;
}

.page-casino-gameplay-intro__faq-item.active .page-casino-gameplay-intro__faq-toggle {
  color: #C30808; /* Accent color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

/* Final CTA Section */
.page-casino-gameplay-intro__cta-final {
    padding: 80px 0;
    text-align: center;
}

.page-casino-gameplay-intro__dark-bg {
    background-color: #017439; /* Primary brand color for dark background */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 40px;
    border-radius: 15px;
}

.page-casino-gameplay-intro__light-text {
    color: #ffffff;
}

.page-casino-gameplay-intro__cta-final .page-casino-gameplay-intro__section-title {
    color: #FFFF00; /* Custom font color for register/login font */
    margin-bottom: 20px;
}

.page-casino-gameplay-intro__cta-final .page-casino-gameplay-intro__section-title::after {
    background-color: #FFFF00; /* Accent color for underline */
}

.page-casino-gameplay-intro__cta-final .page-casino-gameplay-intro__text-block {
    color: #f0f0f0;
    margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino-gameplay-intro__main-title {
        font-size: 40px;
    }
    .page-casino-gameplay-intro__intro-description {
        font-size: 20px;
    }
    .page-casino-gameplay-intro__section-title {
        font-size: 32px;
    }
    .page-casino-gameplay-intro__rule-steps,
    .page-casino-gameplay-intro__info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding-top for hero section */
    .page-casino-gameplay-intro__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino-gameplay-intro__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-casino-gameplay-intro__intro-description {
        font-size: 18px;
        margin-bottom: 30px;
    }
}