.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main from custom palette */
  background: #B71C1C; /* Background from custom palette */
}

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

.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top margin, assuming body padding-top is handled by shared.css */
  padding-bottom: 50px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFF5E1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold from custom palette */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-blog__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1;
}

.page-blog__latest-articles, .page-blog__guides-section, .page-blog__news-section, .page-blog__promotions-section, .page-blog__faq-section, .page-blog__cta-section {
  padding: 60px 0;
  background: #B71C1C; /* Background from custom palette */
}

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

.page-blog__article-card, .page-blog__news-card, .page-blog__promotion-card {
  background: #D32F2F; /* Card BG from custom palette */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF5E1;
}

.page-blog__article-card:hover, .page-blog__news-card:hover, .page-blog__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-blog__article-card img, .page-blog__news-card img, .page-blog__promotion-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-blog__promotion-card img {
  height: 300px;
}

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

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__card-title a {
  color: #FFCC66; /* Glow from custom palette */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #F4D34D; /* Gold from custom palette */
}

.page-blog__card-date {
  font-size: 0.95rem;
  color: rgba(255, 245, 225, 0.7);
  margin-bottom: 15px;
}

.page-blog__card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button from custom palette */
  color: #7A0E0E; /* Deep Red from custom palette for contrast */
  border: 2px solid #F2B544; /* Border from custom palette */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFD86A; /* Button from custom palette */
  border: 2px solid #F2B544; /* Border from custom palette */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
  background: rgba(255, 216, 106, 0.1);
  color: #FFF5E1;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.page-blog__guide-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: #D32F2F; /* Card BG from custom palette */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  padding: 30px;
  color: #FFF5E1;
}

.page-blog__guide-item:last-child {
  margin-bottom: 0;
}

.page-blog__guide-item--reverse {
  flex-direction: row-reverse;
}

.page-blog__guide-item img {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__guide-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-blog__guide-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #FFCC66; /* Glow from custom palette */
}

.page-blog__guide-text {
  font-size: 1.05rem;
  color: #FFF5E1;
}

.page-blog__faq-list {
  margin-top: 40px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border from custom palette */
  overflow: hidden;
  background: #D32F2F; /* Card BG from custom palette */
  color: #FFF5E1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background: #E53935; /* Auxiliary color */
  color: #FFF5E1;
}

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: #C91F17; /* Main color */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFCC66; /* Glow from custom palette */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #D32F2F; /* Card BG from custom palette */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
  font-size: 1rem;
}

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

.page-blog__faq-answer a {
  color: #FFCC66; /* Glow from custom palette */
  text-decoration: underline;
}

.page-blog__faq-answer a:hover {
  color: #F4D34D; /* Gold from custom palette */
}

.page-blog__cta-section {
  text-align: center;
  padding: 80px 0;
  background: #7A0E0E; /* Deep Red from custom palette */
  color: #FFF5E1;
}

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

.page-blog__cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD86A; /* Button color for emphasis */
}

.page-blog__cta-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General image responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__section, .page-blog__card, .page-blog__container, .page-blog__hero-content, .page-blog__guide-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__description {
    font-size: 1.05rem;
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__section-intro {
    font-size: 1rem;
  }
  .page-blog__article-grid, .page-blog__news-grid, .page-blog__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-blog__card-title {
    font-size: 1.3rem;
  }
  .page-blog__guide-item {
    flex-direction: column;
    gap: 25px;
    padding: 25px;
  }
  .page-blog__guide-item img,
  .page-blog__guide-content {
    width: 100%;
  }
  .page-blog__guide-title {
    font-size: 1.6rem;
  }
  .page-blog__faq-qtext {
    font-size: 1.05rem;
  }
  .page-blog__cta-title {
    font-size: 2.2rem;
  }
  .page-blog__cta-text {
    font-size: 1.1rem;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 849px) {
  .page-blog__hero-image img {
    object-fit: contain !important; /* Prevents cropping on smaller screens */
    aspect-ratio: unset !important; /* Allows natural aspect ratio */
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

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

  .page-blog__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-blog__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-blog__section-intro {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-blog__latest-articles, .page-blog__guides-section, .page-blog__news-section, .page-blog__promotions-section, .page-blog__faq-section, .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__article-grid, .page-blog__news-grid, .page-blog__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden;
  }

  .page-blog__article-card img, .page-blog__news-card img, .page-blog__promotion-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__card-content {
    padding: 20px;
  }

  .page-blog__card-title {
    font-size: 1.2rem;
  }

  .page-blog__card-date {
    font-size: 0.85rem;
  }

  .page-blog__card-text {
    font-size: 0.95rem;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    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__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px;
  }

  .page-blog__guide-item {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .page-blog__guide-item img,
  .page-blog__guide-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-blog__guide-title {
    font-size: 1.4rem;
  }
  .page-blog__guide-text {
    font-size: 0.95rem;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 1rem;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-title {
    font-size: 1.8rem;
  }
  .page-blog__cta-text {
    font-size: 1rem;
  }

  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}