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

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Body background is dark, so text should be light */
  background-color: var(--background-color);
}

.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;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color);
}

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

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

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.15rem;
  color: var(--text-main-color);
  max-width: 800px;
  margin: 0 auto 30px 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;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Section Titles and Descriptions */
.page-blog__section-title {
  font-size: 2.2rem;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

.page-blog__article-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px 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 20px rgba(0, 0, 0, 0.3);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-blog__article-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

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

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

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

.page-blog__article-title {
  font-size: 1.4rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

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

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

/* About Section */
.page-blog__about-section {
  padding: 80px 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-blog__about-section .page-blog__section-title {
  color: var(--text-main-color);
}

.page-blog__text-block {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
}

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

.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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, 255, 255, 0.05);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  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(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

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

.page-blog__link {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__link:hover {
  color: var(--primary-color);
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--deep-orange-color);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-blog__cta-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section,
  .page-blog__articles-section,
  .page-blog__about-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__hero-section {
    padding-top: 10px !important;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image-wrapper {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.2rem;
  }
  .page-blog__article-excerpt {
    font-size: 0.9rem;
  }
  .page-blog__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 1rem;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-image,
  .page-blog__article-image-wrapper,
  .page-blog__cta-image,
  .page-blog__container,
  .page-blog__articles-section,
  .page-blog__about-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
}

/* Contrast Fixes */
/* The main background is dark, so text is already light. */
/* If a section has a naturally lighter background, adjust text color */
.page-blog__articles-section,
.page-blog__faq-section {
    /* These sections use the main dark background, so text-main-color is correct */
}

.page-blog__about-section {
    /* Uses card-bg, which is also dark */
    color: var(--text-main-color);
}

.page-blog__cta-section {
    /* Uses deep-orange-color, which is dark enough for white text */
    color: #ffffff;
}