/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra child theme with custom full-width blog and single-post layouts.
Author: SHEMROCK
Template: astra
Version: 1.1.0
Text Domain: astra-child





/* ---------- Shared reset for custom blog templates ---------- */
body.blog #content,
body.single-post #content,
body.blog .site-content,
body.single-post .site-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.blog .ast-container,
body.single-post .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.blog #primary,
body.single-post #primary,
body.blog .content-area,
body.single-post .content-area,
body.blog .site-main,
body.single-post .site-main {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.blog #secondary,
body.single-post #secondary {
  display: none !important;
}

/* ---------- Blog index ---------- */
.shemford-blog-wrap {
  min-height: 50vh;
  background: #f7f8fb;
  color: #1f2937;
}

.shemford-blog-container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
}

.shemford-blog-hero {
  padding: 64px 20px 54px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 68%, #f0fdf4 100%);
  text-align: center;
}

.shemford-blog-hero h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
}

.shemford-blog-kicker {
  margin: 0 0 10px;
  color: #f58220;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shemford-blog-description {
  max-width: 720px;
  margin: 16px auto 0;
  color: #6b7280;
  font-size: 17px;
}

.shemford-blog-content-area {
  padding-top: 56px;
  padding-bottom: 80px;
}

.shemford-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch;
  width: 100% !important;
}

.shemford-blog-card {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

.shemford-blog-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff7ed;
}

.shemford-blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.shemford-blog-card:hover .shemford-blog-card-image img {
  transform: scale(1.035);
}

.shemford-blog-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f58220, #ffc72c);
}

.shemford-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.shemford-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.shemford-post-meta a {
  color: #f05a28;
  text-decoration: none;
}

.shemford-blog-card .entry-title {
  margin: 0 0 12px !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
}

.shemford-blog-card .entry-title a {
  color: #172033;
  text-decoration: none;
}

.shemford-blog-card .entry-summary {
  color: #5b6472;
  line-height: 1.7;
}

.shemford-blog-card .entry-summary p {
  margin: 0 0 16px;
}

.shemford-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  color: #f05a28;
  font-weight: 700;
  text-decoration: none;
}

body.blog .navigation.pagination {
  margin: 42px 0 0;
}

.shemford-no-results {
  padding: 60px 20px;
  text-align: center;
}

/* ---------- Single post ---------- */
.shemford-single-wrap {
  min-height: 50vh;
  padding: 64px 0 88px !important;
  background: #f3f6fa;
}

.shemford-single-container {
  width: min(1000px, calc(100% - 40px));
  max-width: 1000px;
  margin: 0 auto;
}

.shemford-single-article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #e8edf3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, .08);
}

.shemford-single-header {
  max-width: 840px;
  margin: 0 auto 32px;
}

.shemford-single-header .entry-title {
  margin: 0;
  color: #172033;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
}

.shemford-entry-content {
  max-width: 840px;
  margin: 0 auto;
  color: #374151;
  font-size: 17px;
  line-height: 1.85;
}

.shemford-entry-content > * {
  max-width: 100%;
}

.shemford-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.shemford-entry-content h2,
.shemford-entry-content h3,
.shemford-entry-content h4 {
  margin-top: 1.5em;
  color: #172033;
}

.shemford-single-footer,
body.single-post .post-navigation {
  width: min(840px, 100%);
  margin-right: auto;
  margin-left: auto;
}

body.single-post .post-navigation {
  margin-top: 32px;
}

@media (max-width: 921px) {
  .shemford-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .shemford-blog-container,
  .shemford-single-container {
    width: min(100% - 28px, 1180px);
  }

  .shemford-blog-hero {
    padding: 48px 14px 40px;
  }

  .shemford-blog-content-area {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .shemford-blog-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .shemford-blog-card-body {
    padding: 20px;
  }

  .shemford-single-wrap {
    padding: 30px 0 56px !important;
  }

  .shemford-single-article {
    padding: 24px 20px;
    border-radius: 16px;
  }
}
