.page-home {
  color: #333333;
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

.page-home__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-home__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-home__hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  object-fit: cover;
  min-height: 500px;
}

.page-home__hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 20px;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.page-home__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-home__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-home__hero-cta-group,
.page-home__final-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-home__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-home__hero-cta--primary {
  background-color: #FFD700; /* Gold */
  color: #0A2463; /* Dark Blue */
  border: 2px solid #FFD700;
}

.page-home__hero-cta--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-home__hero-cta--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-home__hero-cta--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
}

.page-home__why-k8k-section,
.page-home__game-categories-section,
.page-home__promotions-section,
.page-home__mobile-app-section,
.page-home__responsible-gaming-section,
.page-home__faq-section,
.page-home__final-cta-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-home__why-k8k-section,
.page-home__promotions-section,
.page-home__faq-section {
  background-color: #f9f9f9;
}

.page-home__section-title {
  font-size: 2.8em;
  color: #0A2463; /* Dark Blue */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-home__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-home__section-intro {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

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

.page-home__feature-card,
.page-home__category-card,
.page-home__promo-card,
.page-home__faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home__feature-card:hover,
.page-home__category-card:hover,
.page-home__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-home__feature-icon {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-home__feature-title,
.page-home__category-title,
.page-home__promo-title,
.page-home__faq-question {
  font-size: 1.8em;
  color: #0A2463; /* Dark Blue */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-home__feature-description,
.page-home__category-description,
.page-home__promo-description,
.page-home__faq-answer {
  font-size: 1em;
  color: #666666;
  line-height: 1.8;
  flex-grow: 1;
}

.page-home__category-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-home__category-image,
.page-home__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-home__category-link {
  display: inline-block;
  margin-top: 20px;
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
  position: relative;
}

.page-home__category-link::after {
  content: '→';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: right 0.3s ease, opacity 0.3s ease;
}

.page-home__category-link:hover::after {
  right: -10px;
  opacity: 1;
}

.page-home__full-promo-cta,
.page-home__full-faq-cta {
  text-align: center;
  margin-top: 60px;
}

.page-home__mobile-app-section {
  background-color: #0A2463; /* Dark Blue */
  color: #ffffff;
}

.page-home__mobile-app-section .page-home__section-title,
.page-home__mobile-app-section .page-home__section-intro {
  color: #ffffff;
}

.page-home__mobile-app-section .page-home__section-title::after {
  background-color: #FFD700;
}

.page-home__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 60px;
}

.page-home__app-image {
  flex: 1;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 250px; /* Ensure image is not too small */
  min-height: 350px;
}

.page-home__app-details {
  flex: 2;
  text-align: left;
}

.page-home__app-subtitle {
  font-size: 2.2em;
  color: #FFD700; /* Gold */
  margin-bottom: 25px;
}

.page-home__app-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-home__app-features-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.page-home__list-icon {
  color: #FFD700;
  font-size: 1.5em;
  margin-right: 10px;
}

.page-home__responsible-gaming-section {
  background-color: #f9f9f9;
}

.page-home__responsible-gaming-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 60px;
}

.page-home__responsible-gaming-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 250px;
  min-height: 200px;
}

.page-home__responsible-gaming-text {
  flex: 2;
  text-align: left;
}

.page-home__responsible-gaming-subtitle {
  font-size: 2.2em;
  color: #0A2463; /* Dark Blue */
  margin-bottom: 25px;
}

.page-home__responsible-gaming-description {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 40px;
}

.page-home__faq-item {
  text-align: left;
  padding: 25px;
}

.page-home__faq-question {
  font-size: 1.3em;
  color: #0A2463; /* Dark Blue */
  margin-bottom: 10px;
}

.page-home__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-home__final-cta-section {
  background-color: #0A2463; /* Dark Blue */
  color: #ffffff;
  text-align: center;
}

.page-home__final-cta-section .page-home__section-title,
.page-home__final-cta-section .page-home__section-intro {
  color: #ffffff;
}

.page-home__final-cta-section .page-home__section-title::after {
  background-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-home__hero-title {
    font-size: 2.8em;
  }
  .page-home__section-title {
    font-size: 2.2em;
  }
  .page-home__app-content,
  .page-home__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }
  .page-home__app-details,
  .page-home__responsible-gaming-text {
    text-align: center;
  }
  .page-home__app-image,
  .page-home__responsible-gaming-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-home__hero-section {
    padding-top: var(--header-offset, 80px);
  }
  .page-home__hero-content {
    padding: 80px 15px;
    min-height: 500px;
  }
  .page-home__hero-title {
    font-size: 2.2em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__hero-cta-group,
  .page-home__final-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__hero-cta {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-home__why-k8k-section,
  .page-home__game-categories-section,
  .page-home__promotions-section,
  .page-home__mobile-app-section,
  .page-home__responsible-gaming-section,
  .page-home__faq-section,
  .page-home__final-cta-section {
    padding: 60px 0;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-home__features-grid,
  .page-home__categories-grid,
  .page-home__promos-grid,
  .page-home__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-home__feature-icon,
  .page-home__category-image,
  .page-home__promo-image,
  .page-home__app-image,
  .page-home__responsible-gaming-image {
    max-width: 100%;
    height: auto; /* Ensure images scale correctly */
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
    object-fit: cover;
  }
  .page-home__feature-title,
  .page-home__category-title,
  .page-home__promo-title,
  .page-home__faq-question,
  .page-home__app-subtitle,
  .page-home__responsible-gaming-subtitle {
    font-size: 1.5em;
  }
  .page-home__app-features-list li,
  .page-home__feature-description,
  .page-home__category-description,
  .page-home__promo-description,
  .page-home__faq-answer,
  .page-home__responsible-gaming-description {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-home__hero-content {
    padding: 60px 10px;
  }
  .page-home__hero-title {
    font-size: 1.8em;
  }
  .page-home__section-title {
    font-size: 1.5em;
  }
  .page-home__hero-cta {
    font-size: 0.95em;
  }
}

/* Ensure all content area images are at least 200px wide/high */
.page-home img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive image rules for content area to prevent overflow */
@media (max-width: 768px) {
  .page-home img {
    max-width: 100%;
    height: auto; /* Important: maintain aspect ratio */
  }
  .page-home {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}