/* style/index.css */

/* Căn chỉnh padding-top cho main để tránh bị header cố định che lấp */
.page-index {
  padding-top: 120px; /* Desktop */
  color: #f0f0f0; /* Màu chữ mặc định cho nền tối của body */
  background-color: #000; /* Đảm bảo nền body là đen */
}

@media (max-width: 768px) {
  .page-index {
    padding-top: 100px; /* Mobile */
  }
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: #000;
}

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

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

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

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

/* LOGO Carousel Section */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: #1a1a1a; /* Nền tối */
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-index__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;
  will-change: transform;
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a; /* Nền logo tối hơn */
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-index__logo-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

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

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

@media (max-width: 768px) {
  .page-index__logo-carousel-section {
    padding: 30px 15px;
  }
  
  .page-index__logo-item {
    width: 150px;
    height: 150px;
  }
  
  .page-index__logo-carousel {
    gap: 15px;
  }
}

/* Games Display Section */
.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #000; /* Nền đen */
}

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

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

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

.page-index__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffd700; /* Vàng */
  text-align: left;
  text-transform: uppercase;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a; /* Nền tối */
  border: 2px solid #ffd700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__featured-game:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
}

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

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

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

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

.page-index__games-tabs {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
  align-items: center;
  justify-content: flex-start;
}

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

.page-index__games-tab:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__games-tab.active {
  color: #ffd700; /* Vàng */
}

.page-index__games-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: #ffd700;
  border-radius: 2px;
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-index__games-grid.active {
  display: grid;
}

.page-index__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a; /* Nền tối */
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

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

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

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

.page-index__game-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 15px 0;
  padding: 0 10px;
  color: #ffd700; /* Vàng */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .page-index__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__games-section {
    padding: 40px 15px;
  }
  
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-index__featured-game-title {
    font-size: 24px;
  }
  
  .page-index__featured-game-image {
    height: 300px;
  }
  
  .page-index__games-tabs {
    gap: 15px;
    justify-content: center;
  }
  
  .page-index__games-tab {
    font-size: 18px;
  }
  
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-index__game-card-image {
    height: 150px;
  }
  
  .page-index__game-card-title {
    font-size: 14px;
    margin: 8px 0 10px 0;
    padding: 0 5px;
  }
}

/* General Section Styles */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffd700; /* Vàng */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-index__text-block {
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 25px;
  color: #f0f0f0; /* Chữ sáng trên nền tối */
}

.page-index__text-block a {
  color: #ffd700;
  text-decoration: underline;
}

.page-index__highlight-text {
  color: #ffd700;
  font-weight: bold;
}

.page-index__dark-section {
  background: #1a1a1a;
  padding: 60px 0;
  color: #f0f0f0;
}

/* Buttons */
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-index__btn-primary {
  background: #ffd700;
  color: #1a1a1a;
  border-color: #ffd700;
}

.page-index__btn-primary:hover {
  background: #e6c200;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-index__btn-secondary {
  background: transparent;
  color: #ffd700;
  border-color: #ffd700;
}

.page-index__btn-secondary:hover {
  background: #ffd700;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  background: #ffd700;
  color: #1a1a1a;
  border: 2px solid #ffd700;
}

.page-index__btn-small:hover {
  background: #e6c200;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.page-index__call-to-action {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .page-index__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-index__btn-primary, .page-index__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-index__call-to-action {
    flex-direction: column;
    gap: 15px;
  }
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background: #000;
}

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

.page-index__link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: #f0f0f0;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__link-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

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

.page-index__link-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffd700;
}

.page-index__link-card p {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-index__link-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__link-card {
    padding: 25px;
  }
  .page-index__link-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-index__link-card h3 {
    font-size: 20px;
  }
  .page-index__link-card p {
    font-size: 15px;
  }
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 80px 0;
}

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

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

.page-index__game-category-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.page-index__game-category-card img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-index__game-category-card h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffd700;
}

.page-index__game-category-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .page-index__game-category-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-index__game-category-card {
    padding: 25px;
  }
  .page-index__game-category-card img {
    height: 180px;
    margin-bottom: 20px;
  }
  .page-index__game-category-card h3 {
    font-size: 22px;
  }
  .page-index__game-category-card p {
    font-size: 15px;
  }
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background: #000;
}

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

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

.page-index__promotion-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.page-index__promotion-card img {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-index__promotion-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffd700;
}

.page-index__promotion-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .page-index__promotion-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-index__promotion-card {
    padding: 25px;
  }
  .page-index__promotion-card img {
    height: 160px;
    margin-bottom: 20px;
  }
  .page-index__promotion-card h3 {
    font-size: 20px;
  }
  .page-index__promotion-card p {
    font-size: 15px;
  }
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
}

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

.page-index__feature-item {
  background: #0d0d0d;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.page-index__feature-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffd700;
}

.page-index__feature-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
}

.page-index__contact-info {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.page-index__contact-info p {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .page-index__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-index__feature-item {
    padding: 25px;
  }
  .page-index__feature-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-index__feature-item h3 {
    font-size: 20px;
  }
  .page-index__feature-item p {
    font-size: 15px;
  }
  .page-index__contact-info p {
    font-size: 17px;
  }
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background: #000;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #2a2a2a;
}

.page-index__faq-question:active {
  background: #0d0d0d;
}

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

.page-index__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: 30px;
  height: 30px;
}

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

.page-index__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: #0d0d0d;
  color: #cccccc;
}

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

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

.page-index__faq-answer a {
  color: #ffd700;
  text-decoration: underline;
}

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

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
}

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

.page-index__blog-card {
  background: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__blog-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-index__blog-card h3 a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
  color: #ffffff;
}

.page-index__blog-card p {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
  margin: 0 20px 15px 20px;
}

.page-index__blog-date {
  display: block;
  font-size: 14px;
  color: #777777;
  margin: 0 20px 20px 20px;
}

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

@media (max-width: 768px) {
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-index__blog-card img {
    height: 180px;
  }
  .page-index__blog-card h3 {
    font-size: 20px;
    margin: 15px 15px 8px 15px;
  }
  .page-index__blog-card p {
    font-size: 15px;
    margin: 0 15px 12px 15px;
  }
  .page-index__blog-date {
    margin: 0 15px 15px 15px;
  }
}

/* Ensure all images are responsive and do not overflow */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index__section,
.page-index__card,
.page-index__container,
.page-index__hero-section,
.page-index__logo-carousel-section,
.page-index__games-section,
.page-index__intro-section,
.page-index__quick-access-section,
.page-index__core-games-section,
.page-index__promotions-section,
.page-index__security-support-section,
.page-index__faq-section,
.page-index__blog-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-section,
  .page-index__logo-carousel-section,
  .page-index__games-section,
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-section, .page-index__logo-carousel-section, .page-index__games-section, .page-index__intro-section, .page-index__quick-access-section, .page-index__core-games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-index__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}