
:root {
  --navy: #0a1f5c;
  --blue:rgba(11, 94, 215, 1);
  --blue-light: #2d55e8;
  --blue-tag: #e8eeff;
  --blue-tag-text:rgba(11, 94, 215, 1);
  --text: #111827;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --radius: 12px;
}





/* ═══════════ FILTER ROW ═══════════ */
.filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 48px 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-articles {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
}

.search-articles svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--muted-light);
}

.search-articles input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px 10px 36px;
  font-size: 13.5px;
  font-family: "Outfit", sans-serif;
  outline: none;
  transition: border 0.15s;
}

.search-articles input:focus {
  border-color: var(--blue);
}

.cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cat-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* ═══════════ FEATURED POST ═══════════ */
.blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px 60px;
}

.featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  margin-bottom: 32px;
  background: linear-gradient(160deg, #2c2c3e 0%, #1a1a2e 100%);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

.featured::after {
  content: '';
  position: absolute;
  inset: 0;
}

.featured-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 100%;
  /* height: 200px; */
  opacity: 0.22;
  fill: #c9c9d4;
}

.featured-content {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
  max-width: 620px;
}

.featured-cat {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 15px;
  margin-bottom: 14px;
}

.featured-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}

.featured-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 18px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  flex-wrap: wrap;
}

.featured-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-meta .author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-meta .author-avatar svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.9);
}

.featured-meta .meta-dot {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-meta .meta-dot svg {
  width: 13px;
  height: 13px;
  fill: rgba(255, 255, 255, 0.7);
}

/* ═══════════ ARTICLE GRID ═══════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-image img{
  width:100%;
}

.article-image svg.scale {
  width: 110px;
  height: 100px;
  opacity: 0.3;
}

.ai-1 {
  background: linear-gradient(160deg, #dfe9f3 0%, #c3cfe2 100%);
}

.ai-1 svg.scale {
  fill: #6b7a99;
}

.ai-2 {
  background: linear-gradient(160deg, #3a2410 0%, #1f1408 100%);
}

.ai-2 svg.scale {
  fill: #c9a86a;
}

.ai-3 {
  background: linear-gradient(160deg, #2d1b07 0%, #4a2f12 100%);
}

.ai-3 svg.scale {
  fill: #d4a96a;
}

.article-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-cat {
font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 8px;
    background: rgba(239, 246, 255, 1);
    width: fit-content;
    padding: 3px 10px;
    border-radius: 10px;
}

.article-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.article-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

.article-author .a-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-author .a-avatar svg {
  width: 15px;
  height: 15px;
  fill: rgba(255, 255, 255, 0.9);
}

.article-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted-light);
}

.article-time svg {
  width: 13px;
  height: 13px;
  fill: var(--muted-light);
}

/* ═══════════ PAGINATION ═══════════ */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 13px;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: "Outfit", sans-serif;
}

.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 700;
}

.page-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ═══════════ RESPONSIVE 1024 ═══════════ */
@media (max-width: 1024px) {
  nav {
    padding: 0 28px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .hero {
    padding: 28px 28px 36px;
  }

  .filter-section {
    padding: 24px 28px 0;
  }

  .blog-section {
    padding: 22px 28px 48px;
  }

  .articles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  footer {
    padding: 44px 28px 28px;
  }
}

/* ═══════════ RESPONSIVE 768 ═══════════ */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    height: 60px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    top: 60px;
  }

  .hero {
    padding: 24px 20px 32px;
  }

  .hero h1 {
    font-size: 24px;
  }

  /* search stacks */
  .search-bar {
    flex-direction: column;
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
  }

  .filter-section {
    padding: 20px 20px 0;
  }

  .search-articles {
    width: 100%;
  }

  .filter-row {
    gap: 10px;
  }

  .cat-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .blog-section {
    padding: 20px 20px 40px;
  }

  .featured {
    height: 300px;
  }
  .featured img{
    width:100%;
  }

  .featured-title {
    font-size: 20px;
  }

  .featured-content {
    padding: 24px;
  }

  .articles-grid {
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  footer {
    padding: 36px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ═══════════ RESPONSIVE 480 ═══════════ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 21px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured {
    height: 260px;
  }

  .featured-title {
    font-size: 18px;
  }

  .featured-desc {
    display: none;
  }

  .pagination-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}