/* style/blog.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --background-color: #0D0E12;
  --card-background-color: #17191F;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Light text for dark body background */
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-blog__section {
  padding: 40px 0;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.5);
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(23, 25, 31, 0.8); /* Slightly transparent card background */
  border-radius: 8px;
  margin-top: -50px; /* Overlap slightly with image */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Latest Articles Section */
.page-blog__latest-articles {
  background-color: var(--background-color);
}

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

.page-blog__article-card {
  background-color: var(--card-background-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-blog__article-image-wrapper {
  height: 200px;
  overflow: hidden;
}

.page-blog__article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image-wrapper img {
  transform: scale(1.05);
}

.page-blog__article-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px); /* Adjust height based on image */
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #CCC;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 15px;
}

.page-blog__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: var(--secondary-color);
}

/* Guides and Strategies / Game Reviews Sections */
.page-blog__guides-strategies, .page-blog__game-reviews, .page-blog__community {
  background-color: var(--background-color);
}

.page-blog__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-blog__text-block {
  flex: 1;
}

.page-blog__text-block p {
  margin-bottom: 1em;
  color: var(--text-main-color);
}

.page-blog__text-block p strong {
  color: var(--primary-color);
}

.page-blog__image-block {
  flex: 1;
  min-width: 400px; /* Ensure images don't get too small on larger screens */
}

.page-blog__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

/* CTA Area */
.page-blog__cta-area {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--card-background-color);
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-blog__cta-text {
  font-size: 1.5em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  font-weight: bold;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: var(--background-color);
}

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

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

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -30px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__image-block {
    min-width: 300px;
  }
  .page-blog__content-wrapper {
    flex-direction: column;
  }
  .page-blog__content-wrapper--reversed {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__hero-section,
  .page-blog__hero-container,
  .page-blog__cta-area,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

  .page-blog__article-image-wrapper {
    height: 180px;
  }

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

  .page-blog__article-title {
    font-size: 1.2em;
  }

  .page-blog__cta-button {
    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;
  }

  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 1em; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }

  .page-blog__content-wrapper {
    gap: 20px;
  }
  .page-blog__image-block {
    min-width: unset;
  }

  .page-blog__cta-area {
    padding: 40px 15px;
  }
  .page-blog__cta-text {
    font-size: 1.2em;
  }
}