/* CSS cho trang blog của yo88 hit club */

/* Cấu hình màu nền và chữ chính */
.page-blog {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Nền chính */
}

.page-blog__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow */
  text-shadow: 0 0 8px rgba(255,176,77,0.5);
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Nhỏ hơn so với header-offset từ shared.css */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-blog__main-title {
  font-weight: 800;
  line-height: 1.2;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 10px rgba(255,243,230,0.7);
}

.page-blog__hero-description {
  font-size: 18px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Buttons */
.page-blog__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Cho phép ngắt từ */
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(255,165,58,0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,165,58,0.6);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary Color */
  border: 2px solid #A84F0C; /* Border Color */
}

.page-blog__btn-secondary:hover {
  background: rgba(255,165,58,0.1);
  color: #FFB04D; /* Glow */
  border-color: #FFB04D;
}

/* Blog Posts Section */
.page-blog__posts-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

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

.page-blog__post-card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF3E6; /* Text Main */
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #A84F0C; /* Border Color */
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  padding: 20px 20px 10px;
  color: #FFB04D; /* Glow */
  line-height: 1.4;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #A84F0C; /* Border Color */
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  padding: 10px 20px;
  background: #D96800; /* Deep Orange */
  color: #FFF3E6; /* Text Main */
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.page-blog__read-more:hover {
  background: #FFA53A; /* Auxiliary Color */
}

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

/* About Section */
.page-blog__about-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

.page-blog__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__about-image {
  width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-blog__text-block {
  width: 50%;
  font-size: 17px;
  line-height: 1.7;
}

.page-blog__text-block h2 {
  color: #FFB04D; /* Glow */
  font-size: 28px;
  margin-bottom: 20px;
}

.page-blog__text-block p {
  margin-bottom: 15px;
  color: #FFF3E6; /* Text Main */
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border Color */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

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,165,58,0.1); /* Light hover effect */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow */
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary Color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255,165,58,0.05); /* Light background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6; /* Text Main */
  line-height: 1.7;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #D96800 0%, #FF8C1A 100%); /* Deep Orange to Main Color */
  color: #FFF3E6; /* Text Main */
  box-shadow: inset 0 5px 15px rgba(0,0,0,0.3);
}

.page-blog__cta-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(255,243,230,0.8);
}

.page-blog__cta-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.shared-footer-placeholder {
  text-align: center;
  padding: 20px;
  background-color: #0D0E12; /* Background */
  color: #A84F0C; /* Border Color */
  font-size: 14px;
  border-top: 1px solid #17191F; /* Card BG */
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 6vw, 48px); /* Sử dụng clamp cho tiêu đề chính */
  }
  .page-blog__section-title {
    font-size: clamp(28px, 6vw, 36px);
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__about-content {
    flex-direction: column;
  }
  .page-blog__about-image,
  .page-blog__text-block {
    width: 100%;
  }
  .page-blog__about-image {
    margin-bottom: 30px;
  }
  .page-blog__cta-title {
    font-size: clamp(32px, 8vw, 42px);
  }
  .page-blog__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px; /* Thêm padding cho container trên mobile */
  }
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog__posts-section {
    padding: 40px 0;
  }
  .page-blog__post-thumbnail {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 18px;
    padding: 15px 15px 8px;
  }
  .page-blog__post-meta,
  .page-blog__post-excerpt {
    padding: 0 15px;
    font-size: 15px;
  }
  .page-blog__about-section {
    padding: 50px 0;
  }
  .page-blog__text-block {
    font-size: 15px;
  }
  .page-blog__faq-section {
    padding: 50px 0;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 18px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 15px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 18px 18px;
  }
  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-blog__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  /* Mobile image and button adaptations */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important; /* Ensure padding/border is included in width */
  }
  .page-blog__hero-image-wrapper,
  .page-blog__posts-grid,
  .page-blog__about-content,
  .page-blog__text-block,
  .page-blog__faq-list,
  .page-blog__cta-section,
  .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;
    /* padding-left: 15px; */ /* Handled by .page-blog__container */
    /* padding-right: 15px; */ /* Handled by .page-blog__container */
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific adjustments for buttons within containers to ensure no overflow */
  .page-blog__view-all-wrapper .page-blog__btn-secondary,
  .page-blog__about-content .page-blog__btn-primary,
  .page-blog__cta-section .page-blog__btn-primary {
    width: calc(100% - 30px) !important; /* Account for 15px padding on each side of parent container */
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}