/* ==================== BLOGS LIST (blogs.php) ==================== */
.section#main-content { padding-top: 48px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 45, 77, 0.12);
}

.blog-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f5f8fc;
  overflow: hidden;
}

.blog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.blog-card__placeholder img {
  width: auto;
  height: 40px;
  opacity: 0.5;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 20px;
}

.blog-card__meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.blog-card__title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.blog-card__title a:hover { color: var(--blue); }

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 16px;
}

.blog-card__more {
  margin-top: auto;
  font-weight: 600;
  color: var(--blue);
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: #fff7ee;
  border: 1px solid #fde3c3;
  border-radius: var(--radius);
}

.blog-filter a { font-weight: 600; color: var(--blue); }

.blog-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-secondary);
}

.blog-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  color: var(--text-secondary);
}

.blog-pager a { font-weight: 600; color: var(--blue); }

/* Category tag (list cards and post hero) */
.post-tag {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.post-tag:hover { background: var(--orange-dark); }

/* ==================== SINGLE POST (blog.php) ==================== */
.post-hero {
  position: relative;
  overflow: hidden;
  padding: 136px 0 40px;
  background:
    radial-gradient(circle at 0% 100%, rgba(247, 148, 29, 0.10), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.post-hero__text {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.post-hero--image .post-hero__text { max-width: 48%; }

.post-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.post-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft blend into the hero background, and the orange accent sweep */
.post-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f3f6fa 0%, rgba(243, 246, 250, 0) 30%);
}

.post-hero__media::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -120px;
  z-index: 1;
  width: 320px;
  height: 200px;
  border-radius: 50%;
  border-top: 26px solid rgba(247, 148, 29, 0.85);
  transform: rotate(-24deg);
}

.post-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.post-crumbs a:hover { color: var(--orange); }
.post-crumbs [aria-current] { color: var(--navy); }

.post-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 18px;
}

.post-hero__title span { color: var(--orange); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.post-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-section { padding: 36px 0 64px; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

/* Rendered article body */
.post-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: #4a5568;
  overflow-wrap: anywhere;
}

.post-content > h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 12px;
  margin: 36px 0 12px;
}

.post-content > h2:first-child { margin-top: 0; }
.post-content p { margin: 0 0 14px; }
.post-content h3 { color: var(--navy); }

/* "These services typically include:" box */
.post-checklist {
  background: #fff7ee;
  border: 1px solid #fde3c3;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0 24px;
}

.post-checklist__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-checklist__icon,
.post-cta__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
}

.post-checklist__head h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.post-checklist ul.is-two-col { columns: 2; column-gap: 28px; }

.post-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  break-inside: avoid;
  padding: 5px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #3d4756;
}

.post-checklist li svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--orange);
}

.post-checklist li strong { color: var(--navy); }

/* Numbered points 01, 02 ... */
.post-steps {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
}

.post-steps > li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.post-steps__num {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #fff1e0;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
}

.post-steps h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 4px;
}

.post-steps p { margin: 0 0 6px; font-size: 14.5px; }

/* Industry-style icon cards */
.post-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}

.post-card {
  padding: 16px;
  background: #fffaf4;
  border: 1px solid #fde8cf;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.post-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff1e0;
  color: var(--orange);
}

.post-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}

.post-card p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Bottom call to action */
.post-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 18px;
  margin-top: 36px;
  padding: 18px 22px;
  background: #fff7ee;
  border: 1px solid #fde3c3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.post-cta p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.45;
}

.post-cta .btn,
.post-promo .btn {
  padding: 12px 22px;
  font-size: 15px;
}

.post-back {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  color: var(--blue);
}

/* Sidebar */
.post-widget {
  padding: 20px;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid #eef1f5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.post-widget__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 10px;
  margin: 0 0 14px;
}

.post-widget__title--plain {
  border-left: 0;
  padding-left: 0;
}

.post-search { display: flex; gap: 8px; }

.post-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
}

.post-search input:focus {
  outline: 2px solid var(--orange);
  outline-offset: -1px;
}

.post-search button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
}

.post-search button:hover { background: var(--orange-dark); }

.post-cats li + li { border-top: 1px solid #f0f2f5; }

.post-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: #3d4756;
}

.post-cats a:hover,
.post-cats a[aria-current] { color: var(--orange); }

.post-recent li + li { margin-top: 14px; }

.post-recent a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post-recent img,
.post-recent__ph {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
}

.post-recent__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f8fc;
}

.post-recent__ph img {
  width: 52px;
  height: auto;
  opacity: 0.5;
}

.post-recent strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--navy);
}

.post-recent a:hover strong { color: var(--orange); }

.post-recent small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.post-promo {
  padding: 24px 22px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(13, 31, 60, 0.92) 0%, rgba(26, 75, 140, 0.88) 100%),
    url("img_new/page-banner.webp") right center / cover no-repeat;
  box-shadow: var(--shadow-card);
}

.post-promo h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.post-promo p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0 0 18px;
}

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
  .post-widget { margin-bottom: 0; }
}

@media (max-width: 900px) {
  .post-hero__media { display: none; }
  .post-hero--image .post-hero__text { max-width: none; }
}

@media (max-width: 768px) {
  .post-hero { padding-top: 92px; }
}

@media (max-width: 600px) {
  .section#main-content { padding-top: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-checklist { padding: 18px 16px; }
  .post-checklist ul.is-two-col { columns: 1; }
  .post-cards { grid-template-columns: 1fr 1fr; }
  .post-cta .btn { width: 100%; }
}
