/* Research & Development page enhancements */
/* Preserves existing font sizes while modernizing the UI */

.research-area {
  scroll-margin-top: 80px;
}

/* Main content container */
.research-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Modern carousel styling */
.research-carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  margin-bottom: 3rem;
  position: relative;
}

.research-carousel .carousel-inner {
  border-radius: 20px;
}

.research-carousel .carousel-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Carousel controls styling */
.research-carousel .carousel-control {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.research-carousel .carousel-control:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px var(--primary-shadow);
}

.research-carousel .carousel-control.left {
  left: 20px;
}

.research-carousel .carousel-control.right {
  right: 20px;
}

.research-carousel .carousel-control .glyphicon {
  color: white;
  font-size: 18px;
}

/* Carousel indicators */
.research-carousel .carousel-indicators {
  bottom: 15px;
}

.research-carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin: 0 4px;
}

.research-carousel .carousel-indicators .active {
  background-color: var(--primary-color);
  border-color: white;
}

/* Section title styling */
.research-title {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.research-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Content paragraphs */
.research-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #444;
}

.research-content p strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Modern list styling for research benefits */
.research-benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.research-benefits li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary-color-ultra-light), rgba(255,255,255,0.8));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.research-benefits li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.research-benefits li:hover::before {
  transform: scaleX(1);
}

.research-benefits li:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-color-light), rgba(255,255,255,0.9));
}

/* Icon styling for benefits */
.research-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary-gradient);
  box-shadow: 0 3px 10px var(--primary-shadow);
  font-size: 18px;
}

.research-text {
  flex: 1;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
}

/* Innovation highlight box */
.innovation-highlight {
  background: linear-gradient(135deg, var(--primary-color-ultra-light), rgba(255,255,255,0.9));
  border-radius: 16px;
  padding: 24px;
  margin: 2.5rem 0;
  border-left: 4px solid var(--primary-color);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.innovation-highlight::before {
  content: '💡';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 24px;
  background: white;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (min-width: 768px) {
  .research-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .research-benefits li {
    padding: 20px 22px;
  }
}

@media (min-width: 992px) {
  .research-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .research-content {
    padding: 0 30px;
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .research-carousel {
    border-radius: 16px;
    margin-bottom: 2rem;
  }
  
  .research-carousel .carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .research-carousel .carousel-control.left {
    left: 15px;
  }
  
  .research-carousel .carousel-control.right {
    right: 15px;
  }
  
  .research-benefits li {
    padding: 16px 18px;
    gap: 14px;
  }
  
  .research-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .research-title {
    margin-top: 2rem;
  }
  
  .innovation-highlight {
    padding: 20px 18px;
    margin: 2rem 0;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .research-carousel {
    border-radius: 12px;
  }
  
  .research-carousel .carousel-control {
    width: 36px;
    height: 36px;
  }
  
  .research-carousel .carousel-control .glyphicon {
    font-size: 16px;
  }
  
  .research-benefits li {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 10px;
  }
  
  .research-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 8px;
  }
  
  .innovation-highlight {
    padding: 18px 16px;
    border-radius: 12px;
  }
  
  .innovation-highlight::before {
    top: -8px;
    right: 16px;
    font-size: 20px;
    padding: 6px;
  }
}
