/* style/casino.css */

/* Cấu hình chung cho trang Casino */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Văn bản màu trắng cho nền tối */
  background-color: #0d0d0d; /* Nền tối */
  padding-top: 120px; /* Đảm bảo nội dung không bị header cố định che khuất */
}

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

.page-casino__main-title,
.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #FFCC00; /* Màu vàng cam làm nổi bật */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-casino__main-title {
  font-size: 48px;
  margin-bottom: 40px;
}

.page-casino__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
  color: #f0f0f0;
}

.page-casino__text-block a {
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
}

.page-casino__text-block a:hover {
  text-decoration: underline;
}

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

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

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

.page-casino__btn-primary {
  background: linear-gradient(90deg, #FFCC00, #F0B800);
  color: #003366; /* Nền vàng cam, chữ xanh đậm */
  border: 2px solid #FFCC00;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(90deg, #F0B800, #FFCC00);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: #003366;
  color: #FFCC00; /* Nền xanh đậm, chữ vàng cam */
  border: 2px solid #FFCC00;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

.page-casino__btn-secondary:hover {
  background: #004488;
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.6);
  transform: translateY(-2px);
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: -120px; /* bù lại padding-top của .page-casino */
}

.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: #1a1a1a; /* Nền hơi sáng hơn body để tạo điểm nhấn */
}

.page-casino__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 前4个占4列，后2个占2列 */
  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: #2a2a2a;
  border: 3px solid #ffd700; /* 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.5);
}

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

/* Intro Section */
.page-casino__intro-section {
  padding: 80px 0;
  background-color: #003366; /* Main brand color for dark section */
  color: #ffffff;
}

.page-casino__intro-section .page-casino__description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-casino__intro-section .page-casino__description a {
  color: #FFCC00;
}

/* Quick Links Section */
.page-casino__quick-links-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Light bg for contrast with dark section above */
  color: #ffffff;
}

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

.page-casino__quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background-color: #2a2a2a;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  border: 1px solid #003366;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-casino__quick-link-card:hover {
  transform: translateY(-8px);
  background-color: #003366;
  border-color: #FFCC00;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-casino__quick-link-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__quick-link-text {
  font-size: 18px;
  font-weight: 600;
  color: #FFCC00;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker section */
  color: #f0f0f0;
}

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

.page-casino__game-title {
  font-size: 28px;
  color: #FFCC00;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-casino__game-content {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__game-content:nth-child(even) {
  flex-direction: row-reverse;
}

.page-casino__game-image {
  width: 40%;
  min-width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-casino__game-content .page-casino__text-block {
  flex: 1;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-casino__promo-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  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 25px rgba(0, 0, 0, 0.6);
}

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

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFCC00;
  padding: 20px 20px 10px;
}

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

.page-casino__promo-card .page-casino__btn {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  padding: 12px 20px;
  font-size: 16px;
}

/* Safety & Support Section */
.page-casino__safety-support-section {
  padding: 80px 0;
  background-color: #003366;
  color: #ffffff;
}

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

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

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFCC00;
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-casino__faq-list {
  margin-top: 40px;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #003366; /* Nền xanh đậm */
  border: 1px solid #004488;
  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: #004488;
  border-color: #FFCC00;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFCC00; /* Chữ vàng cam */
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  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-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.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-color: #2a2a2a; /* Nền đáp án */
  color: #f0f0f0;
  border-radius: 0 0 8px 8px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-casino__faq-answer a {
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
}

.page-casino__faq-answer a:hover {
  text-decoration: underline;
}

/* Blog Section */
.page-casino__blog-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.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: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-casino__blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-casino__blog-title a {
  color: #FFCC00;
  text-decoration: none;
}

.page-casino__blog-title a:hover {
  text-decoration: underline;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__products-container {
    grid-template-columns: 1fr; /* Mobile: Two grids vertically stacked */
  }
  
  .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-content {
    flex-direction: column;
  }
  
  .page-casino__game-content:nth-child(even) {
    flex-direction: column;
  }

  .page-casino__game-image {
    width: 100%;
    min-width: unset;
  }

  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 30px;
  }
  .page-casino__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: 100px; /* Mobile header spacing */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-section {
    margin-top: -100px; /* bù lại padding-top của .page-casino */
  }

  .page-casino__products-section {
    padding: 40px 15px;
  }
  
  .page-casino__products-container {
    grid-template-columns: 1fr; /* Mobile: Two grids vertically stacked */
    gap: 15px;
  }
  
  /* Front 4 images - 2x2 grid, square */
  .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 */
  }
  
  /* Back 2 large images - each on its own row, square */
  .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__main-title {
    font-size: 32px;
  }
  .page-casino__section-title {
    font-size: 26px;
  }
  .page-casino__text-block {
    font-size: 15px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-casino__quick-link-card {
    padding: 20px;
  }
  .page-casino__quick-link-icon {
    width: 60px;
    height: 60px;
  }
  .page-casino__quick-link-text {
    font-size: 16px;
  }
  .page-casino__game-content {
    padding: 20px;
  }
  .page-casino__game-title {
    font-size: 24px;
  }
  .page-casino__promo-title {
    font-size: 20px;
  }
  .page-casino__promo-description {
    font-size: 14px;
  }
  .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;
  }
  .page-casino__faq-answer p {
    font-size: 15px;
  }
  .page-casino__blog-title {
    font-size: 18px;
  }
  .page-casino__blog-excerpt {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .page-casino__products-grid--small {
    grid-template-columns: 1fr;
  }
  .page-casino__products-grid--large {
    grid-template-columns: 1fr;
  }
  .page-casino__link-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__safety-features {
    grid-template-columns: 1fr;
  }
  .page-casino__blog-grid {
    grid-template-columns: 1fr;
  }
}