/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

.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: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px;
  margin-bottom: 30px;
}

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

.page-blog__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff; /* Ensure high contrast */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  /* No fixed font-size to avoid mobile overflow */
  font-size: clamp(2em, 5vw, 3.5em);
}

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

/* Introduction Section */
.page-blog__introduction-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
}

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

.page-blog__post-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  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;
  color: #ffffff;
}

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

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

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

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

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

/* Explore Topics Section */
.page-blog__explore-topics {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-blog__topic-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

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

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

.page-blog__topic-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-blog__topic-title a:hover {
  color: #4dbff2;
}

.page-blog__topic-card p {
  color: #f0f0f0;
  font-size: 0.95em;
}

/* Why Choose Us Section */
.page-blog__why-choose-us {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-blog__why-choose-us .page-blog__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons-inline {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsible Gambling Detailed Section */
.page-blog__responsible-gambling-detailed {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-blog__responsible-gambling-detailed .page-blog__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Payment & Support Section */
.page-blog__payment-support {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-blog__payment-support .page-blog__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
}

.page-blog__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-blog__cta-section {
  padding: 60px 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__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__topic-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  /* All images mobile responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers for images, videos, buttons */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__topic-card,
  .page-blog__faq-item,
  .page-blog__cta-buttons,
  .page-blog__cta-buttons-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-blog__post-image {
    height: auto !important;
    max-height: 180px;
  }

  /* Buttons mobile responsive */
  .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-buttons,
  .page-blog__cta-buttons-inline {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__topic-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-blog__main-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }
}