/* Insights & resources hub — page-specific (uses Phillips-web.css) */

/* Mobile nav (matches service pages) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-inner .nav-links {
    display: none !important;
  }

  .nav-inner .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    z-index: 300;
    box-shadow: var(--shadow);
  }
}

.nav-inner {
  position: relative;
}

/* Insights / article heroes: same shell as services / about (not shorter) */
.insights-hero-compact.about-hero {
  min-height: 55vh;
  padding: var(--hero-pad) !important;
}

.insights-hero-compact.about-hero h1 {
  padding-top: 60px;
}

.insights-hero-compact.about-hero .about-hero-p {
  margin-top: 20px;
  margin-bottom: 0;
}

/* Hero anchor nav */
.insights-hub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hub-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.88);
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hub-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-3px) rotate(-1deg) scale(1.04);
}

.hub-nav-link:nth-child(even):hover {
  transform: translateY(-3px) rotate(1deg) scale(1.04);
}

.insights-recent {
  background:
    radial-gradient(ellipse 85% 55% at 18% 40%, rgba(200, 146, 42, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 70%, rgba(30, 86, 168, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #fdfcfa 0%, #f6f8fb 42%, #faf9f7 100%);
  padding: var(--section-y) 0;
}

.insights-recent-head {
  margin-bottom: 10px;
}

.insights-carousel-section-header {
  margin: 0 auto 6px;
  max-width: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.insights-carousel-title {
  margin: 0 auto 8px;
  max-width: 780px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 1.4vw, 1.2rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

.insights-carousel-title-link,
.insights-carousel-title-link:visited,
.insights-carousel-title-link:active {
  color: inherit;
  text-decoration: none;
}

.insights-carousel-title-link:hover,
.insights-carousel-title-link:focus-visible {
  color: var(--blue-mid);
  text-decoration: none;
}

.insights-recent-carousel {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 6px;
  max-width: 860px;
  margin: 0 auto;
}

.insights-carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.insights-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.insights-carousel-slide {
  flex: 0 0 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.insights-carousel-media {
  display: block;
  position: relative;
  min-height: 200px;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
}

.insights-carousel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.insights-carousel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.06) 35%, rgba(10, 20, 36, 0.82) 100%);
  pointer-events: none;
}

.insights-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(11, 43, 92, 0.95), rgba(30, 86, 168, 0.88));
  color: #fff;
}

.insights-media-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.insights-carousel-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--blue-mid);
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.insights-carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.insights-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
}

.insights-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(11, 43, 92, 0.22);
  cursor: pointer;
}

.insights-carousel-dot.is-active {
  background: var(--gold);
}

@keyframes insights-blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -8px) scale(1.05); }
  66% { transform: translate(-10px, 6px) scale(0.98); }
}

