/* Connect2English — Blog / Resources page.
   Page chrome, :root tokens, .container, .btn*, .section, .eyebrow and
   .section-title are provided globally by resources/css/legacy.css;
   this file only holds the .bl-* page styles. */

/* ---------- Hero ---------- */
.bl-hero {
  background: var(--grad-brand);
  color: #fff;
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.bl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.35;
  pointer-events: none;
}
.bl-hero .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}
.bl-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
}
.bl-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
.bl-hero .breadcrumb a:hover {
  color: #fff;
}
.bl-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 18px;
}
.bl-hero h1 span {
  color: var(--accent-light);
}
.bl-hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 30px;
}
.bl-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  padding: 8px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
}
.bl-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}
.bl-search button {
  border: none;
  cursor: pointer;
}

/* ---------- Category pills ---------- */
.bl-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
a.bl-pill {
  text-decoration: none;
  display: inline-block;
}
.bl-pill {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.25s;
}
.bl-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}
.bl-pill.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow);
}

/* ---------- Featured post ---------- */
.bl-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 56px;
}
.bl-featured-media {
  background: var(--grad-brand);
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bl-featured-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.4;
}
.bl-featured-media i {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
}
.bl-featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}
.bl-featured-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bl-featured-body .bl-tag {
  margin-bottom: 16px;
}
.bl-featured-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--brand-dark);
  line-height: 1.25;
  margin: 0 0 14px;
}
.bl-featured-body p {
  color: #3a4a5e;
  line-height: 1.7;
  margin: 0 0 22px;
}

/* ---------- Article grid ---------- */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.bl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.bl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.bl-thumb {
  height: 180px;
  background: linear-gradient(135deg, #fff 0%, var(--bg-band) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bl-thumb i {
  font-size: 2.6rem;
  color: var(--brand);
  background: var(--bg-soft);
  width: 78px;
  height: 78px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bl-thumb img.is-placeholder,
.bl-featured-media img.is-placeholder,
.bl-article-hero img.is-placeholder {
  object-fit: cover;
  background: var(--grad-brand);
}
.bl-card .bl-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.bl-card h3 {
  font-size: 1.12rem;
  color: var(--brand-dark);
  line-height: 1.35;
  margin: 0 0 10px;
}
.bl-card p {
  color: #3a4a5e;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}
.bl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.bl-meta .bl-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.bl-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.bl-meta .bl-dot {
  margin: 0 2px;
}

/* ---------- Newsletter band ---------- */
.bl-news {
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bl-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.35;
}
.bl-news > * {
  position: relative;
  z-index: 2;
}
.bl-news h2 {
  color: #fff;
  margin-bottom: 12px;
}
.bl-news p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.65;
}
.bl-news form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  padding: 8px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
}
.bl-news input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bl-featured {
    grid-template-columns: 1fr;
  }
  .bl-featured-media {
    min-height: 220px;
  }
}
@media (max-width: 600px) {
  .bl-grid {
    grid-template-columns: 1fr;
  }
  .bl-featured-body,
  .bl-news {
    padding: 30px 22px;
  }
  .bl-search,
  .bl-news form {
    flex-direction: column;
    border-radius: 18px;
  }
  .bl-search button,
  .bl-news form button {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Article show page ---------- */
.bl-hero--compact {
  padding: 90px 0 70px;
  text-align: left;
}
.bl-hero--compact .container {
  max-width: 820px;
  text-align: left;
}
.bl-hero--compact h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}
.bl-tag--hero {
  display: inline-block;
  margin-bottom: 14px;
}
.bl-meta--hero {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.92);
}
.bl-meta--hero strong {
  color: #fff;
}
.bl-article-wrap {
  max-width: 820px;
}
.bl-article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.bl-article-hero img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 440px;
}
.bl-article-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #3a4a5e;
  margin: 0 0 28px;
  font-weight: 500;
}
.bl-article-body {
  color: var(--ink);
  line-height: 1.8;
  font-size: 1.02rem;
}
.bl-article-body p {
  margin: 0 0 1.25em;
}
.bl-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.bl-related h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--brand-dark);
}
.bl-grid--related {
  grid-template-columns: repeat(3, 1fr);
}
.bl-featured-body h2 a,
.bl-body h3 a {
  color: inherit;
  text-decoration: none;
}
.bl-featured-body h2 a:hover,
.bl-body h3 a:hover {
  color: var(--brand);
}
.bl-thumb {
  display: block;
  text-decoration: none;
}
@media (max-width: 900px) {
  .bl-grid--related {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .bl-grid--related {
    grid-template-columns: 1fr;
  }
}
