#blog {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 60%);
}

#blog .blog-hero {
  padding-bottom: 2.5rem;
}

#blog .blog-hero-card {
  margin: 0 auto;
  max-width: 880px;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.12) 0%,
    rgba(111, 66, 193, 0.12) 100%
  );
  border-radius: 18px;
  padding: 2.75rem 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 110, 253, 0.16);
}

#blog .blog-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0f172a;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

#blog .blog-hero hr {
  width: 96px;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%);
  border: 0;
  margin: 1.2rem auto 1.35rem;
  border-radius: 999px;
}

#blog .blog-hero p {
  margin: 0 auto;
  max-width: 600px;
  color: #435060;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.7;
}

#blog .blog-search {
  padding-bottom: 2.25rem;
}

#blog .blog-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  justify-content: space-between;
}

#blog .blog-search-field {
  /*flex: 1 1 280px;*/
}

#blog .blog-search-per-page {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.15);
  color: #0d6efd;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border 0.2s ease;
}

#blog .blog-search-per-page i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.25);
}

#blog .blog-search-per-page span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#blog .blog-search-per-page select {
  min-width: auto;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid rgba(13, 110, 253, 0.3);
  padding: 0.4rem 0.9rem;
  color: #0d6efd;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.15);
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

#blog .blog-search-per-page select:focus {
  outline: none;
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
}

#blog .blog-search-per-page:hover {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.25);
}

#blog .blog-search-form input[type="search"],
#blog .blog-search-form select,
#blog .blog-search-per-page select {
  min-width: 300px;
  height: 46px;
  border: 1px solid #d0d7e6;
  border-radius: 10px;
  padding: 0 0.95rem;
  font-size: 1rem;
  background: #ffffff;
  color: #363636;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

#blog .blog-search-form input[type="search"]:focus,
#blog .blog-search-form select:focus {
  outline: none;
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}

#blog .blog-search-form button {
  height: 46px;
  padding: 0 1.6rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#blog .blog-search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(13, 110, 253, 0.25);
}

#blog .blog-search-reset {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 1.1rem;
  border-radius: 10px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(13, 110, 253, 0.18);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

#blog .blog-search-reset:hover {
  background: rgba(13, 110, 253, 0.2);
  color: #084298;
}

#blog .blog-summary {
  padding-bottom: 1.75rem;
}

#blog .blog-summary-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #455468;
  font-size: 0.98rem;
}

#blog .blog-summary-text {
  font-size: 1rem;
  font-weight: 500;
}

#blog .blog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#blog .blog-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-weight: 600;
  font-size: 0.88rem;
}

#blog .blog-stat-chip.secondary {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

#blog .blog-alert {
  padding: 1.3rem 1.6rem;
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.14);
  color: #854d0e;
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-weight: 500;
}

#blog .blog-empty {
  text-align: center;
  padding: 2.8rem 0;
  color: #5b6575;
}

#blog .blog-empty strong {
  display: block;
  font-size: 1.15rem;
  color: #1f2937;
  margin-bottom: 0.6rem;
}

#blog .blog-search-per-page {
  width: auto;
  justify-content: center;
  flex-wrap: wrap;
}

#blog .blog-search-per-page select {
  min-width: 120px;
}

#blog .blog-grid-section {
  padding-top: 0.5rem;
}

#blog .blog-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

#blog .blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  margin: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 26px 40px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#blog .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 55px rgba(15, 23, 42, 0.12);
}

#blog .blog-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  background: #e2e8f0;
}

#blog .blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

#blog .blog-card:hover .blog-card-cover img {
  transform: scale(1.04);
}

#blog .blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem 1.55rem 1.7rem;
}

#blog .blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  color: #5b6575;
  font-size: 0.85rem;
}

#blog .blog-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

#blog .blog-card-category {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-weight: 600;
  font-size: 0.78rem;
}

#blog .blog-card-author,
#blog .blog-detail-author {
  font-weight: 600;
  color: #6f42c1;
  font-size: 0.85rem;
}

