/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

/* Section styling */
.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-blog__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #F2C14E; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

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

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.2em);
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-blog__subtitle {
  font-size: 1.3em;
  color: #FFF6D6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E6B02B 100%);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary color for text */
  border: 2px solid #F2C14E; /* Primary color for border */
}

.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

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

/* Articles Grid */
.page-blog__articles-grid,
.page-blog__guides-grid,
.page-blog__features-grid,
.page-blog__responsible-gaming-grid,
.page-blog__future-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__article-card,
.page-blog__guide-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

.page-blog__article-card:hover,
.page-blog__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__article-content,
.page-blog__guide-content {
  padding: 20px;
}

.page-blog__article-title,
.page-blog__guide-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a,
.page-blog__guide-title a {
  color: #FFD36B; /* Glow color for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__guide-title a:hover {
  color: #F2C14E;
}

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

.page-blog__article-excerpt,
.page-blog__guide-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #F2C14E;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: #FFD36B;
  border-color: #FFD36B;
}

.page-blog__view-all-btn-container {
  margin-top: 40px;
}

/* Feature items */
.page-blog__feature-item,
.page-blog__responsible-item,
.page-blog__future-feature-item {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__feature-item:hover,
.page-blog__responsible-item:hover,
.page-blog__future-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__feature-icon,
.page-blog__future-feature-icon {
  width: 100px; /* Min size 200x200px requirement exception is for content images, not icons/features. These are content-display images */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__feature-title,
.page-blog__responsible-title,
.page-blog__future-title {
  font-size: 1.8em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-blog__feature-text,
.page-blog__responsible-text,
.page-blog__future-text {
  font-size: 1em;
  color: #FFF6D6;
}

/* Responsive adjustments */
@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-top: 10px !important; /* Small top padding for mobile */
  }

  .page-blog__hero-content {
    padding: 0 15px;
  }

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

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    margin: 5px 0;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }

  .page-blog__section-description {
    font-size: 0.95em;
  }

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

  .page-blog__article-image,
  .page-blog__guide-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__articles-grid,
  .page-blog__guides-grid,
  .page-blog__features-grid,
  .page-blog__responsible-gaming-grid,
  .page-blog__future-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-card,
  .page-blog__guide-card,
  .page-blog__feature-item,
  .page-blog__responsible-item,
  .page-blog__future-feature-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__feature-title,
  .page-blog__responsible-title,
  .page-blog__future-title {
    font-size: 1.5em;
  }
}