/* ============================================================
   ABIMBS RESEARCH & INSIGHTS — research.css
   Handles: landing page, article page, article cards,
   theme filters, TOC, share buttons, related articles.
   Does NOT override any classes from styles.css.
   Follows the existing colour palette:
     Navy   #003366
     Blue   #1261A0
     Mid    #1F456E
     White  #ffffff
     Light  #f4f6f9
============================================================ */

/* ── Shared utilities ─────────────────────────────────────── */

.research-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1261A0;
  margin-bottom: 12px;
}

.research-theme-badge {
  display: inline-block;
  background: #e8f0fa;
  color: #1261A0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.research-reading-time {
  font-size: 0.78rem;
  color: #6b7280;
  font-family: 'Space Mono', monospace;
}

.research-read-link {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1261A0;
  margin-top: 12px;
  transition: color 0.2s;
}

/* Skeleton loaders */
.research-skeleton {
  background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}
.research-skeleton-title { height: 32px; width: 80%; }
.research-skeleton-text  { height: 16px; }
.research-skeleton-text.short { width: 55%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.research-card-skeleton {
  border-radius: 12px;
  border: 1px solid #e5e9ef;
  height: 360px;
  background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.research-error {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  padding: 60px 20px;
}

/* ── HERO ─────────────────────────────────────────────────── */

.research-hero {
  background: #003366;
  padding: 80px 0 72px;
  text-align: center;
}

.research-hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7db3e8;
  margin-bottom: 16px;
}

.research-hero h1 {
  font-family: 'MuseoModerno', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.1;
}

.research-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #b8cfe8;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.research-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.research-cta-primary {
  display: inline-block;
  background: #1261A0;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.research-cta-primary:hover { background: #0d4e88; }

.research-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1261A0;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid #1261A0;
  transition: all 0.2s;
}
.research-cta-secondary:hover { background: #1261A0; color: #fff; }

/* ── FEATURED ARTICLE ─────────────────────────────────────── */

.research-featured-section {
  background: #fff;
  padding: 60px 0 40px;
}

.research-featured-card {
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.research-featured-card-loaded {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  box-shadow: 0 4px 20px rgba(0,51,102,0.08);
}
.research-featured-card-loaded:hover {
  box-shadow: 0 8px 32px rgba(0,51,102,0.13);
}

.research-featured-image-col { overflow: hidden; }
.research-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.research-featured-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.research-featured-img-placeholder span {
  font-family: 'MuseoModerno', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.research-featured-content-col {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.research-featured-title {
  font-family: 'MuseoModerno', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #003366;
  line-height: 1.25;
  margin: 12px 0 8px;
}

.research-featured-subtitle {
  font-size: 0.95rem;
  color: #4a6585;
  font-style: italic;
  margin-bottom: 12px;
}

.research-featured-excerpt {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 16px;
}

.research-featured-placeholder { padding: 40px; }

/* ── GRID SECTION ─────────────────────────────────────────── */

.research-grid-section {
  background: #f4f6f9;
  padding: 60px 0 80px;
}

.research-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Theme filter pills */
.research-theme-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.research-theme-filters::-webkit-scrollbar { display: none; }

.research-theme-pill {
  background: #fff;
  border: 1.5px solid #d1d9e6;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  font-family: inherit;
}
.research-theme-pill:hover,
.research-theme-pill.active {
  background: #1261A0;
  border-color: #1261A0;
  color: #fff;
}

/* Article grid */
.research-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Article card */
.research-card {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.research-card:hover {
  box-shadow: 0 8px 28px rgba(0,51,102,0.12);
  transform: translateY(-3px);
}

.research-card-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.research-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.research-card:hover .research-card-image { transform: scale(1.04); }

.research-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  aspect-ratio: 16 / 9;
}
.research-card-image-placeholder span {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

.research-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.research-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.research-card-title {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #003366;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card-subtitle {
  font-size: 0.82rem;
  color: #4a6585;
  font-style: italic;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card-excerpt {
  font-size: 0.87rem;
  color: #4b5563;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.research-card-author,
.research-card-date {
  font-size: 0.76rem;
  color: #9ca3af;
}

/* Load more */
.research-load-more-wrap {
  text-align: center;
  margin-top: 40px;
}
.research-load-more-btn {
  background: #fff;
  border: 2px solid #1261A0;
  color: #1261A0;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.18s;
  font-family: inherit;
}
.research-load-more-btn:hover { background: #1261A0; color: #fff; }

/* Empty state */
.research-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

/* ── PULL STATS ───────────────────────────────────────────── */

.research-stats-section {
  background: #003366;
  padding: 60px 0;
}

.research-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.research-stat strong {
  display: block;
  font-family: 'MuseoModerno', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}

.research-stat span {
  font-size: 0.88rem;
  color: #7db3e8;
  line-height: 1.5;
}

/* ── NEWSLETTER ───────────────────────────────────────────── */

.research-newsletter-section {
  background: #fff;
  padding: 60px 0;
}

.research-newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.research-newsletter-inner h2 {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 10px;
}

.research-newsletter-inner p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 24px;
  line-height: 1.6;
}

.research-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.research-newsletter-form input {
  flex: 1;
  min-width: 220px;
  border: 1.5px solid #d1d9e6;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-family: inherit;
}
.research-newsletter-form input:focus {
  outline: none;
  border-color: #1261A0;
}

.research-newsletter-form button {
  background: #1261A0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 24px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 0.2s;
}
.research-newsletter-form button:hover { background: #0d4e88; }

.research-newsletter-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 12px;
}

/* ── EXPLORE BY THEME ─────────────────────────────────────── */

.research-themes-section {
  background: #f4f6f9;
  padding: 60px 0 80px;
}

.research-themes-sub {
  color: #4b5563;
  margin-bottom: 32px;
}

.research-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.research-theme-card {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.research-theme-card:hover {
  box-shadow: 0 6px 24px rgba(0,51,102,0.1);
  transform: translateY(-2px);
}

.research-theme-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.research-theme-card h3 {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 6px;
}

.research-theme-card p {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════════════════════ */

/* Breadcrumb */
.research-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.82rem;
  color: #6b7280;
  flex-wrap: wrap;
}
.research-breadcrumb a { color: #1261A0; text-decoration: none; }
.research-breadcrumb a:hover { text-decoration: underline; }

/* Article hero */
.research-article-hero {
  background: #f4f6f9;
  padding: 48px 0 40px;
  border-bottom: 1px solid #e5e9ef;
}

.research-article-hero-inner {
  max-width: 760px;
}

.research-article-title {
  font-family: 'MuseoModerno', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #003366;
  line-height: 1.2;
  margin: 14px 0 10px;
}

.research-article-subtitle {
  font-size: 1.05rem;
  color: #4a6585;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
}

.research-article-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 12px;
  flex-wrap: wrap;
}
.research-byline-sep { color: #d1d9e6; }

.research-article-hero-img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 32px;
}

/* Share row */
.research-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.research-share-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.research-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #d1d9e6;
  color: #374151;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
}
.research-share-btn:hover { background: #1261A0; border-color: #1261A0; color: #fff; }

/* Article layout */
.research-article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: start;
}

/* Desktop TOC */
.research-article-toc-desktop {
  position: sticky;
  top: 96px;
  padding: 20px 16px;
  background: #f4f6f9;
  border-radius: 10px;
  border: 1px solid #e5e9ef;
}
.research-toc-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 12px;
}
.research-toc-link {
  display: block;
  font-size: 0.82rem;
  color: #4b5563;
  text-decoration: none;
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-bottom: 2px;
  transition: all 0.15s;
  line-height: 1.4;
}
.research-toc-link:hover,
.research-toc-link.active {
  color: #1261A0;
  border-left-color: #1261A0;
}

/* Mobile TOC */
.research-toc-mobile {
  margin: 24px 0 -16px;
}
.research-toc-mobile details {
  background: #f4f6f9;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  padding: 12px 16px;
}
.research-toc-mobile summary {
  font-size: 0.85rem;
  font-weight: 700;
  color: #003366;
  cursor: pointer;
  user-select: none;
}
.research-toc-mobile nav {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}
.research-toc-mobile .research-toc-link { border-left: none; padding-left: 0; }

/* Article body content */
.research-article-body { min-width: 0; }

.research-article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #1f2937;
  max-width: 680px;
}

.research-article-content h2 {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #003366;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.research-article-content h3 {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F456E;
  margin: 32px 0 12px;
}

.research-article-content p {
  margin-bottom: 20px;
}

.research-article-content strong {
  color: #003366;
  font-weight: 700;
}

.research-article-content ul,
.research-article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.research-article-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.research-article-content blockquote {
  border-left: 4px solid #1261A0;
  margin: 32px 0;
  padding: 16px 24px;
  background: #f0f5fb;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: #1F456E;
  line-height: 1.6;
}

.research-article-content a {
  color: #1261A0;
  text-decoration: underline;
}

.research-article-content hr {
  border: none;
  border-top: 1px solid #e5e9ef;
  margin: 40px 0;
}

/* About section */
.research-about-section {
  background: #f4f6f9;
  padding: 32px 0;
  border-top: 1px solid #e5e9ef;
  border-bottom: 1px solid #e5e9ef;
}
.research-about-inner {
  max-width: 680px;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.65;
}

/* CTA row */
.research-cta-section { padding: 40px 0; }
.research-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Related articles */
.research-related-section {
  background: #f4f6f9;
  padding: 60px 0;
}
.research-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* Prev / next */
.research-prev-next {
  padding: 24px 0 48px;
}
.research-back-link {
  font-size: 0.88rem;
  color: #1261A0;
  text-decoration: none;
  font-weight: 600;
}
.research-back-link:hover { text-decoration: underline; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .research-article-grid { grid-template-columns: repeat(2, 1fr); }
  .research-themes-grid  { grid-template-columns: repeat(2, 1fr); }
  .research-stats-grid   { grid-template-columns: repeat(3, 1fr); }
  .research-featured-card-loaded { grid-template-columns: 1fr 1fr; }
  .research-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .research-article-toc-desktop { display: none; }
  .research-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .research-hero { padding: 56px 0 48px; }
  .research-article-grid { grid-template-columns: 1fr; }
  .research-themes-grid  { grid-template-columns: 1fr 1fr; }
  .research-stats-grid   { grid-template-columns: 1fr; gap: 32px; }
  .research-featured-card-loaded {
    grid-template-columns: 1fr;
  }
  .research-featured-content-col { padding: 28px 24px 32px; }
  .research-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .research-themes-grid { grid-template-columns: 1fr; }
  .research-cta-row { flex-direction: column; align-items: stretch; }
  .research-cta-row a { text-align: center; }
}
