/* style/casino.css */

/* Cài đặt màu sắc và font chữ cơ bản */
:root {
    --primary-color: #FFD700; /* Vàng */
    --secondary-color: #8B0000; /* Đỏ sẫm */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-1: #0d0d0d; /* Giả định từ shared.css, dùng làm nền body */
    --bg-dark-2: #1a1a1a;
    --border-color-light: #e0e0e0;
    --border-color-dark: #333333;
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Body nền tối, chữ sáng */
    line-height: 1.6;
    padding-top: 120px; /* Đảm bảo nội dung không bị header cố định che */
}

.page-casino__section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.page-casino__dark-bg {
    background-color: var(--bg-dark-2);
    color: var(--text-light);
}

.page-casino__title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-casino__title--main {
    font-size: 48px;
    margin-bottom: 30px;
}

.page-casino__text {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-casino__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-casino__cta-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-casino__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.page-casino__btn--primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
}

.page-casino__btn--primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-casino__btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-casino__btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-casino__btn--small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    margin-top: 20px;
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding: 0; /* Loại bỏ padding để ảnh chiếm toàn bộ */
  margin-top: -120px; /* Đẩy lên để ảnh nằm dưới header cố định */
}

.page-casino__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-casino__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Product Showcase Section */
.page-casino__products-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--bg-dark-1); /* Nền tối để nổi bật các card */
  box-sizing: border-box;
}

.page-casino__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 nhỏ, 2 lớn */
  gap: 20px;
}

.page-casino__products-grid {
  display: grid;
  gap: 20px;
}

.page-casino__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-casino__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-casino__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-dark-2);
  border: 3px solid var(--primary-color); /* Golden border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-casino__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__product-card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho desktop */
  overflow: hidden;
}

.page-casino__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quick Access Section */
.page-casino__quick-access-section {
    background-color: var(--bg-dark-1);
    color: var(--text-light);
}

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

.page-casino__quick-link-card {
    display: block;
    background-color: var(--bg-dark-2);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--border-color-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__quick-link-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__quick-link-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__quick-link-desc {
    font-size: 15px;
    color: #ccc;
}

/* Core Games Section */
.page-casino__core-games-section {
    background-color: var(--bg-dark-2);
}

.page-casino__game-category {
    margin-bottom: 60px;
}

.page-casino__game-category-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-casino__game-category-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-category-content--reverse {
    flex-direction: row-reverse;
}

.page-casino__game-category-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-casino__game-category-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-casino__game-category-text {
    flex: 2;
    color: #f0f0f0;
}

.page-casino__game-category-text p {
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

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

.page-casino__promo-card {
    background-color: var(--bg-dark-2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-casino__promo-title {
    font-size: 24px;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    text-align: center;
}

.page-casino__promo-desc {
    font-size: 15px;
    color: #ccc;
    padding: 0 20px 20px;
    text-align: center;
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn {
    margin: 0 auto 20px;
}

/* Security & Support Section */
.page-casino__security-support-section {
    background-color: var(--bg-dark-2);
}

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

.page-casino__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__feature-desc {
    font-size: 15px;
    color: #ccc;
}

.page-casino__contact-info {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
  color: #ccc;
}

.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;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-dark-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn h3 chặn sự kiện click */
  color: var(--primary-color);
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Hoặc thay đổi nội dung thành dấu trừ */
}

/* Blog Section */
.page-casino__blog-section {
    background-color: var(--bg-dark-2);
}

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

.page-casino__blog-card {
    background-color: var(--bg-dark-1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-casino__blog-content {
    padding: 20px;
}

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

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

.page-casino__blog-title a:hover {
    color: var(--text-light);
}

.page-casino__blog-excerpt {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 15px;
}

.page-casino__blog-date {
    font-size: 14px;
    color: #999;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino {
        padding-top: 100px; /* Điều chỉnh padding-top cho tablet */
    }
    .page-casino__hero-section {
        margin-top: -100px; /* Điều chỉnh margin-top cho tablet */
    }
    .page-casino__title--main {
        font-size: 40px;
    }
    .page-casino__title {
        font-size: 32px;
    }
    .page-casino__text {
        font-size: 16px;
    }
    .page-casino__game-category-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__game-category-content--reverse {
        flex-direction: column;
    }
    .page-casino__game-category-text p {
        text-align: center;
    }
    .page-casino__products-container {
      grid-template-columns: 1fr; /* Tablet: 2 lưới chồng lên nhau */
    }
    .page-casino__products-grid--small {
      grid-template-columns: repeat(2, 1fr); /* 4 ảnh đầu thành 2x2 */
    }
    .page-casino__products-grid--large {
      grid-template-columns: repeat(2, 1fr); /* 2 ảnh sau thành 1x2 */
    }
    .page-casino__product-card-image {
      height: 180px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        padding-top: 90px; /* Điều chỉnh padding-top cho mobile */
    }
    .page-casino__hero-section {
        margin-top: -90px; /* Điều chỉnh margin-top cho mobile */
    }
    .page-casino__section {
        padding: 50px 0;
    }
    .page-casino__title--main {
        font-size: 32px;
    }
    .page-casino__title {
        font-size: 28px;
    }
    .page-casino__text {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-casino__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        font-size: 16px;
    }
    .page-casino__hero-image img,
    .page-casino__products-section img,
    .page-casino__quick-access-section img,
    .page-casino__core-games-section img,
    .page-casino__promotions-section img,
    .page-casino__security-support-section img,
    .page-casino__blog-section img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__promo-card,
    .page-casino__blog-card,
    .page-casino__quick-link-card,
    .page-casino__feature-item,
    .page-casino__game-category-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__products-section {
      padding: 40px 15px;
    }
    .page-casino__products-container {
      grid-template-columns: 1fr;
      gap: 15px;
    }
    .page-casino__products-grid--small {
      grid-template-columns: repeat(2, 1fr); /* 4 ảnh đầu thành 2x2 */
      gap: 15px;
    }
    .page-casino__products-grid--small .page-casino__product-card {
      aspect-ratio: 1 / 1; /* Chính xác vuông */
    }
    .page-casino__products-grid--small .page-casino__product-card-image {
      height: 100%; /* Đảm bảo hình ảnh chiếm hết chiều cao */
    }
    .page-casino__products-grid--large {
      grid-template-columns: 1fr; /* 2 ảnh sau mỗi ảnh 1 hàng */
      gap: 15px;
    }
    .page-casino__products-grid--large .page-casino__product-card {
      aspect-ratio: 1 / 1; /* Chính xác vuông */
    }
    .page-casino__products-grid--large .page-casino__product-card-image {
      height: 100%; /* Đảm bảo hình ảnh chiếm hết chiều cao */
    }
    .page-casino__game-category-content {
        padding: 20px;
        gap: 20px;
    }
    .page-casino__game-category-image {
        min-width: unset;
        width: 100%;
    }
    .page-casino__game-category-text p {
        font-size: 15px;
    }
    .page-casino__faq-question {
        padding: 15px;
    }
    .page-casino__faq-question h3 {
        font-size: 16px;
    }
    .page-casino__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }
    .page-casino__blog-image {
        height: 180px;
    }
    .page-casino__blog-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-casino__title--main {
        font-size: 28px;
    }
    .page-casino__title {
        font-size: 24px;
    }
    .page-casino__products-grid--small {
      grid-template-columns: 1fr; /* Mỗi ảnh 1 hàng */
    }
}