/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==========================================================================
  VETENCODE - SINGLE POST TEMPLATE STYLES
  Based on Putra Farma's single template.
  ========================================================================== */

/* Container and Layout Styles */
.vtn-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 1rem;
  background-color: #F0F0F0; /* Adjusted */
  min-height: 100vh;
}

.vtn-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.vtn-main-content {
  background-color: #FFFFFF; /* Adjusted */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.vtn-single-post {
  font-family: 'Montserrat', sans-serif;
  color: #0D1C4A; /* Adjusted */
  padding: 2.5rem;
}

/* Post Header Styles */
.vtn-post-header {
  margin-bottom: 2rem;
  position: relative;
}

.vtn-post-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F5A623; /* Adjusted */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
  background-color: rgba(245, 166, 35, 0.1); /* Adjusted */
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.vtn-post-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #081032; /* Adjusted */
  margin-bottom: 1rem;
}

.vtn-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #0D1C4A; /* Adjusted */
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #D9D9D9; /* Adjusted */
  border-bottom: 1px solid #D9D9D9; /* Adjusted */
}

.vtn-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vtn-post-meta-item i {
  color: #B3001B; /* Adjusted */
  width: 16px;
  text-align: center;
}

/* Featured Image Styles */
.vtn-post-featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  position: relative;
}

.vtn-post-featured-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(13, 28, 74, 0.1), rgba(179, 0, 27, 0.1)); /* Adjusted */
  pointer-events: none;
}

.vtn-post-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.vtn-post-featured-image:hover img {
  transform: scale(1.02);
}

/* Table of Contents Styles (assuming vtn_generate_toc creates these classes) */
.vtn-post-toc {
  background: linear-gradient(135deg, #F0F0F0, #D9D9D9); /* Adjusted */
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #D9D9D9; /* Adjusted */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vtn-post-toc-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #081032; /* Adjusted */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vtn-post-toc-title i {
  color: #B3001B; /* Adjusted */
}

.vtn-post-toc-list {
  padding-left: 1.2rem;
  margin: 0;
}

.vtn-post-toc-list li {
  margin-bottom: 0.8rem;
}

.vtn-post-toc-list a {
  color: #8B000F; /* Adjusted */
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.vtn-post-toc-list a:hover {
  color: #B3001B; /* Adjusted */
  text-decoration: underline;
  padding-left: 0.5rem;
}

/* Post Content Styles */
.vtn-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.vtn-post-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.vtn-post-content h2 {
  font-size: 1.8rem;
  color: #081032; /* Adjusted */
  margin: 2.5rem 0 1.2rem;
  font-weight: 700;
  position: relative;
  padding-left: 1rem;
  scroll-margin-top: 100px; /* For smooth scroll offset */
}

.vtn-post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
  border-radius: 2px;
}

.vtn-post-content h3 {
  font-size: 1.5rem;
  color: #8B000F; /* Adjusted */
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.vtn-post-content ul, .vtn-post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.vtn-post-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.vtn-post-content blockquote {
  background: linear-gradient(135deg, #F0F0F0, #D9D9D9); /* Adjusted */
  border-left: 4px solid #B3001B; /* Adjusted */
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #0D1C4A; /* Adjusted */
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vtn-post-content blockquote::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #B3001B; /* Adjusted */
  font-size: 1.5rem;
  opacity: 0.3;
}

.vtn-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.vtn-post-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Post Tags Styles */
.vtn-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #D9D9D9; /* Adjusted */
}

.vtn-post-tag {
  background: linear-gradient(135deg, #D9D9D9, #F0F0F0); /* Adjusted */
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  color: #8B000F; /* Adjusted */
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #D9D9D9; /* Adjusted */
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.vtn-post-tag:hover {
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
  color: #FFFFFF; /* Adjusted */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 0, 27, 0.3); /* Adjusted */
}

/* Author Box Styles */
.vtn-post-author {
  display: flex;
  gap: 1.5rem;
  background: linear-gradient(135deg, #F0F0F0, #FFFFFF); /* Adjusted */
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  border: 1px solid #D9D9D9; /* Adjusted */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vtn-post-author-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #B3001B; /* Adjusted */
  box-shadow: 0 4px 12px rgba(179, 0, 27, 0.2); /* Adjusted */
  flex-shrink: 0;
}

.vtn-post-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.vtn-post-author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vtn-post-author-info h4 {
  margin: 0 0 0.8rem;
  color: #081032; /* Adjusted */
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vtn-post-author-info p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #0D1C4A; /* Adjusted */
  line-height: 1.6;
  text-align: justify;
}

.vtn-author-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.vtn-author-posts-btn {
  background-color: #B3001B; /* Adjusted */
  color: #FFFFFF; /* Adjusted */
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.vtn-author-posts-btn:hover {
  background-color: #8B000F; /* Adjusted */
  transform: translateY(-2px);
}

.vtn-author-post-count {
  background-color: #D9D9D9; /* Adjusted */
  color: #0D1C4A; /* Adjusted */
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Post Share Styles */
.vtn-post-share {
  margin-bottom: 3rem;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #F0F0F0, #FFFFFF); /* Adjusted */
  border-radius: 12px;
  border: 1px solid #D9D9D9; /* Adjusted */
}

.vtn-post-share-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #0D1C4A; /* Adjusted */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vtn-post-share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.vtn-post-share-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF; /* Adjusted */
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vtn-post-share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.vtn-post-share-facebook {
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
}

.vtn-post-share-twitter {
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
}

.vtn-post-share-linkedin {
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
}

.vtn-post-share-pinterest {
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
}

.vtn-post-share-whatsapp {
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
}

/* Related Posts Styles */
.vtn-related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #D9D9D9; /* Adjusted */
}

.vtn-related-posts-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #081032; /* Adjusted */
  position: relative;
  padding-bottom: 0.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vtn-related-posts-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
  border-radius: 2px;
}

.vtn-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vtn-related-post-card {
  background: #FFFFFF; /* Adjusted */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #D9D9D9; /* Adjusted */
}

.vtn-related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.vtn-related-post-card:hover .vtn-related-post-image img {
  transform: scale(1.05);
}

.vtn-related-post-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.vtn-related-post-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(13, 28, 74, 0.1), rgba(179, 0, 27, 0.1)); /* Adjusted */
}

.vtn-related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vtn-related-post-content {
  padding: 1.5rem;
}

.vtn-related-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: #0D1C4A; /* Adjusted */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vtn-related-post-date {
  font-size: 0.85rem;
  color: #0D1C4A; /* Adjusted */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vtn-related-post-date i {
  color: #B3001B; /* Adjusted */
}

/* ==========================================================================
  SIDEBAR STYLES
  ========================================================================== */

.vtn-sidebar {
  background-color: #FFFFFF; /* Adjusted */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.vtn-widget {
  padding: 1.5rem;
  border-bottom: 1px solid #D9D9D9; /* Adjusted */
}

.vtn-widget:last-child {
  border-bottom: none;
}

.vtn-widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #081032; /* Adjusted */
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vtn-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, #B3001B, #8B000F); /* Adjusted */
}

.vtn-widget-title i {
  color: #B3001B; /* Adjusted */
}

/* Search Widget Styles */
.vtn-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vtn-search-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #D9D9D9; /* Adjusted */
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vtn-search-input:focus {
  outline: none;
  border-color: #B3001B; /* Adjusted */
  box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.2); /* Adjusted */
}

