/* ============================================
   ARTICLES / NEWS & INSIGHTS PAGE STYLES
   ============================================ */

/* ========== HERO BANNER ========== */
.articles-hero {
  position: relative;
  background: var(--navy);
  min-height: clamp(350px, 38vw, 450px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.articles-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.articles-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.90) contrast(1.05);

  transform: translateZ(0);
  backface-visibility: hidden;
}

.articles-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(11,28,54,0.67) 0%,
    rgba(11,28,54,0.63) 22%,
    rgba(11,28,54,0.42) 45%,
    rgba(11,28,54,0.14) 70%,
    rgba(11,28,54,0.00) 100%
  );
}

.articles-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 28px 44px;
  height: 100%;
}

.articles-hero-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.articles-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

.articles-hero-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.articles-hero-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}


/* ========== MAIN CONTENT ========== */
.articles-main {
  padding: 25px 0 34px;
  background: #fff;
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0b1c36 0%, #1a3558 100%);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(11,28,54,0.2);
}

.featured-label i {
  background: linear-gradient(135deg, #F4C430, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--text-sm);
}

/* ========== FEATURED CARD ========== */
.featured-card {
  display: flex;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(11,28,54,0.14);
  margin-bottom: 24px;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(11,28,54,0.2);
}

.featured-image {
  flex: 0 0 44%;
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--navy);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.04);
}

.featured-logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.article-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--teal);
  color: var(--navy);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.featured-content {
  flex: 1;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 4px solid var(--teal);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--gray-text);
  margin-bottom: 10px;
}

.featured-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.featured-body {
  font-size: var(--text-base);
  color: var(--gray-text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}

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

.author-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
}

.author-role {
  font-size: var(--text-sm);
  color: var(--gray-text);
}

/* ========== SECONDARY GRID ========== */
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
  align-items: start;
}

#article-cards {
  display: none;
}

.article-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ========== ARTICLE CARD ========== */
.article-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.article-card-inner {
  background: #0a0a12;
  min-height: 130px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.article-tag-sm {
  position: static;
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  align-self: flex-start;
}

.article-card-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 12px 0;
}

.card-brand-label {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 6px;
  text-transform: uppercase;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--white);
  flex: 1;
  padding-right: 8px;
}

.read-more {
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.read-more:hover { opacity: 0.75; }


.news-sidebar-col {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.news-sidebar-col > aside {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.news-sidebar-col > aside:hover {
  transform: translateY(-4px);
}

/* Make entire card clickable */
.news-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* ============================================================
   SOCIAL CARDS — unified system (X, LinkedIn, Instagram)
   All three cards share the same fixed dimensions and layout.
   Only colors and icons differ.
   ============================================================ */

/* Shared card shell */
.news-twitter-sidebar,
.news-linkedin-card,
.news-instagram-card {
  width: 100%;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.news-twitter-sidebar:hover,
.news-linkedin-card:hover,
.news-instagram-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

/* Per-card background colors */
.news-twitter-sidebar  { background: linear-gradient(160deg, #0b1c36 0%, #0f2a4a 100%); }
.news-linkedin-card    { background: linear-gradient(160deg, #0a66c2 0%, #004182 100%); }
.news-instagram-card   { background: linear-gradient(160deg, #c13584 0%, #833ab4 50%, #405de6 100%); }

/* Shared header */
.news-social-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.news-social-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  color: #fff;
}

.news-social-icon-box--x        { background: #000; font-family: 'Inter', sans-serif; font-size: 13px; }
.news-social-icon-box--linkedin  { background: #fff; color: #0a66c2; }
.news-social-icon-box--instagram { background: rgba(255,255,255,0.2); }

.news-social-name {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-social-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.70);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Shared body (white center area) */
.news-social-body {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  overflow: hidden;
}

.news-social-big-icon {
  font-size: 22px;
  line-height: 1;
}

.news-social-big-icon--x {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  color: #000;
  font-style: normal;
}

.news-social-big-icon--linkedin  { color: #0a66c2; }

.news-social-big-icon--instagram {
  background: linear-gradient(135deg, #c13584, #833ab4, #405de6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-social-handle {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Shared footer button */
.news-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  letter-spacing: 0.2px;
  flex-shrink: 0;
  transition: background 0.2s;
  white-space: nowrap;
}

.news-social-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Social Tagline (next to Instagram, far right) ── */
.news-social-tagline {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 0 4px;
  gap: 2px;
}

.news-tagline-text {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: right;
  margin: 0;
}

.news-tagline-highlight {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-align: right;
  margin: 0;
  background: linear-gradient(90deg, var(--teal) 0%, #0a66c2 50%, #c13584 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .articles-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-image {
    flex: none;
    min-height: 154px;
  }

  .news-sidebar-col {
    flex-wrap: wrap;
  }

  .news-twitter-sidebar,
  .news-linkedin-card,
  .news-instagram-card {
    flex: 1 1 140px;
  }
}

@media (max-width: 600px) {
  .news-sidebar-col {
    flex-direction: column;
  }

  .news-twitter-sidebar,
  .news-linkedin-card,
  .news-instagram-card {
    height: auto;
    min-height: 160px;
    max-height: none;
  }

  .news-social-tagline {
    margin-left: 0;
    align-items: flex-start;
  }
}
