/* General styles for the Blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
  padding-bottom: 40px;
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD86A; /* Gold-like for titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-blog__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog p {
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-blog ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-blog ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-blog ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD86A; /* Gold checkmark */
  font-weight: bold;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border color */
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.page-blog__hero-section {
  background: #B71C1C; /* Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  position: relative;
  overflow: hidden;
}

.page-blog__container .page-blog__hero-content {
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  text-align: center;
  padding: 40px 15px 60px;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(30px, 4.5vw, 48px); /* H1 clamp for responsive font size */
  color: #FFD86A;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.page-blog__subtitle {
  font-size: 20px;
  color: #FFF5E1;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Articles Overview Section */
.page-blog__articles-overview {
  background: #B71C1C; /* Background */
  padding-bottom: 60px;
}

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

.page-blog__article-card {
  background: #D32F2F; /* 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 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__article-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__card-title a {
  color: #FFD86A; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #F4D34D; /* Gold hover */
}

.page-blog__card-meta {
  font-size: 14px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 16px;
  color: #FFF5E1;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background: #E53935; /* Auxiliary color */
  color: #FFF5E1;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-btn:hover {
  background: #C91F17; /* Main color */
}

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

/* Content Sections (Sports, Casino, Promotions) */
.page-blog__sports-betting-section,
.page-blog__casino-section,
.page-blog__promotions-section {
  background: #7A0E0E; /* Deep Red for alternate sections */
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 10px;
  margin-left: 15px;
  margin-right: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

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

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

.page-blog__content-image {
  flex-shrink: 0;
  width: 500px; /* Fixed width for desktop */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: block;
}

/* FAQ Section */
.page-blog__faq-section {
  background: #B71C1C; /* Background */
  padding: 60px 0;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
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: #C91F17; /* Main color */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 10px 10px;
}
details.page-blog__faq-item .page-blog__faq-answer p {
  color: #FFF5E1;
}

/* Call to Action Section */
.page-blog__cta-section {
  background: linear-gradient(135deg, #C91F17 0%, #E53935 100%); /* Main to Auxiliary gradient */
  padding: 60px 0;
  text-align: center;
  margin-top: 40px;
  border-radius: 10px;
  margin-left: 15px;
  margin-right: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.page-blog__cta-title {
  font-size: 40px;
  color: #FFD86A; /* Gold */
  margin-bottom: 20px;
  font-weight: 800;
}

.page-blog__cta-description {
  font-size: 20px;
  color: #FFF5E1;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-blog__cta-button {
  min-width: 220px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 4vw, 42px);
  }
  .page-blog__subtitle {
    font-size: 18px;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-blog__content-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
  }
  .page-blog__cta-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  /* 1. Top text / Hero section */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, as body handles header offset */
  }
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 38px);
    padding: 0 10px;
  }
  .page-blog__subtitle {
    font-size: 16px;
    padding: 0 10px;
  }
  .page-blog__hero-image {
    border-radius: 5px;
  }

  /* 2. Dual-column modules to single column */
  .page-blog__content-wrapper {
    flex-direction: column;
  }
  .page-blog__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-blog__section-title {
    font-size: 28px;
    padding-top: 30px;
  }
  .page-blog__section-description {
    font-size: 16px;
    padding: 0 10px;
  }
  .page-blog__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 5px;
  }
  .page-blog__sports-betting-section,
  .page-blog__casino-section,
  .page-blog__promotions-section,
  .page-blog__cta-section {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .page-blog__container {
    padding: 0 15px;
  }

  /* 3. General images and containers */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__article-thumbnail {
    height: 180px; /* Adjust height for mobile */
  }
  .page-blog__article-grid {
    gap: 20px;
  }

  /* 4. Buttons */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-container {
    padding: 0 15px;
  }
  .page-blog__cta-button {
    min-width: unset;
  }

  /* FAQ */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
  .page-blog__faq-toggle { font-size: 24px; width: 24px; }
  .page-blog__faq-list {
    padding: 0 15px;
  }

  /* CTA Section */
  .page-blog__cta-title {
    font-size: 28px;
    padding: 0 10px;
  }
  .page-blog__cta-description {
    font-size: 16px;
    padding: 0 10px;
  }
  .page-blog__cta-container {
    flex-direction: column;
    gap: 15px;
  }
}