.vtn-search-button {
  padding: 10px 16px;
  border: none;
  background: #B3001B; /* Adjusted */
  color: #FFFFFF; /* Adjusted */
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.vtn-search-button:hover {
  background: #8B000F; /* Adjusted */
}

/* Recent Posts Widget Styles */
.vtn-recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vtn-recent-posts-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F0F0F0; /* Adjusted */
}

.vtn-recent-posts-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.vtn-recent-post-link {
  display: block;
  text-decoration: none;
  color: #0D1C4A; /* Adjusted */
  transition: color 0.2s ease;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

.vtn-recent-post-link:hover {
  color: #B3001B; /* Adjusted */
}

.vtn-recent-post-date {
  font-size: 0.8rem;
  color: #0D1C4A; /* Adjusted */
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Categories & Archives Widget Styles */
.vtn-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vtn-categories-list li {
  margin-bottom: 0.5rem;
}

.vtn-categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background-color: #F0F0F0; /* Adjusted */
  border-radius: 6px;
  text-decoration: none;
  color: #0D1C4A; /* Adjusted */
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.vtn-categories-list a:hover {
  background-color: #B3001B; /* Adjusted */
  color: #FFFFFF; /* Adjusted */
}

.vtn-category-count {
  background-color: #D9D9D9; /* Adjusted */
  color: #0D1C4A; /* Adjusted */
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.vtn-categories-list a:hover .vtn-category-count {
  background-color: rgba(255,255,255,0.2);
  color: #FFFFFF; /* Adjusted */
}

/* Tags Cloud Styles */
.vtn-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vtn-tag-cloud-item {
  padding: 0.3rem 0.6rem;
  background-color: #F0F0F0; /* Adjusted */
  color: #0D1C4A; /* Adjusted */
  text-decoration: none;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.vtn-tag-cloud-item:hover {
  background-color: #B3001B; /* Adjusted */
  color: #FFFFFF; /* Adjusted */
  transform: translateY(-1px);
}

/* ==========================================================================
  RESPONSIVE DESIGN
  ========================================================================== */

@media (max-width: 992px) {
  .vtn-content-wrapper {
   grid-template-columns: 1fr;
   gap: 2rem;
  }
  
  .vtn-sidebar {
   position: static;
   max-height: none;
   overflow-y: visible;
  }
  
  .vtn-related-posts-grid {
   grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vtn-container {
   padding: 1rem;
  }
  
  .vtn-single-post {
   padding: 1.5rem;
  }
  
  .vtn-post-title {
   font-size: 2rem;
  }
  
  .vtn-post-author {
   flex-direction: column;
   align-items: flex-start;
   text-align: center;
  }
  
  .vtn-post-author-info {
   align-items: center;
  }

  .vtn-post-author-image {
   align-self: center;
   margin-bottom: 1rem;
  }
  
  .vtn-post-share-buttons {
   gap: 0.8rem;
  }
  
  .vtn-post-share-button {
   width: 40px;
   height: 40px;
  }
}

@media (max-width: 576px) {
  .vtn-related-posts-grid {
   grid-template-columns: 1fr;
  }
  
  .vtn-post-title {
   font-size: 1.7rem;
  }
  
  .vtn-post-meta {
   gap: 1rem;
  }
  
  .vtn-post-featured-image img {
   height: 250px;
  }
  
  .vtn-author-actions {
   flex-direction: column;
   align-items: center;
   gap: 0.8rem;
   width: 100%;
  }
  
  .vtn-author-posts-btn,
  .vtn-author-post-count {
   width: 100%;
   justify-content: center;
   text-align: center;
  }
}