* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  background: #fff;
  color: #111;
}


/* HERO SECTION */
.blog-hero {
  padding: 90px 20px 90px;
  background: radial-gradient(120% 140% at 50% 0%,
      #1c2b43 0%,
      #0f1c33 50%,
      #070d1b 100%);
  text-align: center;
  border-bottom: 4px solid #ffffff;
}

/* CONTENT */
.blog-hero-content {
  max-width: 980px;
  margin: 0 auto;
}

/* MAIN TITLE */
.blog-hero h1 {
  font-size: 60px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 25px;
}

/* SUB TITLE */
.blog-hero h2 {
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 26px;
}

/* DESCRIPTION */
.blog-hero p {
  margin-left: 60px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #e5e7eb;
  max-width: 830px;
}

/* ===== INITIAL STATE ===== */
.blog-hero-content>* {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

/* ===== SHOW STATE ===== */
.blog-hero-content>*.bh-show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STAGGER DELAYS ===== */
.blog-hero-content h1 {
  transition-delay: 0.1s;
}

.blog-hero-content h2 {
  transition-delay: 0.35s;
}

.blog-hero-content p {
  transition-delay: 0.6s;
}


/* Next section */
/* SECTION */
.blog-categories {
  padding: 60px 20px;
  background: #f7fafc;
}

/* TITLE */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0f172a;
  margin-bottom: 60px;
}

/* GRID */
.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* CARD */
.category-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 32px 30px;
  /* transition: all 0.3s ease; */
}

/* CARD TITLE */
.category-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 12px;
}

/* CARD TEXT */
.category-card p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #475569;
}

/* HOVER (very subtle – optional but close to real UI) */
.category-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
}

/* ===============================
   INITIAL ANIMATION STATE
================================ */
.category-card {
  opacity: 0;
  transform: translateY(-35px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* SHOW STATE */
.category-card.cat-show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   STAGGER (ONE BY ONE)
================================ */
.category-card:nth-child(1) {
  transition-delay: 0.1s;
}

.category-card:nth-child(2) {
  transition-delay: 0.25s;
}

.category-card:nth-child(3) {
  transition-delay: 0.4s;
}

.category-card:nth-child(4) {
  transition-delay: 0.55s;
}

.category-card:nth-child(5) {
  transition-delay: 0.7s;
}

/* ===============================
   VIEW POST LINK (HIDDEN)
================================ */
.category-card::after {
  content: "View post →";
  display: block;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.35s ease;
}

/* ===============================
   HOVER EFFECTS
================================ */
.category-card:hover {
  transition: 0.2s ease;
  border-color: #2563eb;
  /* blue 1px border */
  /* bottom light shadow */
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.category-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Next section */
.blog-filter-section {
  background: #ffffff;
  padding: 28px 20px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.filter-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
}

/* SEARCH */
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
}

.search-box i {
  font-size: 18px;
  color: #94a3b8;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
}

.search-box input::placeholder {
  color: #94a3b8;
}


/* FILTER SELECTS */
.filter-selects {
  display: flex;
  gap: 16px;
}

.filter-selects select {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects {
    width: 100%;
  }

  .filter-selects select {
    width: 100%;
  }
}

.featured-blog {
  background: #ffffff;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 38px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 32px;
  text-align: left;
}

/* CARD */
.featured-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px 40px;
  background: #f7fafc;
  margin-bottom: 30px;
}

/* META */
.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0edff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #475569;
}

/* TITLE */
.post-title {
  font-size: 34px;
  font-weight: 700;
  color: #020617;
  margin-bottom: 18px;
}

/* DESCRIPTION */
.post-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  max-width: 950px;
  margin-bottom: 28px;
}

/* KEY TOPICS */
.key-title {
  font-weight: 600;
  color: #020617;
  margin-bottom: 12px;
}

.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}

.topics-grid ul {
  padding-left: 20px;
}

.topics-grid li {
  margin-bottom: 10px;
  color: #334155;
  position: relative;
}

