.research-topbar {
  background: #f6f6f6;
}

.research-navbar {
  padding-top: 18px;
  padding-bottom: 14px;
}

.research-navbar .nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.research-page {
  background: #f6f6f6;
}

.research-shell {
  display: block;
  max-width: var(--container, 1240px);
  margin: 0 auto;
  min-height: 1200px;
}

/* Search Box Styles (Shared across work pages) */
.search-box {
  margin-bottom: 40px;
}

.search-input-wrap {
  position: relative;
  margin-top: 12px;
  display: flex;
  align-items: center;
}

.search-input-wrap input {
  width: 100%;
  height: 38px;
  background: #f4f7fe;
  border: 1px solid #dce8fa;
  border-radius: 999px;
  padding: 0 20px 0 44px;
  /* Space for icon on left */
  font-size: 14px;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.research-sidebar {
  display: none;
}

.sidebar-inner {
  padding: 98px 42px 80px max(160px, calc((100% - 1240px) / 2 + 160px));
  /* Further increased left spacing */
}

.sidebar-title {
  margin: 0 0 32px;
  color: #12279c;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

.filter-card {
  border: 1.4px solid rgba(45, 70, 185, 0.68);
  border-radius: 18px;
  padding: 28px 22px 20px;
  background: rgba(255, 255, 255, 0.08);
}

.filter-label {
  color: #23358f;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 18px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-list li a {
  color: rgba(18, 33, 93, 0.65);
  font-size: 16px;
}

.filter-list li.active a {
  color: #1430a3;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: italic;
}

.square-dot {
  width: 9px;
  height: 9px;
  background: #132aa0;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  position: relative;
}

.sidebar-links::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 5px;
  width: 1px;
  height: 58px;
  background: #2740bb;
}

.sidebar-links li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.line-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.line-dot.filled {
  background: #132aa0;
}

.line-dot.hollow {
  border: 1.5px solid #2740bb;
  background: #dce8fa;
}

.sidebar-links a {
  color: #12309f;
  font-size: 15px;
  line-height: 1.25;
}

.research-content {
  background: #f6f6f6;
}

.research-content-inner {
  padding: 102px 42px 64px 40px;
  /* Adjusted right padding to match nav container */
}

.research-title {
  margin: 0 0 24px;
  color: #11279b;
  font-size: 58px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-family: "Neue Haas Grotesk Display Pro 95 Black", Arial, sans-serif;
}

.research-tabs {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(17, 39, 155, 0.26);
  border-bottom: 1px solid rgba(17, 39, 155, 0.26);
  overflow: hidden;
}

.tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  color: #22338d;
  font-size: 13px;
  font-style: italic;
  border-right: 1px solid rgba(17, 39, 155, 0.26);
}

.tab.active {
  background: linear-gradient(90deg, #B5C4FF 0%, #DCEAFF 100%)
}

.research-intro {
  max-width: 880px;
  margin: 34px 0 42px;
  color: rgba(18, 33, 93, 0.9);
  font-size: 24px;
  line-height: 1.75;
}

.research-section-title {
  margin: 0 0 24px;
  color: #051143;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
}

.featured-essay {
  display: grid;
  grid-template-columns: 1fr 307px;
  background: #11279b;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
}

.featured-image-wrap {
  min-height: 330px;
  background: #d7e2fa;
}

.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-copy {
  padding: 24px 20px 20px;
  color: #fff;
}

.featured-copy h3 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 500;
}

.featured-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 16px;
}

.featured-source {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 400;
}

.featured-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.featured-bottom {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}

.dash-line {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.86);
}

.essay-list {
  margin-top: 8px;
}

.essay-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  min-height: 60px;
  padding: 14px 10px 14px 14px;
  border-bottom: 1px solid rgba(17, 39, 155, 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.essay-row:hover {
  background: linear-gradient(91.16deg, rgba(220, 234, 255, 0) -25.21%, rgba(71, 106, 255, 0.4) 54.52%, rgba(220, 234, 255, 0) 118.82%);
}

.essay-row.active {
  background: linear-gradient(90deg, #DCEAFF 0%, #BDCAFF 50%, #DCEAFF 100%);
}

.essay-row.open {
  background: rgba(17, 39, 155, 0.03);
}

.essay-row-content {
  display: none;
  grid-column: 1 / span 2;
  padding: 14px 0 4px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(18, 33, 93, 0.8);
}

.essay-row.open .essay-row-content {
  display: block;
}

.essay-row-copy h3 {
  margin: 0 0 4px;
  color: #081E79;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.essay-row-copy p {
  margin: 0;
  color: rgba(18, 33, 93, 0.45);
  font-size: 14px;
  line-height: 1.2;
}

.essay-toggle {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #2a3dab;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.research-load-wrap {
  text-align: center;
  margin-top: 42px;
}

.research-load-btn {
  min-width: 124px;
  height: 36px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .research-shell {
    grid-template-columns: 1fr;
  }

  .research-sidebar {
    order: 2;
  }

  .research-content-inner {
    padding: 72px 32px 48px;
  }

  .sidebar-inner {
    padding: 44px 32px 48px;
  }

  .featured-essay {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .research-title {
    font-size: 42px;
  }

  .research-tabs {
    flex-wrap: wrap;
  }

  .tab {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(17, 39, 155, 0.2);
  }

  .featured-copy {
    padding: 20px 16px;
  }

  .featured-source {
    font-size: 16px;
  }

  .essay-row {
    grid-template-columns: 1fr 24px;
    gap: 10px;
  }

  .essay-row-copy h3 {
    font-size: 16px;
  }

  .research-intro {
    font-size: 16px;
  }
}

/* Tab 2 and Tab 3 simple card styling */
.featured-essay-simple {
  background: #ffffff;
  border-radius: 6px;
  padding: 34px 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
  border: 1.2px solid rgba(17, 39, 155, 0.08);
  position: relative;
}

.featured-essay-simple h3 {
  margin: 0 0 12px;
  color: #11279b;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
}

.featured-essay-simple .featured-date {
  font-size: 11px;
  color: rgba(18, 33, 93, 0.55);
  margin-bottom: 20px;
  font-weight: 500;
}

.featured-essay-simple p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(18, 33, 93, 0.85);
}

.featured-essay-simple p:last-of-type {
  margin-bottom: 30px;
}

.featured-essay-simple .featured-bottom {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-essay-simple .read-more-link {
  color: #11279b;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  font-size: 14px;
}

.featured-essay-simple .dash-line {
  background: #11279b;
  display: inline-block;
  width: 16px;
  height: 2px;
}

/* Sidebar Blogs Section */
.sidebar-blogs-card {
  margin-top: 40px;
}

.sidebar-blogs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-blogs-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sidebar-blog-item-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sidebar-blogs-list li a {
  color: rgba(18, 33, 93, 0.8);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.sidebar-blogs-list li a:hover {
  color: #11279b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-blog-date {
  font-size: 11px;
  color: rgba(18, 33, 93, 0.5);
  margin-left: 20px;
  font-family: "Neue Haas Grotesk Display Pro 95 Light", Arial, sans-serif;
  font-weight: 400;
}