/* Premium component styles: carousel and blog cards */

/* Carousel */
.carousel { 
  position: relative; 
  overflow: hidden; 
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  aspect-ratio: 16 / 9;
}

/* Variant: allow captions by relaxing fixed aspect ratio */
.carousel.has-captions {
  aspect-ratio: auto;
}

.carousel-track { 
  display: flex; 
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide { 
  min-width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel.has-captions .carousel-slide img {
  height: auto;
  max-height: 500px;
}

.carousel-caption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.carousel-btn { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229,236,232,0.8);
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  cursor: pointer; 
  line-height: 48px; 
  text-align: center;
  font-size: 1.5rem;
  color: #0f2b2d;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-btn:hover { 
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots { 
  position: absolute; 
  bottom: 20px; 
  left: 0; 
  right: 0; 
  display: flex; 
  justify-content: center; 
  gap: 10px;
}

.carousel-dots .dot { 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: rgba(207,224,216,0.6);
  border: none; 
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
  background: rgba(207,224,216,0.9);
  transform: scale(1.2);
}

.carousel-dots .dot.active { 
  background: #2c7a4d;
  width: 24px;
  border-radius: 5px;
}

/* Blog */
.blog-card { 
  background: #ffffff; 
  border: 1px solid #eef2f0; 
  border-radius: 32px; 
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2c7a4d, #0f2b2d);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card:hover { 
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: #cde0d8;
}

.blog-card h3 { 
  margin-bottom: 0.75rem;
  color: #0f2b2d;
  font-size: 1.35rem;
  font-weight: 600;
}

.blog-excerpt { 
  color: #3a4a4f; 
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-meta { 
  font-size: 0.9rem; 
  color: #6c7a71;
  font-weight: 500;
}
