/* ============================================================
   BLOG DETAILS PAGE STYLES
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Blog Details Section */
.sv-blog-details-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: calc(100vh - 200px);
}

/* Article Container */
.sv-blog-article {
  animation: sv-fade-in 600ms ease forwards;
  opacity: 0;
}

/* Blog Featured Image */
.sv-blog-image-wrapper {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: sv-scale-in 700ms ease forwards;
  opacity: 0;
  animation-delay: 100ms;
}

.sv-blog-featured-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms ease;
}

.sv-blog-image-wrapper:hover .sv-blog-featured-image {
  transform: scale(1.02);
}

/* Blog Meta Information */
.sv-blog-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  animation: sv-slide-up 700ms ease forwards;
  opacity: 0;
  animation-delay: 200ms;
}

.sv-blog-date,
.sv-blog-author,
.sv-blog-read-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666666;
  font-weight: 500;
  letter-spacing: 1px;
}

.sv-blog-date i,
.sv-blog-author i,
.sv-blog-read-time i {
  color: #D4AF37;
  font-size: 16px;
}

/* Blog Title */
.sv-blog-title {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 20px;
  animation: sv-slide-up 700ms ease forwards;
  opacity: 0;
  animation-delay: 300ms;
  letter-spacing: 1px;
}

/* Blog Content Wrapper - Prevent CSS Conflicts */
.blog-content-wrapper {
	line-height: 1.8;
	font-size: 16px;
	color: #5c5e61;
}

.blog-content-wrapper p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	font-size: 16px;
}

.blog-content-wrapper h1,
.blog-content-wrapper h2,
.blog-content-wrapper h3,
.blog-content-wrapper h4,
.blog-content-wrapper h5,
.blog-content-wrapper h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #2c2e33;
	font-weight: 600;
}

.blog-content-wrapper h2 {
	font-size: 28px;
}

.blog-content-wrapper h3 {
	font-size: 24px;
}

.blog-content-wrapper h4 {
	font-size: 20px;
}

.blog-content-wrapper h5 {
	font-size: 18px;
}

.blog-content-wrapper h6 {
	font-size: 16px;
}

.blog-content-wrapper ul,
.blog-content-wrapper ol {
	margin-bottom: 1.5rem;
	margin-left: 2rem;
}

.blog-content-wrapper ul li,
.blog-content-wrapper ol li {
	margin-bottom: 0.5rem;
	line-height: 1.8;
	list-style: circle;
}

.blog-content-wrapper img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
	border-radius: 8px;
}

.blog-content-wrapper blockquote {
	border-left: 4px solid #c01e2e;
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: #8e8e93;
}

.blog-content-wrapper a {
	color: #c01e2e;
	text-decoration: none;
	transition: 0.3s ease;
}

.blog-content-wrapper a:hover {
	text-decoration: underline;
}

.blog-content-wrapper table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.blog-content-wrapper table th,
.blog-content-wrapper table td {
	padding: 12px;
	border: 1px solid #ececec;
	text-align: left;
}

.blog-content-wrapper table th {
	background-color: #f5f5f5;
	font-weight: 600;
}

/* ============================================================
   SIDEBAR STYLES
   ============================================================ */

.sv-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

@supports (position: sticky) {
  .sv-blog-sidebar {
    position: sticky;
    top: 90px;
  }
}

/* Sidebar Widgets */
.sv-sidebar-widget {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  transition: all 300ms ease;
  animation: sv-slide-up 700ms ease forwards;
  opacity: 0;
}

.sv-sidebar-widget:hover {
  border-color: #D4AF37;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.sv-sidebar-widget:nth-child(1) { animation-delay: 300ms; }
.sv-sidebar-widget:nth-child(2) { animation-delay: 400ms; }
.sv-sidebar-widget:nth-child(3) { animation-delay: 500ms; }
.sv-sidebar-widget:nth-child(4) { animation-delay: 600ms; }

.sv-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  letter-spacing: 1px;
  border-bottom: 2px solid #D4AF37;
}

/* Category Widget */
.sv-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sv-category-tag {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #8B4513 0%, #D4AF37 100%);
  color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600;
  transition: all 300ms ease;
  border: 2px solid transparent;
}

