/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body handles the actual background */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-blog__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-blog__list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-content {
  max-width: 900px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-blog__hero-cta {
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-blog__latest-posts .page-blog__section-title {
  color: #ffffff;
}

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

.page-blog__post-card {
  background-color: rgba(255, 255, 255, 0.1);
  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__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-blog__post-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #4dc2f7;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #bbbbbb;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #4dc2f7;
}

.page-blog__arrow {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.page-blog__read-more:hover .page-blog__arrow {
  margin-left: 10px;
}

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

/* Featured Topics Section */
.page-blog__featured-topics {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-blog__featured-topics .page-blog__section-title {
  color: #ffffff;
}

.page-blog__featured-topics .page-blog__section-description {
  color: #e0f7fa;
}

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

.page-blog__topic-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.page-blog__topic-card:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.page-blog__topic-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-blog__topic-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* Deep Dive Section */
.page-blog__deep-dive {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

.page-blog__deep-dive .page-blog__section-title {
  color: #ffffff;
}

.page-blog__deep-dive p {
  color: #cccccc;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsible Gaming Section */
.page-blog__responsible-gaming {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-blog__responsible-gaming .page-blog__section-title {
  color: #ffffff;
}

.page-blog__responsible-gaming .page-blog__section-description {
  color: #cccccc;
}

.page-blog__responsible-gaming .page-blog__sub-title {
  color: #26A9E0;
}

.page-blog__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-right: 15px;
  margin-top: 20px;
  border-radius: 25px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

.page-blog__faq-section .page-blog__section-title {
  color: #ffffff;
}

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
}

/* Ensure details summary marker is hidden */
.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-item summary::marker {
  display: none;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__cta-section .page-blog__section-description {
  color: #e0f7fa;
  margin-bottom: 40px;
}

.page-blog__cta-btn {
  padding: 18px 40px;
  font-size: 1.2em;
  font-weight: 700;
  border-radius: 50px;
  display: inline-block;
  margin-top: 20px;
}

/* Buttons */
.page-blog__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-blog__btn-primary:hover {
  background-color: #1e87c6;
  border-color: #1e87c6;
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c6;
  border-color: #1e87c6;
}

/* Specific button for Login/Register if needed, using custom color */
.page-blog__btn-login {
  background: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog__btn-login:hover {
  background: #cc6a06;
  border-color: #cc6a06;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-blog__hero-content {
    padding: 20px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__topic-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__topic-card {
    min-height: 120px;
  }
  .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;
    margin-bottom: 10px; /* Add margin for stacked buttons */
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__video-section {
    padding-top: 10px !important;
  }
  .page-blog__video,
  .page-blog video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Dark background elements */
.page-blog__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

/* Light background elements - adjusted for overall dark theme */
.page-blog__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-blog__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-blog__text-block {
  color: #f0f0f0;
}

.page-blog p, .page-blog li {
  color: #cccccc;
}