/* ===== Content Hub Styles ===== */

/* ===== Custom Nav Bar ===== */
.hub-nav {
  background: #2d3d55;
  padding: 16px 0;
}

.hub-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-nav__logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.hub-nav__logo:hover {
  color: #fff;
}

.hub-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.hub-nav__link:hover {
  color: #fff;
}

.hub-nav__link._active {
  color: #fff;
  font-weight: 600;
}

.hub-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-nav__btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.hub-nav__btn._primary {
  background: linear-gradient(180deg, #5ccc6f 0%, #4ab85c 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(92, 204, 111, 0.3);
}

.hub-nav__btn._primary:hover {
  background: linear-gradient(180deg, #6dd67e 0%, #5ccc6f 100%);
  box-shadow: 0 4px 12px rgba(92, 204, 111, 0.4);
}

.hub-nav__btn._outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hub-nav__btn._outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .hub-nav__links {
    display: none;
  }
  .hub-nav__actions {
    gap: 6px;
  }
  .hub-nav__btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ===== Hero ===== */
.hub-hero {
  background: linear-gradient(180deg, #2d3d55 0%, #1e2a3d 100%);
  padding: 50px 0 60px;
}

.hub-hero__body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.hub-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.hub-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 40px;
  line-height: 1.5;
}

/* Category tabs */
.hub-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.hub-categories__tab {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.hub-categories__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.hub-categories__tab._active {
  color: #2d3d55;
  background: #5ccc6f;
  border-color: #5ccc6f;
}

/* ===== Content area background ===== */
.hub-content-bg {
  background: #f5f7fa;
  min-height: 50vh;
  padding-top: 40px;
}

/* ===== Featured article ===== */
.hub-featured {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 30px;
}

.hub-featured__card {
  display: flex;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.hub-featured__card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.hub-featured__image {
  width: 45%;
  min-height: 280px;
  background: linear-gradient(135deg, #2d3d55 0%, #3a506b 50%, #5ccc6f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hub-featured__image::after {
  content: "📄";
  font-size: 80px;
  opacity: 0.3;
}

.hub-featured__body {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-featured__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #5ccc6f;
  margin-bottom: 16px;
  align-self: flex-start;
}

.hub-featured__title {
  font-size: 26px;
  font-weight: 700;
  color: #2d3d55;
  margin: 0 0 12px;
  line-height: 1.3;
}

.hub-featured__excerpt {
  font-size: 16px;
  color: #6b7a8d;
  line-height: 1.6;
  margin: 0 0 20px;
}

.hub-featured__meta {
  font-size: 13px;
  color: #9ba8b7;
}

.hub-featured__meta span + span::before {
  content: "·";
  margin: 0 8px;
}

/* ===== Articles grid ===== */
.hub-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px 80px;
}

.hub-grid__title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3d55;
  margin: 0 0 30px;
}

.hub-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hub-grid__card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef1f5;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.hub-grid__card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.hub-grid__card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
  align-self: flex-start;
}

.hub-grid__card-badge._documentflow {
  color: #2d6ccf;
  background: #e8f0fd;
}

.hub-grid__card-badge._approvals {
  color: #9b59b6;
  background: #f5eef8;
}

.hub-grid__card-badge._automation {
  color: #e67e22;
  background: #fef5e7;
}

.hub-grid__card-badge._security {
  color: #e74c3c;
  background: #fdedec;
}

.hub-grid__card-badge._telegram {
  color: #0088cc;
  background: #e8f4fd;
}

.hub-grid__card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3d55;
  margin: 0 0 10px;
  line-height: 1.4;
}

.hub-grid__card-excerpt {
  font-size: 14px;
  color: #6b7a8d;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.hub-grid__card-meta {
  font-size: 12px;
  color: #9ba8b7;
}

.hub-grid__card-meta span + span::before {
  content: "·";
  margin: 0 6px;
}

.hub-grid__card-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #5ccc6f;
  transition: color 0.2s;
}

.hub-grid__card:hover .hub-grid__card-link {
  color: #47b85a;
}

/* ===== Article page ===== */
.article-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 30px 80px;
}

.article-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #9ba8b7;
  margin-bottom: 30px;
}

