/* ==========================================================================
   Kalmedia | Video Editing Service Page — Custom Stylesheet
   Mirrors the Kalmedia reference design SaaS layout
   ========================================================================== */

/* ── Video Page Hero ── */
.ve-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.ve-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(20, 119, 214, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ve-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .ve-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ve-hero-content { order: 1; }
  .ve-hero-media { order: 2; }
  .ve-hero-badge { justify-content: center; }
  .ve-hero-benefits { justify-content: center; }
}

/* Hero Badge */
.ve-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 119, 214, 0.08);
  border: 1px solid rgba(20, 119, 214, 0.18);
  border-radius: var(--r-pill);
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 1.2rem;
}

.ve-hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  background: var(--blue-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero Heading */
.ve-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.ve-hero-title .accent {
  color: var(--blue-500);
}

/* Hero Description */
.ve-hero-desc {
  font-size: 1.05rem;
  color: var(--ink-600);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 520px;
}

@media (max-width: 900px) {
  .ve-hero-desc { margin-left: auto; margin-right: auto; }
}

/* Hero CTA Buttons */
.ve-hero-cta {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

@media (max-width: 900px) {
  .ve-hero-cta { justify-content: center; }
}

/* Hero Benefits checklist */
.ve-hero-benefits {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ve-benefit {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-600);
  font-weight: 500;
}

.ve-benefit-check {
  width: 18px;
  height: 18px;
  background: var(--blue-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.ve-benefit-check svg {
  width: 10px;
  height: 10px;
}

/* Hero Media */
.ve-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.ve-hero-media img {
  width: 100%;
  max-width: 580px;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(13, 98, 184, 0.15);
}

/* ── Section Generic ── */
.ve-section {
  padding-block: 5rem;
}

.ve-section-alt {
  padding-block: 5rem;
  background: var(--sky-50);
}

@media (max-width: 640px) {
  .ve-section, .ve-section-alt { padding-block: 3rem; }
}

.ve-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.ve-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ve-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
}

.ve-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 0.6rem;
}

.ve-section-title .accent { color: var(--blue-500); }

.ve-section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin-inline: auto;
}

/* ── Why Choose Cards (6-grid) ── */
.ve-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .ve-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ve-why-grid { grid-template-columns: 1fr; }
}

.ve-why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.ve-why-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: rgba(20, 119, 214, 0.2);
}

.ve-why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(20, 119, 214, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  margin-bottom: 1rem;
}

.ve-why-icon svg { width: 22px; height: 22px; }

.ve-why-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}

.ve-why-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Services Cards (6-grid) ── */
.ve-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .ve-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ve-services-grid { grid-template-columns: 1fr; }
}

.ve-service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.ve-service-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: rgba(20, 119, 214, 0.2);
}

.ve-service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--sky-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
}

.ve-service-icon svg { width: 24px; height: 24px; }

.ve-service-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
}

.ve-service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Portfolio / Works ── */
.ve-portfolio-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 768px) {
  .ve-portfolio-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.ve-port-main {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

@media (max-width: 768px) {
  .ve-port-main { grid-row: auto; grid-column: auto; }
}

.ve-port-card {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: block;
  height: 100%;
}

.ve-port-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.ve-port-card:hover img { transform: scale(1.04); }

.ve-port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,32,54,0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.ve-port-card:hover .ve-port-overlay { opacity: 1; }

.ve-port-category {
  display: inline-block;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.4rem;
}

.ve-port-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.ve-port-small-title {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Play button */
.ve-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.ve-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.ve-play-btn svg { width: 20px; height: 20px; color: var(--blue-600); margin-inline-start: 3px; }

.ve-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  grid-column: 2;
  grid-row: 1 / 3;
}

@media (max-width: 768px) {
  .ve-small-grid {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ve-small-grid { grid-template-columns: 1fr; }
}

.ve-port-sm {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.ve-port-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.ve-port-sm:hover img { transform: scale(1.06); }

.ve-port-sm .ve-port-overlay {
  padding: 0.8rem;
}

.ve-port-sm:hover .ve-port-overlay { opacity: 1; }

.ve-port-main-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ve-port-main-img { min-height: 280px; }
}

.ve-portfolio-viewmore {
  text-align: center;
  margin-top: 2rem;
}

/* ── Showcase / Video Section ── */
.ve-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .ve-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ve-showcase-cta { justify-content: center; }
}

.ve-showcase-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-500);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.ve-showcase-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.ve-showcase-desc {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

.ve-showcase-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.ve-video-player {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(13, 98, 184, 0.18);
}

.ve-video-player img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ve-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 32, 54, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ve-play-big {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.ve-play-big:hover { transform: scale(1.08); }
.ve-play-big svg { width: 28px; height: 28px; color: var(--blue-600); margin-inline-start: 4px; }

.ve-video-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(11, 32, 54, 0.85);
  backdrop-filter: blur(4px);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ve-video-time {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
}

.ve-video-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  position: relative;
}

.ve-video-progress::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 35%;
  height: 100%;
  background: var(--blue-500);
  border-radius: 99px;
}

/* ── Process / Timeline ── */
.ve-process-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

@media (max-width: 768px) {
  .ve-process-track { flex-direction: column; gap: 1.5rem; }
}

.ve-process-step {
  flex: 1;
  text-align: center;
  padding: 0 0.8rem;
  position: relative;
}

.ve-process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  inset-inline-end: -1px;
  width: calc(100% - 60px);
  height: 2px;
  background: var(--line);
  z-index: 0;
  transform: translateX(30px);
}

