/* =====================================================
   Quantum Logistics — Insights Page Stylesheet
   ===================================================== */

/* ─── Hero / Page Header ───────────────────────────── */
.insights-hero {
  position: relative;
  padding-top: clamp(8rem, 15vh, 12rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  background-color: #030303;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insights-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(80%) contrast(120%);
  pointer-events: none;
}

.insights-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.7) 0%, rgba(3, 3, 3, 0.95) 100%);
  pointer-events: none;
}

.insights-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.insights-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3a7bff;
  margin-bottom: 1.25rem;
}

.insights-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #3a7bff;
  border-radius: 50%;
  box-shadow: 0 0 10px #3a7bff;
}

.insights-hero__heading {
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.insights-hero__heading span {
  color: rgba(255, 255, 255, 0.4);
}

.insights-hero__desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* ─── Search & Controls ────────────────────────────── */
.insights-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
}

.insights-search {
  position: relative;
  flex: 1 1 300px;
  max-width: 480px;
}

.insights-search__input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.insights-search__input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #3a7bff;
  box-shadow: 0 0 15px rgba(58, 123, 255, 0.25);
}

.insights-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* ─── Category Filter Tabs ─────────────────────────── */
.insights-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2.5rem 0 1rem;
}

.insights-tab {
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.insights-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.insights-tab.is-active {
  color: #ffffff;
  background: #3a7bff;
  border-color: #3a7bff;
  box-shadow: 0 0 20px rgba(58, 123, 255, 0.4);
}

/* ─── Featured Article Section ─────────────────────── */
.insights-featured-section {
  padding: 4rem 0 3rem;
  background-color: #050505;
}

.insights-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 992px) {
  .insights-featured-card {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.insights-featured-card:hover {
  border-color: rgba(58, 123, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(58, 123, 255, 0.15);
}

.insights-featured-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.insights-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.insights-featured-card:hover .insights-featured-img {
  transform: scale(1.05);
}

.insights-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insights-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.insights-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(58, 123, 255, 0.15);
  border: 1px solid rgba(58, 123, 255, 0.4);
  color: #6fa8ff;
  border-radius: 3px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.insights-featured-title {
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.insights-featured-card:hover .insights-featured-title {
  color: #6fa8ff;
}

.insights-featured-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.insights-featured-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
}

.insights-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.insights-author-name {
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

.insights-author-role {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Articles Grid ────────────────────────────────── */
.insights-grid-section {
  padding: 4rem 0 6rem;
  background-color: #030303;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.insights-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.insights-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58, 123, 255, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(58, 123, 255, 0.1);
}

.insights-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #111;
}

.insights-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.insights-card:hover .insights-card-img {
  transform: scale(1.08);
}

.insights-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insights-card-title {
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.875rem;
  transition: color 0.3s ease;
}

.insights-card:hover .insights-card-title {
  color: #6fa8ff;
}

.insights-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.insights-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.insights-read-more {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #3a7bff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
}

.insights-card:hover .insights-read-more {
  gap: 0.75rem;
  color: #6fa8ff;
}

/* ─── Newsletter CTA Box ───────────────────────────── */
.insights-newsletter {
  margin-top: 5rem;
  padding: 4rem 2.5rem;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid rgba(58, 123, 255, 0.25);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.insights-newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(58, 123, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.insights-newsletter__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.insights-newsletter__title {
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}

.insights-newsletter__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.insights-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .insights-newsletter__form {
    flex-direction: row;
  }
}

.insights-newsletter__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.875rem;
}

.insights-newsletter__input:focus {
  outline: none;
  border-color: #3a7bff;
  background: rgba(255, 255, 255, 0.1);
}

.insights-newsletter__btn {
  padding: 0.875rem 1.75rem;
  background: #3a7bff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.insights-newsletter__btn:hover {
  background: #2563eb;
  box-shadow: 0 0 20px rgba(58, 123, 255, 0.5);
}

/* ─── Pagination / Load More ───────────────────────── */
.insights-load-more {
  text-align: center;
  margin-top: 3.5rem;
}
