/* Trang chủ blog / index landing — tối ưu PC + mobile */

.idx-page {
  --idx-radius: 22px;
  --idx-radius-lg: 28px;
  --idx-shadow: 0 22px 60px rgba(14, 118, 188, 0.14);
  --idx-navy: #001d3d;
  --idx-muted: #5c6b82;
}

.idx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #ecf6fc 45%, #dceef9 100%);
  border-bottom: 1px solid #cfe8f5;
}

.idx-hero::after {
  content: "";
  position: absolute;
  right: -20%;
  top: 10%;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle at 30% 30%, rgba(14, 118, 188, 0.28), transparent 55%);
  pointer-events: none;
}

.idx-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.idx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #094d78;
  background: #fff;
  border: 1px solid #cfe8f5;
  border-radius: 999px;
}

.idx-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0e76bc;
}

.idx-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--idx-navy);
  max-width: 18ch;
}

.idx-lead {
  margin: 0 0 1.35rem;
  font-size: clamp(0.98rem, 2vw, 1.125rem);
  color: var(--idx-muted);
  max-width: 36rem;
  line-height: 1.6;
}

.idx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.idx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  font-weight: 850;
  font-size: 0.9375rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.idx-btn:active {
  transform: scale(0.98);
}

.idx-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0e76bc, #094d78);
  box-shadow: 0 14px 32px rgba(14, 118, 188, 0.35);
}

.idx-btn--primary:hover {
  box-shadow: 0 18px 40px rgba(14, 118, 188, 0.42);
}

.idx-btn--ghost {
  color: #094d78;
  background: #fff;
  border-color: #cfe8f5;
}

.idx-btn--ghost:hover {
  background: #e8f4fb;
}

.idx-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.idx-hero-art svg {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(14, 118, 188, 0.22));
}

.idx-strip {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}

.idx-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.idx-strip a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 88px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #cfe8f5;
  border-radius: var(--idx-radius);
  box-shadow: 0 16px 40px rgba(14, 118, 188, 0.1);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.idx-strip a:hover {
  border-color: #5eb3e0;
  transform: translateY(-3px);
  box-shadow: var(--idx-shadow);
}

.idx-strip-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e8f4fb;
  color: #094d78;
}

.idx-strip-icon svg {
  width: 26px;
  height: 26px;
}

.idx-strip b {
  display: block;
  font-size: 0.95rem;
  color: var(--idx-navy);
}

.idx-strip small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--idx-muted);
  font-weight: 600;
}

.idx-section {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}

.idx-section--alt {
  background: linear-gradient(180deg, #fff 0%, #f6fbff 100%);
  border-top: 1px solid #eef6ff;
  border-bottom: 1px solid #eef6ff;
}

.idx-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.idx-section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: var(--idx-navy);
  letter-spacing: -0.02em;
}

.idx-section-head p {
  margin: 0.35rem 0 0;
  color: var(--idx-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.idx-link-all {
  font-weight: 850;
  font-size: 0.9rem;
  color: #094d78;
  white-space: nowrap;
}

.idx-link-all:hover {
  text-decoration: underline;
}

.idx-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.125rem;
}

.idx-products-grid .product {
  height: 100%;
}

.idx-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.idx-trust-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #cfe8f5;
  border-radius: var(--idx-radius);
  box-shadow: 0 10px 28px rgba(14, 118, 188, 0.08);
}

.idx-trust-item svg {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.idx-trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--idx-navy);
}

.idx-trust-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--idx-muted);
  font-weight: 600;
}

.idx-cta {
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 2rem);
  max-width: min(1220px, 92%);
  background: linear-gradient(135deg, #094d78, #0e76bc);
  color: #fff;
  border-radius: var(--idx-radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--idx-shadow);
}

.idx-cta h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.idx-cta p {
  margin: 0;
  color: #e8f4fb;
  font-size: 0.95rem;
  max-width: 36rem;
}

.idx-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  background: #fff;
  color: #094d78;
  font-weight: 900;
  border-radius: 14px;
}

.idx-blog {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.idx-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.idx-blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid #cfe8f5;
  border-radius: var(--idx-radius);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(14, 118, 188, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idx-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--idx-shadow);
}

.idx-blog-card a {
  color: inherit;
}

.idx-blog-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8f4fb, #f4fafd);
}

.idx-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idx-blog-body {
  padding: 1rem 1.1rem 1.15rem;
}

.idx-blog-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--idx-navy);
}

.idx-blog-meta {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0e76bc;
}

.idx-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #fff;
  border: 1px dashed #b8dcee;
  border-radius: var(--idx-radius);
  color: var(--idx-muted);
}

.idx-empty .idx-btn {
  margin-top: 1rem;
}

.idx-page .pagination {
  margin-top: 1.5rem;
}

.idx-page .pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.idx-page .pagination a,
.idx-page .pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.85rem;
  background: #fff;
  border: 1px solid #cfe8f5;
  border-radius: 12px;
  color: #094d78;
  font-weight: 800;
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .idx-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .idx-hero h1,
  .idx-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .idx-hero-actions {
    justify-content: center;
  }

  .idx-hero-art svg {
    width: min(88%, 360px);
  }

  .idx-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idx-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idx-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .idx-hero-inner {
    text-align: left;
  }

  .idx-hero h1,
  .idx-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .idx-hero-actions {
    justify-content: flex-start;
  }

  .sky-partners__head {
    text-align: left;
  }

  .sky-partners__title,
  .sky-partners__sub {
    text-align: left;
  }

  .sky-partners__sub {
    margin-inline: 0;
  }

  .idx-strip {
    margin-top: 0;
    padding-top: 0.5rem;
  }

  .idx-strip-inner {
    grid-template-columns: 1fr;
  }

  .idx-products-grid {
    grid-template-columns: 1fr;
  }

  .idx-trust {
    grid-template-columns: 1fr;
  }

  .idx-blog-grid {
    grid-template-columns: 1fr;
  }

  .idx-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .idx-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .idx-cta a {
    width: 100%;
  }
}
