/* style/casino.css */

/* Variables from shared.css: */
/* --primary-color: #26A9E0; */
/* --secondary-color: #FFFFFF; */
/* --text-dark: #333333; */
/* --text-light: #FFFFFF; */
/* --accent-color-login: #EA7C07; */
/* --header-offset: ...; */

.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background */
}

/* Base styles for sections and containers */
.page-casino__section {
    padding: 60px 0;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

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

.page-casino__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

.page-casino__section-description--light {
    color: #f0f0f0;
}

/* CTA Button Styles */
.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    margin: 10px; /* Spacing between buttons */
}

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

.page-casino__cta-button--primary:hover {
    background-color: #1a8cc7; /* Darkened version of #26A9E0 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-casino__cta-button--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary { /* Generic secondary button for game cards */
    display: inline-block;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 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;
    background: linear-gradient(135deg, var(--primary-color), #40c0f5); /* Adjusted gradient for a lighter feel */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 500px; /* Ensure hero section has some height */
}

.page-casino__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__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

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

.page-casino__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

.page-casino__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-casino__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-casino__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
}

.page-casino__text-block--light {
    color: var(--text-light);
}

.page-casino__text-block p {
    margin-bottom: 15px;
}

.page-casino__text-block strong {
    color: var(--primary-color);
}

.page-casino__text-block--light strong {
    color: var(--secondary-color);
}

.page-casino__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

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

.page-casino__game-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
}

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

.page-casino__game-card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-casino__game-card-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

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

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

.page-casino__promotion-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-casino__promotion-card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-casino__promotion-card-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

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

/* Security & Support Section */
.page-casino__security-support-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-casino__sub-title {
    font-size: 28px;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-casino__sub-title--light {
    color: var(--text-light);
}

.page-casino__contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-start;
}

/* How to Join Section */
.page-casino__how-to-join-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

.page-casino__step-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px; /* Ensure cards have consistent height */
}

.page-casino__step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-casino__step-description {
    font-size: 15px;
    color: #555;
}

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

.page-casino__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  overflow: hidden;
  box-shadow: 0 2px 8px 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; /* Adjusted padding */
  opacity: 0;
  color: #444; /* Slightly darker text for answers */
  font-size: 16px;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height đảm bảo có thể mở rộng */
.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important và giá trị lớn */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: #f0f8ff; /* Light blue background for active answer */
  border-radius: 0 0 8px 8px; /* Match item radius */
}

/* Question Styles */
.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px; /* Match item radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-casino__faq-question:active {
  background: #eeeeee;
}

/* Question Title Styles */
.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Primary color for questions */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle Icon */
.page-casino__faq-toggle {
  font-size: 28px; /* Slightly larger icon */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Adjusted size */
  height: 32px; /* Adjusted size */
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #333; /* Darker color when active */
  transform: rotate(180deg); /* Rotate for active state */
}

/* News Section */
.page-casino__news-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-casino__news-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

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

.page-casino__news-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1; /* Push button to bottom */
}

.page-casino__news-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__news-card-title a:hover {
    color: #1a8cc7; /* Darkened primary color */
    text-decoration: underline;
}

.page-casino__news-card-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-casino__hero-title {
        font-size: 40px;
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
    .page-casino__section-title {
        font-size: 30px;
    }
    .page-casino__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__content-wrapper--reverse {
        flex-direction: column-reverse;
    }
    .page-casino__text-block,
    .page-casino__image-block {
        flex: none;
        width: 100%;
    }
    .page-casino__image-block img {
        margin-bottom: 20px;
    }
    .page-casino__contact-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile General Styles */
    .page-casino__section {
        padding: 40px 0;
    }
    .page-casino__container {
        padding: 0 15px; /* Mobile padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section Mobile */
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        padding-bottom: 30px;
        min-height: auto;
    }
    .page-casino__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
   }}