/* Blog Styles - Valkhan Tech */

:root {
  --vlk-blue: #33C3F3;
  --vlk-blue-dark: #00A0D0;
  --vlk-green: #33F3C3;
  --vlk-green-dark: #00D0A0;
  --theme-bg-color: #37517e;
  --text-default: #444444;
  --section-bg: #f3f5fa;
}

/* Page Title */
.page-title {
  background: linear-gradient(135deg, var(--theme-bg-color) 0%, #2c4a7a 100%);
  color: white;
  padding: 120px 0 60px 0;
  text-align: center;
}

.page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-title p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 20px;
  justify-content: center;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}

/* Blog Posts Section */
.blog-posts {
  padding: 80px 0;
  background: var(--section-bg);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-gap: 40px;
  margin-bottom: 50px;
}

/* Blog Post */
.blog-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-post .post-img {
  position: relative;
  overflow: hidden;
}

.blog-post .post-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.blog-post:hover .post-img img {
  transform: scale(1.1);
}

.blog-post .post-content {
  padding: 30px;
}

.blog-post .post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.blog-post .post-meta .category {
  background: var(--vlk-blue);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post .post-meta .date {
  color: #666;
  font-size: 14px;
}

.blog-post h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-post h2 a {
  color: var(--theme-bg-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-post h2 a:hover {
  color: var(--vlk-blue);
}

.blog-post p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-post .read-more {
  color: var(--vlk-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.blog-post .read-more:hover {
  color: var(--vlk-blue-dark);
  transform: translateX(5px);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-widget {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--theme-bg-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vlk-blue);
}

/* Search Form */
.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 12px 50px 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: var(--vlk-blue);
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--vlk-blue);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-form button:hover {
  background: var(--vlk-blue-dark);
}

/* Category List */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: var(--section-bg);
  color: var(--text-default);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
  background: var(--vlk-blue);
  color: white;
}

.category-list span {
  font-size: 12px;
  opacity: 0.8;
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recent-post {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.recent-post img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-post .post-info h5 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 5px;
}

.recent-post .post-info h5 a {
  color: var(--theme-bg-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.recent-post .post-info h5 a:hover {
  color: var(--vlk-blue);
}

.recent-post .post-info time {
  font-size: 12px;
  color: #666;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: var(--section-bg);
  color: var(--text-default);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-cloud a:hover {
  background: var(--vlk-blue);
  color: white;
}

/* Pagination */
.blog-pagination {
  margin-top: 50px;
}

.pagination .page-link {
  color: var(--theme-bg-color);
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  margin: 0 2px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: var(--vlk-blue);
  color: white;
  border-color: var(--vlk-blue);
}

.pagination .page-item.active .page-link {
  background: var(--vlk-blue);
  border-color: var(--vlk-blue);
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: #999;
  background: #f8f9fa;
}

/* Article Page Styles */
.article-content {
  background: white;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--theme-bg-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-featured-img {
  margin-bottom: 40px;
  text-align: center;
}

.article-featured-img img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-default);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--theme-bg-color);
  font-weight: 700;
  margin: 30px 0 15px 0;
}

.article-body h2 {
  font-size: 1.8rem;
}

.article-body h3 {
  font-size: 1.5rem;
}

.article-body h4 {
  font-size: 1.3rem;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  background: var(--section-bg);
  border-left: 4px solid var(--vlk-blue);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.article-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.article-tags h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--theme-bg-color);
}

.article-share {
  margin-top: 30px;
  text-align: center;
}

.article-share h4 {
  margin-bottom: 20px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-buttons .facebook { background: #3b5998; }
.share-buttons .twitter { background: #1da1f2; }
.share-buttons .linkedin { background: #0077b5; }
.share-buttons .whatsapp { background: #25d366; }

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 991px) {
  .blog-sidebar {
    position: static;
    margin-top: 50px;
  }
  
  .page-title {
    padding: 100px 0 40px 0;
  }
  
  .page-title h1 {
    font-size: 2rem;
  }
  
  .article-content {
    padding: 30px 25px;
  }
  
  .article-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .blog-posts {
    padding: 50px 0;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}
