
/* ===== Blog Page Container ===== */
.blog-page {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* ===== Blog Header ===== */
.blog-header {
  margin-bottom: 2.5rem;
}

.blog-header-content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.blog-title {
  font-weight: 800;
  font-size: 2.8rem;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.blog-title .highlight {
  color: #8ab4f8;
}

.blog-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ===== Blog Search ===== */
.blog-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 60px;
  padding: 0.2rem;
  max-width: 550px;
  margin: 0 auto;
}

.blog-search i {
  padding: 0 0.5rem 0 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}

.blog-search .form-control {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
}

.blog-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.blog-search .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.btn-search {
  background: linear-gradient(135deg, #5364f7, #8ab4f8);
  border: none;
  border-radius: 60px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: #ffffff;
  transition: all 0.3s;
}

.btn-search:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(83, 100, 247, 0.3);
  color: #ffffff;
}

/* ===== Featured Article ===== */
.featured-article-wrapper {
  margin-bottom: 2.5rem;
}

.featured-article {
  display: flex;
  background: rgba(10, 17, 49, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.featured-article:hover {
  border-color: rgba(138, 180, 248, 0.12);
}

.featured-article-image {
  position: relative;
  flex: 0 0 45%;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.featured-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #5364f7, #8ab4f8);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
}

.featured-article-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.featured-category {
  display: inline-block;
  color: #8ab4f8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.featured-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.featured-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 0.8rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.85rem;
}

.author-role {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.article-meta i {
  margin-right: 0.2rem;
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-tag-sm {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  font-size: 0.7rem;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.btn-read-more {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
  font-weight: 500;
  font-size: 0.8rem;
  color: #ffffff;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-read-more:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 180, 248, 0.2);
  color: #8ab4f8;
}

.btn-read-more i {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

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

/* ===== Latest Articles ===== */
.latest-articles-header {
  margin-bottom: 1.5rem;
}

.latest-articles-header h3 {
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
}

.latest-articles-header h3 i {
  color: #8ab4f8;
  margin-right: 0.5rem;
}

.latest-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 180, 248, 0.12);
}

.article-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.article-card-body {
  padding: 1.2rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.article-card-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  margin-bottom: 0.8rem;
}

.article-card-meta i {
  margin-right: 0.2rem;
}

.btn-read-more-sm {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 500;
  font-size: 0.8rem;
  color: #8ab4f8;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-read-more-sm:hover {
  color: #6a9ad8;
}

.btn-read-more-sm i {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.btn-read-more-sm:hover i {
  transform: translateX(3px);
}

/* ===== Load More ===== */
.load-more-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.btn-load-more {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 0.6rem 2rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: #ffffff;
  transition: all 0.3s;
}

.btn-load-more:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(138, 180, 248, 0.15);
  color: #8ab4f8;
}

.btn-load-more i {
  margin-left: 0.3rem;
}

/* ===== Sidebar ===== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  padding: 1.2rem !important;
}

.sidebar-widget-title {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-widget-title i {
  color: #8ab4f8;
}

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

.category-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.category-list a:hover {
  color: #8ab4f8;
  padding-left: 4px;
}

.category-list a .count {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
}

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

.tags-cloud .tag {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.tags-cloud .tag:hover {
  background: rgba(138, 180, 248, 0.1);
  color: #8ab4f8;
}

/* Newsletter */
.newsletter-widget p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  flex: 1;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border-color: rgba(138, 180, 248, 0.2);
}

.btn-subscribe {
  background: linear-gradient(135deg, #5364f7, #8ab4f8);
  border: none;
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  font-size: 0.8rem;
  color: #ffffff;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-subscribe:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(83, 100, 247, 0.3);
  color: #ffffff;
}

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

@media (max-width: 991px) {
  .blog-title {
    font-size: 2.2rem;
  }
  
  .featured-article {
    flex-direction: column;
  }
  
  .featured-article-image {
    flex: none;
    height: 250px;
  }
  
  .featured-article-content {
    padding: 1.5rem;
  }
  
  .featured-title {
    font-size: 1.3rem;
  }
  
  .latest-articles {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 1.8rem;
  }
  
  .blog-description {
    font-size: 0.95rem;
  }
  
  .blog-search {
    max-width: 100%;
  }
  
  .featured-article-image {
    height: 200px;
  }
  
  .featured-title {
    font-size: 1.1rem;
  }
  
  .featured-desc {
    font-size: 0.85rem;
  }
  
  .featured-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .latest-articles {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .btn-subscribe {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .blog-title {
    font-size: 1.5rem;
  }
  
  .blog-description {
    font-size: 0.85rem;
  }
  
  .blog-search {
    flex-wrap: wrap;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.5rem;
  }
  
  .blog-search i {
    display: none;
  }
  
  .blog-search .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 0.6rem 1rem;
    width: 100%;
  }
  
  .btn-search {
    width: 100%;
    justify-content: center;
  }
  
  .featured-article-image {
    height: 160px;
  }
  
  .featured-article-content {
    padding: 1rem;
  }
  
  .featured-title {
    font-size: 1rem;
  }
  
  .article-card-image {
    height: 150px;
  }
  
  .article-card-body {
    padding: 1rem;
  }
}