/* ═══════════════════════════════════════════════════════
   Blog Listing Page - Modern Design
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── CSS Variables (Site Theme) ───────────────────────── */
:root {
  --navy:       #01305C;
  --navy-light: #2243A4;
  --blue:       #2D96EE;
  --blue-light: #4DAEFF;
  --orange:     #E8602C;
  --orange-l:   #FEF0E9;
  --text:       #575E62;
  --text-dark:  #01305C;
  --muted:      #6B7280;
  --border:     #C8D9EE;
  --bg:         #F3F7FE;
  --bg-alt:     #F9FAFB;
  --white:      #FFFFFF;
  --radius:     8px;
  --radius-lg:  12px;
}

/* ── Hero Section ─────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(90deg, #2243a4 0, #2243a4 86.95%, #566bd0 100%);
  padding: 146px 24px 100px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.blog-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.blog-hero__eyebrow {
  display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3F5BAE;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #5E73B5;
  color: #FFFFFF;
  font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 0 20px;
    border-radius: 100rem;
    height: 40px;
    margin-bottom: 24px;
  font-family: 'CircularStd', sans-serif;
}

.blog-hero__title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  font-family: 'CircularStd', sans-serif;
}

.blog-hero__sub {
  font-size: 18px;
    color: rgba(255, 255, 255, .9);
    max-width: 600px;
  line-height: 1.6;
  margin-bottom: 36px;
  font-family: 'CircularStd', sans-serif;
  font-weight: 400;
}
.blog-hero__sub a{
  color: white;
  text-decoration: underline;
}
.blog-hero__sub a:hover{
  color: white;
  text-decoration: none;
}
.blog-hero__search {
  display: flex;
  max-width: 480px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 100px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.blog-hero__search input {
  flex: 1;
  padding: 11px 18px;
  border: none;
  outline: none;
  font-family: 'CircularStd', sans-serif;
  font-size: 13.5px;
  color: var(--text-dark);
  background: transparent;
}

.blog-hero__search input::placeholder { color: #9CA3AF; }

.blog-hero__search-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 11px 22px;
  font-family: 'CircularStd', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .15s;
  white-space: nowrap;
}

.blog-hero__search-btn:hover { opacity: .9; }

/* Stats boxes */
.blog-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.stat-box {
  background: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  min-width: 180px;
}

.stat-box__num {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1;
  font-family: 'CircularStd', sans-serif;
}

.stat-box__num span { color: var(--blue); }

.stat-box__label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-family: 'CircularStd', sans-serif;
}

/* ── Category Filter Bar ──────────────────────────────── */
.filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
}

.filters__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-behavior: smooth;
}

.filters__inner::-webkit-scrollbar {
  height: 6px;
}

.filters__inner::-webkit-scrollbar-track {
  background: transparent;
}

.filters__inner::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 3px;
}

.filters__inner::-webkit-scrollbar-thumb:hover {
  background-color: var(--blue);
}

.filters__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 4px;
  flex-shrink: 0;
  font-family: 'CircularStd', sans-serif;
}

.filter-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: 'CircularStd', sans-serif;
  outline: none;
}

.filter-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-pill.active {
  background: var(--navy-light);
    border-color: var(--navy-light);
  color: #fff;
}

/* ── Page Content ─────────────────────────────────────── */
.blog-page-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── "Start here" section ─────────────────────────────── */
.start-here {
  padding: 48px 0 0;
}

.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 20px;
  font-family: 'CircularStd', sans-serif;
}

/* Featured grid layout */
.featured-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.featured-top-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ── Article Card ─────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-color: #D1D5DB;
  transform: translateY(-2px);
}

/* Card image */
.card__image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 6px;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero card variant */
.card--hero {
  background: var(--navy);
  border-color: var(--navy);
  padding: 28px 24px;
}

.card--hero .card__image {
  height: 280px;
}

.card--hero .card__cat {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
}

.card--hero .card__title {
  color: #fff;
  font-size: 18px;
}

.card--hero .card__meta {
  color: rgba(255,255,255,.5);
}

.card--hero .card__arrow {
  color: rgba(255,255,255,.7);
}

.card--hero:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 32px rgba(26,60,94,.3);
}

.card__cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: #EFF6FF;
  color: var(--blue);
  width: fit-content;
  font-family: 'CircularStd', sans-serif;
}

