/* ==========================================================================
   TeachMate Premium - Blog Archive CSS (Premium Edition)
   ========================================================================== */

/* 1. Blog Hero Banner Styling */
.blog-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}

.blog-hero-glowing-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 60, 214, 0.04) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(255, 51, 102, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.blog-hero-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 12px;
  color: var(--dark-color);
}

.blog-hero-subtitle {
  color: var(--gray-500);
  max-width: 680px;
  margin: 15px auto 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Text gradient utility */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 2. Main Grid Layout Columns */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  padding: 50px 0;
  align-items: start;
}

@media (max-width: 992px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* 3. Featured Post Card (Horizontal Layout) */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 60, 214, 0.05);
  overflow: hidden;
  margin-bottom: 40px;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
}

.featured-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
  border-color: rgba(0, 60, 214, 0.15);
}

.featured-card-thumb {
  position: relative;
  height: 100%;
  min-height: 280px;
  background-color: var(--gray-100);
  overflow: hidden;
}

.featured-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.featured-post-card:hover .featured-card-thumb img {
  transform: scale(1.04);
}

/* Badges overlay */
.post-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-xl);
  box-shadow: 0 4px 10px rgba(0, 60, 214, 0.25);
  z-index: 2;
}

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

@media (max-width: 576px) {
  .featured-card-content {
    padding: 25px;
  }
}

.post-meta-row {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-card-title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 15px;
}

.featured-card-title a {
  color: var(--dark-color);
}

.featured-card-title a:hover {
  color: var(--primary-color);
}

.featured-card-excerpt {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

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

.post-badge-time {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  background-color: rgba(255, 51, 102, 0.06);
  padding: 5px 12px;
  border-radius: var(--border-radius-xl);
}

/* 4. Standard Posts Grid (2-Column Cards) */
.standard-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 640px) {
  .standard-posts-grid {
    grid-template-columns: 1fr;
  }
}

.standard-post-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.standard-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 60, 214, 0.1);
}

.standard-post-card .post-card-thumb {
  position: relative;
  height: 220px;
  background-color: var(--gray-100);
  overflow: hidden;
}

.standard-post-card .post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.standard-post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.standard-post-card .post-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.standard-post-card .post-card-title {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
}

.standard-post-card .post-card-title a {
  color: var(--dark-color);
}

.standard-post-card .post-card-title a:hover {
  color: var(--primary-color);
}

.standard-post-card .post-card-excerpt {
  color: var(--gray-500);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.standard-post-card .post-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--gray-100);
}

/* Placeholder thumbnail state */
.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 60, 214, 0.08) 0%, rgba(255, 51, 102, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.post-card-thumb-placeholder::after {
  content: '📚';
  font-size: 40px;
  opacity: 0.3;
}

/* 5. Pagination Styling */
.blog-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 600;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.blog-pagination a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: rgba(0, 60, 214, 0.02);
}

.blog-pagination span.current {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 60, 214, 0.2);
}

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

.sidebar-widget {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-100);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
  position: relative;
}

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

/* Widget: Search Hub */
.search-input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.search-field-premium {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark-color);
  background-color: var(--white);
  transition: var(--transition-smooth);
}

.search-field-premium:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 60, 214, 0.08);
}

.search-submit-premium {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.search-submit-premium:hover {
  color: var(--primary-color);
}

/* Widget: Conversion CRO Call To Action Card */
.widget-tutors-cta {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #002796 100%);
  color: var(--white);
  border: none;
  overflow: hidden;
  z-index: 1;
}

.widget-tutors-cta-overlay {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.widget-cta-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--dark-color);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 15px;
}

.widget-cta-title {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.widget-cta-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 20px;
}

.widget-cta-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.cta-feature-item {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.tagline-hindi-right {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  margin-top: 15px;
  color: var(--accent-color);
  opacity: 0.9;
}

/* Widget: Category pills cloud */
.categories-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--light-color);
  border: 1px solid var(--gray-100);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.category-pill:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.pill-count {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background-color: var(--gray-200);
  border-radius: var(--border-radius-sm);
  color: var(--gray-700);
  transition: var(--transition-smooth);
}

.category-pill:hover .pill-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Widget: Newsletter */
.newsletter-icon {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 12px;
  line-height: 1;
}

.newsletter-form-premium {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--dark-color);
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 60, 214, 0.08);
}

/* Button enhancements */
.btn-glow {
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}
.btn-glow:hover {
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.45);
}

/* No posts fallback card */
.no-posts-card {
  text-align: center;
  padding: 60px 40px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px dashed var(--gray-200);
  color: var(--gray-500);
}

.no-posts-card h3 {
  font-size: 20px;
  color: var(--dark-color);
  margin-bottom: 8px;
}
