/* style/index.css */

/* Biến CSS */
:root {
  --page-index-primary-color: #003366;
  --page-index-accent-color: #FFD700;
  --page-index-text-light: #ffffff;
  --page-index-text-light-sub: #e0e0e0;
  --page-index-text-dark: #333333;
  --page-index-bg-light: #f8f8f8;
  --page-index-bg-dark: #002244;
  --page-index-border-color: #004488;
}

/* Khung chứa chính của trang */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-index-text-dark);
  background-color: var(--page-index-bg-light);
}

/* Tiêu đề và phụ đề chung */
.page-index-section-title {
  font-size: 2.8em;
  color: var(--page-index-primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-index-section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-index-accent-color);
  border-radius: 2px;
}

.page-index-section-subtitle {
  font-size: 1.2em;
  color: var(--page-index-text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Khoảng cách phần */
.page-index-section-padding {
  padding: 80px 0;
}

/* Background colors */
.page-index-bg-dark {
  background-color: var(--page-index-bg-dark);
}

.page-index-bg-light {
  background-color: var(--page-index-bg-light);
}

.page-index-bg-accent {
  background-color: var(--page-index-accent-color);
}

/* Text colors */
.page-index-text-light {
  color: var(--page-index-text-light);
}

.page-index-text-light-sub {
  color: var(--page-index-text-light-sub);
}

.page-index-text-dark {
  color: var(--page-index-text-dark);
}

.page-index-text-center {
  text-align: center;
}

/* Container */
.page-index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nút chung */
.page-index-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.page-index-btn-primary {
  background-color: var(--page-index-accent-color);
  color: var(--page-index-primary-color);
}

.page-index-btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index-btn-secondary {
  background-color: transparent;
  color: var(--page-index-accent-color);
  border: 2px solid var(--page-index-accent-color);
}

.page-index-btn-secondary:hover {
  background-color: var(--page-index-accent-color);
  color: var(--page-index-primary-color);
  transform: translateY(-2px);
}

.page-index-btn-outline {
  background-color: transparent;
  color: var(--page-index-primary-color);
  border: 2px solid var(--page-index-primary-color);
}

.page-index-btn-outline:hover {
  background-color: var(--page-index-primary-color);
  color: var(--page-index-text-light);
  transform: translateY(-2px);
}

.page-index-btn-dark {
  background-color: var(--page-index-primary-color);
  color: var(--page-index-accent-color);
}

.page-index-btn-dark:hover {
  background-color: #002a52;
  transform: translateY(-2px);
}

.page-index-btn-lg {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-index-btn-sm {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Hero Section */
.page-index-hero-section {
  background: linear-gradient(135deg, var(--page-index-primary-color) 0%, #002244 100%);
  color: var(--page-index-text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-index-hero-content {
  max-width: 600px;
  padding: 0 40px;
  z-index: 1;
}

.page-index-hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--page-index-accent-color);
}

.page-index-hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-index-hero-actions .page-index-btn {
  margin-right: 15px;
}

.page-index-hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
  z-index: 0;
  border-radius: 10px 0 0 10px;
}

/* About Section */
.page-index-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index-about-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-index-about-image-wrapper {
  text-align: center;
}

.page-index-about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-index-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-feature-item {
  background-color: var(--page-index-primary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-index-feature-item:hover {
  transform: translateY(-10px);
}

.page-index-feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--page-index-accent-color));
}

.page-index-feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-index-accent-color);
}

.page-index-feature-description {
  font-size: 1em;
  line-height: 1.7;
}

/* Games Section */
.page-index-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 60px;
}

.page-index-game-category {
  background-color: var(--page-index-text-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--page-index-primary-color);
}

.page-index-game-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-game-title {
  font-size: 1.5em;
  color: var(--page-index-primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index-game-category p {
  font-size: 1em;
  line-height: 1.7;
  color: #555;
}

.page-index-games-overview-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Promo Section */
.page-index-promo-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.page-index-promo-content {
  z-index: 1;
  max-width: 600px;
  padding-right: 40px;
}

.page-index-promo-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-index-promo-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--page-index-text-dark);
}

.page-index-promo-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--page-index-primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-index-promo-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

/* Security Section */
.page-index-security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index-security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-index-security-image-wrapper {
  text-align: center;
}

.page-index-security-image {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Detail Pages Section */
.page-index-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-detail-item {
  background-color: var(--page-index-text-light);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-detail-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-index-detail-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index-detail-item h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: var(--page-index-primary-color);
  font-weight: 700;
}

.page-index-detail-item h3 a {
  text-decoration: none;
  color: inherit;
}

.page-index-detail-item h3 a:hover {
  color: var(--page-index-accent-color);
}

.page-index-detail-description {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-detail-item .page-index-btn {
  margin: 0 20px 20px;
  align-self: flex-start;
}

/* CTA Section */
.page-index-cta-section {
  background: linear-gradient(90deg, var(--page-index-primary-color), #004488);
  color: var(--page-index-text-light);
  padding: 100px 0;
}

.page-index-cta-section .page-index-section-title {
  color: var(--page-index-accent-color);
}

.page-index-cta-section .page-index-section-subtitle {
  color: var(--page-index-text-light-sub);
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px;
    min-height: auto;
  }

  .page-index-hero-content {
    max-width: 100%;
    padding: 0;
    margin-bottom: 40px;
  }

  .page-index-hero-title {
    font-size: 3em;
  }

  .page-index-hero-description {
    font-size: 1.1em;
  }

  .page-index-hero-image {
    position: static;
    transform: none;
    width: 90%;
    margin-top: 40px;
    border-radius: 10px;
  }

  .page-index-about-grid, .page-index-security-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-index-promo-section {
    flex-direction: column;
    text-align: center;
  }

  .page-index-promo-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-index-promo-image {
    position: static;
    transform: none;
    opacity: 0.1;
    width: 100%;
  }

  .page-index-section-title {
    font-size: 2.2em;
  }

  .page-index-section-subtitle {
    font-size: 1.1em;
  }

  .page-index-section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-index-hero-title {
    font-size: 2.5em;
  }

  .page-index-hero-description {
    font-size: 1em;
  }

  .page-index-hero-actions .page-index-btn {
    display: block;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-index-features-grid, .page-index-games-grid, .page-index-detail-grid {
    grid-template-columns: 1fr;
  }

  .page-index-feature-item, .page-index-game-category, .page-index-detail-item {
    padding: 20px;
  }

  .page-index-feature-title {
    font-size: 1.6em;
  }

  .page-index-game-title {
    font-size: 1.3em;
  }

  .page-index-section-title {
    font-size: 1.8em;
  }

  .page-index-section-subtitle {
    font-size: 0.95em;
  }

  .page-index-section-padding {
    padding: 40px 0;
  }
}