/* ── Category Badge Colors ────────────────────────────── */
.card__cat--essay-writing { background: #EDE9FE; color: #5B21B6; }
.card__cat--essay-guides { background: #DBEAFE; color: #1E40AF; }
.card__cat--essay-examples { background: #D1FAE5; color: #065F46; }
.card__cat--essay-topics { background: #FEF3C7; color: #92400E; }
.card__cat--essay-topic { background: #FEF3C7; color: #92400E; }
.card__cat--essay-outline-guides { background: #FFEDD5; color: #C2410C; }
.card__cat--citation-formatting-guides { background: #FED7AA; color: #9A3412; }
.card__cat--citations-and-formatting-guides { background: #FED7AA; color: #9A3412; }
.card__cat--research-paper-writing-guides { background: #E0E7FF; color: #4338CA; }
.card__cat--research-papers { background: #E0E7FF; color: #4338CA; }
.card__cat--thesis-writing-guides { background: #D1FAE5; color: #047857; }
.card__cat--thesis-writing { background: #D1FAE5; color: #047857; }
.card__cat--speech-debate-writing-guides { background: #FCE7F3; color: #BE185D; }
.card__cat--speech-debate-writing { background: #FCE7F3; color: #BE185D; }
.card__cat--literary-writing-guides { background: #F3E8FF; color: #7E22CE; }
.card__cat--universities-and-colleges { background: #CFFAFE; color: #0E7490; }
.card__cat--universities { background: #CFFAFE; color: #0E7490; }
.card__cat--lifestyle { background: #FEE2E2; color: #991B1B; }
.card__cat--reviews { background: #FEF9C3; color: #854D0E; }
.card__cat--general { background: #F3F4F6; color: #374151; }
.card__cat--how-to-write { background: #E0F2FE; color: #075985; }

.card__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  flex: 1;
  font-family: 'CircularStd', sans-serif;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.card--hero .card__footer {
  border-top-color: rgba(255,255,255,.12);
}

.card__meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'CircularStd', sans-serif;
}

.card__meta-dot {
    background: #546b8e;
      width: 4px;
      height: 4px;
      border-radius: 10px;
      margin: 0px 5px;
}

.card__arrow {
  color: var(--blue);
  font-size: 14px;
  transition: transform .2s;
  flex-shrink: 0;
}

.card:hover .card__arrow {
  transform: translateX(4px);
}

/* ── Category Section ─────────────────────────────────── */
.cat-section {
  padding-top: 52px;
}

.cat-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cat-section__title {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  font-family: 'CircularStd', sans-serif;
}

.cat-section__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-family: 'CircularStd', sans-serif;
}

.cat-section__see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'CircularStd', sans-serif;
  text-decoration: none;
}

.cat-section__see-all:hover {
  color: var(--navy);
}

.cat-section__see-all::after {
  content: '→';
  transition: transform .2s;
}

.cat-section__see-all:hover::after {
  transform: translateX(3px);
}

/* ── Horizontal Marquee Cards ─────────────────────────── */
.marquee-container {
  overflow: hidden;
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
}

.marquee-content {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: 12px;
}

.marquee-content::-webkit-scrollbar {
  height: 6px;
}

.marquee-content::-webkit-scrollbar-track {
  background: transparent;
}

.marquee-content::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 3px;
}

.marquee-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--blue);
}

/* Marquee card */
.marquee-card {
  flex: 0 0 280px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  cursor: pointer;
  text-decoration: none;
  scroll-snap-align: start;
}

.marquee-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-color: #D1D5DB;
  transform: translateY(-4px);
}

.marquee-card__image {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 6px;
  position: relative;
}

.marquee-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marquee-card__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: #EFF6FF;
  color: var(--blue);
  width: fit-content;
  font-family: 'CircularStd', sans-serif;
}

/* Marquee Category Badge Colors */
.marquee-card__cat--essay-writing { background: #EDE9FE; color: #5B21B6; }
.marquee-card__cat--essay-guides { background: #DBEAFE; color: #1E40AF; }
.marquee-card__cat--essay-examples { background: #D1FAE5; color: #065F46; }
.marquee-card__cat--essay-topics { background: #FEF3C7; color: #92400E; }
.marquee-card__cat--essay-topic { background: #FEF3C7; color: #92400E; }
.marquee-card__cat--essay-outline-guides { background: #FFEDD5; color: #C2410C; }
.marquee-card__cat--citation-formatting-guides { background: #FED7AA; color: #9A3412; }
.marquee-card__cat--citations-and-formatting-guides { background: #FED7AA; color: #9A3412; }
.marquee-card__cat--research-paper-writing-guides { background: #E0E7FF; color: #4338CA; }
.marquee-card__cat--research-papers { background: #E0E7FF; color: #4338CA; }
.marquee-card__cat--thesis-writing-guides { background: #D1FAE5; color: #047857; }
.marquee-card__cat--thesis-writing { background: #D1FAE5; color: #047857; }
.marquee-card__cat--speech-debate-writing-guides { background: #FCE7F3; color: #BE185D; }
.marquee-card__cat--speech-debate-writing { background: #FCE7F3; color: #BE185D; }
.marquee-card__cat--literary-writing-guides { background: #F3E8FF; color: #7E22CE; }
.marquee-card__cat--universities-and-colleges { background: #CFFAFE; color: #0E7490; }
.marquee-card__cat--universities { background: #CFFAFE; color: #0E7490; }
.marquee-card__cat--lifestyle { background: #FEE2E2; color: #991B1B; }
.marquee-card__cat--reviews { background: #FEF9C3; color: #854D0E; }
.marquee-card__cat--general { background: #F3F4F6; color: #374151; }
.marquee-card__cat--how-to-write { background: #E0F2FE; color: #075985; }

.marquee-card__meta-dot {
  color: var(--border);
  margin: 0 2px;
}

.marquee-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  flex: 1;
  font-family: 'CircularStd', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.marquee-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.marquee-card__meta {
  font-size: 11px;
  color: var(--muted);
  font-family: 'CircularStd', sans-serif;
}

.marquee-card__arrow {
  color: var(--blue);
  font-size: 14px;
  transition: transform .2s;
}

.marquee-card:hover .marquee-card__arrow {
  transform: translateX(4px);
}

/* ── Skeleton Loader ──────────────────────────────────── */
.lazyImgDiv {
  position: relative;
  width: 100%;
  height: 100%;
}

.lazyImg {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skeleton {
  background-size: 200px 100%;
  background-repeat: no-repeat;
  line-height: 1;
  width: 100%;
  height: 100%;
  animation: SkeletonLoading 1s ease-in-out infinite;
  background-color: #f3f3f3;
  background-image: linear-gradient(90deg, #f3f3f3, #ededee, #f3f3f3);
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes SkeletonLoading {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* ── Search Highlighting ──────────────────────────────── */
.highlight {
  background-color: yellow;
  font-weight: 600;
}

/* ── No Results ───────────────────────────────────────── */
.noResultFound {
  text-align: center;
  margin: 60px auto;
  display: none;
}

.noResultFound img {
  max-width: 300px;
  width: 100%;
  margin-bottom: 20px;
}

.noResultFound .nofoundHead {
  font-family: 'CircularStd', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 38px;
  line-height: 48px;
  color: var(--navy);
  margin-bottom: 6px;
}

.noResultFound p {
  font-family: 'CircularStd', sans-serif;
  font-style: normal;
  font-weight: 450;
  font-size: 20px;
  line-height: 25px;
  color: var(--text);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-hero__inner {
    grid-template-columns: 1fr;
  }

  .blog-hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-box {
    min-width: 150px;
    flex: 1;
  }

  .featured-top {
    grid-template-columns: 1fr;
  }

  .featured-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .blog-hero {
    padding: 40px 16px 30px;
  }

  .blog-hero__title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .blog-hero__sub {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .blog-hero__search {
    flex-direction: column;
    border-radius: 8px;
  }

  .blog-hero__search input {
    border-bottom: 1px solid var(--border);
  }

  .blog-hero__search-btn {
    border-radius: 0 0 8px 8px;
    padding: 10px 22px;
  }

  .filters {
    top: 0;
  }

  .filters__inner {
    padding: 10px 16px;
  }

  .blog-page-content {
    padding: 0 16px 60px;
  }

  .featured-top,
  .featured-bottom {
    grid-template-columns: 1fr;
  }

  .featured-top-right {
    gap: 12px;
  }

  .cat-section {
    padding-top: 36px;
  }

  .cat-section__title {
    font-size: 18px;
  }

  .marquee-container {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .marquee-card {
    flex: 0 0 240px;
  }

  .noResultFound .nofoundHead {
    font-size: 22px;
    line-height: 34px;
  }

  .noResultFound p {
    font-size: 16px;
    line-height: 18px;
  }

  .noResultFound img {
    max-width: 255px;
  }
}

@media (max-width: 500px) {
  .stat-box {
    min-width: 100%;
  }

  .blog-hero__stats {
    gap: 8px;
  }

  .section-heading {
    font-size: 19px;
  }

  .card__title {
    font-size: 13.5px;
  }

  .marquee-card {
    flex: 0 0 220px;
  }

  .marquee-card__image {
    height: 120px;
  }

  .marquee-card__title {
    font-size: 13px;
  }
}

/* ── Hidden/Visible States ────────────────────────────── */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}
