/**
 * Blogs page styles
 *
 * @package Hello_Elementor_Child
 */

.hec-blogs {
  padding: 48px 20px 72px;
  background: #f8fafc;
}

.hec-blogs__container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Page hero: title + subtitle */
.hec-blogs__hero {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 720px;
}

.hec-blogs__title {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 900;
  margin: 0 0 12px;
  color: var(--hec-text);
}

.hec-blogs__subtitle {
  color: var(--hec-muted);
  font-size: 17px;
  line-height: 1.7;
}

.hec-blogs__subtitle p {
  margin: 0;
}

/* Latest post featured card */
.hec-blogs__featured {
  margin: 0 auto 32px;
  border-radius: 20px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.hec-blogs__featured:has(.hec-blogs__featuredLink:hover),
.hec-blogs__featured:has(.hec-blogs__featuredLink:focus-visible) {
  transform: translateY(-2px);
}

.hec-blogs__featuredLink {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hec-blogs__featuredLink:hover,
.hec-blogs__featuredLink:focus-visible {
  border-color: var(--hec-primary);
  box-shadow: 0 16px 48px rgba(91, 75, 235, 0.14);
}

.hec-blogs__featuredLink:focus-visible {
  outline: 3px solid rgba(91, 75, 235, 0.35);
  outline-offset: 3px;
}

.hec-blogs__featuredMedia {
  display: block;
  min-height: 280px;
}

.hec-blogs__featuredImg {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.hec-blogs__featuredMedia img.hec-blogs__featuredImg {
  margin: 0 !important;
}

.hec-blogs__featuredImg--placeholder {
  background: linear-gradient(145deg, #e8f0fe 0%, #dbeafe 55%, #c7d2fe 100%);
  min-height: 280px;
}

.hec-blogs__featuredBody {
  padding: 32px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hec-blogs__badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(91, 75, 235, 0.12);
  color: var(--hec-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hec-blogs__featuredTitle {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 800;
  color: var(--hec-text);
}

.hec-blogs__excerpt {
  margin: 0 0 14px;
  color: var(--hec-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hec-blogs__meta {
  font-size: 13px;
  color: var(--hec-muted);
  margin: 0 0 18px;
}

.hec-blogs__metaSep {
  opacity: 0.85;
}

.hec-blogs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--hec-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hec-blogs__featuredLink:hover .hec-blogs__btn,
.hec-blogs__featuredLink:focus-visible .hec-blogs__btn {
  background: var(--hec-primary-700, #4a3dd8);
  transform: translateY(-1px);
}

.hec-blogs__btnArrow {
  font-size: 16px;
  line-height: 1;
}

/* All articles section */
.hec-blogs__sectionHead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 22px;
}

.hec-blogs__sectionLabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hec-muted);
  white-space: nowrap;
}

.hec-blogs__sectionLine {
  flex: 1;
  height: 1px;
  background: var(--hec-border);
}

.hec-blogs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}

.hec-blogs__card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.hec-blogs__card:has(.hec-blogs__cardLink:hover),
.hec-blogs__card:has(.hec-blogs__cardLink:focus-visible) {
  border-color: var(--hec-primary);
  box-shadow: 0 14px 40px rgba(91, 75, 235, 0.14);
  transform: translateY(-2px);
}

.hec-blogs__cardLink {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hec-blogs__cardLink:focus-visible {
  outline: 3px solid rgba(91, 75, 235, 0.35);
  outline-offset: 3px;
}

.hec-blogs__cardInner {
  padding: 26px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

.hec-blogs__cardTitle {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--hec-text);
}

.hec-blogs__cardExcerpt {
  margin: 0 0 16px;
  color: var(--hec-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.hec-blogs__cardDivider {
  border: 0;
  border-top: 1px solid var(--hec-border);
  margin: 0 0 14px;
}

.hec-blogs__cardFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.hec-blogs__cardDate {
  font-size: 12px;
  color: var(--hec-muted);
  margin: 0;
}

.hec-blogs__cardArrow {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--hec-primary);
  transition: transform 0.2s ease;
}

.hec-blogs__cardLink:hover .hec-blogs__cardArrow,
.hec-blogs__cardLink:focus-visible .hec-blogs__cardArrow {
  transform: translateX(3px);
}

.hec-blogs__pagination {
  margin: 32px 0 0;
}

.hec-blogs__pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.hec-blogs__pagination .page-numbers li {
  margin: 0;
}

.hec-blogs__pagination .page-numbers a,
.hec-blogs__pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hec-border);
  background: #ffffff;
  color: var(--hec-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.hec-blogs__pagination .page-numbers a:hover {
  border-color: var(--hec-primary);
  color: var(--hec-primary);
}

.hec-blogs__pagination .page-numbers .current {
  background: var(--hec-primary);
  border-color: var(--hec-primary);
  color: #ffffff;
}

.hec-blogs__empty {
  text-align: center;
  color: var(--hec-muted);
  margin: 30px 0 0;
}

@media (max-width: 980px) {
  .hec-blogs__featuredLink {
    grid-template-columns: 1fr;
  }

  .hec-blogs__featuredMedia,
  .hec-blogs__featuredImg,
  .hec-blogs__featuredImg--placeholder {
    min-height: 240px;
    max-height: 320px;
  }

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

@media (max-width: 620px) {
  .hec-blogs {
    padding-top: 32px;
  }

  .hec-blogs__title {
    font-size: 32px;
  }

  .hec-blogs__featuredBody {
    padding: 24px 20px 22px;
  }

  .hec-blogs__featuredTitle {
    font-size: 22px;
  }

  .hec-blogs__grid {
    grid-template-columns: 1fr;
  }
}
