/* style/blog.css */

:root {
  --okbet-primary-color: #F2C14E;
  --okbet-secondary-color: #FFD36B;
  --okbet-card-bg: #111111;
  --okbet-background-color: #0A0A0A;
  --okbet-text-main-color: #FFF6D6;
  --okbet-border-color: #3A2A12;
  --okbet-glow-color: #FFD36B;
  --okbet-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

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

.page-blog__section-description {
  font-size: 1.1em;
  color: var(--okbet-text-main-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-blog__btn-secondary:hover {
  background: var(--okbet-primary-color);
  color: var(--okbet-background-color);
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Rely on body for header offset, use 10px for visual spacing */
  background-color: var(--okbet-background-color);
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  color: var(--okbet-primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

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

.page-blog__post-card {
  background-color: var(--okbet-card-bg); /* Card BG */
  border: 1px solid var(--okbet-border-color); /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.5em;
  color: var(--okbet-primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__post-title a:hover {
  text-decoration: underline;
}

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: var(--okbet-text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  color: var(--okbet-secondary-color);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

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

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

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

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-blog__category-card {
  background-color: var(--okbet-card-bg); /* Card BG */
  border: 1px solid var(--okbet-border-color); /* Border */
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--okbet-text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  color: var(--okbet-primary-color);
}

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

.page-blog__category-card span {
  font-weight: bold;
  font-size: 1.1em;
}

/* Featured Articles Section */
.page-blog__featured-articles-section {
  padding: 80px 0;
  background-color: var(--okbet-background-color);
}

.page-blog__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__featured-card {
  background-color: var(--okbet-card-bg); /* Card BG */
  border: 1px solid var(--okbet-border-color); /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__featured-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.page-blog__featured-content {
  padding: 30px;
}

.page-blog__featured-title {
  font-size: 1.8em;
  color: var(--okbet-primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__featured-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__featured-title a:hover {
  text-decoration: underline;
}

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

.page-blog__featured-excerpt {
  font-size: 1em;
  color: var(--okbet-text-main-color);
}

/* Guides & Tutorials Section */
.page-blog__guides-tutorials-section {
  padding: 80px 0;
  background-color: var(--okbet-background-color);
}

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

.page-blog__guide-card {
  background-color: var(--okbet-card-bg); /* Card BG */
  border: 1px solid var(--okbet-border-color); /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__guide-title {
  font-size: 1.4em;
  color: var(--okbet-primary-color);
  padding: 20px 20px 10px;
  line-height: 1.3;
}

.page-blog__guide-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__guide-title a:hover {
  text-decoration: underline;
}

.page-blog__guide-excerpt {
  font-size: 0.95em;
  color: var(--okbet-text-main-color);
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Why Read Our Blog Section */
.page-blog__why-read-section {
  padding: 80px 0;
  background-color: var(--okbet-background-color);
}

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__benefits-list li {
  background-color: var(--okbet-card-bg); /* Card BG */
  border: 1px solid var(--okbet-border-color); /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--okbet-text-main-color);
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-blog__benefits-list li::before {
  content: '✔️';
  font-size: 1.2em;
  color: var(--okbet-secondary-color);
}

.page-blog__benefits-list li strong {
  color: var(--okbet-primary-color);
}

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

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

.page-blog__cta-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__cta-content {
  max-width: 800px;
}

.page-blog__cta-title {
  font-size: 2.2em;
  color: var(--okbet-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: var(--okbet-text-main-color);
  margin-bottom: 30px;
}

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

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--okbet-card-bg);
  color: var(--okbet-primary-color);
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: rgba(var(--okbet-primary-color), 0.1);
}

.page-blog__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Reset h3 font size within question */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--okbet-text-main-color);
  background-color: var(--okbet-card-bg);
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

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

/* Responsive Design */
@media (min-width: 769px) {
  .page-blog__featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__featured-card {
    flex-direction: row;
  }

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

  .page-blog__featured-content {
    width: 50%;
    padding: 30px;
  }
}

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

  .page-blog__container {
    padding: 0 15px;
  }

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

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

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

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__featured-articles-section,
  .page-blog__guides-tutorials-section,
  .page-blog__why-read-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }

  .page-blog__post-grid,
  .page-blog__category-grid,
  .page-blog__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__featured-card {
    flex-direction: column;
  }

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

  .page-blog__featured-content {
    width: 100%;
    padding: 20px;
  }

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

  .page-blog__cta-description {
    font-size: 1em;
  }

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

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__featured-card,
  .page-blog__guide-card,
  .page-blog__cta-section,
  .page-blog__cta-buttons,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile responsive for buttons */
  .page-blog__cta-button,
  .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__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__cta-buttons .page-blog__btn-primary,
  .page-blog__cta-buttons .page-blog__btn-secondary {
    width: 100%;
  }
}