/* Research & Commentary Page Styles */
/* Google Fonts imported in custom-head.html */

.research-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.research-page {
  font-family: 'IBM Plex Sans', sans-serif;
  background: white;
}

/* Hero Section */
.hero-featured {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 5rem 0 3rem;
  border-bottom: 1px solid #e0e0e0;
}

.hero-featured .hero-content {
  width: 95%;
  max-width: 1680px;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 2rem;
}

.hero-featured .page-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 300;
  color: #161616;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-featured .hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #525252;
  max-width: 100%;
  text-align: left;
  margin-top: 1rem;
}

.hero-featured .page-title .ampersand {
  font-style: italic;
}

/* Featured Banner */
.featured-banner {
  width: 95%;
  max-width: 1680px;
  margin: 0 auto 2rem;
}

.featured-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #005EA2;
  color: white;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Featured Container */
.featured-container {
  width: 95%;
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1px 1fr;
  gap: 3rem;
}

.featured-main {
  padding-right: 2rem;
}

.featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: none;
}

.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background: #e0e0e0;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-type {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #005EA2;
  font-weight: 600;
}

.featured-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #161616;
  line-height: 1.3;
  margin: 0;
  text-decoration: none;
}

.featured-link:hover .featured-title {
  text-decoration: underline;
}

.featured-description {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #525252;
  margin: 0;
}

.date {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  color: #6f6f6f;
  margin: 0;
}

.author {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  color: #6f6f6f;
  margin: 0;
}

/* Vertical Divider */
.featured-divider {
  width: 1px;
  background: #e0e0e0;
}

/* Sidebar Featured */
.featured-sidebar {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-item {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2rem;
}

.sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-link {
  display: flex;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: none;
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-content h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #161616;
  line-height: 1.4;
  margin: 0;
  text-decoration: none;
}

.sidebar-link:hover h3 {
  text-decoration: underline;
}

.sidebar-image {
  width: 240px;
  height: 135px;
  object-fit: cover;
  background: #e0e0e0;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Search Section */
.search-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: white;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.search-container-wrapper {
  width: 95%;
  max-width: 1680px;
  margin: 0 auto;
}

/* Search Bar */
.search-bar-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #005EA2;
}

.search-button {
  padding: 1rem 1.5rem;
  background: #005EA2;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-button:hover {
  background: #004785;
}

/* Topic Filters */
.topic-filters-section {
  margin-bottom: 2rem;
}

.filters-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6f6f6f;
  margin-bottom: 1rem;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topic-filter {
  padding: 0.625rem 1.25rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #161616;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-filter:hover {
  border-color: #005EA2;
  color: #005EA2;
  transform: translateY(-2px);
}

.topic-filter.active {
  background: #005EA2;
  border-color: #005EA2;
  color: white;
}

/* Active Filters Banner */
.active-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.active-filter-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6f6f6f;
}

.active-filter-tag {
  padding: 0.375rem 0.875rem;
  background: #005EA2;
  color: white;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'IBM Plex Sans', sans-serif;
}

.per-page-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: #525252;
}

.per-page-select {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.per-page-select:focus {
  outline: none;
  border-color: #005EA2;
}

/* Content Stream */
.content-stream {
  padding: 3rem 2rem;
  background: #f8f8f8;
  width: 95%;
  max-width: 1680px;
  margin: 0 auto;
}

.results-header {
  margin-bottom: 2rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: #525252;
}

.content-item {
  display: block;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.content-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #005EA2;
}

.content-item-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  height: 250px;
}

.content-image {
  width: 300px;
  height: 250px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #005EA2 0%, #004785 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-meta-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-body h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #161616;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.content-item:hover .content-body h3 {
  text-decoration: underline;
}

.excerpt {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #525252;
  margin-bottom: 1rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-tag {
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #525252;
  font-weight: 500;
}

/* Pagination Buttons Wrapper */
.pagination-buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-button {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: #161616;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
}

.page-button:hover:not(:disabled) {
  border-color: #005EA2;
  color: #005EA2;
}

.page-button.active {
  background: #005EA2;
  border-color: #005EA2;
  color: white;
}

.page-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0.5rem;
  color: #6f6f6f;
}

/* Responsive styles */
@media (max-width: 968px) {
  .featured-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-divider {
    display: none;
  }

  .featured-main {
    padding-right: 0;
  }

  .featured-sidebar {
    padding-left: 0;
  }

  .sidebar-link {
    flex-direction: column;
  }

  .sidebar-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .sidebar-item:first-child {
    padding-top: 2rem;
  }

  .content-item-inner {
    grid-template-columns: 1fr;
    height: auto;
  }

  .content-image {
    width: 100%;
    height: 250px;
  }

  .content-meta-body {
    flex-direction: column;
  }

  .featured-image {
    height: 350px;
  }

  .active-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .per-page-selector {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .search-bar-row {
    flex-direction: column;
  }

  .topic-filters {
    gap: 0.5rem;
  }

  .topic-filter {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .featured-image {
    height: 300px;
  }

  .pagination-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}
