/* =====================================================
   NBTX Marketing Learning Center
   Scoped styles — loads only on Learning Center pages
   and Learning Center blog posts.
   Brand: Teal #0097b2 / Charcoal #494747 / Black #000 / Off-white #fffdf7
   ===================================================== */

:root {
  --lc-teal: #0097b2;
  --lc-teal-dark: #007a91;
  --lc-teal-soft: rgba(0, 151, 178, 0.08);
  --lc-charcoal: #494747;
  --lc-black: #000000;
  --lc-offwhite: #fffdf7;
  --lc-border: rgba(73, 71, 71, 0.14);
  --lc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --lc-radius: 12px;
}

/* ---------- Hero band ---------- */

.lc-hero {
  background: linear-gradient(135deg, var(--lc-charcoal) 0%, var(--lc-black) 100%);
  color: var(--lc-offwhite);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.lc-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 151, 178, 0.35) 0%, rgba(0, 151, 178, 0) 70%);
  pointer-events: none;
}

.lc-hero .lc-eyebrow {
  display: inline-block;
  color: var(--lc-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  line-height:1rem;
  margin-bottom: 14px;
}

.lc-hero h1 {
  color: var(--lc-offwhite);
  margin: 0 0 18px;
  line-height: 1.15;
}

.lc-hero .lc-hero-intro {
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 253, 247, 0.88);
}

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

/* Hero with a featured image (hub page): the image replaces the gradient,
   and a translucent scrim keeps the off-white text readable on top of it. */

.lc-hero.lc-hero-image {
  background-size: cover;
  background-position: center;
}

.lc-hero.lc-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(73, 71, 71, 0.42) 100%);
  pointer-events: none;
}

/* Light hero variant for category pages */

.lc-category-page .lc-hero {
  background: linear-gradient(160deg, #ffffff 0%, var(--lc-offwhite) 15%, rgba(0, 151, 178, 0.4) 100%);
  color: var(--lc-charcoal);
  border-bottom: 1px solid var(--lc-border);
}

.lc-category-page .lc-hero::after {
  background: radial-gradient(circle, rgba(0, 151, 178, 0.16) 0%, rgba(0, 151, 178, 0) 70%);
}

.lc-category-page .lc-hero h1 {
  color: var(--lc-black);
}

.lc-category-page .lc-hero .lc-eyebrow {
  color: var(--lc-teal-dark);
}

.lc-category-page .lc-hero .lc-hero-intro {
  color: var(--lc-charcoal);
}

.lc-category-page .lc-breadcrumbs {
  color: rgba(73, 71, 71, 0.6);
}

.lc-category-page .lc-breadcrumbs a {
  color: var(--lc-charcoal);
}

.lc-category-page .lc-breadcrumbs a:hover {
  color: var(--lc-teal);
}

.lc-category-page .lc-hero .lc-btn-outline {
  color: var(--lc-teal);
  border-color: var(--lc-teal);
}

.lc-category-page .lc-hero .lc-btn-outline:hover,
.lc-category-page .lc-hero .lc-btn-outline:focus {
  background: var(--lc-teal);
  color: #fff;
}

/* ---------- Breadcrumbs ---------- */

.lc-breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 22px;
  color: rgba(255, 253, 247, 0.65);
}

.lc-breadcrumbs a {
  color: rgba(255, 253, 247, 0.85);
  text-decoration: none;
}

.lc-breadcrumbs a:hover {
  color: var(--lc-teal);
}

.lc-breadcrumbs .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ---------- Buttons ---------- */

.lc-btn,
a.lc-btn,
.lc-btn:visited {
  display: inline-block;
  background: var(--lc-teal);
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--lc-teal);
  transition: all 0.25s ease;
  line-height: 1.2;
}

.lc-btn:hover,
.lc-btn:focus {
  background: var(--lc-teal-dark);
  border-color: var(--lc-teal-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 151, 178, 0.3);
}

.lc-btn i {
  margin-left: 8px;
  font-size: 0.85em;
}

.lc-btn-outline,
.lc-btn-outline:visited {
  display: inline-block;
  background: transparent;
  color: var(--lc-teal);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--lc-teal);
  transition: all 0.25s ease;
  line-height: 1.2;
}

.lc-btn-outline:hover,
.lc-btn-outline:focus {
  background: var(--lc-teal);
  color: #fff;
  transform: translateY(-2px);
}

.lc-hero .lc-btn-outline,
.lc-cta-band .lc-btn-outline {
  color: var(--lc-offwhite);
  border-color: var(--lc-offwhite);
}

.lc-hero .lc-btn-outline:hover,
.lc-cta-band .lc-btn-outline:hover {
  background: var(--lc-offwhite);
  color: var(--lc-charcoal);
}

.lc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Sections ---------- */

