/* style/blog.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #000000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg-light: #1a1a1a; /* Slightly lighter for cards on dark background */
}

/* General Styles for Blog Page - Body background is #000000 (dark), so text should be light */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--background-color);
}

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

.page-blog__section-title {
  font-size: clamp(2em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-blog__sub-title {
  font-size: clamp(1.5em, 2.5vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-blog p {
  margin-bottom: 1em;
  color: var(--text-light);
}

.page-blog__list,
.page-blog__list-features {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--text-light);
}

.page-blog__list li,
.page-blog__list-features li {
  margin-bottom: 0.5em;
}

.page-blog__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  object-fit: cover;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

.page-blog__hero-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-blog__hero-description {
  font-size: clamp(1em, 1.2vw, 1.2em);
  margin-bottom: 30px;
  color: var(--text-light);
}

/* Video Section */
.page-blog__video-section {
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background-color: var(--background-color);
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.page-blog__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.page-blog__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 20px;
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-blog__video-caption {
  font-size: 1.1em;
  color: var(--text-light);
  margin-top: 10px;
}

/* Blog Post List Section */
.page-blog__post-list-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

.page-blog__post-card {
  background-color: var(--card-bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

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

.page-blog__post-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__post-card-title a {
  color: var(--text-light);
  text-decoration: none;
}

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

.page-blog__post-card-excerpt {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: #cccccc;
}

.page-blog__post-card-date {
  font-size: 0.85em;
  color: #999999;
  margin-bottom: 15px;
}

.page-blog__btn-readmore {
  align-self: flex-start;
}

/* About Section */
.page-blog__about-section,
.page-blog__dark-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-blog__about-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-title {
  color: var(--text-light);
}

.page-blog__about-section .page-blog__content-area,
.page-blog__dark-section .page-blog__content-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Security Section, Sports Guide, Registration Section */
.page-blog__security-section,
.page-blog__sports-guide-section,
.page-blog__registration-bonus-section {
  padding: 60px 0;
  background-color: var(--background-color);
  color: var(--text-light);
}

.page-blog__content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__sports-guide-section.page-blog__dark-bg {
  background-color: var(--card-bg-light);
}

/* Why Choose Section */
.page-blog__why-choose-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-blog__list-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-blog__list-features li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--background-color);
  color: var(--text-light);
}

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  user-select: none;
  list-style: none;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

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

/* Final CTA Section */
.page-blog__final-cta {
  padding: 60px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-blog__final-cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-blog__btn-primary {
  background-color: var(--login-color); /* Use login color for primary CTA */
  color: var(--secondary-color);
  border: 2px solid var(--login-color);
}

.page-blog__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section,
  .page-blog__video-section,
  .page-blog__post-list-section,
  .page-blog__about-section,
  .page-blog__security-section,
  .page-blog__sports-guide-section,
  .page-blog__registration-bonus-section,
  .page-blog__why-choose-section,
  .page-blog__faq-section,
  .page-blog__final-cta {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__video-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-blog__hero-title {
    font-size: 2.2em;
  }

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

  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__list-features li {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  .page-blog__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* Image Responsive Adaption */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__video-section,
  .page-blog__post-list-section,
  .page-blog__about-section,
  .page-blog__security-section,
  .page-blog__sports-guide-section,
  .page-blog__registration-bonus-section,
  .page-blog__why-choose-section,
  .page-blog__faq-section,
  .page-blog__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video Responsive Adaption */
  .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;
    overflow: hidden !important;
  }

  /* Button Responsive Adaption */
  .page-blog__cta-button,
  .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__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;
    overflow: hidden !important;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}