/* style/blog-latest-games-offers.css */

:root {
  --ax88-primary-color: #2F6BFF;
  --ax88-secondary-color: #6FA3FF;
  --ax88-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --ax88-card-bg: #FFFFFF;
  --ax88-background: #F4F7FB;
  --ax88-text-main: #1F2D3D;
  --ax88-border-color: #D6E2FF;
  --ax88-glow-color: #A5C4FF;
}

.page-blog-latest-games-offers {
  font-family: 'Arial', sans-serif;
  color: var(--ax88-text-main); /* Default text color for light background */
  background-color: var(--ax88-background); /* Default background color */
  line-height: 1.6;
}

.page-blog-latest-games-offers__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-latest-games-offers__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--ax88-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog-latest-games-offers__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
  color: var(--ax88-text-main);
}

/* Hero Section */
.page-blog-latest-games-offers__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--ax88-primary-color);
  color: #ffffff;
}

.page-blog-latest-games-offers__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-blog-latest-games-offers__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-latest-games-offers__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-blog-latest-games-offers__main-title {
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  /* clamp for responsive font size, but not overly large */
  font-size: clamp(2.2em, 5vw, 3.5em);
}

.page-blog-latest-games-offers__subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-blog-latest-games-offers__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-blog-latest-games-offers__btn-primary,
.page-blog-latest-games-offers__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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-latest-games-offers__btn-primary {
  background: var(--ax88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog-latest-games-offers__btn-primary:hover {
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

.page-blog-latest-games-offers__btn-secondary {
  background: #ffffff;
  color: var(--ax88-primary-color);
  border: 2px solid var(--ax88-primary-color);
}

.page-blog-latest-games-offers__btn-secondary:hover {
  background: var(--ax88-primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
  transform: translateY(-2px);
}

/* Card Styles */
.page-blog-latest-games-offers__card {
  background: var(--ax88-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--ax88-text-main);
  border: 1px solid var(--ax88-border-color);
  box-sizing: border-box;
}

.page-blog-latest-games-offers__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog-latest-games-offers__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

.page-blog-latest-games-offers__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--ax88-primary-color);
  margin-bottom: 15px;
}

.page-blog-latest-games-offers__card-description {
  font-size: 1em;
  color: var(--ax88-text-main);
  margin-bottom: 20px;
}

/* Introduction Section */
.page-blog-latest-games-offers__introduction-section {
  padding: 80px 0;
  background-color: var(--ax88-background);
}

.page-blog-latest-games-offers__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-blog-latest-games-offers__games-section {
  padding: 80px 0;
  background-color: var(--ax88-background);
}

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

/* Promotions Section */
.page-blog-latest-games-offers__promotions-section {
  padding: 80px 0;
  background-color: var(--ax88-primary-color);
  color: #ffffff;
}

.page-blog-latest-games-offers__promotions-section .page-blog-latest-games-offers__section-title {
  color: #ffffff;
}

.page-blog-latest-games-offers__promotions-section .page-blog-latest-games-offers__text-block {
  color: #f0f0f0;
}

.page-blog-latest-games-offers__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-latest-games-offers__promo-card .page-blog-latest-games-offers__card-title {
  color: var(--ax88-primary-color);
}

.page-blog-latest-games-offers__promo-card .page-blog-latest-games-offers__card-description {
  color: var(--ax88-text-main);
}

.page-blog-latest-games-offers__full-promo-cta {
  text-align: center;
  margin-top: 50px;
}

/* Why Choose Us Section */
.page-blog-latest-games-offers__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--ax88-background);
}

.page-blog-latest-games-offers__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog-latest-games-offers__advantage-item {
  text-align: left;
  padding: 25px;
  border-radius: 12px;
  background-color: var(--ax88-card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ax88-border-color);
}

.page-blog-latest-games-offers__advantage-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--ax88-primary-color);
  margin-bottom: 15px;
}

.page-blog-latest-games-offers__advantage-description {
  font-size: 1em;
  color: var(--ax88-text-main);
}

.page-blog-latest-games-offers__image-center {
  display: block;
  margin: 50px auto 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Registration Guide Section */
.page-blog-latest-games-offers__registration-guide-section {
  padding: 80px 0;
  background-color: var(--ax88-primary-color);
  color: #ffffff;
}

.page-blog-latest-games-offers__registration-guide-section .page-blog-latest-games-offers__section-title {
  color: #ffffff;
}

.page-blog-latest-games-offers__registration-guide-section .page-blog-latest-games-offers__text-block {
  color: #f0f0f0;
}

.page-blog-latest-games-offers__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-latest-games-offers__step-card {
  position: relative;
  padding-top: 60px;
  min-height: 200px;
}

.page-blog-latest-games-offers__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ax88-secondary-color);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-blog-latest-games-offers__faq-section {
  padding: 80px 0;
  background-color: var(--ax88-background);
}

.page-blog-latest-games-offers__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-blog-latest-games-offers__faq-item {
  background: var(--ax88-card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ax88-border-color);
  overflow: hidden;
}

.page-blog-latest-games-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--ax88-primary-color);
  background-color: #f8faff;
  border-bottom: 1px solid var(--ax88-border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog-latest-games-offers__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-latest-games-offers__faq-question:hover {
  background-color: #e6f0ff;
}

.page-blog-latest-games-offers__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--ax88-secondary-color);
  margin-left: 15px;
}

.page-blog-latest-games-offers__faq-item[open] .page-blog-latest-games-offers__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-blog-latest-games-offers__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--ax88-text-main);
  text-align: justify;
}

/* Final CTA Section */
.page-blog-latest-games-offers__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--ax88-primary-color);
  color: #ffffff;
}

.page-blog-latest-games-offers__cta-final-section .page-blog-latest-games-offers__section-title {
  color: #ffffff;
}

.page-blog-latest-games-offers__cta-final-section .page-blog-latest-games-offers__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-latest-games-offers__section-title {
    font-size: 2em;
  }
  .page-blog-latest-games-offers__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-blog-latest-games-offers__container {
    padding: 0 15px;
  }

  .page-blog-latest-games-offers__hero-section {
    padding-bottom: 40px;
  }

  .page-blog-latest-games-offers__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em);
  }

  .page-blog-latest-games-offers__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-blog-latest-games-offers__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-latest-games-offers__btn-primary,
  .page-blog-latest-games-offers__btn-secondary,
  .page-blog-latest-games-offers a[class*="button"],
  .page-blog-latest-games-offers a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-latest-games-offers__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog-latest-games-offers__text-block {
    font-size: 1em;
  }

  .page-blog-latest-games-offers__game-categories,
  .page-blog-latest-games-offers__promo-grid,
  .page-blog-latest-games-offers__advantage-list,
  .page-blog-latest-games-offers__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-latest-games-offers__card-title {
    font-size: 1.2em;
  }

  .page-blog-latest-games-offers__card-description {
    font-size: 0.95em;
  }

  .page-blog-latest-games-offers__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-blog-latest-games-offers__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-blog-latest-games-offers img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog-latest-games-offers__section,
  .page-blog-latest-games-offers__card,
  .page-blog-latest-games-offers__container,
  .page-blog-latest-games-offers__hero-image-wrapper,
  .page-blog-latest-games-offers__image-full-width,
  .page-blog-latest-games-offers__image-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-blog-latest-games-offers__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog-latest-games-offers__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-blog-latest-games-offers__section-title {
    font-size: 1.5em;
  }
  .page-blog-latest-games-offers__main-title {
    font-size: clamp(1.6em, 8vw, 2.5em);
  }
}