/* Blog Page Specific Styles */

/* Blog Header */
.blog-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/Connectivity_02.jpg")
    center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 150px 0 100px;
  margin-top: 90px;
}

.blog-header h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.blog-header p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
}

/* Blog Content */
.blog-content {
  background-color: var(--white);
}

.blog-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Blog Main */
.blog-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-post {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-img {
  height: 300px;
  overflow: hidden;
}

.blog-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  color: var(--gray);
  font-size: 14px;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
}

.blog-post-meta i {
  margin-right: 5px;
}

.blog-post-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.blog-post-excerpt {
  margin-bottom: 15px;
  color: var(--text-color);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-tag {
  background-color: var(--light-bg);
  color: var(--gray);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: #7a1307;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pagination-item {
  width: 40px;
  height: 40px;
  background-color: var(--light-bg);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Search Form */
.search-form {
  display: flex;
  overflow: hidden;
  border-radius: 5px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 5px 0 0 5px;
}

.search-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-color: #7a1307;
}

/* Categories List */
.categories-list li {
  border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
  border-bottom: none;
}

.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  transition: all 0.3s ease;
}

.categories-list a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.category-count {
  background-color: var(--light-bg);
  color: var(--gray);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.categories-list a:hover .category-count {
  background-color: var(--primary-color);
  color: var(--white);
}

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

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

.recent-post-img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content h4 {
  font-size: 16px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.recent-post:hover .recent-post-content h4 {
  color: var(--primary-color);
}

.recent-post-date {
  font-size: 12px;
  color: var(--gray);
}

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

.tag-cloud a {
  background-color: var(--light-bg);
  color: var(--gray);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .blog-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .blog-header {
    padding: 120px 0 80px;
  }

  .blog-header h1 {
    font-size: 32px;
  }

  .blog-header p {
    font-size: 16px;
  }

  .blog-post-img {
    height: 200px;
  }

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

  .blog-post-title {
    font-size: 20px;
  }

  .blog-post-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .sidebar-section {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .blog-header h1 {
    font-size: 28px;
  }

  .blog-header p {
    font-size: 14px;
  }

  .blog-post-img {
    height: 180px;
  }

  .recent-post {
    flex-direction: column;
    gap: 10px;
  }

  .recent-post-img {
    width: 100%;
    height: 150px;
  }

  .pagination {
    gap: 5px;
  }

  .pagination-item {
    width: 35px;
    height: 35px;
  }
}

