/* style/blog.css */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-blog {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn,
.page-blog__game-btn,
.page-blog__strategy-btn,
.page-blog__promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-blog__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--page-bg-color); /* Dark text on glow */
  transform: translateY(-2px);
}

/* General Section Styles */
.page-blog__articles-section,
.page-blog__game-types-section,
.page-blog__strategy-section,
.page-blog__promotions-section,
.page-blog__security-section,
.page-blog__faq-section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--glow-color);
  border-radius: 2px;
}

.page-blog__section-intro {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Article Grid */
.page-blog__articles-grid,
.page-blog__game-grid,
.page-blog__strategy-grid,
.page-blog__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__article-card,
.page-blog__game-item,
.page-blog__strategy-item,
.page-blog__promo-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover,
.page-blog__game-item:hover,
.page-blog__strategy-item:hover,
.page-blog__promo-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__article-image,
.page-blog__game-image,
.page-blog__strategy-image,
.page-blog__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-blog__article-title,
.page-blog__game-title,
.page-blog__strategy-title,
.page-blog__promo-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a,
.page-blog__game-title a,
.page-blog__strategy-title a,
.page-blog__promo-title a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__game-title a:hover,
.page-blog__strategy-title a:hover,
.page-blog__promo-title a:hover {
  color: var(--glow-color);
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-blog__article-excerpt,
.page-blog__game-description,
.page-blog__strategy-description,
.page-blog__promo-description {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn,
.page-blog__game-btn,
.page-blog__strategy-btn,
.page-blog__promo-btn {
  align-self: flex-start;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.page-blog__read-more-btn:hover,
.page-blog__game-btn:hover,
.page-blog__strategy-btn:hover,
.page-blog__promo-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

/* Security Section */
.page-blog__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-blog__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-blog__feature-item:hover {
  transform: translateY(-5px);
}

.page-blog__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-blog__feature-title {
  font-size: 1.3rem;
  color: var(--text-main-color);
  margin-bottom: 10px;
}

.page-blog__feature-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

/* FAQ Section */
.page-blog__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-blog__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: rgba(17, 168, 78, 0.1);
  user-select: none;
  list-style: none; /* Remove default marker for details */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow-color);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__articles-grid,
  .page-blog__game-grid,
  .page-blog__strategy-grid,
  .page-blog__promotions-grid,
  .page-blog__security-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__read-more-btn,
  .page-blog__game-btn,
  .page-blog__strategy-btn,
  .page-blog__promo-btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
  }

  .page-blog__articles-section,
  .page-blog__game-types-section,
  .page-blog__strategy-section,
  .page-blog__promotions-section,
  .page-blog__security-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-blog__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-blog__articles-grid,
  .page-blog__game-grid,
  .page-blog__strategy-grid,
  .page-blog__promotions-grid,
  .page-blog__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__hero-image-wrapper,
  .page-blog__articles-section,
  .page-blog__game-types-section,
  .page-blog__strategy-section,
  .page-blog__promotions-section,
  .page-blog__security-section,
  .page-blog__faq-section,
  .page-blog__card,
  .page-blog__article-card,
  .page-blog__game-item,
  .page-blog__strategy-item,
  .page-blog__promo-item,
  .page-blog__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__article-image,
  .page-blog__game-image,
  .page-blog__strategy-image,
  .page-blog__promo-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-blog__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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