.analysis-section {
  padding: 30px 0;
  margin: 12px;
  border: 1px solid gainsboro;
  border-radius: 8px;
}

.section-heading-tabs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
}

.section-heading-left h2 {
  font-weight: bold;
  font-size: 1.5rem;
  color: black;
  margin: 0;
  white-space: nowrap;
}

.section-heading-left hr {
  flex-grow: 1;
  border: none;
  height: 4px;
  background-color: #d00000;
  margin: 0;
  min-width: 120px;
}

.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  color: #d00000;
  font-weight: 600;
  border: none;

  padding: 12px 20px;
  white-space: nowrap;
}

.nav-tabs .nav-link.active {
  color: #a80000;
}

.scroll-container {
  position: relative;
  padding: 0 60px;
}

.scroll-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.analysis-card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border-radius: 15px;
  transition: transform 0.3s;
  flex: 0 0 calc(25% - 15px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.analysis-card:hover {
  transform: translateY(-7px);
}

.analysis-card img {
  width: 100%;
  height: 80%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.analysis-card-body {
  padding: 10px;
  text-align: left;
  flex-grow: 1;
}

.analysis-card-body h5 {
  font-weight: bold;
  font-size: 1rem;
  color: #000;
  margin-bottom: 10px;
}

.analysis-card-body .date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 8px;
}

.analysis-card-body p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #d00000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

.analysis-nav-link {
  padding: 10px 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  background-color: white;
  font-weight: 600;
  color: black;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
  box-shadow: none;
  text-decoration: none;
}

/* Active state */
.analysis-nav-link.active {
  background-color: red;
  color: white;
}
@media (max-width: 992px) {
  .analysis-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .analysis-card {
    flex: 0 0 100%;
  }
}
