/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__section-title {
  font-size: 2.5em;
  color: #003366; /* Primary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-index__btn--primary {
  background-color: #003366; /* Primary color */
  color: #FFD700; /* Secondary color for text */
  border: 2px solid #003366;
}

.page-index__btn--primary:hover {
  background-color: #002244;
  color: #FFF;
}

.page-index__btn--secondary {
  background-color: #FFD700; /* Secondary color */
  color: #003366; /* Primary color for text */
  border: 2px solid #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #e6c200;
  color: #003366;
}

.page-index__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-index__btn--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, #003366, #002244);
  color: #ffffff;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px; /* Minimum height for hero section */
}

.page-index__hero-content-wrapper {
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  font-weight: bold;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #e0e0e0;
}

.page-index__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Features Section */
.page-index__features-section,
.page-index__games-showcase-section,
.page-index__promotions-section,
.page-index__gcash-benefits-section,
.page-index__mobile-app-section,
.page-index__security-gaming-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

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

.page-index__feature-card:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon {
  width: 200px; /* Ensure minimum size */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Games Showcase Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: #333333;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.page-index__game-title {
  font-size: 1.4em;
  color: #003366;
  margin: 20px 15px 10px;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn {
  margin: 0 15px 20px;
  align-self: center;
  width: calc(100% - 30px);
  background-color: #FFD700;
  color: #003366;
  border: none;
}

.page-index__game-card .page-index__btn:hover {
  background-color: #e6c200;
}

/* Promotions Section */
.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
}

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

.page-index__promo-title {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 15px 10px;
}

.page-index__promo-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px;
}

.page-index__promo-card .page-index__btn {
  margin-bottom: 20px;
  background-color: #003366;
  color: #FFD700;
  border: none;
}

.page-index__promo-card .page-index__btn:hover {
  background-color: #002244;
}

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

/* GCash Benefits Section */
.page-index__gcash-benefits-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 40px;
}

.page-index__gcash-content {
  flex: 1;
  min-width: 300px;
}

.page-index__gcash-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__gcash-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-index__benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-index__benefit-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-index__benefit-item::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__benefits-text {
  margin-top: 20px;
  font-size: 1em;
  color: #555555;
}

/* Mobile App Section */
.page-index__mobile-app-section {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 40px;
}

.page-index__mobile-app-content {
  flex: 1;
  min-width: 300px;
}

.page-index__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-index__app-features-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-index__app-feature-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-index__app-feature-item::before {
  content: '📱';
  color: #003366;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Security & Gaming Section */
.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-index__security-card:hover {
  transform: translateY(-10px);
}

.page-index__security-icon {
  width: 200px; /* Ensure minimum size */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__security-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 10px;
}

.page-index__security-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-index__link {
  color: #FFD700; /* Secondary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-index__link:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-index__cta-section {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 60px; /* Add margin to separate from footer */
}

.page-index__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn--large {
    width: 100%;
  }
  .page-index__features-section,
  .page-index__games-showcase-section,
  .page-index__promotions-section,
  .page-index__gcash-benefits-section,
  .page-index__mobile-app-section,
  .page-index__security-gaming-section,
  .page-index__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-index__gcash-benefits-section,
  .page-index__mobile-app-section {
    flex-direction: column;
    padding: 30px;
  }
  .page-index__gcash-content,
  .page-index__gcash-image-wrapper,
  .page-index__mobile-app-content,
  .page-index__mobile-app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__feature-icon,
  .page-index__security-icon {
    width: 200px; /* Ensure minimum size */
  }
  /* Mobile responsive images: enforce max-width for content area images */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-card .page-index__feature-icon,
  .page-index__game-card .page-index__game-image,
  .page-index__promo-card .page-index__promo-image,
  .page-index__gcash-image,
  .page-index__mobile-app-image,
  .page-index__security-card .page-index__security-icon {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__cta-section {
    padding: 40px 15px;
  }
}