.page-blog {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the first section */
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #0A0A0A, #111111);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -150px; /* Pull content up slightly over the bottom of the image for visual flow, without overlapping text on main image area */
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-blog__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6; /* Text Main */
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  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, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow */
  border: 2px solid #3A2A12; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #222222;
  color: #FFF6D6; /* Text Main */
  border-color: #F2C14E; /* Main color */
}

.page-blog__section {
  padding: 60px 0;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__section-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__latest-articles-section {
  background-color: #0A0A0A; /* Background */
}

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

.page-blog__article-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  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;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__card-title a {
  color: #F2C14E; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #FFD36B; /* Glow */
}

.page-blog__card-meta {
  font-size: 0.9rem;
  color: rgba(255, 246, 214, 0.7); /* Lighter Text Main */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  background: #F2C14E; /* Main color */
  color: #111111; /* Dark text for bright button */
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-blog__read-more-btn:hover {
  background: #FFD36B; /* Glow */
}

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

.page-blog__view-all-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text */
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.page-blog__view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog__categories-section {
  background-color: #111111; /* Card BG */
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #222222;
  border-color: #F2C14E; /* Main color */
}

.page-blog__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  filter: brightness(1.2);
}

.page-blog__category-name {
  font-size: 1rem;
  font-weight: 600;
}

.page-blog__why-ph365-section {
  background-color: #0A0A0A; /* Background */
}

.page-blog__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-blog__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.1);
}

.page-blog__feature-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-blog__feature-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

.page-blog__app-section {
  background-color: #111111; /* Card BG */
  padding: 80px 0;
}

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

.page-blog__app-content > div {
  flex: 1;
  min-width: 300px;
}

.page-blog__app-image-wrapper {
  text-align: center;
}

.page-blog__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  filter: brightness(0.9);
  min-width: 200px;
  min-height: 200px;
}

.page-blog__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-blog__btn-download .page-blog__btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  filter: invert(1) brightness(2);
}

.page-blog__faq-section {
  background-color: #0A0A0A; /* Background */
}

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

.page-blog__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E; /* Main color */
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #222222;
}

.page-blog__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow */
}

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

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

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

.page-blog__cta-section {
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

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

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

  .page-blog__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific top padding */
  }

  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-content {
    margin-top: -100px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-blog__hero-description {
    font-size: 0.95rem;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__section-description {
    font-size: 1rem;
  }

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

  .page-blog__article-card {
    margin-bottom: 20px;
  }

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

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

  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-blog__feature-title {
    font-size: 1.3rem;
  }

  .page-blog__app-content {
    flex-direction: column-reverse; /* Image above text on mobile */
  }

  .page-blog__app-image-wrapper {
    margin-bottom: 30px;
  }

  .page-blog__app-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Ensure all images are responsive and prevent overflow */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__category-card,
  .page-blog__feature-item,
  .page-blog__app-content > div,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__app-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__btn-download {
    width: 100%;
  }
}