/*
Theme Name: Educate India Neve Child v4.9
Template: neve
Author: Educate India Team
Version: 4.9
Description: A child theme of Neve for Educate India
*/
/* ========================================================== ✅ BASE STYLES — NON-SINGLE POST PAGES (ARCHIVE, TAG, AUTHOR) ============================================================== */

body:not(.single-post) { font-family: 'Inter', sans-serif; background: #fafafa; color: #333; line-height: 1.6; }

/* ---------------------------------------------------------- ✅ HEADINGS ------------------------------------------------------------- */ body:not(.single-post) h1, body:not(.single-post) h2, body:not(.single-post) h3, body:not(.single-post) h4, body:not(.single-post) h5, body:not(.single-post) h6 { font-family: 'Inter', sans-serif; font-weight: 700; margin: 1rem 0; color: #222; line-height: 1.4; }

/* ========================================================== ✅ CATEGORY / ARCHIVE TITLE SECTIONS ============================================================== */ .category-title, .category-final-title { font-size: 2.2rem; font-weight: 800; color: #8B0000; margin: 1.5rem 0 0.8rem; line-height: 1.4; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.category-title i { font-size: 1.8rem; color: #B71C1C; background: #f0f0f0; padding: 10px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }

.category-description.styled-desc { font-size: 1rem; padding: 15px; background-color: #fff8f8; border-left: 5px solid #8B0000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); margin-bottom: 1.5rem; color: #444; line-height: 1.6; }

/* ========================================================== ✅ CATEGORY CARD GRID ============================================================== */ .category-card-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 30px 0; justify-content: flex-start; }

.category-card { background-color: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); transition: all .3s ease; overflow: hidden; width: 100%; max-width: 220px; flex: 1 1 180px; }

.category-card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); transform: translateY(-3px); }

.category-card-inner { display: flex; align-items: center; justify-content: flex-start; padding: 12px 14px; text-decoration: none; color: #111 !important; width: 100%; gap: 12px; }

.category-icon { font-size: 1.3rem; color: #8B0000; background-color: #f0f0f0; padding: 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; box-sizing: border-box; }

.category-name { font-size: 1rem; font-weight: 800; color: #111; line-height: 1.4; margin: 0; flex: 1; text-shadow: 0.5px 0.5px 0.8px rgba(0, 0, 0, 0.15); }

/* ========================================================== ✅ POST CARD HORIZONTAL — UNIVERSAL LIST STYLES ============================================================== */ .post-card-horizontal { display: flex; align-items: center; background: #fff; border-radius: 8px; padding: 15px 20px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); transition: box-shadow 0.3s ease; }

.post-card-horizontal:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }

.post-thumb.fa-thumb { flex: 0 0 60px; display: flex; align-items: center; justify-content: center; padding: 10px; background: #f0f0f0; border-radius: 6px; }

.post-thumb i { font-size: 2rem; color: #8B0000; }

.post-info { flex: 1; padding-left: 15px; }

/* ========================================================== ✅ POST TITLE STYLING — BOLD AND RESPONSIVE ============================================================== */ .post-title { font-size: 1rem; font-weight: 700; line-height: 1.5; margin: 0; color: #111; text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.08); }

.post-title a { color: #111; font-weight: 700; text-decoration: none; text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.08); }

.post-title a:hover { color: #8B0000; text-decoration: underline; }

/* ========================================================== ✅ PAGINATION ============================================================== */ .pagination { display: flex; justify-content: center; margin: 40px 0 20px; gap: 10px; flex-wrap: wrap; }

.pagination a, .pagination span { padding: 10px 16px; background: #fff; border: 1px solid #ccc; color: #333; text-decoration: none; border-radius: 5px; font-weight: 600; transition: all 0.3s ease; }

.pagination a:hover { background: #8B0000; color: #fff; border-color: #8B0000; }

.pagination .current { background: #8B0000; color: #fff; border-color: #8B0000; }

/* ========================================================== 📱 RESPONSIVE FIXES — TABLET & MOBILE ============================================================== */ @media (max-width: 576px) { .category-card-grid { flex-direction: row; flex-wrap: wrap; gap: 12px; }

.category-card { max-width: 48%; flex: 1 1 48%; }

.category-icon { font-size: 1.1rem; padding: 8px; min-width: 34px; min-height: 34px; }

.category-name { font-size: 0.92rem; font-weight: 700; }

.post-card-horizontal { flex-direction: row; }

.post-thumb.fa-thumb { flex: 0 0 48px; }

.post-info { padding-left: 12px; }

.post-title { font-size: 1rem; }

.category-title { font-size: 1.5rem; gap: 12px; flex-direction: row; align-items: center; justify-content: flex-start; }

.category-title i { font-size: 1.4rem; padding: 7px; } }
/* ==========================================================
✅ Inherit Category Styles in Related Posts Cards
========================================================== */

.related-posts-wrapper .subcat-posts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.related-posts-wrapper .post-card-horizontal {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px;
  transition: box-shadow 0.3s ease;
}

.related-posts-wrapper .post-card-horizontal:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-posts-wrapper .post-thumb.fa-thumb {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 6px;
}

.related-posts-wrapper .post-thumb i {
  font-size: 2rem;
  color: #8B0000;
}

.related-posts-wrapper .post-info {
  flex: 1;
  padding-left: 15px;
}

.related-posts-wrapper .post-title {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.4;
  color: #111;
  font-weight: 700;
  text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.08);
}

.related-posts-wrapper .post-title a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.related-posts-wrapper .post-title a:hover {
  text-decoration: underline;
  color: #8B0000;
}

/* Mobile Fix */
@media (max-width: 576px) {
  .related-posts-wrapper .post-card-horizontal {
    flex-direction: row;
  }

  .related-posts-wrapper .post-thumb.fa-thumb {
    flex: 0 0 48px;
  }

  .related-posts-wrapper .post-info {
    padding-left: 12px;
  }

  .related-posts-wrapper .post-title {
    font-size: 1rem;
  }
}

