:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --light-grey: #f9f9f9;
  --dark-grey: #666;
  --white: #ffffff;
}

.page-blog {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--page-bg); /* Page background color */
}

/* General Section Styles */
.page-blog__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-blog__section:nth-of-type(even) {
  background-color: var(--light-grey);
}

.page-blog__dark-section {
  background: var(--primary-color);
  color: var(--white);
}

.page-blog__light-bg {
  background: var(--card-bg); /* Use white for light background */
  color: var(--text-main);
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-description,
.page-blog__dark-section p,
.page-blog__dark-section h3 {
  color: var(--white);
}

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

/* Section Titles */
.page-blog__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-blog__dark-section .page-blog__section-title {
  color: var(--white);
}

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

.page-blog__dark-section .page-blog__section-description {
  color: var(--white);
}

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

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

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-blog__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-blog__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  background-color: var(--page-bg);
  text-align: center;
}

.page-blog__hero-image {
  margin-bottom: 30px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.page-blog__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-black); /* Ensure high contrast */
}

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

.page-blog__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Latest Articles */
.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

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

.page-blog__article-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for thumbnails */
  overflow: hidden;
}

.page-blog__article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

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

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.page-blog__view-all-wrapper {
  text-align: center;
}

/* About Section */
.page-blog__about-section {
  padding: 80px 0;
}

.page-blog__about-section .page-blog__section-title,
.page-blog__about-section .page-blog__section-description {
  color: var(--white);
}

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

.page-blog__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-blog__text-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-blog__dark-section .page-blog__text-content p {
  color: var(--white);
}

.page-blog__image-content {
  flex: 1;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* Tips Section */
.page-blog__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__tip-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
}

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

.page-blog__tip-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Casino Guides */
.page-blog__casino-guides {
  background-color: var(--page-bg); /* Ensure light background for this section */
  padding: 80px 0;
}

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

.page-blog__guide-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__guide-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  background: var(--page-bg); /* Light background for icon */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.page-blog__guide-icon img {
  max-width: 80%;
  max-height: 80%;
  height: auto;
  display: block;
}

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

.page-blog__guide-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions */
.page-blog__promo-section {
  padding: 80px 0;
}

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

.page-blog__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.page-blog__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-blog__promo-card .page-blog__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.page-blog__promo-card p {
  font-size: 16px;
  line-height: 1.6;
  padding: 0 25px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-blog__promo-card .page-blog__btn-secondary {
  margin: 0 25px 25px;
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.page-blog__promo-card .page-blog__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Why Choose ibet888 */
.page-blog__why-choose {
  padding: 80px 0;
}

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

.page-blog__advantage-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: var(--white);
}

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

.page-blog__advantage-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: var(--page-bg);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: var(--light-grey);
  border-radius: 0 0 12px 12px;
}
.page-blog__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}

/* General image and container responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__section,
.page-blog__container,
.page-blog__card,
.page-blog__content-wrapper,
.page-blog__hero-cta,
.page-blog__cta-wrapper,
.page-blog__articles-grid,
.page-blog__tips-grid,
.page-blog__guides-grid,
.page-blog__promo-grid,
.page-blog__advantages-grid {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 42px;
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__section-description {
    font-size: 16px;
  }
  .page-blog__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-blog__content-wrapper--reverse {
    flex-direction: column-reverse;
  }
  .page-blog__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 0 15px;
  }

  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 40px;
  }
  .page-blog__hero-title {
    font-size: clamp(28px, 8vw, 36px); /* Adaptive font size for H1 */
    margin-bottom: 15px;
  }
}