.topics-grid li::marker {
  color: #2563eb;
}

/* CTA */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.read-more:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-title {
    font-size: 28px;
  }
}


/* =============================
   SEARCH & SELECT FOCUS STATE
============================= */
.search-box:focus-within,
.filter-selects select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* =============================
   SELECT OPTION HOVER (Modern browsers)
============================= */
.filter-selects select option:hover {
  background: #2563eb;
  color: #ffffff;
}

/* =============================
   NO RESULT MESSAGE
============================= */
.no-results {
  padding: 40px 0;
  font-size: 18px;
  color: #475569;
  font-weight: 500;
}

/* ===== FEATURED CARD ANIMATION ===== */
.featured-card {
  opacity: 0;
  transform: translateY(-80px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.featured-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-filter-section {
  position: sticky;
  top: 60px;
  /* navbar height ku adjust panniko */
  z-index: 50;
  background: #ffffff;
}

/* Hover card effect */
.featured-card {
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.featured-card:hover {
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

/* Title color change */
.featured-card:hover .post-title {
  color: #2563eb;
}

.read-more i {
  transition: transform 0.3s ease;
}

.featured-card:hover .read-more i {
  transform: translateX(6px);
}

.search-box:focus-within {
  border-color: #2563eb;
}

.filter-selects select:focus {
  border-color: #2563eb;
  outline: none;
}


/* Next section */
.blog-list-section {
  padding: 40px 20px;
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD */
.blog-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 36px 40px;
  background: #ffffff;
}

/* META */
.blog-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f1ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #475569;
}

/* TITLE */
.blog-title {
  font-size: 32px;
  font-weight: 700;
  color: #020617;
  margin-bottom: 14px;
}

/* DESCRIPTION */
.blog-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  max-width: 960px;
  margin-bottom: 26px;
}

/* TOPICS */
.topics-title {
  font-weight: 600;
  color: #020617;
  margin-bottom: 12px;
}

.topics-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 26px;
}

.topics-columns ul {
  padding-left: 20px;
}

.topics-columns li {
  margin-bottom: 10px;
  color: #334155;
}

.topics-columns li::marker {
  color: #2563eb;
}

/* CTA */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.read-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .topics-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-title {
    font-size: 26px;
  }
}

/* Email input focus blue border */
.email-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.3s ease;
}

.email-box:focus-within {
  /* blue focus */
  border: none;
}

.email-box input {
  outline: none;
  border-color: #2563eb;
  width: 100%;
  font-size: 16px;
}

/* Next section */
.newsletter-section {
  background: linear-gradient(135deg, #2b5cff, #4b4fe0);
  padding: 90px 0;
  color: #ffffff;
}

.newsletter-title {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 10px;
}

.newsletter-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.email-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding: 12px 8px;
  min-width: 280px;
}

.email-box i {
  font-size: 18px;
  opacity: 0.9;
}

.email-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  width: 100%;
}

.email-box input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.subscribe-btn {
  background: #ffffff;
  color: #2b5cff;
  border: none;
  padding: 14px 34px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.subscribe-btn:hover {
  opacity: 0.95;
}

.rss-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  opacity: 0.9;
}

.rss-link i {
  font-size: 18px;
}

/* Next section */
.cta-light {
  background: #ffffff;
  padding: 90px 20px;
}

.cta-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.cta-title {
  font-size: 40px;
  font-weight: 500;
  color: #0b1220;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Primary Button */
.btn-primary {
  background: #1f5bff;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary i {
  font-size: 18px;
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: #1f5bff;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid #1f5bff;
}

/* Schedule button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary i {
  transition: transform 0.3s ease;
}

/* hover effect */
.btn-primary:hover {
  background: #1e40af;
  /* dark blue shade */
}

.btn-primary:hover i {
  transform: translateX(6px);
}


/* Download button */
.btn-outline {
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background: #e0f2fe;
  /* light blue shade */
}