/* ============================================
   BLOG/ARTICLE SINGLE POST LAYOUT
   Mobile-first responsive design
   ============================================ */

/* ---- POST HERO ---- */
.post-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
  padding: 90px 0 36px;
  text-align: center;
  position: relative;
}

.post-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #F46122;
  border-radius: 2px;
}

.post-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.post-category {
  display: inline-block;
  background: #F46122;
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.post-hero h1 {
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.post-meta__sep { opacity: 0.4; }

.post-meta__published,
.post-meta__updated { white-space: nowrap; }

.post-meta .category-pill {
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: #333;
  text-decoration: none;
}
.post-meta .category-pill:hover {
  background: #F46122;
  color: white;
  border-color: #F46122;
}

.post-hero .post-meta {
  justify-content: center;
  color: rgba(255,255,255,0.6);
}

/* ---- POST LAYOUT (content + sidebar grid) ---- */
.post-layout {
  display: block;
  max-width: none;
  margin: 0;
  padding: 20px 0 40px;
  background: #fafaf8;
}

.post-layout > .container {
  max-width: 1200px;
}

.post-layout__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* ---- POST CONTENT CARD ---- */
.post-content {
  min-width: 0;
  background: white;
  border-radius: 10px;
  padding: 20px 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.75;
  color: #2a2a2a;
  overflow: hidden;
}

/* ---- HERO IMAGE ---- */
.post-hero-img {
  width: calc(100% + 32px);
  max-width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  margin-top: -20px;
  margin-bottom: 24px;
  display: block;
  border-radius: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ---- CONTENT TYPOGRAPHY ---- */
.post-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 32px 0 14px;
  padding-top: 16px;
  border-top: 2px solid #f0ebe8;
}
.post-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.post-content h3 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: #351C11;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 24px 0 10px;
}

.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 20px; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: #F46122; text-decoration: underline; }
.post-content a:hover { color: #351C11; }
.post-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }

.post-content blockquote {
  border-left: 4px solid #F46122;
  padding: 14px 18px;
  margin: 20px 0;
  background: #fdf5f2;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

.post-content iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 6px;
  margin: 16px 0;
  display: block;
}

/* Legacy .post-body selectors for older articles */
.post-body { font-size: 1rem; line-height: 1.75; color: #333; }
.post-body h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 32px 0 14px; }
.post-body h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin: 24px 0 10px; }
.post-body p { margin-bottom: 20px; }
.post-body ul, .post-body ol { margin: 0 0 20px 20px; }
.post-body li { margin-bottom: 6px; }

/* ---- TABLE OF CONTENTS ---- */
.post-toc {
  background: #fdf5f2;
  border: 1px solid #ead9d1;
  border-left: 4px solid #F46122;
  border-radius: 8px;
  padding: 18px 16px;
  margin: 20px 0 28px;
}

.post-toc h4 {
  margin: 0 0 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #351C11;
}

.post-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-toc li {
  border-bottom: 1px solid #e8d8d0;
}
.post-toc li:last-child { border-bottom: none; }

.post-toc a {
  display: block;
  padding: 7px 0;
  color: #351C11;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s, padding-left 0.2s;
}

.post-toc a:hover {
  color: #F46122;
  padding-left: 6px;
}

/* ---- SIDEBAR ---- */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  order: 2;
}

/* ---- AUTHOR E-E-A-T CARD ---- */
.author-eeat {
  background: white;
  border: 1px solid #eee6e2;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.author-eeat__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-eeat__text {
  flex: 1;
  min-width: 0;
}

.author-eeat h3 {
  margin: 0 0 4px;
  border: 0;
  padding: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: #1a1a2e;
  letter-spacing: 0.4px;
  text-transform: none;
}

.author-eeat__role {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #75685e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.author-eeat__bio {
  margin: 0 0 12px;
  color: #3f332d;
  font-size: 0.88rem;
  line-height: 1.55;
  flex-basis: 100%;
}

.author-eeat__stats {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  flex-basis: 100%;
}

.author-eeat__stats li {
  font-size: 0.82rem;
  color: #3f332d;
  white-space: nowrap;
}

.author-eeat__stats strong {
  color: #1a1a2e;
}

.author-eeat__story,
.author-eeat__social a {
  color: #F46122;
  text-decoration: none;
  font-size: 0.85rem;
}

.author-eeat__story {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  flex-basis: 100%;
}

.author-eeat__social {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-basis: 100%;
}

.author-eeat__story:hover,
.author-eeat__social a:hover {
  color: #b84a1d;
}

/* ---- SIDEBAR CTA WIDGET ---- */
.sidebar-widget {
  border-radius: 10px;
}

