/* style/index-gioi-thieu-chung.css */
.page-index-gioi-thieu-chung {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  line-height: 1.6;
}

.page-index-gioi-thieu-chung__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-index-gioi-thieu-chung__dark-bg {
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-index-gioi-thieu-chung__light-bg {
  background-color: #2A1212; /* Card BG, used for contrast */
  color: #FFF1E8;
}

.page-index-gioi-thieu-chung__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-index-gioi-thieu-chung__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #FFB04A;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index-gioi-thieu-chung__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF1E8;
}

.page-index-gioi-thieu-chung__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.page-index-gioi-thieu-chung__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-index-gioi-thieu-chung__text-block {
  flex: 1;
  font-size: 1.1em;
}

.page-index-gioi-thieu-chung__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-gioi-thieu-chung__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.page-index-gioi-thieu-chung__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body padding-top is handled by shared */
  margin-bottom: 60px;
  overflow: hidden;
}

.page-index-gioi-thieu-chung__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero slider */
  overflow: hidden;
}

.page-index-gioi-thieu-chung__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.page-index-gioi-thieu-chung__hero-slide.is-active {
  opacity: 1;
}

.page-index-gioi-thieu-chung__hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-gioi-thieu-chung__hero-slider-prev,
.page-index-gioi-thieu-chung__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #FFF1E8;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index-gioi-thieu-chung__hero-slider-prev {
  left: 20px;
}

.page-index-gioi-thieu-chung__hero-slider-next {
  right: 20px;
}

.page-index-gioi-thieu-chung__hero-slider-prev::before {
  content: '‹';
}

.page-index-gioi-thieu-chung__hero-slider-next::before {
  content: '›';
}

.page-index-gioi-thieu-chung__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  text-align: center;
  z-index: 5;
}

.page-index-gioi-thieu-chung__main-title {
  font-size: 3em;
  font-weight: 900;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-gioi-thieu-chung__hero-description {
  font-size: 1.3em;
  color: #FFF1E8;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-index-gioi-thieu-chung__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-index-gioi-thieu-chung__btn-primary,
.page-index-gioi-thieu-chung__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-gioi-thieu-chung__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
}

.page-index-gioi-thieu-chung__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index-gioi-thieu-chung__btn-secondary {
  background: transparent;
  color: #F3C54D;
  border: 2px solid #F3C54D;
}

.page-index-gioi-thieu-chung__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C;
  transform: translateY(-2px);
}

/* Intro Section */
.page-index-gioi-thieu-chung__intro-section,
.page-index-gioi-thieu-chung__game-variety-section,
.page-index-gioi-thieu-chung__conclusion-section {
  padding: 80px 0;
}

.page-index-gioi-thieu-chung__features-section,
.page-index-gioi-thieu-chung__security-section,
.page-index-gioi-thieu-chung__blog-section {
  padding: 80px 0;
  background-color: #140C0C;
}

/* Features Section */
.page-index-gioi-thieu-chung__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-gioi-thieu-chung__feature-card {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #6A1E1E;
}

.page-index-gioi-thieu-chung__feature-title {
  font-size: 1.5em;
  color: #F3C54D;
  margin-bottom: 15px;
}

/* Game List */
.page-index-gioi-thieu-chung__game-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-index-gioi-thieu-chung__game-list li {
  background-color: #2A1212;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #C61F1F;
  border-radius: 5px;
  display: flex;
  align-items: center;
  color: #FFF1E8;
}

.page-index-gioi-thieu-chung__game-list li strong {
  color: #F3C54D;
  margin-right: 10px;
}

/* Guide Section (5 vertical cards) */
.page-index-gioi-thieu-chung__guide-section {
  padding: 80px 0;
  background-color: #2A1212; /* Light BG for this section */
}

.page-index-gioi-thieu-chung__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items to start for staggered effect */
  gap: 15px;
  flex-wrap: wrap;
}

.page-index-gioi-thieu-chung__guide-card {
  flex: 0 0 calc(20% - 15px);
  max-width: calc(20% - 15px);
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-index-gioi-thieu-chung__guide-card:hover {
  transform: translateY(-10px);
}

.page-index-gioi-thieu-chung__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
  object-fit: cover;
  display: block;
}

/* Staggered effect for desktop */
.page-index-gioi-thieu-chung__guide-card--pos-1 { padding-top: 50px; }
.page-index-gioi-thieu-chung__guide-card--pos-2 { padding-top: 25px; }
.page-index-gioi-thieu-chung__guide-card--pos-4 { padding-top: 25px; }
.page-index-gioi-thieu-chung__guide-card--pos-5 { padding-top: 50px; }

/* Blog Section */
.page-index-gioi-thieu-chung__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-index-gioi-thieu-chung__blog-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
  display: flex;
  flex-direction: column;
}

.page-index-gioi-thieu-chung__blog-image-link {
  display: block;
  height: 200px; /* Fixed height for blog card images */
  overflow: hidden;
}

.page-index-gioi-thieu-chung__blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index-gioi-thieu-chung__blog-card:hover img {
  transform: scale(1.05);
}

