/* style/casino.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #f9f9f9;
    --background-dark: #26A9E0; /* Using primary color for dark sections */
    --button-login: #EA7C07;
    --black: #000000;
}

/* Base styles for the page content */
.page-casino {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light); /* Default light background */
}

.page-casino__section {
    padding: 80px 0;
    text-align: center;
}

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-casino__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

/* Hero Section */
.page-casino__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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Gradient for visual appeal */
    color: var(--text-light);
    overflow: hidden; /* Prevent image overflow */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.page-casino__hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    opacity: 0.9;
}

.page-casino__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__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;
    box-sizing: border-box;
}

.page-casino__cta-button--primary {
    background: var(--button-login); /* Login color for primary CTA */
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

.page-casino__cta-button--primary:hover {
    background: #D56B06; /* Darker shade of #EA7C07 */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__cta-button--secondary:hover {
    background: #2192CC; /* Darker shade of #26A9E0 */
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-casino__introduction-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-casino__introduction-section .page-casino__section-title {
    color: var(--primary-color);
}

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

.page-casino__feature-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-casino__feature-item h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__feature-item p {
    font-size: 16px;
    color: var(--text-dark);
}

/* Popular Casino Games Section */
.page-casino__games-section {
    background-color: var(--background-dark); /* Using primary color for dark section */
    color: var(--text-light);
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__section-description {
    color: var(--text-light);
}

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

.page-casino__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-casino__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-casino__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-casino__card-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.page-casino__card-title a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
    color: var(--secondary-color); /* Lighter color on hover */
}

.page-casino__card p {
    font-size: 16px;
    color: var(--text-light);
    opacity: 0.8;
}

.page-casino__button-group {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-casino__button-center {
    margin-top: 50px;
    text-align: center;
}

/* Advantages Section */
.page-casino__advantages-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-casino__advantages-section .page-casino__section-title {
    color: var(--primary-color);
}

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

.page-casino__advantage-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.page-casino__advantage-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__advantage-item p {
    font-size: 16px;
    color: var(--text-dark);
}

/* How to Play Section */
.page-casino__how-to-play-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-casino__how-to-play-section .page-casino__section-title {
    color: var(--text-light);
}

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

.page-casino__step-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-light);
}

.page-casino__step-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-casino__step-item h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-casino__step-item p {
    font-size: 16px;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 25px;
}

.page-casino__step-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-login);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-casino__step-button:hover {
    background: #D56B06; /* Darker shade of #EA7C07 */
    transform: translateY(-2px);
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-casino__promotions-section .page-casino__section-title {
    color: var(--primary-color);
}

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

.page-casino__promo-card {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-casino__promo-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__promo-card p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.page-casino__promo-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-casino__promo-button:hover {
    background: #2192CC; /* Darker shade of #26A9E0 */
    transform: translateY(-2px);
}

/* Customer Support Section */
.page-casino__support-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-casino__support-section .page-casino__section-title {
    color: var(--text-light);
}

.page-casino__support-section .page-casino__section-description {
    color: var(--text-light);
    opacity: 0.9;
}

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

.page-casino__support-channel {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-light);
}

.page-casino__support-channel img {
    max-width: 200px; /* Max width for support icons */
    height: 200px; /* Fixed height for consistency */
    border-radius: 50%; /* Circular images */
    margin-bottom: 20px;
    object-fit: cover;
    background: var(--secondary-color); /* Background for circular images */
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__support-channel h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-casino__support-channel p {
    font-size: 16px;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 25px;
}

.page-casino__support-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-login);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-casino__support-button:hover {
    background: #D56B06; /* Darker shade of #EA7C07 */
    transform: translateY(-2px);
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-casino__faq-section .page-casino__section-title {
    color: var(--primary-color);
}

.page-casino__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

/* FAQ默认状态 - 答案隐藏 */
.page-casino__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;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-dark);
}

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