/* ── VittSeva Custom CSS ───────────────────────────────────────────────── */

/* Hero background texture (SVG kept in CSS to avoid Hugo template quote-escaping issues) */
.vs-hero-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Anchor offset for sticky nav */
[id] { scroll-margin-top: 80px; }

/* Prose overrides for service content */
.vs-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e6b78;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8f7fa;
}
.vs-content h3, .vs-content h4 {
  color: #1e293b;
  margin-top: 1.5rem;
}
.vs-content h4 {
  color: #38a7bb;
  font-weight: 700;
}
.vs-content ul {
  list-style: none;
  padding-left: 0;
}
.vs-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}
.vs-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38a7bb;
}
.vs-content hr {
  border-color: #e8f7fa;
  margin: 2.5rem 0;
}
.vs-content strong {
  color: #1e293b;
  font-weight: 600;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination styling */
.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  transition: all 0.15s;
  text-decoration: none;
}
.pagination li a:hover {
  background: #e8f7fa;
  color: #38a7bb;
  border-color: #38a7bb;
}
.pagination li.active span {
  background: #38a7bb;
  color: white;
  border-color: #38a7bb;
}

/* Nav active underline */
nav a.active-link {
  color: #38a7bb;
}

/* Team section anchor cards */
.anchor { display: block; }

/* ── Services page specific ────────────────────────────────────────────── */

/* Anchor offset accounts for sticky nav + service strip */
.vs-services-content [id] { scroll-margin-top: 120px; }

/* Each service block as a card */
.vs-services-content h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #1e6b78;
  margin-top: 3rem;
  margin-bottom: 0;
  padding: 1.25rem 1.5rem 1rem;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(to right, #f0fbfd, #ffffff);
  border-left: 4px solid #38a7bb;
  border-top: 1px solid #e8f7fa;
  border-right: 1px solid #e8f7fa;
}
.vs-services-content h2:first-child { margin-top: 0; }

/* Sub-heading (h4) — tagline style */
.vs-services-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #38a7bb;
  margin-top: 0;
  padding: 0.5rem 1.5rem 1rem;
  background: #f0fbfd;
  border-left: 4px solid #38a7bb;
  border-right: 1px solid #e8f7fa;
}

/* Paragraphs inside service block */
.vs-services-content p {
  padding: 0 1.5rem;
  color: #4a5568;
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* Lists inside service block */
.vs-services-content ul {
  padding: 0 1.5rem 0.75rem 1.5rem;
  background: #ffffff;
  list-style: none;
}
.vs-services-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.6;
}
.vs-services-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38a7bb;
  flex-shrink: 0;
}

/* Bottom of each service card */
.vs-services-content hr {
  margin: 0 1.5rem 0;
  padding-bottom: 1.5rem;
  border: none;
  border-top: 1px solid #e8f7fa;
  background: #ffffff;
}

/* Wrap h2 + content in a card using adjacent siblings */
.vs-services-content > * {
  background: #ffffff;
  border-left: 1px solid #e8f7fa;
  border-right: 1px solid #e8f7fa;
}
.vs-services-content > .anchor + * { border-top: none; }
.vs-services-content > hr { border-left: 1px solid #e8f7fa; border-right: 1px solid #e8f7fa; border-radius: 0 0 1rem 1rem; margin: 0; padding-bottom: 1rem; }
.vs-services-content > hr + .anchor { margin-top: 2rem; }

/* ── Service sidebar active state ──────────────────────────────────────── */
.vs-service-nav-link.is-active {
  background: #e8f7fa;
  color: #1e6b78;
  font-weight: 600;
}
.vs-service-nav-link.is-active .vs-nav-icon {
  background: #38a7bb !important;
}
.vs-service-nav-link.is-active .vs-nav-icon i {
  color: #ffffff !important;
}

/* Shadow utilities (Tailwind CDN may not include arbitrary values) */
.shadow-card { box-shadow: 0 2px 16px 0 rgba(30,107,120,0.08); }
.shadow-cardHover { box-shadow: 0 8px 32px 0 rgba(30,107,120,0.16); }

/* ── Contact page ──────────────────────────────────────────────────────── */

/* Remove default prose margins from the short intro paragraph */
.vs-contact-intro p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4a5568;
}

/* Zoho iframe wrapper — ensures no white gap below iframe */
.vs-zoho-frame-wrap {
  background: #ffffff;
}
.vs-zoho-frame-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ── About page ────────────────────────────────────────────────────────── */

/* Story section paragraphs */
#vs-story p {
  color: #4a5568;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* Team cards bio text */
.vs-team-card p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.75;
}

/* Team card scroll-margin so anchor links clear the sticky nav */
.vs-team-card[id] {
  scroll-margin-top: 100px;
}
