/* style/blog.css */

:root {
  --page-blog-primary-color: #113B7A;
  --page-blog-secondary-color: #1D5FD1;
  --page-blog-text-main: #F3F8FF;
  --page-blog-text-secondary: #AFC4E8;
  --page-blog-card-bg: #10233F;
  --page-blog-border-color: #244D84;
  --page-blog-divider-color: #1B3357;
  --page-blog-deep-navy: #08162B;
  --page-blog-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

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

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--page-blog-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 18px;
  color: var(--page-blog-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background: var(--page-blog-button-gradient);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--page-blog-secondary-color);
  border: 2px solid var(--page-blog-secondary-color);
}

.page-blog__btn-secondary:hover {
  background: var(--page-blog-secondary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-blog__text-link {
  color: var(--page-blog-secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__text-link:hover {
  color: var(--page-blog-glow);
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background: var(--page-blog-deep-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 15px 60px;
  max-width: 900px;
}

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--page-blog-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 20px;
  color: var(--page-blog-text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Articles Section */
.page-blog__articles-section {
  padding: 80px 0;
  background: var(--page-blog-deep-navy);
}

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

.page-blog__article-card {
  background: var(--page-blog-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: var(--page-blog-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: var(--page-blog-secondary-color);
}

.page-blog__article-meta {
  font-size: 14px;
  color: var(--page-blog-text-secondary);
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: var(--page-blog-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: var(--page-blog-secondary-color);
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: var(--page-blog-glow);
}

.page-blog__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* About Section */
.page-blog__about-section {
  padding: 80px 0;
  background: var(--page-blog-text-main);
  color: #333333; /* Dark text for light background */
}

.page-blog__about-section .page-blog__section-title {
  color: var(--page-blog-primary-color);
}

.page-blog__about-section .page-blog__section-description {
  color: #555555;
}

.page-blog__about-section p {
  color: #444444;
}

.page-blog__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__text-block {
  flex: 1;
}

.page-blog__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-blog__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Games Section */
.page-blog__games-section {
  padding: 80px 0;
  background: var(--page-blog-deep-navy);
}

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

.page-blog__game-category-card {
  background: var(--page-blog-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__game-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__game-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.page-blog__game-category-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-blog-text-main);
  margin-bottom: 15px;
}

.page-blog__game-category-card p {
  font-size: 16px;
  color: var(--page-blog-text-secondary);
  margin-bottom: 25px;
}

/* How-To Section */
.page-blog__how-to-section {
  padding: 80px 0;
  background: var(--page-blog-text-main);
  color: #333333; /* Dark text for light background */
}

.page-blog__how-to-section .page-blog__section-title {
  color: var(--page-blog-primary-color);
}

.page-blog__how-to-section .page-blog__section-description {
  color: #555555;
}

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

.page-blog__step-item {
  background: #ffffff;
  border: 1px solid var(--page-blog-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-blog__step-item:hover {
  transform: translateY(-5px);
}

.page-blog__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--page-blog-secondary-color);
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-blog__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-blog-primary-color);
  margin-bottom: 15px;
}

.page-blog__step-item p {
  font-size: 16px;
  color: #444444;
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Promotions Section */
.page-blog__promotions-section {
  padding: 80px 0;
  background: var(--page-blog-deep-navy);
}

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

.page-blog__promotion-card {
  background: var(--page-blog-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-blog-text-main);
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-blog__promotion-card p {
  font-size: 16px;
  color: var(--page-blog-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-blog__why-choose-section {
  padding: 80px 0;
  background: var(--page-blog-text-main);
  color: #333333; /* Dark text for light background */
}

.page-blog__why-choose-section .page-blog__section-title {
  color: var(--page-blog-primary-color);
}

.page-blog__why-choose-section .page-blog__section-description {
  color: #555555;
}

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

.page-blog__advantage-card {
  background: #ffffff;
  border: 1px solid var(--page-blog-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-blog__advantage-card:hover {
  transform: translateY(-5px);
}

.page-blog__advantage-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.page-blog__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-blog-primary-color);
  margin-bottom: 15px;
}

.page-blog__advantage-card p {
  font-size: 16px;
  color: #444444;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background: var(--page-blog-deep-navy);
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-blog-border-color);
  overflow: hidden;
  background: var(--page-blog-card-bg);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-blog-text-main);
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-blog-secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  color: var(--page-blog-text-secondary);
  font-size: 16px;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  padding: 80px 0;
  background: var(--page-blog-text-main);
  color: #333333; /* Dark text for light background */
  text-align: center;
}

.page-blog__conclusion-section .page-blog__section-title {
  color: var(--page-blog-primary-color);
}

.page-blog__conclusion-section .page-blog__section-description {
  color: #555555;
  max-width: 800px;
  margin: 0 auto 20px;
}

.page-blog__conclusion-cta {
  margin-top: 40px;
}

/* General image styling for content area */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__articles-grid,
  .page-blog__game-categories-grid,
  .page-blog__steps-grid,
  .page-blog__promotions-grid,
  .page-blog__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__content-wrapper {
    flex-direction: column;
  }
  .page-blog__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px;
  }
  .page-blog__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    padding: 30px 15px 40px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__articles-section,
  .page-blog__about-section,
  .page-blog__games-section,
  .page-blog__how-to-section,
  .page-blog__promotions-section,
  .page-blog__why-choose-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    padding: 50px 0;
  }
  .page-blog__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid,
  .page-blog__game-categories-grid,
  .page-blog__steps-grid,
  .page-blog__promotions-grid,
  .page-blog__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image,
  .page-blog__promotion-image {
    height: 180px;
  }
  .page-blog__article-title,
  .page-blog__game-category-title,
  .page-blog__promotion-title,
  .page-blog__step-title,
  .page-blog__advantage-title {
    font-size: 20px;
  }
  .page-blog__article-excerpt,
  .page-blog__game-category-card p,
  .page-blog__step-item p,
  .page-blog__promotion-card p,
  .page-blog__advantage-card p {
    font-size: 15px;
  }
  .page-blog__read-more {
    font-size: 15px;
  }
  .page-blog__text-block p {
    font-size: 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__about-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
}