#blog .blog-card-reading,
#blog .blog-detail-reading {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

#blog .blog-card-reading svg,
#blog .blog-detail-reading svg {
  flex-shrink: 0;
  opacity: 0.75;
}

#blog .blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin: 0;
}

#blog .blog-card-title a {
  color: inherit;
  text-decoration: none;
}

#blog .blog-card-title a:hover {
  color: #0d6efd;
}

#blog .blog-card-excerpt {
  color: #425066;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

#blog .blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

#blog .blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

#blog .blog-card-link:hover {
  gap: 0.6rem;
}

#blog .blog-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#blog .blog-detail-nav {
  max-width: 960px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

#blog .blog-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
}

#blog .blog-detail-back:hover {
  color: #093dba;
}

#blog .blog-detail-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

#blog .blog-detail-title {
  font-size: 2.45rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

#blog .blog-detail-subtitle {
  font-size: 1.15rem;
  color: #455468;
  margin-bottom: 1.6rem;
}

#blog .blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  color: #546070;
  font-size: 0.95rem;
}

#blog .blog-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

#blog .blog-detail-cover {
  margin: 0 auto 2.8rem;
  max-width: 780px;
  max-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
  background: #e2e8f0;
}

#blog .blog-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#blog .blog-detail-content {
  max-width: 100%;
  margin: 0 !important;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2d3748;
}

#blog .blog-detail-content p {
  margin-bottom: 1.45rem;
}

#blog .blog-detail-content h2,
#blog .blog-detail-content h3,
#blog .blog-detail-content h4 {
  color: #111827;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

#blog .blog-detail-content h2 {
  font-size: 1.75rem;
}

#blog .blog-detail-content h3 {
  font-size: 1.45rem;
}

#blog .blog-detail-content ul,
#blog .blog-detail-content ol {
  margin-bottom: 1.4rem;
  padding-left: 1.2rem;
}

#blog .blog-detail-content li {
  margin-bottom: 0.6rem;
}

#blog .blog-detail-content blockquote {
  border-left: 4px solid rgba(13, 110, 253, 0.4);
  padding-left: 1.1rem;
  color: #475569;
  font-style: italic;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 6px;
  margin: 1.8rem 0;
}

#blog .blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.8rem 0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

#blog .blog-detail-tags {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

#blog .blog-detail-tag {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 600;
  font-size: 0.85rem;
}

#blog .blog-detail-related {
  margin-top: 4.5rem;
}

#blog .blog-detail-related h3 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin-bottom: 2rem;
}

#blog .blog-pagination a,
#blog .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #d6ddeb;
  background: #ffffff;
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border 0.2s ease;
}

#blog .blog-pagination span.current {
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: #ffffff;
  border-color: transparent;
}

#blog .blog-pagination span.disabled {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

#blog .blog-pagination a:hover {
  background: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.35);
}

@media (max-width: 960px) {
  #blog {
    padding: 2.5rem 0 3.5rem;
  }

  #blog .blog-hero-card {
    padding: 2.4rem 2.1rem;
  }

  #blog .blog-search-form {
    flex-direction: column;
    align-items: stretch;
    padding: 1.4rem;
  }

  #blog .blog-search-form input[type="search"],
  #blog .blog-search-form select {
    width: 100%;
    min-width: auto;
  }

  #blog .blog-grid-list {
    gap: 1.4rem;
  }
}

@media (max-width: 540px) {
  #blog .blog-hero h1 {
    font-size: 2.1rem;
  }

  #blog .blog-search-reset {
    justify-content: center;
  }

  #blog .blog-card-body {
    padding: 1.35rem 1.35rem 1.55rem;
  }

  #blog .blog-detail-title {
    font-size: 1.9rem;
  }

  #blog .blog-detail-content {
    font-size: 1rem;
  }
}

#blog .blog-detail-article {
  padding-top: 2rem;
}

#blog .blog-detail-article .wrapper {
  max-width: 960px;
}