.lc-section {
  padding: 70px 0;
}

.lc-section.lc-alt {
  background: var(--lc-offwhite);
}

.lc-section-header {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.lc-section-header .lc-eyebrow {
  display: inline-block;
  color: var(--lc-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.lc-section-header h2 {
  color: var(--lc-black);
  margin: 0 0 14px;
  font-size: 2.8rem;
  line-height: 3rem;
}

.lc-section-header p {
  color: var(--lc-charcoal);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Category card grid ---------- */

.lc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.lc-card {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.lc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lc-shadow);
  border-color: var(--lc-teal);
}

.lc-card .lc-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--lc-teal-soft);
    color: var(--lc-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.lc-card h3 {
  color: var(--lc-black);
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 0 0 12px;
}

.lc-card h3 a {
  color: inherit;
  text-decoration: none;
}

.lc-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.lc-card p {
  color: var(--lc-charcoal);
  line-height: 1.65;
  margin: 0 0 20px;
  flex-grow: 1;
}

.lc-card .lc-card-link {
  color: var(--lc-teal);
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}

.lc-card .lc-card-link i {
  margin-left: 6px;
  font-size: 0.85em;
  transition: transform 0.25s ease;
}

.lc-card:hover .lc-card-link i {
  transform: translateX(4px);
}

/* ---------- Article cards ---------- */

.lc-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.lc-article-card {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.lc-article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lc-shadow);
}

.lc-article-card .lc-article-thumb {
  aspect-ratio: 16 / 9;
  background: var(--lc-teal-soft);
  display: block;
  overflow: hidden;
}

.lc-article-card .lc-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lc-article-card:hover .lc-article-thumb img {
  transform: scale(1.04);
}

.lc-article-card .lc-article-thumb .lc-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-teal);
  font-size: 2rem;
}

.lc-article-card .lc-article-body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lc-article-card .lc-article-cat {
  color: var(--lc-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  line-height:1rem;
  margin-bottom: 10px;
}

.lc-article-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--lc-black);
}

.lc-article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.lc-article-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.lc-article-card p {
  color: var(--lc-charcoal);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 16px;
  flex-grow: 1;
}

.lc-article-card .lc-card-link {
  color: var(--lc-teal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: auto;
}

/* Placeholder when a category has no articles yet */

.lc-placeholder {
  background: var(--lc-teal-soft);
  border: 1px dashed rgba(0, 151, 178, 0.4);
  border-radius: var(--lc-radius);
  padding: 44px 30px;
  text-align: center;
  color: var(--lc-charcoal);
}

.lc-placeholder i {
  color: var(--lc-teal);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}

/* ---------- Category page overview content ---------- */

.lc-overview {
  max-width: 1100px;
  margin: 0 auto;
}

.lc-overview h2 {
  color: var(--lc-black);
  margin: .8em 0 0.2em;
}

.lc-overview h2:first-child {
  margin-top: 0;
}

.lc-overview h3 {
  color: var(--lc-charcoal);
  margin: 1.4em 0 0.5em;
}

.lc-overview p,
.lc-overview li {
  color: var(--lc-charcoal);
  line-height: 1.75;
}

.lc-overview a {
  color: var(--lc-teal);
  font-weight: 600;
}

.lc-overview a:hover {
  color: var(--lc-teal-dark);
}

/* ---------- Related category chips ---------- */

.lc-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.lc-related a {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 50px;
  padding: 10px 22px;
  color: var(--lc-charcoal);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lc-related a:hover {
  border-color: var(--lc-teal);
  color: var(--lc-teal);
}

.lc-related a i {
  color: var(--lc-teal);
  margin-right: 8px;
}

/* ---------- CTA band ---------- */

.lc-cta-band {
  background: linear-gradient(135deg, var(--lc-teal) 0%, var(--lc-teal-dark) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.lc-cta-band h2 {
  color: #fff;
  margin: 0 0 14px;
}

.lc-cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.lc-cta-band .lc-btns {
  justify-content: center;
}

.lc-cta-band .lc-btn {
  background: var(--lc-offwhite);
  border-color: var(--lc-offwhite);
  color: var(--lc-charcoal);
}

.lc-cta-band .lc-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--lc-black);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .lc-hero {
    padding: 70px 0 55px;
  }

  .lc-section {
    padding: 55px 0;
  }
}

@media (max-width: 767px) {
  .lc-hero {
    padding: 55px 0 45px;
  }

  .lc-hero .lc-hero-intro {
    font-size: 1rem;
  }

  .lc-section {
    padding: 45px 0;
  }

  .lc-card-grid,
  .lc-article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lc-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .lc-btns .lc-btn,
  .lc-btns .lc-btn-outline {
    text-align: center;
  }

  .lc-cta-band {
    padding: 55px 0;
  }
}
