/**
 * Blog Styles — Archive, Single, Sidebar, Comments
 * Sales Fundas Theme by Infineural Technologies
 */

/* =========================================================
   BLOG ARCHIVE GRID
   ========================================================= */
.blog-hero {
  background: var(--navy);
  padding: 120px 0 80px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

/* Post Card */
.sf-post-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.sf-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
  display: block;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sf-post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 14px;
  color: rgba(255,255,255,.3);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.post-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.post-card-body {
  padding: 28px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--g2);
  margin-bottom: 12px;
}
.post-card-date {}
.post-card-read-time {}

.post-card-title {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color var(--t-fast);
}
.sf-post-card:hover .post-card-title { color: var(--gold); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--g2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-card-author {
  font-size: 13px;
  color: var(--g2);
}
.post-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}
.sf-post-card:hover .post-card-link { gap: 10px; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-hero {
  background: var(--navy);
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 140px 0 120px;
  text-align: center;
}
.single-hero .post-category-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.single-hero h1 {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 0 auto 28px;
  max-width: 900px;
}
.single-hero .post-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}

/* Featured Image Integration */
.single-featured-image {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.single-featured-image .container {
  max-width: 1000px;
}
.single-featured-image img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  display: block;
}

/* Single post layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  padding: 80px 0 80px;
  align-items: start;
}

/* Content column */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-family: var(--fd);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 20px;
  line-height: 1.25;
}
.post-content h3 {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 16px;
}
.post-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 12px;
}
.post-content p { margin-bottom: 20px; }
.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--fd);
  font-size: 20px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}
.post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--navy); }
.post-content img {
  border-radius: var(--r-md);
  margin: 32px 0;
  width: 100%;
}
.post-content figure { margin: 32px 0; }
.post-content figcaption {
  font-size: 13px;
  color: var(--g2);
  text-align: center;
  margin-top: 8px;
}

/* Post tags */
.post-tags {
  margin: 48px 0 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tag {
  display: inline-block;
  background: var(--off);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: background var(--t-fast), color var(--t-fast);
}
.post-tag:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* Author box */
.author-box {
  background: var(--off);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 48px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 700;
  overflow: hidden;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info h4 {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.author-title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.author-bio {
  font-size: 14px;
  color: var(--g2);
  line-height: 1.65;
}

/* Social share */
.social-share {
  margin-bottom: 48px;
}
.social-share p {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.share-links {
  display: flex;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--t-fast);
}
.share-btn:hover { opacity: .8; }
.share-btn.linkedin { background: #0077B5; color: var(--white); }
.share-btn.twitter  { background: #1DA1F2; color: var(--white); }
.share-btn.whatsapp { background: #25D366; color: var(--white); }

/* =========================================================
   BLOG SIDEBAR
   ========================================================= */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
  transition: box-shadow var(--t-fast);
}
.sidebar-widget:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.sidebar-widget-title {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  line-height: 1.2;
}

/* Recent posts */
.recent-post {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.recent-post:first-child { padding-top: 0; }
.recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy);
}
.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-post-thumb.placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}
.recent-post-info {
  flex: 1;
}
.recent-post-title {
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color var(--t-fast);
}
.recent-post-title a { color: inherit; }
.recent-post-title:hover { color: var(--gold); }
.recent-post-date {
  font-size: 12px;
  color: var(--g2);
}
.cat-list { list-style: none; }
.cat-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--t-fast);
}
.cat-list a:hover { color: var(--gold); }
.cat-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--gold-lt);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}

/* Sidebar CTA */
.sidebar-cta-widget {
  background: var(--navy);
  border: none;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.sidebar-cta-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
}
.sidebar-cta-widget h4 {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.sidebar-cta-widget p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
  line-height: 1.6;
}
.sidebar-cta-widget .btn {
  font-size: 14px;
  padding: 12px 24px;
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-section {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 36px;
}

.comment-list { list-style: none; }
.comment {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.comment-avatar img,
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.comment-author { font-weight: 600; font-size: 15px; color: var(--navy); }
.comment-date   { font-size: 13px; color: var(--g2); }
.comment-body p { font-size: 15px; color: var(--text); line-height: 1.7; }

/* Comment form */
.comment-respond {
  margin-top: 48px;
}
.comment-reply-title {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}
.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--fb);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  margin-bottom: 20px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,146,42,.12);
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form .submit {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--fb);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.comment-form .submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}
