/**
 * DashMaster — Blog Index Page Styles
 * Matches the original blog.html design
 */

/* ===== BLOG HERO ===== */
.blog_hero {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
  padding: 180px 0 100px;
  position: relative;
}

.blog_hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/shape-1.svg") no-repeat;
  opacity: 0.1;
}

.blog_hero_content h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.blog_hero_content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.breadcrumb_nav {
  margin-top: 20px;
}

.breadcrumb_nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
}

.breadcrumb_nav a:hover {
  color: #fff;
}

.breadcrumb_nav span {
  color: #fff;
  margin: 0 10px;
}

/* ===== BLOG GRID ===== */
.blog_grid_area {
  padding: 80px 0;
  background: #f8f9fa;
  position: relative;
  z-index: 10;
}

/* ===== FEATURED POST ===== */
.featured_post {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

.featured_post .row {
  align-items: center;
}

.featured_post_image {
  height: 350px;
  overflow: hidden;
}

.featured_post_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured_post_content {
  padding: 40px;
}

.featured_badge {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 20px;
}

.featured_post_content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.featured_post_content h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.featured_post_content h2 a:hover {
  color: #6c63ff;
}

/* ===== BLOG CARD ===== */
.blog_card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s;
  margin-bottom: 30px;
}

.blog_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog_card_image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog_card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog_card:hover .blog_card_image img {
  transform: scale(1.1);
}

.blog_card_category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #6c63ff;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog_card_content {
  padding: 25px;
}

.blog_card_meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  color: #888;
  font-size: 14px;
}

.blog_card_meta i {
  margin-right: 5px;
  color: #6c63ff;
}

.blog_card_title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog_card_title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.blog_card_title a:hover {
  color: #6c63ff;
}

.blog_card_excerpt {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog_card_link {
  color: #6c63ff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.blog_card_link:hover {
  gap: 12px;
  color: #4834d4;
  text-decoration: none;
}

/* ===== SIDEBAR ===== */
.blog_sidebar {
  position: sticky;
  top: 100px;
}

.sidebar_widget {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.sidebar_widget_title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #6c63ff;
}

.search_form {
  position: relative;
}

.search_form input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.search_form input:focus {
  outline: none;
  border-color: #6c63ff;
}

.search_form button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #6c63ff;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.search_form button:hover {
  background: #4834d4;
}

.categories_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories_list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.categories_list li:last-child {
  border-bottom: none;
}

.categories_list a {
  color: #555;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.categories_list a:hover {
  color: #6c63ff;
}

.categories_list .count {
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: #888;
}

.popular_posts .popular_post_item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.popular_posts .popular_post_item:last-child {
  border-bottom: none;
}

.popular_post_image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular_post_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular_post_content h5 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.popular_post_content h5 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.popular_post_content h5 a:hover {
  color: #6c63ff;
}

.popular_post_content span {
  color: #888;
  font-size: 13px;
}

.tags_cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags_cloud a {
  background: #f5f5f5;
  color: #555;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
}

.tags_cloud a:hover {
  background: #6c63ff;
  color: #fff;
}

/* ===== PAGINATION ===== */
.blog_pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.blog_pagination a,
.blog_pagination span {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.blog_pagination a:hover,
.blog_pagination .current {
  background: #6c63ff;
  color: #fff;
}

/* ===== COURSES SECTION ===== */
.courses_section {
  padding: 80px 0;
  background: #fff;
  position: relative;
  z-index: 10;
}

.courses_section .section_title {
  text-align: center;
  margin-bottom: 50px;
}

.courses_section .section_title h2 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.courses_section .section_title h2 i {
  color: #6c63ff;
  margin-right: 10px;
}

.courses_section .section_title p {
  color: #666;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.course_card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  margin-bottom: 30px;
  border: 2px solid transparent;
}

.course_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(108, 99, 255, 0.2);
  border-color: #6c63ff;
}

.course_card_image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course_card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.course_card:hover .course_card_image img {
  transform: scale(1.1);
}

.course_badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.course_badge.coming_soon {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
}

.course_card_content {
  padding: 25px;
}

.course_card_category {
  color: #6c63ff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.course_card_title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.course_card_description {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.course_card_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.course_price {
  font-size: 24px;
  font-weight: 700;
  color: #6c63ff;
}

.course_meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #888;
  font-size: 13px;
}

.course_meta i {
  color: #6c63ff;
  margin-right: 5px;
}

.course_btn {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course_btn:hover {
  transform: translateX(5px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}

.course_btn.disabled {
  background: #ccc;
  cursor: not-allowed;
}

.course_btn.disabled:hover {
  transform: none;
  box-shadow: none;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .blog_hero_content h1 {
    font-size: 36px;
  }

  .featured_post_content {
    padding: 25px;
  }

  .featured_post_content h2 {
    font-size: 22px;
  }

  .featured_post_image {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .blog_hero {
    padding: 140px 0 60px;
  }

  .blog_hero_content h1 {
    font-size: 28px;
  }
}