.sv-category-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(139, 69, 19, 0.3);
  border-color: #0f172a;
}

/* Recent Posts Widget */
.sv-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sv-recent-post-item {
  display: flex;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e0e0;
  transition: all 300ms ease;
}

.sv-recent-post-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sv-recent-post-item:hover {
  transform: translateX(5px);
}

.sv-recent-post-thumbnail {
  flex-shrink: 0;
}

.sv-recent-post-thumbnail img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.sv-recent-post-content {
  flex: 1;
  min-width: 0;
}

.sv-recent-post-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: 1px;
}

.sv-recent-post-content h4 a {
  color: #0f172a;
  text-decoration: none;
  transition: color 300ms ease;
}

.sv-recent-post-content h4 a:hover {
  color: #D4AF37;
}

.sv-recent-post-date {
  font-size: 12px;
  color: #999999;
  display: block;
  letter-spacing: 1px;
}

/* Tags Widget */
.sv-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f0f0f0;
  color: #666666;
  border-radius: 15px;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 600;
  transition: all 300ms ease;
  border: 1px solid transparent;
}

.sv-tag:hover {
  background: #D4AF37;
  color: #ffffff;
  transform: scale(1.05);
}

/* CTA Widget */
.sv-cta-widget {
  background: linear-gradient(135deg, #8B4513 0%, #D4AF37 100%);
  border: none;
  color: #ffffff;
}

.sv-cta-content {
  text-align: center;
}

.sv-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  border: none;
  padding: 0;
  letter-spacing: 1px;
}

.sv-cta-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  line-height: 1.6;
  letter-spacing: 1px;
}

.sv-cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  color: #8B4513;
  border-radius: 8px;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 300ms ease;
  border: 2px solid transparent;
}

.sv-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: #0f172a;
}

.sv-cta-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
  margin-bottom: 0;
  letter-spacing: 1px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes sv-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sv-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sv-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .sv-blog-details-section {
    padding: 60px 0;
  }

  .sv-blog-title {
    font-size: 36px;
  }

  .sv-blog-meta {
    gap: 20px;
  }

  @supports (position: sticky) {
    .sv-blog-sidebar {
      top: 80px;
    }
  }
}

/* Tablet: 768px and below */
@media (max-width: 768px) {
  .sv-blog-details-section {
    padding: 50px 0;
  }

  .sv-blog-image-wrapper {
    margin-bottom: 30px;
  }

  .sv-blog-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .sv-blog-meta {
    gap: 15px;
    margin-bottom: 20px;
  }

  .sv-blog-date,
  .sv-blog-author,
  .sv-blog-read-time {
    font-size: 13px;
  }

  @supports (position: sticky) {
    .sv-blog-sidebar {
      position: static;
    }
  }
}

/* Mobile: 640px and below */
@media (max-width: 640px) {
  .sv-blog-details-section {
    padding: 40px 0;
  }

  .sv-blog-image-wrapper {
    margin-bottom: 25px;
    border-radius: 12px;
  }

  .sv-blog-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .sv-blog-meta {
    gap: 12px;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .sv-blog-date,
  .sv-blog-author,
  .sv-blog-read-time {
    font-size: 12px;
  }

  .sv-blog-sidebar {
    gap: 20px;
    margin-top: 30px;
  }

  .sv-sidebar-widget {
    padding: 15px;
  }

  .sv-widget-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .sv-category-tag {
    font-size: 12px;
    padding: 6px 12px;
  }

  .sv-recent-post-item {
    gap: 12px;
    padding-bottom: 12px;
  }

  .sv-recent-post-thumbnail img {
    width: 70px;
    height: 70px;
  }

  .sv-recent-post-content h4 {
    font-size: 13px;
  }

  .sv-recent-post-date {
    font-size: 11px;
  }

  .sv-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  .sv-cta-title {
    font-size: 18px;
  }

  .sv-cta-description {
    font-size: 13px;
  }

  .sv-cta-button {
    padding: 10px 25px;
    font-size: 13px;
  }

  .sv-cta-footer {
    font-size: 11px;
  }
}
