/* ============================================================
   Technocrats India — Service Page Styles
   Loaded after main.css on all six service detail pages.
   ============================================================ */

/* Override default page-title size for service page headings */
.page-title { font-size: 42px; }

/* Service content layout */
.service-section { padding: 100px 0; background: var(--white); }
.service-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}
/* service-img now lives above the grid — full container width */
.service-img { border-radius: 8px; margin-bottom: 72px; display: block; width: 100%; }
div.service-img { background: #e8e4df; aspect-ratio: 21/9; }
img.service-img,
video.service-img {
  height: auto;
  border: 1px solid rgba(244,136,58,0.15);
  box-shadow: 0 8px 48px rgba(0,0,0,0.13);
}
/* Video hero with LQIP blur-up + freeze-frame poster, replaces the raw <video> markup on service pages that autoplay a clip */
.video-frame {
  position: relative;
  border-radius: 8px;
  margin-bottom: 72px;
  overflow: hidden;
  aspect-ratio: 21/9;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(244,136,58,0.15);
  box-shadow: 0 8px 48px rgba(0,0,0,0.13);
}
.video-frame .video-poster,
.video-frame video.service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.video-frame .video-poster { transition: opacity 500ms ease; }
.video-frame video.service-img { opacity: 0; transition: opacity 700ms ease; }
.video-frame video.service-img.is-ready { opacity: 1; }
.img-carousel { margin-bottom: 72px; }
.service-h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--near-black);
  margin-bottom: 24px;
  line-height: 1.2;
}
.service-body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.stat-bar {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding-top: 20px;
  margin: 36px 0;
}

/* Benefits grid */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.benefit { border-left: 1px solid rgba(74,47,192,0.3); padding-left: 16px; }
.benefit-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--near-black);
  margin-bottom: 6px;
}
.benefit-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* FAQ accordion */
.faq-section { margin-top: 56px; }
.faq-item { border-bottom: 0.5px solid rgba(0,0,0,0.08); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--near-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 400ms ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 400ms ease; }
.faq-a.open { max-height: 300px; }
.faq-a p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 20px;
}

/* Sidebar */
.sidebar-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--near-black);
  display: block;
  margin-bottom: 16px;
}
.sidebar-block { margin-bottom: 40px; }
.services-list { list-style: none; }
.services-list li { border-bottom: 0.5px solid rgba(0,0,0,0.08); }
.services-list a {
  display: block;
  padding: 11px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 300ms;
}
.services-list a:hover { color: var(--near-black); }
.services-list a.active {
  color: var(--near-black);
  font-weight: 500;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
}

/* Contact box (sidebar) */
.contact-box {
  background: linear-gradient(160deg, #ffd080 0%, #f59538 20%, #e07828 50%, #f59538 82%, #ffd080 100%);
  padding: 28px;
  border-radius: 4px;
  margin-top: 40px;
}
.contact-box-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.25;
}
.contact-box-detail {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.contact-box-detail a { color: rgba(255,255,255,0.8); text-decoration: none; }
.contact-box-detail a:hover { color: #ffffff; }
.contact-box-btn {
  display: inline-block;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.75);
  color: #ffffff;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 300ms ease, border-color 300ms ease;
}
.contact-box-btn:hover { background: rgba(255,255,255,0.2); border-color: #ffffff; }

/* Image carousel */
.img-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(244,136,58,0.18);
  box-shadow: 16px 16px 0 rgba(244,136,58,0.08), 0 8px 40px rgba(0,0,0,0.11);
  margin-bottom: 88px;
}
.carousel-track {
  display: flex;
  transition: transform 480ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: background 200ms, box-shadow 200ms, transform 200ms;
  z-index: 10;
  color: var(--near-black);
}
.carousel-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transform: translateY(-50%) scale(1.06);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 220ms, transform 220ms;
  border: none;
  padding: 0;
}
.carousel-dot.active { background: #ffffff; transform: scale(1.35); }

/* Mobile overrides */
@media (max-width: 768px) {
  .service-section { padding: 64px 0; }
  .service-layout { grid-template-columns: 1fr; gap: 48px; }
  .benefits-grid { grid-template-columns: 1fr; }
}
