/* style/casino.css */

/* Cấu trúc chung */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--dark-bg-1);
}

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

.page-casino__heading {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-casino__sub-heading {
  font-size: 28px;
  font-weight: 600;
  color: #FFD700; /* Gold */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-casino__text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-casino__dark-bg .page-casino__text {
  color: #f0f0f0;
}

.page-casino__dark-section {
  background-color: var(--dark-bg-3);
  color: #ffffff;
}

.page-casino__dark-section .page-casino__text {
  color: #f0f0f0;
}

/* Nút bấm chung */
.page-casino__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000; /* Dark text on gold button for contrast */
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-casino__btn-primary--center {
  display: block;
  margin: 40px auto 20px auto;
  width: fit-content;
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.page-casino__btn-secondary:hover {
  background: #FFD700;
  color: #000000; /* Dark text on gold hover */
  transform: translateY(-2px);
}

/* Hình ảnh responsive */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Khoảng cách cho navbar cố định */
  margin-top: 0;
  overflow: hidden;
}

.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;
}

/* Products Section */
.page-casino__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--dark-bg-1);
}

.page-casino__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  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(--dark-bg-2);
  border: 3px solid #FFD700; /* Gold 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 8px 20px rgba(255, 215, 0, 0.4);
}

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

.page-casino__product-card-image {
  width: 100%;
  height: 250px;
  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 {
  padding: 60px 20px;
  background-color: var(--dark-bg-2);
  text-align: center;
}

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

.page-casino__quick-link-card {
  background: var(--dark-bg-3);
  border-radius: 10px;
  padding: 30px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-casino__quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-casino__quick-link-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-casino__quick-link-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__quick-link-description {
  font-size: 15px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Games Overview Section */
.page-casino__games-overview-section {
  padding: 80px 20px;
  text-align: center;
}

.page-casino__game-category {
  display: flex;
  align-items: center;
  background: var(--dark-bg-2);
  border-radius: 12px;
  margin-bottom: 50px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-casino__game-image {
  width: 50%;
  height: 400px;
  object-fit: cover;
}

.page-casino__game-content {
  width: 50%;
  padding: 40px;
  text-align: left;
}

.page-casino__game-content .page-casino__text {
  color: #e0e0e0;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1);
  text-align: center;
}

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

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

.page-casino__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

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

.page-casino__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  padding: 20px 20px 10px;
  text-align: center;
}

.page-casino__promotion-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 20px;
  text-align: center;
  flex-grow: 1;
}

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

/* Security & Support Section */
.page-casino__security-support-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-casino__feature-card {
  background: var(--dark-bg-2);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-casino__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.page-casino__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1);
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-casino__faq-question:hover {
  background: var(--dark-bg-3);
  border-color: #FFD700;
}

.page-casino__faq-question:active {
  background: var(--dark-bg-3);
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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;
  height: 32px;
}

.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 25px;
  opacity: 0;
  background: var(--dark-bg-3);
  color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #FFD700;
  transform: rotate(180deg);
}

/* Blog Section */
.page-casino__blog-section {
  padding: 80px 20px;
  text-align: center;
}

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

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

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

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

.page-casino__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-casino__blog-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__blog-title a:hover {
  color: #FFA500;
}

.page-casino__blog-summary {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-casino__blog-date {
  font-size: 13px;
  color: #888;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-casino__heading {
    font-size: 32px;
  }
  .page-casino__sub-heading {
    font-size: 24px;
  }
  .page-casino__text {
    font-size: 16px;
  }
  .page-casino__products-container {
    grid-template-columns: 1fr; /* Stack grids */
  }
  .page-casino__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-casino__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-casino__game-category {
    flex-direction: column;
  }
  .page-casino__game-category--reverse {
    flex-direction: column;
  }
  .page-casino__game-image,
  .page-casino__game-content {
    width: 100%;
  }
  .page-casino__game-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: 10px; /* Mobile fixed navbar spacing */
  }
  .page-casino__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-casino__sub-heading {
    font-size: 20px;
  }
  .page-casino__text {
    font-size: 15px;
  }
  .page-casino__products-section,
  .page-casino__quick-access-section,
  .page-casino__games-overview-section,
  .page-casino__promotions-section,
  .page-casino__security-support-section,
  .page-casino__faq-section,
  .page-casino__blog-section {
    padding: 40px 15px;
  }
  .page-casino__products-container {
    gap: 15px;
  }
  .page-casino__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-casino__products-grid--small .page-casino__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-casino__products-grid--small .page-casino__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-casino__products-grid--small .page-casino__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-casino__products-grid--large {
    grid-template-columns: 1fr; /* Each card on its own row */
    gap: 15px;
  }
  .page-casino__products-grid--large .page-casino__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-casino__products-grid--large .page-casino__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-casino__products-grid--large .page-casino__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-casino__quick-links-grid,
  .page-casino__promotion-grid,
  .page-casino__features-grid,
  .page-casino__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__quick-link-card img {
    width: 80px;
    height: 80px;
  }
  .page-casino__quick-link-title {
    font-size: 20px;
  }
  .page-casino__game-image {
    height: 250px;
  }
  .page-casino__game-content {
    padding: 25px;
  }
  .page-casino__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-casino__feature-title {
    font-size: 20px;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-question h3 {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }
  /* Mobile image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}