.page-index-gioi-thieu-chung__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-gioi-thieu-chung__blog-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-index-gioi-thieu-chung__blog-title a {
  color: #F3C54D;
  text-decoration: none;
}

.page-index-gioi-thieu-chung__blog-title a:hover {
  text-decoration: underline;
}

.page-index-gioi-thieu-chung__blog-meta {
  font-size: 0.9em;
  color: #E53030;
  margin-bottom: 15px;
}

.page-index-gioi-thieu-chung__blog-excerpt {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-gioi-thieu-chung__read-more {
  display: inline-block;
  color: #FFB04A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-index-gioi-thieu-chung__read-more:hover {
  color: #F3C54D;
  text-decoration: underline;
}

.page-index-gioi-thieu-chung__view-all-button-container {
  text-align: center;
  margin-top: 30px;
}

/* General image styling for responsiveness */
.page-index-gioi-thieu-chung img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-gioi-thieu-chung__section-title {
    font-size: 2.2em;
  }

  .page-index-gioi-thieu-chung__main-title {
    font-size: 2.5em;
  }

  .page-index-gioi-thieu-chung__hero-description {
    font-size: 1.1em;
  }

  .page-index-gioi-thieu-chung__hero-slider {
    height: 500px;
  }

  .page-index-gioi-thieu-chung__content-wrapper {
    flex-direction: column;
  }

  .page-index-gioi-thieu-chung__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-index-gioi-thieu-chung__guide-card {
    flex: 0 0 calc(33.33% - 15px);
    max-width: calc(33.33% - 15px);
  }

  .page-index-gioi-thieu-chung__guide-card--pos-1, .page-index-gioi-thieu-chung__guide-card--pos-2, .page-index-gioi-thieu-chung__guide-card--pos-3, .page-index-gioi-thieu-chung__guide-card--pos-4, .page-index-gioi-thieu-chung__guide-card--pos-5 {
    padding-top: 0;
  }

  .page-index-gioi-thieu-chung__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Universal mobile padding */
  .page-index-gioi-thieu-chung__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-index-gioi-thieu-chung__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 40px;
  }

  .page-index-gioi-thieu-chung__hero-slider {
    height: 400px !important;
  }

  .page-index-gioi-thieu-chung__hero-slider-prev,
  .page-index-gioi-thieu-chung__hero-slider-next {
    padding: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }

  .page-index-gioi-thieu-chung__hero-content {
    padding: 20px 15px;
  }

  .page-index-gioi-thieu-chung__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-index-gioi-thieu-chung__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-index-gioi-thieu-chung__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-index-gioi-thieu-chung__btn-primary,
  .page-index-gioi-thieu-chung__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Adjustments */
  .page-index-gioi-thieu-chung__intro-section,
  .page-index-gioi-thieu-chung__features-section,
  .page-index-gioi-thieu-chung__game-variety-section,
  .page-index-gioi-thieu-chung__security-section,
  .page-index-gioi-thieu-chung__guide-section,
  .page-index-gioi-thieu-chung__blog-section,
  .page-index-gioi-thieu-chung__conclusion-section {
    padding: 40px 0;
  }

  .page-index-gioi-thieu-chung__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-gioi-thieu-chung__sub-title {
    font-size: 1.4em;
  }

  .page-index-gioi-thieu-chung__section-description {
    margin-bottom: 30px;
  }

  .page-index-gioi-thieu-chung__text-block,
  .page-index-gioi-thieu-chung__image-block {
    flex: none;
    width: 100%;
  }

  /* Features Grid */
  .page-index-gioi-thieu-chung__features-grid {
    grid-template-columns: 1fr;
  }

  /* Guide Section (5 vertical cards) - Specific mobile layout */
  .page-index-gioi-thieu-chung__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Use a 6-column grid for precise spanning */
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-index-gioi-thieu-chung__guide-card {
    flex: none;
    max-width: 100%;
    padding-top: 0 !important; /* Reset staggered padding */
    margin-bottom: 0;
  }

  .page-index-gioi-thieu-chung__guide-card--pos-1,
  .page-index-gioi-thieu-chung__guide-card--pos-2 {
    grid-column: span 3; /* First two cards span 3 columns each (2/6 width) */
  }

  .page-index-gioi-thieu-chung__guide-card--pos-3,
  .page-index-gioi-thieu-chung__guide-card--pos-4,
  .page-index-gioi-thieu-chung__guide-card--pos-5 {
    grid-column: span 2; /* Remaining three cards span 2 columns each (3/6 width) */
  }

  .page-index-gioi-thieu-chung__guide-card img {
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
    object-fit: cover;
  }

  /* Blog Section */
  .page-index-gioi-thieu-chung__blog-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-index-gioi-thieu-chung__blog-image-link {
    height: 180px; /* Adjust image height for mobile cards */
  }

  /* Universal image responsive styles for mobile */
  .page-index-gioi-thieu-chung img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* All containers holding images or content */
  .page-index-gioi-thieu-chung__section,
  .page-index-gioi-thieu-chung__card,
  .page-index-gioi-thieu-chung__container,
  .page-index-gioi-thieu-chung__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}