@keyframes insights-hero-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ── “Mingle” band: articles | rail | products (laptop side-by-side) ── */
.insights-mingle {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background:
    radial-gradient(ellipse 85% 55% at 18% 40%, rgba(200, 146, 42, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 70%, rgba(30, 86, 168, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #fdfcfa 0%, #f6f8fb 42%, #faf9f7 100%);
}

.insights-fun-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.insights-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: none;
}

.insights-blob--1 {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  background: rgba(228, 85, 85, 0.2);
  top: 8%;
  left: -5%;
  animation-delay: 0s;
}

.insights-blob--2 {
  width: min(220px, 35vw);
  height: min(220px, 35vw);
  background: rgba(30, 86, 168, 0.15);
  bottom: 15%;
  right: -3%;
  animation-delay: -6s;
}

.insights-blob--3 {
  width: min(180px, 28vw);
  height: min(180px, 28vw);
  background: rgba(200, 146, 42, 0.18);
  top: 40%;
  right: 20%;
  animation-delay: -12s;
}

.insights-mingle .container {
  position: relative;
  z-index: 1;
}

.insights-hero-pop {
  animation: none;
}

.insights-mingle-whisper {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.insights-mingle-cols {
  display: block;
}

.insights-mingle-label {
  margin-bottom: 14px;
}

.insights-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: rgba(21, 63, 128, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.insights-pill--alt {
  color: #8b3a3a;
  background: rgba(228, 85, 85, 0.1);
}

.insights-mingle-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 8px;
}

.insights-mingle-h2 em {
  font-style: italic;
  color: var(--gold);
}

.insights-mingle-dek {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 36ch;
}

.insights-article-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Show only 2 rows by default (desktop: 4 cards). */
.insights-article-stack:not(.is-expanded) .insights-article-card:nth-child(n+5) {
  display: none;
}

@media (max-width: 900px) {
  .insights-article-stack {
    grid-template-columns: 1fr;
  }

  /* Show only 2 rows by default (mobile: 2 cards). */
  .insights-article-stack:not(.is-expanded) .insights-article-card:nth-child(n+3) {
    display: none;
  }
}

.insights-article-card--soft {
  border-radius: 18px;
  border: 1px solid rgba(11, 43, 92, 0.06);
  box-shadow: 0 10px 36px rgba(11, 43, 92, 0.06);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.insights-card--tilt-1 {
  transform: rotate(-0.65deg);
}

.insights-card--tilt-2 {
  transform: rotate(0.5deg);
}

.insights-card--tilt-3 {
  transform: rotate(-0.35deg);
}

.insights-card--tilt-4 {
  transform: rotate(0.55deg);
}

.insights-article-card--soft:hover,
.insights-card--tilt-1:hover,
.insights-card--tilt-2:hover,
.insights-card--tilt-3:hover,
.insights-card--tilt-4:hover {
  transform: none;
  box-shadow: 0 10px 36px rgba(11, 43, 92, 0.06);
}

.insights-product-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insights-product-card--compact {
  min-height: 0;
  padding: 22px 22px 20px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(11, 43, 92, 0.18);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.insights-product-card--compact h3 {
  font-size: 1.35rem;
}

.insights-product-card--compact p {
  font-size: 15px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .insights-product-card--compact:nth-child(1) {
    transform: rotate(-0.35deg);
  }

  .insights-product-card--compact:nth-child(3) {
    transform: rotate(0.35deg);
  }

  .insights-product-card--compact:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.01);
    box-shadow: 0 18px 40px rgba(11, 43, 92, 0.22);
  }
}

/* Careers & extras: lighter strips */
.insights-strip-careers .section-header {
  margin-bottom: 20px;
}

.insights-strip-careers .section-h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.insights-strip-careers .insights-job-card {
  border-radius: 16px;
}

.insights-strip-extras {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.insights-strip-extras .insights-hub-lead {
  max-width: 48ch;
}

/* Section shells */
.insights-hub-section {
  padding: var(--section-y) 0;
}

.insights-hub-section:nth-child(even) {
  background: var(--off-white);
}

.insights-hub-section .section-header {
  margin-bottom: var(--section-header-gap);
}

.insights-hub-section .section-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.insights-hub-section .section-h2 em {
  font-style: italic;
  color: var(--gold);
}

.insights-hub-lead {
  max-width: 560px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* Content cards */
.insights-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insights-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 28px;
  padding: 0;
}

.insights-category-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.insights-category-btn:hover {
  color: var(--gold);
  border-color: rgba(200, 146, 42, 0.45);
}

.insights-category-btn.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(200, 146, 42, 0.08);
}

.insights-category-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Article grid */
.insights-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.insights-article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.insights-hub-section:nth-child(even) .insights-article-card {
  background: #fff;
  box-shadow: 0 4px 24px rgba(11, 43, 92, 0.04);
}

.insights-article-card:hover {
  border-color: var(--border);
  box-shadow: none;
}

.insights-article-card__thumb-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.insights-article-card__thumb-slot {
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
}

.insights-article-card__excerpt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.insights-article-card__excerpt p {
  margin-top: 0;
}

.insights-article-thumb {
  width: 92px;
  height: 72px;
  border-radius: 8px;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  display: block;
  box-sizing: border-box;
  flex-shrink: 0;
}

.insights-article-thumb--title {
  background: linear-gradient(135deg, rgba(11, 43, 92, 0.95), rgba(30, 86, 168, 0.85));
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.1;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.insights-article-card--with-thumb {
  /* thumbs live in .insights-article-card__thumb-slot; no extra side padding */
  min-height: 0;
}

.insights-article-card--with-thumb .insights-article-thumb {
  position: static;
}

.insights-articles-more {
  margin-top: 18px;
}

#insights-see-more-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue-mid);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

#insights-see-more-btn:hover {
  color: var(--gold);
}

.insights-article-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

.insights-article-title-link {
  color: inherit;
  text-decoration: none;
}

.insights-article-title-link:hover {
  color: var(--gold);
}

.insights-article-card__thumb-link {
  display: block;
  text-decoration: none;
}

.insights-article-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  margin-bottom: 18px;
}

.insights-article-card__excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.65em * 2);
  margin-bottom: 8px;
}

.insights-article-card__excerpt .insights-card-link {
  margin-top: 0;
  align-self: flex-start;
}

.insights-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.insights-card-link:hover {
  color: var(--gold);
}

/* Jobs */
.insights-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.insights-job-card {
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}

.insights-job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--blue-light));
  opacity: 0.85;
}

.insights-job-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 8px;
}

.insights-job-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  padding-left: 8px;
}

.insights-job-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
  padding-left: 8px;
}

.insights-jobs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  align-items: center;
}

/* Products */
.insights-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.insights-product-card {
  border-radius: 10px;
  padding: 32px 28px;
  color: #fff;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.insights-product-card--polats {
  background: linear-gradient(135deg, #0B2B5C 0%, #1E56A8 100%);
}

.insights-product-card--pems {
  background: linear-gradient(135deg, #153F80 0%, #0B2B5C 100%);
}

.insights-product-card--polac {
  background: linear-gradient(135deg, #1a3d6e 0%, #2a5a9e 100%);
}

.insights-product-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.insights-product-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}

.insights-product-card p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  flex: 1;
  margin-bottom: 20px;
}

.insights-product-card .btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 12px 22px;
  border-radius: 4px;
  align-self: flex-start;
  transition: background 0.2s, border-color 0.2s;
}

.insights-product-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* More resources */
.insights-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.insights-more-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.insights-hub-section:nth-child(even) .insights-more-card {
  background: #fff;
}

.insights-more-card:hover {
  border-color: rgba(228, 85, 85, 0.35);
  transform: translateY(-2px);
}

.insights-more-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.insights-more-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.insights-more-card a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.insights-more-card a:hover {
  color: var(--gold);
}

.about-hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
  text-align: center;
}

.about-hero-h1 em {
  font-style: italic;
  color: var(--gold);
}

.about-hero-inner {
  text-align: center;
}

.about-hero-p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .insights-recent-carousel {
    grid-template-columns: 1fr;
  }

  .insights-carousel-nav {
    display: none;
  }

  .insights-carousel-media {
    min-height: 180px;
  }

  .insights-hub-section {
    padding: var(--section-y) 0;
  }

  .insights-hero-compact.about-hero {
    padding: var(--hero-pad) !important;
  }

  .insights-hub-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-nav-link {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insights-blob,
  .insights-hero-pop {
    animation: none;
  }

  .hub-nav-link:hover {
    transform: none;
  }

  .insights-card--tilt-1,
  .insights-card--tilt-2,
  .insights-card--tilt-3,
  .insights-card--tilt-4 {
    transform: none;
  }
}