@media (max-width: 768px) {
  .ve-process-step { text-align: start; display: flex; gap: 1rem; padding: 0; }
  .ve-process-step::after { display: none; }
}

.ve-process-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .ve-process-num-wrap { margin-bottom: 0; flex-shrink: 0; }
}

.ve-process-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.ve-process-step:hover .ve-process-circle {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: white;
}

.ve-process-circle svg { width: 22px; height: 22px; }

.ve-process-body { flex: 1; }

.ve-process-num-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.3rem;
}

.ve-process-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.3rem;
}

.ve-process-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Stats ── */
.ve-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 900px) { .ve-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ve-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.ve-stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.ve-stat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

.ve-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 119, 214, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  margin: 0 auto 0.7rem;
}

.ve-stat-icon svg { width: 18px; height: 18px; }

.ve-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-500);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.ve-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Blog Articles ── */
.ve-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

@media (max-width: 900px) { .ve-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ve-blog-grid { grid-template-columns: 1fr; } }

.ve-article-card {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}

.ve-article-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }

.ve-article-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.ve-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ve-article-card:hover .ve-article-img img { transform: scale(1.05); }

.ve-article-badge {
  position: absolute;
  bottom: 0.6rem;
  inset-inline-start: 0.6rem;
  background: var(--blue-500);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
}

.ve-article-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ve-article-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  flex: 1;
}

.ve-article-link {
  color: var(--blue-500);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.ve-article-link:hover { gap: 0.6rem; }

.ve-article-link svg { width: 14px; height: 14px; }

/* ── Final CTA Banner ── */
.ve-cta-section {
  padding-block: 5rem;
  background: var(--sky-50);
}

.ve-cta-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .ve-cta-band {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.4rem;
  }
  .ve-cta-visual { display: none; }
  .ve-cta-visual-right { display: none; }
}

.ve-cta-visual {
  display: flex;
  justify-content: flex-end;
}

.ve-cta-visual img, .ve-cta-visual-right img {
  width: 110px;
  opacity: 0.85;
}

.ve-cta-visual-right {
  display: flex;
  justify-content: flex-start;
}

.ve-cta-body {
  text-align: center;
}

.ve-cta-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 0.6rem;
}

.ve-cta-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

/* ── Improved FAQ (this page only) ── */
.ve-faq-list .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.ve-faq-list .faq-item[open] { box-shadow: var(--shadow-card); }

.ve-faq-list .faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.ve-faq-list .faq-q::-webkit-details-marker { display: none; }

.ve-faq-list .faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Nav enhancement for this page ── */
.ve-desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.ve-desktop-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-800);
  transition: background 0.2s, color 0.2s;
}

.ve-desktop-nav a:hover {
  background: var(--sky-100);
  color: var(--blue-600);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   LTR Direction Overrides for Video Editing Page
   ========================================================================= */

html[dir="ltr"] .ve-hero-content,
html[dir="ltr"] .ve-feature-body,
html[dir="ltr"] .ve-process-card,
html[dir="ltr"] .ve-article-body,
html[dir="ltr"] .ve-faq-content,
html[dir="ltr"] .ve-cta-content,
html[dir="ltr"] .ve-section-header {
  text-align: left;
  direction: ltr;
}
