.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main for dark body background */
  background-color: transparent; /* Body will handle background-color from shared.css */
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  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: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: #0D0E12; /* Background color for hero section */
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(13, 14, 18, 0.7); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
  margin-top: 50px;
}

.page-blog__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
}

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

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12;
}

/* General Section Styling */
.page-blog__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  color: #FFB04D; /* Glow color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__paragraph {
  font-size: 1em;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-blog__highlight {
  color: #FFA53A;
  font-weight: bold;
}

.page-blog__dark-bg {
  background-color: #0D0E12;
  padding: 60px 0;
}

.page-blog__introduction-section,
.page-blog__why-fabet88-section,
.page-blog__featured-topics-section,
.page-blog__guides-tips-section,
.page-blog__news-updates-section,
.page-blog__faq-section,
.page-blog__conclusion-section {
  padding: 60px 0;
}

/* Blog Cards */
.page-blog__blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog__blog-card {
  background-color: #17191F; /* Card Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
  display: flex;
  flex-direction: column;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__card-title {
  font-size: 1.3em;
  color: #FFF3E6;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__card-title:hover {
  color: #FFA53A;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.page-blog__card-date {
  font-size: 0.85em;
  color: #888;
  text-align: right;
  margin-top: auto;
}

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

/* Guide List */
.page-blog__guide-list,
.page-blog__news-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-blog__guide-item,
.page-blog__news-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-blog__guide-item:hover,
.page-blog__news-item:hover {
  transform: translateY(-3px);
}

.page-blog__guide-title,
.page-blog__news-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__guide-description,
.page-blog__news-description {
  font-size: 1em;
  color: #FFF3E6;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-blog__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item summary { /* For <details> tag */
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  color: #FFB04D;
  font-weight: bold;
  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, 165, 58, 0.1);
}

.page-blog__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFA53A;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: "−";
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #FFF3E6;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* Floating Buttons */
.page-blog__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-blog__floating-btn {
  display: block;
  padding: 10px 20px;
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 150px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog__floating-btn--register {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-blog__floating-btn--login {
  background: #17191F;
  border: 1px solid #FFA53A;
}

.page-blog__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-blog__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    margin-top: 30px;
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-blog__guide-item,
  .page-blog__news-item,
  .page-blog__faq-item {
    padding: 20px;
  }

  .page-blog__guide-title,
  .page-blog__news-title {
    font-size: 1.2em;
  }
  
  .page-blog__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Force responsive images and containers */
  .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-section,
  .page-blog__introduction-section,
  .page-blog__why-fabet88-section,
  .page-blog__featured-topics-section,
  .page-blog__guides-tips-section,
  .page-blog__news-updates-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Specific handling for sections with 0 padding-left/right */
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__featured-topics-section,
  .page-blog__news-updates-section,
  .page-blog__conclusion-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__hero-section {
    padding-top: 10px !important;
  }

  .page-blog__floating-buttons {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }
  .page-blog__floating-btn {
    max-width: 120px;
    padding: 8px 15px;
    font-size: 0.9em;
    white-space: normal;
    word-wrap: break-word;
  }
}