/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-index__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.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;
  text-align: center;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-index__btn--primary:hover {
  background-color: #1b769d;
  border-color: #1b769d;
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index__btn--secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-index__btn--download {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-index__btn--download:hover {
  background-color: #d9561f;
  border-color: #d9561f;
}

.page-index__btn--play {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    font-size: 0.9em;
    padding: 8px 15px;
}

.page-index__btn--play:hover {
    background-color: #1b769d;
    border-color: #1b769d;
}

.page-index__btn--more-info,
.page-index__btn--read-more,
.page-index__btn--view-more {
    background-color: transparent;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    font-size: 0.9em;
    padding: 8px 15px;
}

.page-index__btn--more-info:hover,
.page-index__btn--read-more:hover,
.page-index__btn--view-more:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, #26A9E0, #67c3e9);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-wrap: wrap;
  text-align: center;
}

.page-index__hero-content {
  max-width: 600px;
  margin: 0 20px;
  flex: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-index__hero-image-wrapper {
  flex: 1;
  max-width: 600px;
  margin: 0 20px;
}

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

/* About Section */
.page-index__about-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-index__about-section .page-index__btn {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Games Section */
.page-index__games-section {
  padding: 60px 0;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-index__game-card-title a:hover {
    text-decoration: underline;
}

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

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.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;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

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

.page-index__promo-card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

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

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 60px 0;
}

.page-index__why-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-index__why-item {
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
  position: relative;
  padding-left: 40px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__why-item::before {
  content: '✔';
  color: #26A9E0;
  font-size: 1.2em;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.page-index__why-choose-section .page-index__btn {
    margin-top: 40px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* App Section */
.page-index__app-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-index__app-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: left;
}

.page-index__app-text {
  max-width: 500px;
  margin-right: 40px;
}

.page-index__app-text .page-index__section-title {
  color: #FFFFFF;
  text-align: left;
}

.page-index__app-text .page-index__section-description {
  color: #f0f0f0;
  text-align: left;
}

.page-index__app-image-wrapper {
  max-width: 300px;
}

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

/* News Section */
.page-index__news-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-index__news-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-index__news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__news-card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__news-card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-index__news-card-title a:hover {
    text-decoration: underline;
}

.page-index__news-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__all-news {
    text-align: center;
    margin-top: 40px;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.page-index__responsible-gaming-section .page-index__section-title {
    color: #000000;
}

.page-index__responsible-gaming-section .page-index__section-description {
    color: #333333;
}

.page-index__responsible-gaming-section .page-index__btn {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-section {
    flex-direction: column;
  }

  .page-index__hero-content,
  .page-index__hero-image-wrapper {
    margin: 20px 0;
  }

  .page-index__hero-title {
    font-size: 2.8em;
  }

  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__app-text {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .page-index__app-text .page-index__section-title,
  .page-index__app-text .page-index__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__section-title {
    font-size: 2em;
  }

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

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

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__btn {
    width: 80%;
    margin: 0 auto;
  }

  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__news-grid {
    grid-template-columns: 1fr;
  }

  .page-index__why-list {
    grid-template-columns: 1fr;
  }

  .page-index__why-item {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section {
    padding: 60px 0;
  }

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

  .page-index__hero-description {
    font-size: 0.9em;
  }

  .page-index__btn {
    font-size: 0.9em;
    padding: 10px 20px;
  }

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

  .page-index__section-description {
    font-size: 0.9em;
  }
}

/* Blog Section Styles - Auto Generated */
.latest-blog-section {
  padding: 40px 20px;
  margin: 20px 0;
}

.latest-blog-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.latest-blog-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: bold;
}

.latest-blog-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-card .blog-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.blog-card .blog-content {
  padding: 20px;
}

.blog-card .blog-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-card .blog-content .blog-title-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card .blog-content .blog-title-link:hover {
  color: #007bff;
}

.blog-card .blog-content .blog-excerpt {
  color: #666;
  line-height: 1.7;
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}

.blog-card .blog-content .blog-date {
  display: block;
  color: #999;
  font-size: 0.9rem;
  margin: 15px 0 12px 0;
}

.blog-card .blog-content .read-more-link {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.blog-card .blog-content .read-more-link:hover {
  background: #0056b3;
}

.view-all-posts {
  text-align: center;
  margin-top: 30px;
}

.view-all-posts .cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.view-all-posts .cta-button.secondary {
  background: #6c757d;
}

.view-all-posts .cta-button.secondary:hover {
  background: #5a6268;
}

.view-all-posts .cta-button:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
  
  .latest-blog-section h2 {
    font-size: 1.5rem;
  }
  
  .blog-card .blog-img {
    height: 250px;
  }
  
  .blog-card .blog-content {
    padding: 15px;
  }
}
