.page-blog-ph365-ultimate-guide {
  background-color: #0A0A0A;
  color: #FFF6D6; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog-ph365-ultimate-guide__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog-ph365-ultimate-guide__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFF6D6;
}

.page-blog-ph365-ultimate-guide__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog-ph365-ultimate-guide__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-blog-ph365-ultimate-guide__hero-content {
  position: relative; /* Ensure content is above the image but not overlapping it via position absolute */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Spacing between image and text */
}

.page-blog-ph365-ultimate-guide__hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem); /* Responsive font size for H1, max 2.5rem */
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Gold color for title */
}

.page-blog-ph365-ultimate-guide__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-blog-ph365-ultimate-guide__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-blog-ph365-ultimate-guide__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #111111; /* Dark text for light button */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog-ph365-ultimate-guide__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-blog-ph365-ultimate-guide__cta-button--secondary {
  background: #111111; /* Card BG color */
  color: #FFD36B;
  border: 1px solid #3A2A12;
}

.page-blog-ph365-ultimate-guide__cta-button--secondary:hover {
  background: #222222;
}

.page-blog-ph365-ultimate-guide__content-section {
  padding: 40px 0;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-blog-ph365-ultimate-guide__content-section:last-of-type {
  border-bottom: none;
}

.page-blog-ph365-ultimate-guide__section-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Main color for section titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-blog-ph365-ultimate-guide__sub-section-title {
  font-size: 1.8rem;
  color: #FFD36B; /* Auxiliary color for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog-ph365-ultimate-guide__paragraph {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-blog-ph365-ultimate-guide__keyword {
  font-weight: bold;
  color: #FFD36B;
}

.page-blog-ph365-ultimate-guide__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 25px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog-ph365-ultimate-guide__image--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-ph365-ultimate-guide__list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-blog-ph365-ultimate-guide__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-blog-ph365-ultimate-guide__list-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-blog-ph365-ultimate-guide__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-ph365-ultimate-guide__article-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-ph365-ultimate-guide__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-blog-ph365-ultimate-guide__article-link {
  display: block;
  padding: 25px;
  text-decoration: none;
  color: #FFF6D6;
}

.page-blog-ph365-ultimate-guide__article-title {
  font-size: 1.3rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog-ph365-ultimate-guide__article-excerpt {
  font-size: 0.95rem;
  color: #CCC;
}

.page-blog-ph365-ultimate-guide__back-to-blog {
  text-align: center;
  margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog-ph365-ultimate-guide__hero-title {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .page-blog-ph365-ultimate-guide__section-title {
    font-size: 1.8rem;
  }

  .page-blog-ph365-ultimate-guide__sub-section-title {
    font-size: 1.5rem;
  }

  .page-blog-ph365-ultimate-guide__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog-ph365-ultimate-guide__cta-button {
    width: 100%;
  }
  
  .page-blog-ph365-ultimate-guide__image {
    max-width: 100%;
    height: auto;
  }
  
  /* Ensure content images do not overflow */
  .page-blog-ph365-ultimate-guide__content-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog-ph365-ultimate-guide__hero-content {
    padding: 20px 15px;
  }

  .page-blog-ph365-ultimate-guide__section-title {
    font-size: 1.5rem;
  }

  .page-blog-ph365-ultimate-guide__sub-section-title {
    font-size: 1.3rem;
  }

  .page-blog-ph365-ultimate-guide__paragraph,
  .page-blog-ph365-ultimate-guide__list-item,
  .page-blog-ph365-ultimate-guide__article-excerpt {
    font-size: 0.95rem;
  }

  .page-blog-ph365-ultimate-guide__article-title {
    font-size: 1.1rem;
  }
}

/* Minimum image size check for content area */
.page-blog-ph365-ultimate-guide img:not(.page-blog-ph365-ultimate-guide__hero-image) {
  min-width: 200px;
  min-height: 200px;
}