:root {
  --primary: #721953;
  --secondary: #53275c;
  --accent: #341e4a;
  --dark: #1d2350;
  --light-bg: #f4f5fa;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

section {
  position: relative;
}

.section-padding {
  padding: 5rem 0;
}

.section-label {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
}

.section-heading {
  font-weight: 700;
  color: var(--dark);
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.section-intro {
  margin: 0;
  color: rgba(29, 35, 80, 0.7);
}

.btn-primary.nb-cta {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 999px;
  padding: 0.75rem 1.9rem;
  font-weight: 600;
  box-shadow: 0 18px 38px rgba(114, 25, 83, 0.22);
}

.btn-primary.nb-cta:hover,
.btn-primary.nb-cta:focus {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.hero-blog {
  position: relative;
  padding: 6rem 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 42%), linear-gradient(135deg, #221d5a 0%, #401a5d 52%, #721953 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 36, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  background: rgba(255, 255, 255, 0.24);
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  top: -140px;
  right: 18%;
}

.hero-shape-2 {
  width: 220px;
  height: 220px;
  bottom: -120px;
  left: 12%;
}

.hero-blog .container {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  letter-spacing: 0.18em;
}

.hero-blog h1,
.hero-blog p,
.hero-blog .btn {
  color: #ffffff;
}

.hero-blog .btn {
  border-radius: 999px;
}

.hero-blog .btn-light {
  background-color: #ffffff;
  color: var(--primary);
  border: none;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-blog .btn-light:hover,
.hero-blog .btn-light:focus {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(255, 255, 255, 0.32);
}

.hero-blog .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-blog .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.hero-featured {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.9rem;
  padding: 2.3rem 2rem;
  backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(14, 16, 36, 0.28);
}

.hero-featured .feature-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
}

.hero-featured .feature-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 1.4rem;
}

.hero-featured .feature-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 1.4rem;
  filter: saturate(1.05);
}

.feature-body .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-body p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.8rem;
}

.feature-body .meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.filters-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-chip {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  background: rgba(52, 30, 74, 0.12);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover {
  transform: translateY(-2px);
}

.filter-chip.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(114, 25, 83, 0.24);
}

.posts-grid {
  background: #ffffff;
}

.post-card {
  background: #ffffff;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(29, 35, 80, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.3s ease;
}

.post-card.show {
  transform: translateY(0);
  opacity: 1;
}

.post-card:hover {
  box-shadow: 0 24px 54px rgba(29, 35, 80, 0.18);
}

.post-card .cover {
  position: relative;
  display: block;
}

.post-card .cover img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.post-card .tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(114, 25, 83, 0.92);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-body {
  padding: 1.8rem 1.9rem 1.2rem;
  flex: 1;
}

.post-body h3 {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.post-body p {
  color: rgba(29, 35, 80, 0.7);
  margin: 0;
}

.post-footer {
  padding: 1.1rem 1.9rem 1.7rem;
  border-top: 1px solid rgba(29, 35, 80, 0.08);
  display: flex;
  justify-content: flex-end;
  font-size: 0.85rem;
  color: rgba(29, 35, 80, 0.55);
}

.load-more {
  border-radius: 999px;
  border: 1px solid rgba(114, 25, 83, 0.24);
  color: var(--accent);
  font-weight: 600;
  padding: 0.65rem 1.6rem;
}

.load-more:hover {
  border-color: rgba(114, 25, 83, 0.48);
  background: rgba(114, 25, 83, 0.1);
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.insights-section {
  background: linear-gradient(150deg, rgba(52, 30, 74, 0.06), rgba(114, 25, 83, 0.04));
}

.insights-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
  display: grid;
  gap: 1rem;
  color: rgba(29, 35, 80, 0.72);
}

.insights-list strong {
  display: block;
  color: var(--accent);
}

.insights-cards {
  display: grid;
  gap: 1.2rem;
}

.insight-card {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.9rem;
  box-shadow: 0 18px 42px rgba(29, 35, 80, 0.12);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.3s ease;
}

.insight-card.show {
  transform: translateY(0);
  opacity: 1;
}

.insight-card .label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  background: rgba(114, 25, 83, 0.12);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.insight-card h3 {
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0 0.8rem;
}

.insight-card p {
  color: rgba(29, 35, 80, 0.7);
  margin-bottom: 1rem;
}

.insight-card .link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.insight-card .link:hover {
  text-decoration: underline;
}

.newsletter-section {
  background: #ffffff;
}

.newsletter-panel {
  background: linear-gradient(135deg, #221d5a 0%, #401a5d 52%, #721953 100%);
  border-radius: 2rem;
  padding: 3.5rem 2.6rem;
  color: #ffffff;
  box-shadow: 0 28px 68px rgba(17, 20, 50, 0.28);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.newsletter-panel.show {
  transform: translateY(0);
  opacity: 1;
}

.newsletter-panel .section-label,
.newsletter-panel .section-heading,
.newsletter-panel .lead {
  color: #ffffff;
}

.newsletter-panel .lead {
  opacity: 0.85;
  max-width: 680px;
  margin: 1rem auto 2rem;
}

.newsletter-form .form-control {
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  border: none;
  box-shadow: inset 0 1px 4px rgba(29, 35, 80, 0.08);
}

.newsletter-form .form-control:focus {
  border: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.38);
}

.privacy-note {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1199.98px) {
  .hero-featured {
    margin-top: 1.5rem;
  }

  .insights-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hero-blog {
    text-align: center;
  }

  .hero-featured {
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
  }

  .filters-wrapper {
    justify-content: center;
  }

  .insights-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4rem 0;
  }

  .hero-blog {
    padding: 5rem 0;
  }

  .filters-wrapper {
    gap: 0.6rem;
  }

  .filter-chip {
    padding: 0.48rem 1.1rem;
    font-size: 0.85rem;
  }

  .post-card .cover img {
    height: 200px;
  }
}

/* Mobile width constraints - ensure 100% width on mobile */
@media (max-width: 575.98px) {
  html {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  main, section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container,
  .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  [class*="col-"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

  .newsletter-panel {
    padding: 3.2rem 1.9rem;
  }

  .newsletter-form .form-control {
    border-radius: 1.1rem;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}

