/* ═══════════════════════════════════════════════════════
   GDATA GROUP — posts_list.css
   Scope: Hero banner, category tabs, news cards, sidebar
   ═══════════════════════════════════════════════════════ */

.arrow-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Hero banner */
.section-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 40px;
  border-radius: 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/banner_post.png') center/cover no-repeat;
}

.hero-title {
  color: #FFF;
  font-family: "Work Sans";
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
  /* 100% */
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 70%;
  display: flex;

  padding: 142px 48px 48px 48px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;

}

.hero-excerpt {
  color: #E2E8F0;
  font-family: "Work Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.hero-badge {
  display: flex;
  padding: 4px 12px;
  align-items: flex-start;
  border-radius: 4px;
  background: #0D59F2;
  color: #FFF;
  font-family: "Work Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.read-more {
  border-radius: 8px;
  background: #FFF;
  padding: 12px 24px;
  align-items: center;
}

.read-more:hover {
  background: #0d59f2;
}

.read-more:hover .name-button {
  color: #fff;
}

.read-more .name-button {
  color: #020C1B;
  text-align: center;
  font-family: "Work Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  display: flex !important;
  justify-content: center;
}

.read-more .name-button i {
  font-size: 25px;

}

.hero-meta span+span::before {
  content: ' · ';
}


/* Category tabs */
.cat-tabs .d-flex {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.cat-tabs .d-flex::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.tab-btn {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: .85rem 1.1rem;
  margin-right: 10px;
}

.tab-btn.active,
.tab-btn:hover {
  background: #0D59F2;
  color: #FFF;
}

/* News cards */

#latest .section-label {
  color: #FFF;
  font-family: "Work Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  border-left: 4px solid #0D59F2;
  text-transform: none;
}

.news-card {
  display: flex;
  padding: 17px 30px 17px 17px;
  align-items: flex-start;
  gap: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}

.news-card:hover {
  border-color: rgba(13, 89, 242, .5);
  background: var(--bg-card2);
  transform: translateX(5px);
  box-shadow: -4px 0 28px var(--accent-glow);
  color: inherit;
}

.news-card:hover::before {
  transform: scaleY(1);
}

.news-card-thumb {
  object-fit: cover;
  border-radius: 5px;
}

.news-card:hover .news-card-thumb {
  filter: brightness(1.1) saturate(1.2);
}

.news-card-body {
  flex: 1;
  min-width: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}

.news-card-cat {
  color: #0D59F2;
  font-family: "Work Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  padding-bottom: 8px;
}

.news-card-cat span {
  color: #64748B;
  font-family: "Work Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}

.cat-dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.news-card-title {
  color: #FFF;
  font-family: "Work Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  padding-bottom: 8px;

}

.news-card:hover .news-card-title {
  color: var(--accent-light);
}

.news-card-desc {
  color: #94A3B8;
  font-family: "Work Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.news-card-footer {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.news-card-footer span {
  color: #CBD5E1;
  font-family: "Work Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;

}

.news-card-footer .read-more-detail {
  color: #0D59F2;
  font-family: "Work Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;

}

.read-more {
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}

.read-more:hover {
  color: var(--accent-light);
  gap: 8px;
}

.btn-load {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide);
  padding: 13px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--dur) var(--ease);
  margin-top: .5rem;
}

.btn-load:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Sidebar */

.news-feed {
  padding-top: 55px;
}

.sidebar-box {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
  border: 1px solid var(--border);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.4rem;
  transition: border-color var(--dur) var(--ease);
}

.sidebar-box:hover {
  border-color: rgba(13, 89, 242, .4);
}

.sidebar-title {
  color: #FFF;
  font-family: "Work Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  padding-bottom: 10px;
}

.pr-date {
  color: #64748B;
  font-family: "Work Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 3px;
}

.pr-title {
  color: #E2E8F0;
  font-family: "Work Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 20px;
}

.pr-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.pr-title a:hover {
  color: var(--accent-light);
}

.pr-link {
  color: #0D59F2;
  text-align: center;
  font-family: "Work Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  display: flex;
  padding: 12px 0;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(13, 89, 242, 0.20);
  background: rgba(0, 0, 0, 0.25);
  gap: 5px;
  transition: gap var(--dur) var(--ease);
}

.pr-link:hover {
  gap: 8px;
  color: #fff;
  background: var(--accent);
}

.pr-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: .75rem 0;
}

#loadMore {
  color: #94A3B8;
  text-align: center;
  font-family: "Work Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  padding: 16px 0;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Responsive: tablet & mobile ─────────────────── */
@media (max-width: 991px) {

  /* Hero scales down */
  .section-hero {
    margin: 16px;
    min-height: 280px;
  }

  .hero-content {
    padding: 24px;
    max-width: 100%;
  }

  /* News cards: stack image on top */
  .news-card {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(13, 89, 242, 0.15);
  }

  .news-card::before {
    display: none;
  }

  .news-card:hover {
    transform: none;
    box-shadow: none;
  }

  .news-card-thumb {
    width: 100%;
    height: 200px;
    border-radius: 5px;
  }

  .news-card-body {
    padding: 16px;
    width: 100%;
  }

  .news-card-cat {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .news-card-title {
    font-size: 17px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 8px;
  }

  .news-card-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 12px;
  }

  .news-card-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
  }

  /* Category tabs as pills */
  .cat-tabs {
    background: transparent;
    border-bottom: none;
    padding: 8px 0;
  }

  .cat-tabs .d-flex {
    gap: 8px;
    padding: 0 16px;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
    font-size: 13px;
    font-weight: 500;
  }

  .tab-btn:hover {
    border-color: rgba(13, 89, 242, 0.40);
    color: #fff;
  }

  .tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .tab-btn.active::after {
    display: none;
  }

  /* Section label slightly smaller */
  .section-label {
    font-size: 12px;
    margin-bottom: 1rem;
  }

  /* Sidebar drops below the news list */
  .sidebar-box {
    margin-top: 0.5rem;
  }
}

@media (max-width: 575px) {
  .section-hero {
    margin: 12px;
    border-radius: 16px;
  }

  .hero-content {
    padding: 20px;
  }

  .news-card-thumb {
    border-radius: 12px;
    margin: 16px;
    width: stretch;
  }

  .news-card-title {
    font-size: 16px;
  }
}

.sidebar-box .descriptions {
  color: #94A3B8;
  font-family: "Work Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.form-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(2, 12, 27, 0.50);
  color: var(--text-primary);
  font-size: 13px;
  padding: 12px 12px;
  outline: none;
  margin-bottom: .7rem;

}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.form-input::placeholder {
  color: #475569;
  font-family: "Work Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.form-input.error {
  border-color: #e53935;
}

#subscribeBtn {
  border-radius: 8px;
  color: #FFF;
  text-align: center;
  font-family: "Work Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.topic-tag {
  display: inline-block;
  letter-spacing: .05em;
  padding: 6px 12px;
  margin: 0 5px 7px 0;

  color: #94A3B8;
  font-family: "Work Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.topic-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Responsive */
@media (max-width: 991px) {
  .section-hero {
    min-height: 360px;
  }

  .hero-content {

    padding: 3rem 0;
  }


}

@media (max-width: 575px) {

  .section-hero {
    min-height: 300px;
    margin: 1.5rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 2.5rem 0;
  }

  .hero-title {
    font-size: 20px;
    line-height: normal;
    letter-spacing: normal;
  }

  .hero-excerpt {
    font-size: 14px;
    line-height: normal;
  }

  .read-more {
    padding: 8px 20px;
  }

  .read-more .name-button {
    font-size: 14px;
  }




}