/* ==========================================================================
   Single Blog Screen - Unified Stylesheet
   Contains: Page Wrapper, Hero Banner Section, Author Card & Comment Form
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Layout & Wrapper
   -------------------------------------------------------------------------- */
.single-blog-page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  color: #1A0D2E;
  font-family: 'Museo Slab', Georgia, serif;
  overflow-x: hidden;
}

.single-blog-main {
  flex: 1;
  width: 100%;
  background-color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   2. Hero Banner Section
   -------------------------------------------------------------------------- */
.single-blog-hero-banner-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #F8F4F9;
}

.single-blog-hero-banner-container {
  width: 100%;
  min-height: 540px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.single-blog-hero-banner-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.5rem 5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.single-blog-hero-content-box {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Back Button */
.single-blog-back-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.single-blog-back-btn:hover {
  transform: translateX(-4px);
  opacity: 0.85;
}

.single-blog-back-btn-img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

/* Hero Title */
.single-blog-hero-title {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.22;
  color: #1A0D2E;
  margin: 0 0 2rem 0;
  letter-spacing: -0.015em;
  max-width: 530px;
  word-break: break-word;
}

/* Author and Meta Row */
.single-blog-author-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.single-blog-author-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.single-blog-author-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.single-blog-author-byline {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A0D2E;
  line-height: 1.2;
  margin: 0;
}

.single-blog-meta-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.single-blog-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: #8C7B9E;
  font-weight: 500;
  line-height: 1;
}

.single-blog-meta-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Article Content & Sidebar Layout
   -------------------------------------------------------------------------- */
.single-blog-body-layout {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4rem 5rem 3rem 5rem;
  box-sizing: border-box;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.single-blog-content-container {
  flex: 1;
  min-width: 0;
}

.single-blog-featured-media {
  width: 100%;
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.single-blog-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.single-blog-content-area {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #2D223B;
}

.single-blog-content-area p {
  margin: 0 0 1.75rem 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.single-blog-content-area p:last-child {
  margin-bottom: 0;
}

.single-blog-content-area a {
  color: #6E2A80;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.single-blog-content-area a:hover {
  color: #521c60;
}

.single-blog-content-area figure {
  margin: 2.5rem 0;
}

.single-blog-content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.single-blog-content-area iframe {
  max-width: 100%;
  border-radius: 12px;
}

.single-blog-content-area .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
}

/* Sidebar */
.single-blog-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: #FAF7FC;
  border: 1px solid #EFE6F7;
  border-radius: 16px;
  padding: 1.75rem;
  box-sizing: border-box;
}

.sidebar-widget-title {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A0D2E;
  margin: 0 0 1rem 0;
}

.sidebar-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E3D6ED;
  border-radius: 12px;
  overflow: hidden;
  padding: 0.25rem 0.5rem 0.25rem 1rem;
}

.sidebar-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1A0D2E;
  background: transparent;
  padding: 0.5rem 0;
}