.article-breadcrumbs a {
  color: #5ccc6f;
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumbs a:hover {
  color: #47b85a;
}

.article-breadcrumbs__sep {
  color: #cdd5de;
}

.article-header {
  margin-bottom: 40px;
}

.article-header__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-header__title {
  font-size: 36px;
  font-weight: 700;
  color: #2d3d55;
  line-height: 1.3;
  margin: 0 0 16px;
}

.article-header__meta {
  font-size: 14px;
  color: #9ba8b7;
}

.article-header__meta span + span::before {
  content: "·";
  margin: 0 8px;
}

.article-content {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: #3a4a5c;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #2d3d55;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2d3d55;
  margin: 32px 0 12px;
}

.article-content p {
  margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: #2d3d55;
}

.article-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px 80px;
}

.article-related__title {
  font-size: 24px;
  font-weight: 700;
  color: #2d3d55;
  margin: 0 0 24px;
  padding-top: 40px;
  border-top: 1px solid #eef1f5;
}

/* ===== Footer for hub pages ===== */
.hub-footer {
  background: #1e2a3d;
  padding: 60px 0 30px;
  color: #fff;
}

.hub-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.hub-footer__start {
  margin-bottom: 40px;
}

.hub-footer__start h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}

.hub-footer__start p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 8px;
  max-width: 700px;
}

.hub-footer__start strong {
  color: #5ccc6f;
}

.hub-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hub-footer__nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-footer__nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.hub-footer__nav a:hover {
  color: #fff;
}

.hub-footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

@media (max-width: 600px) {
  .hub-footer__bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hub-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-featured__card {
    flex-direction: column;
  }

  .hub-featured__image {
    width: 100%;
    min-height: 180px;
  }

  .hub-featured__body {
    padding: 24px;
  }

  .hub-featured__title {
    font-size: 22px;
  }

  .hub-hero__title {
    font-size: 32px;
  }
}

/* ===== FAQ Section ===== */
.article-faq {
  max-width: 760px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #eef1f5;
}

.article-faq__title {
  font-size: 26px;
  font-weight: 700;
  color: #2d3d55;
  margin: 0 0 24px;
}

.article-faq__item {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #f8fafb;
  border-radius: 10px;
  border-left: 3px solid #5ccc6f;
}

.article-faq__question {
  font-size: 17px;
  font-weight: 700;
  color: #2d3d55;
  margin: 0 0 10px;
  line-height: 1.4;
}

.article-faq__answer {
  font-size: 15px;
  color: #4a5a6d;
  line-height: 1.7;
  margin: 0;
}

/* ===== Author mini card (under title) ===== */
.article-author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 12px 16px;
  background: #f8fafb;
  border-radius: 10px;
  max-width: 760px;
}

.article-author-mini__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5ccc6f;
}

.article-author-mini__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2d3d55;
}

.article-author-mini__role {
  display: block;
  font-size: 12px;
  color: #9ba8b7;
}

/* ===== Author full bio (bottom of article) ===== */
.article-author {
  max-width: 760px;
  margin-top: 48px;
  padding: 28px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
  border-radius: 14px;
  border: 1px solid #dde3ea;
}

.article-author__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.article-author__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #5ccc6f;
  box-shadow: 0 2px 12px rgba(92, 204, 111, 0.2);
}

.article-author__info {
  flex: 1;
}

.article-author__name {
  font-size: 20px;
  font-weight: 700;
  color: #2d3d55;
  margin: 0 0 4px;
}

.article-author__role {
  font-size: 14px;
  color: #6b7a8d;
}

.article-author__bio {
  font-size: 15px;
  color: #3a4a5c;
  line-height: 1.7;
  margin: 0 0 16px;
}

.article-author__credentials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-author__credentials li {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(92, 204, 111, 0.12);
  color: #2d6b3a;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .article-author__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-author__photo {
    width: 60px;
    height: 60px;
  }

  .article-author__credentials {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hub-grid__list {
    grid-template-columns: 1fr;
  }

  .hub-hero__title {
    font-size: 26px;
  }

  .hub-featured__body {
    padding: 20px;
  }

  .article-header__title {
    font-size: 26px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-faq__item {
    padding: 16px 18px;
  }
}
