/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

/* Sections */
.page-blog__hero-section,
.page-blog__introduction-section,
.page-blog__featured-posts,
.page-blog__video-section,
.page-blog__registration-guide,
.page-blog__game-strategy,
.page-blog__promotions-news,
.page-blog__faq-section,
.page-blog__cta-bottom {
  padding: 60px 20px;
  text-align: center;
}

.page-blog__dark-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-blog__light-bg {
  background-color: #0d271a; /* Slightly lighter dark green for contrast */
  color: var(--text-main);
}

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

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 0;
  max-width: 800px;
  margin-top: 20px; /* Space below image */
}

.page-blog__main-title {
  color: var(--text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-blog__description {
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-blog__sub-title {
  color: var(--text-main);
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__subtitle {
  color: var(--text-secondary);
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Buttons */
.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-blog__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__btn-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
}

.page-blog__btn-link:hover {
  text-decoration: underline;
}

/* Text blocks */
.page-blog__text-block {
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

/* Lists */
.page-blog__list {
  list-style-type: disc;
  text-align: left;
  margin: 20px auto;
  max-width: 800px;
  padding-left: 40px;
  color: var(--text-secondary);
}

.page-blog__list-item {
  margin-bottom: 10px;
}

/* Post Grid */
.page-blog__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-blog__post-card {
  background-color: var(--card-b-g);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  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 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 200px; /* 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: 1.3em;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-blog__card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.page-blog__read-more {
  color: var(--gold);
  font-weight: bold;
}

.page-blog__view-all-button-wrapper {
  margin-top: 50px;
}

/* Video Section */
.page-blog__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-blog__video-description {
  color: var(--text-secondary);
  font-size: 1em;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions and News */
.page-blog__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-blog__promotion-card,
.page-blog__news-card {
  background-color: var(--card-b-g);
  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;
  padding-bottom: 20px;
}

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

.page-blog__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1em;
  position: relative;
  outline: none;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold);
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.5;
}

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

/* Call to Action Bottom */
.page-blog__cta-bottom {
  padding: 80px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__featured-posts,
  .page-blog__video-section,
  .page-blog__registration-guide,
  .page-blog__game-strategy,
  .page-blog__promotions-news,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding: 40px 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body handles header-offset */
  }

  .page-blog__main-title {
    font-size: 2em;
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__sub-title {
    font-size: 1.3em;
  }

  .page-blog__subtitle {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__post-grid,
  .page-blog__content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__post-thumbnail,
  .page-blog__card-image {
    height: 180px;
  }

  /* Images responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    overflow: hidden !important;
  }

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

  .page-blog__container {
    padding-left: 0px;
    padding-right: 0px;
  }

  .page-blog__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-blog__list {
    padding-left: 25px;
  }
}

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-b-g: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}