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

/* Ensure body padding-top is handled by shared.css for fixed header */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--shbet-text-main); /* Default text color for the page */
  background-color: var(--shbet-background);
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--shbet-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-blog__card {
  background-color: var(--shbet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--shbet-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: var(--shbet-btn-gradient);
  color: var(--shbet-text-main);
  border: none;
}

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

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

.page-blog__btn-secondary:hover {
  background-color: var(--shbet-primary);
  color: var(--shbet-text-main);
  transform: translateY(-2px);
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: var(--shbet-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.4);
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: var(--shbet-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 80px 0;
  background-color: var(--shbet-background);
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  background-color: var(--shbet-card-bg);
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-bottom: 1px solid var(--shbet-divider);
}

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

.page-blog__post-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: var(--shbet-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-blog__read-more-btn:hover {
  color: var(--shbet-gold);
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: var(--shbet-deep-green);
}

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

.page-blog__category-card {
  text-align: center;
  background-color: rgba(17, 39, 27, 0.7);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.page-blog__category-icon {
  width: 100px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--shbet-text-main);
}

/* Featured Article Section */
.page-blog__featured-article-section {
  padding: 80px 0;
  background-color: var(--shbet-background);
}

.page-blog__featured-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--shbet-card-bg);
}

.page-blog__featured-content {
  padding: 40px;
  flex: 1;
}

.page-blog__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  min-width: 300px;
}

.page-blog__featured-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-blog__featured-meta {
  font-size: 0.9em;
  color: var(--shbet-text-secondary);
  margin-bottom: 20px;
}

.page-blog__featured-excerpt {
  font-size: 1.05em;
  color: var(--shbet-text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

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

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

.page-blog__faq-item {
  background-color: var(--shbet-card-bg);
  border: 1px solid var(--shbet-border);
  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.2em;
  font-weight: 600;
  color: var(--shbet-text-main);
  cursor: pointer;
  background-color: rgba(17, 39, 27, 0.5);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-blog__faq-question:hover {
  background-color: rgba(17, 39, 27, 0.7);
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--shbet-text-secondary);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--shbet-deep-green);
  text-align: center;
}

.page-blog__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__cta-description {
  font-size: 1.15em;
  color: var(--shbet-text-secondary);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__featured-card {
    flex-direction: column;
  }

  .page-blog__featured-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-blog__section-title {
    font-size: 2em;
  }

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

  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__posts-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__featured-article-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__container,
  .page-blog__card-content,
  .page-blog__featured-content,
  .page-blog__faq-question,
  .page-blog__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__featured-card,
  .page-blog__faq-item,
  .page-blog__cta-container,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    align-items: center;
  }

  .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__faq-question {
    font-size: 1.1em;
  }

  .page-blog__faq-answer p {
    font-size: 0.95em;
  }
}