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

.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--bg-color);
  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 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  background-color: var(--card-bg-color);
}

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

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

.page-blog__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-blog__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--glow-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

/* Latest Posts Grid */
.page-blog__latest-posts {
  padding: 80px 0;
}

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

.page-blog__post-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.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.3em;
  color: var(--text-main-color);
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

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

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

.page-blog__view-all {
  text-align: center;
}

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

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

.page-blog__category-card {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  text-decoration: none;
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-blog__category-card:hover {
  background-color: var(--glow-color);
  color: #000000;
  transform: translateY(-5px);
}

/* Featured Posts */
.page-blog__featured-posts {
  padding: 80px 0;
}

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

@media (min-width: 768px) {
  .page-blog__featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

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

.page-blog__featured-title {
  font-size: 1.4em;
  color: var(--text-main-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

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

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

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

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text-main-color);
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

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

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

/* CTA Bottom */
.page-blog__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: var(--deep-green-color);
  padding: 50px 30px;
  border-radius: 15px;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

  .page-blog__post-image {
    height: 180px;
  }

  .page-blog__post-title {
    font-size: 1.1em;
  }

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

  .page-blog__category-card {
    padding: 15px 10px;
    font-size: 0.9em;
  }

  .page-blog__featured-image {
    height: 200px;
  }

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

  .page-blog__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-blog__dark-section {
    padding: 30px 20px;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}