.sidebar-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6E2A80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.sidebar-author-name {
  font-weight: 700;
  color: #1A0D2E;
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.sidebar-author-bio {
  color: #615273;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .single-blog-body-layout {
    flex-direction: column;
    padding: 3rem 2rem 2rem 2rem;
    gap: 3rem;
  }

  .single-blog-sidebar {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   4. Author Card & Leave a Comment Section
   -------------------------------------------------------------------------- */
.single-blog-comment-section-wrapper {
  width: 100%;
  background-color: #FFFFFF;
  padding: 3rem 2rem 5rem 2rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.single-blog-comment-container {
  width: 100%;
  max-width: 1200px;
  background: #FFFFFF;
  border: 1px solid #ECE2F5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(110, 42, 128, 0.04);
  box-sizing: border-box;
}

/* Top Author Banner */
.single-blog-author-banner {
  width: 100%;
  min-height: 190px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 2.5rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  box-sizing: border-box;
  border-bottom: 1px solid #EFE6F7;
}

.single-blog-author-photo {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(110, 42, 128, 0.12);
  border: 2px solid #FFFFFF;
}

.single-blog-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.single-blog-author-title {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1A0D2E;
  margin: 0;
  line-height: 1.2;
}

.single-blog-author-subtitle {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #4A3560;
  margin: 0;
  line-height: 1.4;
}

/* Bottom Comment & Share Body */
.single-blog-comment-body {
  padding: 2.75rem 3.5rem 3.25rem 3.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Header Row: Title on Left, Share on Right */
.single-blog-comment-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.65rem;
}

.single-blog-comment-heading {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1A0D2E;
  margin: 0;
  line-height: 1.2;
}

.single-blog-share-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.single-blog-share-title {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A0D2E;
  margin: 0 0.25rem 0 0;
}

.single-blog-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.single-blog-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.single-blog-social-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

/* Logged-in Info Line */
.single-blog-logged-in-line {
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 0.95rem;
  color: #382B48;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.single-blog-link-purple {
  color: #7E308E;
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-blog-link-purple:hover {
  color: #502050;
  text-decoration: underline;
}

.single-blog-required-hint {
  color: #554865;
  font-style: normal;
}

/* Comment Form */
.single-blog-comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.single-blog-comment-textarea {
  width: 100%;
  min-height: 170px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #DFCEEC;
  border-radius: 18px;
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1.05rem;
  color: #1A0D2E;
  background-color: #FFFFFF;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-blog-comment-textarea::placeholder {
  color: #8C7B9E;
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 1rem;
}

.single-blog-comment-textarea:focus {
  outline: none;
  border-color: #7E308E;
  box-shadow: 0 0 0 3px rgba(126, 48, 142, 0.12);
}

/* Post Comment Button */
.single-blog-post-btn {
  align-self: flex-start;
  background-color: #7E2282;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-family: 'Museo Slab', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(126, 34, 130, 0.25);
}

.single-blog-post-btn:hover {
  background-color: #631766;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(126, 34, 130, 0.35);
}

.single-blog-btn-arrow-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

/* Success Notice */
.single-blog-comment-success {
  background-color: #EDF9F0;
  border: 1px solid #A8E3B6;
  color: #1D6631;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. Unified Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* 1200px: Small Desktops & Laptops */
@media (max-width: 1200px) {
  .single-blog-hero-banner-inner {
    padding: 3rem 3.5rem;
  }

  .single-blog-hero-title {
    font-size: 2.35rem;
    max-width: 500px;
  }

  .single-blog-hero-content-box {
    max-width: 540px;
  }

  .single-blog-comment-container {
    max-width: 1050px;
  }

  .single-blog-author-banner {
    padding: 2.25rem 3rem;
  }

  .single-blog-comment-body {
    padding: 2.25rem 3rem 2.75rem 3rem;
  }
}

/* 992px: Tablets (Landscape & Portrait) */
@media (max-width: 992px) {
  .single-blog-hero-banner-container {
    min-height: 500px;
    background-position: right 15% center;
  }

  .single-blog-hero-banner-inner {
    padding: 2.75rem 2.5rem;
  }

  .single-blog-hero-title {
    font-size: 2.1rem;
    margin-bottom: 1.75rem;
    max-width: 460px;
  }

  .single-blog-hero-content-box {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.75rem 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(110, 42, 128, 0.08);
  }

  .single-blog-comment-section-wrapper {
    padding: 2.5rem 1.5rem 4rem 1.5rem;
  }

  .single-blog-author-banner {
    padding: 2rem 2.25rem;
  }

  .single-blog-comment-body {
    padding: 2rem 2.25rem 2.5rem 2.25rem;
  }

  .single-blog-author-photo {
    width: 90px;
    height: 90px;
  }

  .single-blog-author-title {
    font-size: 1.6rem;
  }

  .single-blog-comment-heading {
    font-size: 1.65rem;
  }
}

/* 768px: Tablets & Large Mobile */
@media (max-width: 768px) {
  .single-blog-hero-banner-container {
    min-height: 460px;
    background-position: 85% center;
  }

  .single-blog-hero-banner-inner {
    padding: 2rem 1.5rem;
  }

  .single-blog-hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .single-blog-hero-content-box {
    max-width: 100%;
    padding: 1.5rem 1.5rem;
  }

  .single-blog-back-btn {
    margin-bottom: 1.25rem;
  }

  .single-blog-back-btn-img {
    width: 40px;
    height: 40px;
  }

  .single-blog-author-avatar-img {
    width: 46px;
    height: 46px;
  }

  .single-blog-meta-subrow {
    gap: 1rem;
  }

  .single-blog-comment-section-wrapper {
    padding: 2rem 1.25rem 3.5rem 1.25rem;
  }

  .single-blog-comment-container {
    border-radius: 22px;
  }

  .single-blog-author-banner {
    padding: 1.75rem 1.75rem;
    gap: 1.25rem;
  }

  .single-blog-comment-body {
    padding: 1.75rem 1.75rem 2rem 1.75rem;
  }

  .single-blog-author-photo {
    width: 80px;
    height: 80px;
  }

  .single-blog-author-title {
    font-size: 1.45rem;
  }

  .single-blog-comment-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .single-blog-comment-heading {
    font-size: 1.5rem;
  }

  .single-blog-share-group {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 576px / 480px: Mobile Phones */
@media (max-width: 576px) {
  .single-blog-hero-banner-section {
    padding: 0;
  }

  .single-blog-hero-banner-container {
    min-height: auto;
    padding: 1.75rem 0;
    background-position: 80% top;
  }

  .single-blog-hero-banner-inner {
    padding: 0 1rem;
  }

  .single-blog-hero-content-box {
    padding: 1.35rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
  }

  .single-blog-back-btn {
    margin-bottom: 1rem;
  }

  .single-blog-back-btn-img {
    width: 36px;
    height: 36px;
  }

  .single-blog-hero-title {
    font-size: 1.5rem;
    line-height: 1.28;
    margin-bottom: 1.25rem;
  }

  .single-blog-author-meta-row {
    gap: 0.85rem;
  }

  .single-blog-author-avatar-img {
    width: 42px;
    height: 42px;
  }

  .single-blog-author-byline {
    font-size: 0.98rem;
  }

  .single-blog-meta-subrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .single-blog-meta-badge {
    font-size: 0.88rem;
  }

  .single-blog-comment-section-wrapper {
    padding: 1.5rem 1rem 3rem 1rem;
  }

  .single-blog-author-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1rem;
  }

  .single-blog-author-photo {
    width: 76px;
    height: 76px;
    margin: 0 auto;
  }

  .single-blog-author-title {
    font-size: 1.35rem;
  }

  .single-blog-author-subtitle {
    font-size: 0.95rem;
  }

  .single-blog-comment-body {
    padding: 1.5rem 1.25rem 2rem 1.25rem;
  }

  .single-blog-social-icon-img {
    width: 34px;
    height: 34px;
  }

  .single-blog-logged-in-line {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .single-blog-comment-textarea {
    min-height: 140px;
    padding: 1rem 1.15rem;
    font-size: 0.98rem;
    border-radius: 14px;
  }

  .single-blog-post-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}

/* 380px: Extra Small Screens */
@media (max-width: 380px) {
  .single-blog-comment-section-wrapper {
    padding: 1.25rem 0.65rem 2.5rem 0.65rem;
  }

  .single-blog-comment-container {
    border-radius: 18px;
  }

  .single-blog-author-banner {
    padding: 1.5rem 1rem;
  }

  .single-blog-comment-body {
    padding: 1.25rem 1rem;
  }

  .single-blog-comment-heading {
    font-size: 1.35rem;
  }

  .single-blog-share-group {
    gap: 0.5rem;
  }

  .single-blog-social-icon-img {
    width: 32px;
    height: 32px;
  }
}