/* ============================================================
   home.css — Styles for the Home page
   Extends vitagent.css — overrides/additions only
   ============================================================ */

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #1a1a1a;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

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

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.carousel-btn:hover {
  opacity: 0.85;
}

.carousel-btn--prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.carousel-btn--next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #fff;
}

/* ---------- Home Content Blocks ---------- */
.home-block {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.home-block-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2E8B57;
  border-bottom: 2px solid #2E8B57;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.home-block-body {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* ---------- Contact List ---------- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e4ede8;
}

.contact-card:last-child {
  border-bottom: none;
}

.contact-photo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #eef5f0;
  border: 1px solid #d8e8df;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.contact-detail {
  font-size: 0.88rem;
  color: #666;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .carousel {
    height: 250px;
  }

  .home-block {
    padding: 1.5rem 1rem;
  }

  .contact-photo {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }
}
