/* hepatolog.az - "Mövzular" listing page.
   Scoped to the .cg_* blocks used only on that page. */

/* ---------- intro ---------- */

.cg_intro {
  padding: 84px 0 0;
}

.cg_head {
  max-width: 680px;
}

.cg_eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--wine);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.cg_head h1 {
  margin-top: 22px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--wine);
}

.cg_head p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 32px;
  color: #4b5563;
}

/* ---------- listing ---------- */

.cg_list {
  padding: 50px 0 100px;
}

.cg_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 26px;
}

.cg_card,
.cg_featured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ink-soft);
  box-shadow: 0 3px 16px -10px rgba(22, 47, 98, 0.35);
  transition: all 0.3s var(--ease);
}

.cg_card:hover,
.cg_featured:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 28px 46px -26px rgba(119, 28, 46, 0.45);
}

.cg_thumb {
  display: block;
  overflow: hidden;
  background: var(--surface);
}

.cg_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 37 / 20;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.cg_card:hover .cg_thumb img,
.cg_featured:hover .cg_thumb img {
  transform: scale(1.05);
}

.cg_body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px 26px 28px;
}

.cg_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.cg_cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--wine);
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.cg_cat:hover {
  background: var(--coral);
  color: #fff;
}

.cg_date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9099a8;
}

.cg_date i {
  color: var(--coral);
}

.cg_body h2 {
  margin-top: 16px;
  font-size: 21px;
  line-height: 30px;
  font-weight: 600;
}

.cg_body h2 a {
  color: var(--wine);
  transition: color 0.3s var(--ease);
}

.cg_body h2 a:hover {
  color: var(--coral);
}

.cg_body p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 28px;
  color: #4b5563;
}

.cg_more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--coral);
}

.cg_more i {
  transition: transform 0.3s var(--ease);
}

.cg_more:hover i {
  transform: translateX(4px);
}

/* ---------- featured item ---------- */

.cg_featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
}

.cg_featured .cg_thumb img {
  aspect-ratio: auto;
  min-height: 100%;
}

.cg_featured .cg_body {
  padding: 44px 46px;
  justify-content: center;
}

.cg_featured .cg_body h2 {
  margin-top: 18px;
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
}

.cg_featured .cg_body p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 30px;
}

.cg_featured .cg_more {
  margin-top: 26px;
  padding-top: 0;
}

/* ---------- pagination sits below the grid ---------- */

.cg_list .navigation {
  margin-top: 60px;
}

/* ---------- responsive ---------- */

@media (max-width: 1199px) {
  .cg_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg_featured .cg_body { padding: 34px; }
  .cg_featured .cg_body h2 { font-size: 26px; line-height: 36px; }
}

@media (max-width: 991px) {
  .cg_intro { padding-top: 64px; }
  .cg_head h1 { font-size: 34px; }
  .cg_featured { grid-template-columns: minmax(0, 1fr); }
  .cg_featured .cg_thumb img { aspect-ratio: 37 / 20; min-height: 0; }
}

@media (max-width: 767px) {
  .cg_intro { padding-top: 52px; }
  .cg_list { padding: 36px 0 70px; }
  .cg_head h1 { font-size: 28px; }
  .cg_grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cg_featured .cg_body { padding: 26px; }
  .cg_featured .cg_body h2 { font-size: 22px; line-height: 32px; }
}

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

.cg_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.cg_tab {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid #e8dfe2;
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s;
}

.cg_tab:hover {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--wine);
  text-decoration: none;
}

.cg_tab.is_active {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

.cg_empty {
  padding: 60px 0 20px;
  font-size: 17px;
  color: #6b7280;
}

@media (max-width: 575px) {
  .cg_tabs {
    gap: 8px;
    margin-top: 26px;
  }

  .cg_tab {
    padding: 7px 15px;
    font-size: 14px;
  }
}
