/* Single Post Design Plugin */

.spd-single-post-wrap {
  width: 100%;
  padding: 48px 16px;
  margin: 20px 0;
  box-sizing: border-box;
}

.spd-single-post-wrap *,
.spd-single-post-wrap *::before,
.spd-single-post-wrap *::after {
  box-sizing: border-box;
}

.spd-single-post-container {
  max-width: 1140px;
  margin: 0 auto;
}

.spd-featured-image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 32px;
  background: #f3f4f6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.spd-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.spd-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #edb661;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spd-meta-dot {
  color: #d1d5db;
}

.spd-post-title {
  margin: 0 0 28px;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.spd-post-content {
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.spd-post-content p {
  margin-bottom: 18px;
}

.spd-post-content img {
  max-width: 100%;
  height: auto;
}

.spd-post-content iframe,
.spd-post-content video {
  max-width: 100%;
}

.spd-author-section {
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid #e5e7eb;
}

.spd-author-box {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  width: 100%;
  padding: 32px;
  border: 1px solid #f1f1f1;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}

.spd-author-photo-wrap {
  flex: 0 0 120px;
  width: 120px !important;
  height: 120px !important;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 4px solid #edb661;
  background: #f9fafb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.spd-author-photo-wrap img,
.spd-author-avatar,
.spd-author-photo-wrap .avatar {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border-radius: 50% !important;
  margin: 0 !important;
}

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

.spd-author-label {
  margin: 0 0 8px;
  color: #edb661;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spd-author-name {
  margin: 0 0 6px;
  color: #111827;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.25;
}

.spd-author-designation {
  margin-bottom: 12px;
  color: #edb661;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.spd-designation-desc {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-left: 4px solid #edb661;
  border-radius: 12px;
  background: #fff8ed;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.75;
}

.spd-author-bio {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
  line-height: 1.75;
}

.spd-author-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.spd-author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.spd-author-socials a:hover,
.spd-author-socials a:focus {
  border-color: #edb661;
  background: #edb661;
  color: #ffffff;
}

.spd-author-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.spd-author-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #edb661;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.spd-author-button:hover,
.spd-author-button:focus {
  background: #111827;
  color: #ffffff !important;
}

.spd-published-date {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .spd-featured-image {
    height: 340px;
  }

  .spd-author-box {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .spd-single-post-wrap {
    padding: 36px 14px;
  }

  .spd-featured-image {
    height: 260px;
    border-radius: 18px;
    margin-bottom: 26px;
  }

  .spd-post-content {
    font-size: 17px;
    line-height: 1.75;
  }

  .spd-author-section {
    margin-top: 42px;
    padding-top: 28px;
  }

  .spd-author-box {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
  }

  .spd-author-photo-wrap {
    flex-basis: 104px;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px;
    min-height: 104px;
    max-width: 104px;
    max-height: 104px;
  }
}

@media (max-width: 480px) {
  .spd-featured-image {
    height: 220px;
  }

  .spd-post-meta {
    font-size: 12px;
  }

  .spd-author-box {
    padding: 20px;
  }

  .spd-author-socials a {
    width: 100%;
  }

  .spd-author-button {
    width: 100%;
  }

  .spd-published-date {
    width: 100%;
    text-align: center;
  }
}
