/* TBI - Blog List Page Specific Styles */

/* Featured Post Card */
.featured-post-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.featured-img-wrapper {
  overflow: hidden;
  position: relative;
  min-height: 380px;
  height: 100%;
}

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

.featured-post-card:hover .featured-img-wrapper img {
  transform: scale(1.03);
}

.featured-post-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Regular Blog Cards Grid */
.blog-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-img-wrapper {
  overflow: hidden;
  height: 220px;
}

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

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

.blog-card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.8rem;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.blog-author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.sidebar-widget-title {
  font-size: 1.15rem;
  color: var(--dark-brand);
  border-bottom: 2px solid #f1f3f5;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Search Box Widget */
.sidebar-search-box {
  position: relative;
}

.sidebar-search-box input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border-radius: 50px;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
  background-color: #f8f9fa;
  color: var(--dark-brand);
  transition: all 0.3s;
}

.sidebar-search-box input:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.sidebar-search-box button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #777;
  font-size: 1rem;
}

.sidebar-search-box input:focus + button {
  color: var(--accent);
}

/* Categories List Widget */
.sidebar-categories-list {
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar-categories-list li {
  list-style: none;
  margin-bottom: 12px;
}

.sidebar-categories-list li:last-child {
  margin-bottom: 0;
}

.sidebar-categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  padding: 5px 0;
}

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

.sidebar-categories-list .cat-count {
  background-color: #f1f3f5;
  color: #777;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  transition: all 0.3s;
}

.sidebar-categories-list a:hover .cat-count {
  background-color: var(--accent-light);
  color: var(--accent);
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.popular-post-item:last-child {
  margin-bottom: 0;
}

.popular-post-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.popular-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

.popular-post-title a {
  color: var(--dark-brand);
  text-decoration: none;
  transition: color 0.3s;
}

.popular-post-title a:hover {
  color: var(--accent);
}

.popular-post-date {
  font-size: 0.75rem;
  color: #999;
}

/* Newsletter Box Widget */
.sidebar-newsletter-box {
  background-image: linear-gradient(135deg, var(--primary-brand) 0%, #003366 100%);
  color: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.newsletter-icon {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.sidebar-newsletter-box .form-control {
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.9rem;
  border: none;
}

/* Pagination */
.custom-pagination .page-link {
  color: var(--dark-brand);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin: 0 3px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s;
}

.custom-pagination .page-link:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.custom-pagination .page-item.active .page-link {
  background-color: var(--primary-brand);
  border-color: var(--primary-brand);
  color: #fff;
}
