/* style/casino.css */

/* Cần thêm padding-top cho main content để tránh bị header cố định che mất */
.page-casino {
  padding-top: 120px; /* Giá trị này có thể điều chỉnh tùy theo chiều cao header */
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* 🚨 Mobile Responsive padding-top */
@media (max-width: 768px) {
  .page-casino {
    padding-top: 100px; /* Điều chỉnh cho mobile */
  }
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

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

/* LOGO Carousel Section */
.page-casino__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: var(--dark-bg-1);
  color: #ffffff;
}

.page-casino__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-casino__logo-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* 禁止用户交互 */
}

.page-casino__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-casino__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* 允许logo-item本身可以点击 */
}

.page-casino__logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-casino__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-casino__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Section */
.page-casino__games-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--dark-bg-2);
  color: #ffffff;
}

.page-casino__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-casino__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-casino__featured-game-area {
  width: 100%;
}

.page-casino__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: var(--primary-color); /* Vàng */
  text-align: left;
  text-transform: uppercase;
}

.page-casino__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-casino__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.page-casino__games-grid-area {
  width: 100%;
}

.page-casino__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-casino__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.page-casino__games-tab:hover {
  color: #ffffff;
}

.page-casino__games-tab.active {
  color: var(--primary-color); /* Vàng */
  text-decoration: underline;
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none; /* 默认隐藏 */
}

.page-casino__games-grid.active {
  display: grid; /* 激活时显示 */
}

.page-casino__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-casino__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Section General Styles */
.page-casino__section {
  padding: 60px 0;
}

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

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

.page-casino__light-bg {
  background: #f9f9f9;
  color: #333333;
}

.page-casino__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-casino__light-bg .page-casino__section-title {
  color: var(--secondary-color);
}

.page-casino__text-block {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

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

.page-casino__btn-primary:hover {
  background: #e0b600;
  color: #ffffff;
  border-color: #e0b600;
}

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

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

.page-casino__light-bg .page-casino__btn-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-casino__light-bg .page-casino__btn-secondary:hover {
  background: var(--secondary-color);
  color: #ffffff;
}

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

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

.page-casino__quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__quick-link-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-casino__quick-link-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-casino__quick-link-card p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 0;
}

/* Games Intro Section */
.page-casino__games-intro-section {
  background: var(--dark-bg-2);
}

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

.page-casino__game-category-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__game-category-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-casino__game-category-card p {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 25px;
}

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

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

.page-casino__promo-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-casino__promo-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__promo-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-casino__promo-card p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 25px;
}

/* Safety & Service Section */
.page-casino__safety-service-section {
  background: var(--dark-bg-1);
}

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

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

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

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

.page-casino__feature-item p {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 0;
}

.page-casino__contact-info {
  text-align: center;
  margin-top: 50px;
  font-size: 17px;
  color: #ffffff;
}

.page-casino__contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-casino__contact-link:hover {
  text-decoration: underline;
}

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

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important và giá trị đủ lớn */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

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

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

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

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

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--primary-color);
}

/* Blog Section */
.page-casino__blog-section {
  background: var(--dark-bg-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: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-casino__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-casino__blog-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-casino__blog-card p {
  font-size: 15px;
  color: #cccccc;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-casino__blog-card .page-casino__btn-secondary {
  margin: 0 20px 20px;
  align-self: flex-start;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1024px) {
  .page-casino__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-casino__featured-game-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-casino__hero-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-casino__logo-carousel-section {
    padding: 30px 15px;
  }
  
  .page-casino__logo-item {
    width: 150px;
    height: 150px;
  }
  
  .page-casino__logo-carousel {
    gap: 15px;
  }

  .page-casino__games-section {
    padding: 40px 15px;
  }
  
  .page-casino__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-casino__featured-game-title {
    font-size: 24px;
  }
  
  .page-casino__featured-game-image {
    height: 300px;
  }
  
  .page-casino__games-tabs {
    gap: 15px;
  }
  
  .page-casino__games-tab {
    font-size: 16px;
  }
  
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-casino__game-card-image {
    height: 150px;
  }
  
  .page-casino__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  .page-casino__section-title {
    font-size: 28px;
  }

  .page-casino__text-block {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-casino__btn-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
  }

  .page-casino__quick-link-card {
    padding: 25px 15px;
  }

  .page-casino__quick-link-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-casino__quick-link-card h3 {
    font-size: 18px;
  }

  .page-casino__game-categories,
  .page-casino__promo-grid,
  .page-casino__service-features,
  .page-casino__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-category-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__blog-card {
    padding: 25px;
  }

  .page-casino__game-category-card img,
  .page-casino__promo-card img,
  .page-casino__feature-item img {
    width: 120px;
    height: 120px;
  }

  .page-casino__contact-info {
    font-size: 15px;
  }

  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-casino__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }

  /* 🚨 Mobile image force adapt */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__quick-link-card,
  .page-casino__game-category-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__section-title {
    font-size: 24px;
  }

  .page-casino__quick-link-card h3 {
    font-size: 16px;
  }

  .page-casino__quick-link-card p {
    font-size: 14px;
  }

  .page-casino__game-category-card h3,
  .page-casino__promo-card h3,
  .page-casino__feature-item h3,
  .page-casino__blog-card h3 {
    font-size: 18px;
  }

  .page-casino__game-category-card p,
  .page-casino__promo-card p,
  .page-casino__feature-item p,
  .page-casino__blog-card p {
    font-size: 14px;
  }
}