/**
 * 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;
}

/* ===== CATEGORY HIGHLIGHTS (Instagram-style) ===== */
.category_highlights {
  margin-bottom: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
}

.category_highlights::-webkit-scrollbar {
  display: none;
}

.category_highlights_track {
  display: flex;
  gap: 22px;
  justify-content: flex-start;
  min-width: max-content;
  padding: 8px 4px;
}

.category_highlight_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  min-width: 80px;
  max-width: 90px;
}

.category_highlight_item:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.category_highlight_icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid #e0e0e0;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
}

.category_highlight_icon i {
  font-size: 26px;
  color: #888;
  transition: color 0.3s ease;
}

/* Gradient ring on hover & active */
.category_highlight_item:hover .category_highlight_icon,
.category_highlight_item.active .category_highlight_icon {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #6c63ff, #a855f7, #ec4899) border-box;
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.25);
}

.category_highlight_item:hover .category_highlight_icon i,
.category_highlight_item.active .category_highlight_icon i {
  color: #6c63ff;
}

.category_highlight_item span {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.category_highlight_item:hover span,
.category_highlight_item.active span {
  color: #6c63ff;
}

/* Active state: slightly scaled icon */
.category_highlight_item.active .category_highlight_icon {
  transform: scale(1.08);
}

/* ===== 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;
}

/* ===== COURSES CAROUSEL ===== */
.courses_carousel_wrapper {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 50px;
}

.courses_carousel {
  overflow: hidden;
  border-radius: 10px;
}

.courses_track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 24px;
}

.courses_track .course_slide {
  flex-shrink: 0;
}

.courses_track .course_slide .course_card {
  margin-bottom: 0;
  height: 100%;
}

.carousel_arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e0e0;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.carousel_arrow:hover {
  background: #6c63ff;
  color: #fff;
  border-color: #6c63ff;
  box-shadow: 0 6px 25px rgba(108, 99, 255, 0.35);
}

.carousel_arrow.prev {
  left: 0;
}

.carousel_arrow.next {
  right: 0;
}

.carousel_arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel_arrow:disabled:hover {
  background: #fff;
  color: #333;
  border-color: #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel_dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel_dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel_dot.active {
  background: #6c63ff;
  transform: scale(1.2);
}

.carousel_dot:hover {
  background: #a9a4ff;
}

/* ===== 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;
  }

  .category_highlights_track {
    gap: 18px;
  }

  .category_highlight_icon {
    width: 60px;
    height: 60px;
  }

  .category_highlight_icon i {
    font-size: 22px;
  }

  .category_highlight_item {
    min-width: 72px;
    max-width: 80px;
  }

  .courses_carousel_wrapper {
    padding: 0 45px;
  }
}

@media (max-width: 767px) {
  .blog_hero {
    padding: 140px 0 60px;
  }

  .blog_hero_content h1 {
    font-size: 28px;
  }

  /* Category Highlights - force horizontal scroll layout on mobile */
  .category_highlights {
    margin-bottom: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
  }

  .category_highlights::-webkit-scrollbar {
    display: none;
  }

  .category_highlights_track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px;
    min-width: max-content;
    padding: 4px;
  }

  .category_highlight_item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-shrink: 0;
    min-width: 64px;
    max-width: 74px;
    gap: 6px;
  }

  .category_highlight_icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .category_highlight_icon i {
    font-size: 20px;
    display: inline-block !important;
  }

  .category_highlight_item span {
    font-size: 11px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .courses_carousel_wrapper {
    padding: 0 40px;
  }

  .carousel_arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