.sidebar-widget--cta {
  background: linear-gradient(135deg, #1a1a2e, #0f0f23) !important;
  color: white;
  padding: 22px 18px;
  border-radius: 10px;
  text-align: center;
}
.sidebar-widget--cta h3 {
  color: white;
  border-bottom-color: #F46122;
  font-size: 0.95rem;
}
.sidebar-widget--cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.sidebar-widget--cta .btn {
  width: 100%;
  justify-content: center;
  display: flex;
}

/* ---- CTA BAR (above footer) ---- */
.post-cta-bar {
  background: linear-gradient(135deg, #1a1a2e, #0f0f23);
  padding: 40px 0;
  border-top: 3px solid #F46122;
}
.post-cta-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.post-cta-bar h2 {
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  margin-bottom: 4px;
}
.post-cta-bar p { color: rgba(255,255,255,0.7); margin: 0; }

/* ---- AUTHOR BOX (below article) ---- */
.author-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: #fdf5f2;
  border-radius: 10px;
  padding: 22px 18px;
  margin: 28px 16px 0;
  border: 1px solid #e8d8d0;
}
.author-box__photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F46122;
  flex-shrink: 0;
}
.author-box__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.author-box__title {
  font-size: 0.82rem;
  color: #F46122;
  margin-bottom: 8px;
}
.author-box__bio {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
}

/* ---- BOTTOM CTA SECTION (form) ---- */
.cta {
  padding: 40px 0;
}
.cta .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cta__content h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}
.cta__benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.cta__benefits li {
  padding: 4px 0;
  font-size: 0.9rem;
}
.cta__form {
  background: white;
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cta__form h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
}
.cta__form-group {
  margin-bottom: 14px;
}
.cta__form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-weight: 500;
}
.cta__form-group input,
.cta__form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.cta__form-group input:focus,
.cta__form-group select:focus {
  outline: none;
  border-color: #F46122;
  box-shadow: 0 0 0 3px rgba(244,97,34,0.1);
}
.cta__form-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #F46122, #F49C22);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}
.cta__form-btn:hover {
  background: linear-gradient(135deg, #F49C22, #F46122);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244,97,34,0.3);
}

/* ============================================
   TABLET BREAKPOINT (>= 600px)
   ============================================ */
@media (min-width: 600px) {
  .post-hero {
    padding: 100px 0 44px;
  }

  .post-hero__inner {
    padding: 0 20px;
  }

  .post-meta {
    gap: 12px;
    font-size: 0.875rem;
  }

  .post-layout {
    padding: 28px 0 50px;
  }

  .post-content {
    padding: 32px 28px;
    border-radius: 12px;
    font-size: 1.02rem;
  }

  .post-hero-img {
    width: calc(100% + 56px);
    max-width: calc(100% + 56px);
    margin-left: -28px;
    margin-right: -28px;
    margin-top: -32px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .post-toc {
    padding: 20px 22px;
  }

  .author-eeat {
    padding: 20px;
  }

  .author-box {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    padding: 24px;
    margin: 32px 20px 0;
  }

  .post-cta-bar {
    padding: 50px 0;
  }
  .post-cta-bar__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .cta .container {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
  .cta__content { flex: 1; }
  .cta__form { flex: 1; max-width: 420px; }
}

/* ============================================
   DESKTOP BREAKPOINT (>= 900px)
   ============================================ */
@media (min-width: 900px) {
  .post-hero {
    padding: 120px 0 56px;
  }

  .post-hero::after {
    width: 60px;
    height: 4px;
  }

  .post-layout {
    padding: 48px 0 80px;
  }

  .post-layout__inner {
    grid-template-columns: 1fr 320px;
    gap: 48px;
  }

  .post-content {
    padding: 48px 52px;
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .post-hero-img {
    width: calc(100% + 104px);
    max-width: calc(100% + 104px);
    margin-left: -52px;
    margin-right: -52px;
    margin-top: -48px;
    margin-bottom: 36px;
  }

  .post-content h2 { margin: 40px 0 16px; padding-top: 20px; }
  .post-content h3 { margin: 28px 0 12px; }
  .post-content p { margin-bottom: 24px; }
  .post-content ul, .post-content ol { margin: 0 0 20px 24px; }

  .post-toc {
    padding: 22px 26px;
    margin: 24px 0 34px;
  }

  .post-sidebar {
    position: sticky;
    top: 90px;
    order: unset;
    gap: 20px;
  }

  .author-eeat {
    display: block;
    padding: 22px;
  }
  .author-eeat__photo {
    width: 78px;
    height: 78px;
    margin-bottom: 14px;
  }
  .author-eeat__stats {
    display: grid;
    gap: 7px;
  }
  .author-eeat__stats li { white-space: normal; }

  .author-box {
    margin: 40px 0 0;
    padding: 28px;
  }

  .post-cta-bar {
    padding: 70px 0;
  }

  .cta {
    padding: 60px 0;
  }
  .cta__form {
    padding: 28px;
  }
}

/* ============================================
   WIDE DESKTOP (>= 1100px)
   ============================================ */
@media (min-width: 1100px) {
  .post-layout__inner {
    grid-template-columns: 1fr 340px;
    gap: 56px;
  }

  .post-content {
    padding: 48px 56px;
  }

  .post-hero-img {
    width: calc(100% + 112px);
    max-width: calc(100% + 112px);
    margin-left: -56px;
    margin-right: -56px;
    margin-top: -48px;
  }
}
