/* ===== Scoped Quote Section ===== */
.mk-q-section *,
.mk-q-section *::before,
.mk-q-section *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mk-q-section {
  --mk-main: #2e524a;
  --mk-secondary: #fda043;
  --mk-accent: #bac9ac;
  --mk-accent2: #ebdbcb;
  --mk-light: #ffffff;
  --mk-dark: #1a1a1a;
  --mk-body: #363636;

  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  padding: 100px 40px;
  background: linear-gradient(155deg, #fdf6ee 0%, #fef8f1 30%, #f5efe8 60%, #faf4ec 100%);
  text-align: center;
}

/* ===== Background Layers ===== */
.mk-q-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(46, 82, 74, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.mk-q-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.mk-q-bg-glow--1 {
  width: 550px;
  height: 550px;
  background: rgba(253, 160, 67, 0.1);
  top: -250px;
  right: -100px;
}

.mk-q-bg-glow--2 {
  width: 450px;
  height: 450px;
  background: rgba(46, 82, 74, 0.06);
  bottom: -200px;
  left: -100px;
}

/* ===== Inner ===== */
.mk-q-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Author Intro ===== */
.mk-q-author-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 55px;
}

.mk-q-author-line {
  width: 40px;
  height: 1px;
  background: var(--mk-secondary);
  opacity: 0.4;
}

.mk-q-author-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mk-secondary);
}

/* ===== Quote Slider ===== */
.mk-q-slider {
  position: relative;
  margin-bottom: 45px;
  min-height: 340px;
}

.mk-q-slides {
  position: relative;
  min-height: 320px;
}

/* ===== Individual Slide ===== */
.mk-q-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mk-q-slide.mk-q-active {
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

/* Exiting slide goes up */
.mk-q-slide.mk-q-exit {
  opacity: 0;
  transform: translateY(-30px) scale(0.96);
  filter: blur(6px);
}

/* Quote mark */
.mk-q-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 7rem;
  line-height: 0.6;
  color: var(--mk-secondary);
  opacity: 0.18;
  user-select: none;
  margin-bottom: 10px;
}

/* Quote text */
.mk-q-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.55;
  color: var(--mk-main);
  letter-spacing: -0.01em;
  max-width: 780px;
}

/* Second paragraph (not part of quote) */
.mk-q-para {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.7;
  color: var(--mk-main);
  opacity: 0.5;
  max-width: 680px;
}

/* Inline author name per language */
.mk-q-author-inline {
  display: block;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  font-style: normal;
  color: var(--mk-secondary);
  opacity: 0.8;
  letter-spacing: 0.02em;
}

/* Language badge */
.mk-q-lang-badge {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-secondary);
  background: rgba(253, 160, 67, 0.1);
  border: 1px solid rgba(253, 160, 67, 0.2);
  padding: 5px 16px;
  border-radius: 50px;
}

/* Language-specific fonts */
.mk-q-font-ml { font-family: 'Noto Sans Malayalam', 'Playfair Display', sans-serif; font-style: normal; }
.mk-q-font-hi { font-family: 'Noto Sans Devanagari', 'Playfair Display', sans-serif; font-style: normal; }
.mk-q-font-ta { font-family: 'Noto Sans Tamil', 'Playfair Display', sans-serif; font-style: normal; }

/* ===== Progress Bar ===== */
.mk-q-progress {
  width: 120px;
  height: 3px;
  background: rgba(46, 82, 74, 0.1);
  border-radius: 3px;
  margin: 30px auto 20px;
  overflow: hidden;
}

.mk-q-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mk-secondary), #e8903a);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* ===== Language Indicators ===== */
.mk-q-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mk-q-ind {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid rgba(46, 82, 74, 0.12);
  background: transparent;
  color: var(--mk-body);
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mk-q-ind:hover {
  opacity: 0.8;
  border-color: rgba(46, 82, 74, 0.25);
  background: rgba(46, 82, 74, 0.04);
}

.mk-q-ind.mk-q-active {
  opacity: 1;
  background: var(--mk-main);
  color: var(--mk-light);
  border-color: var(--mk-main);
  box-shadow: 0 4px 14px rgba(46, 82, 74, 0.25);
}

/* ===== Author Block ===== */
.mk-q-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mk-q-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(46, 82, 74, 0.25);
  border: 2px solid rgba(46, 82, 74, 0.15);
}

.mk-q-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mk-q-author-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mk-q-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mk-main);
}

.mk-q-author-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mk-body);
  opacity: 0.5;
  letter-spacing: 0.08em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .mk-q-section {
    padding: 70px 24px;
  }

  .mk-q-text {
    font-size: 1.8rem;
  }

  .mk-q-mark {
    font-size: 5rem;
  }

  .mk-q-text {
    font-size: 1.3rem;
  }

  .mk-q-slider {
    min-height: 380px;
  }

  .mk-q-slides {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .mk-q-section {
    padding: 50px 16px;
  }

  .mk-q-text {
    font-size: 1.1rem;
  }

  .mk-q-mark {
    font-size: 3.5rem;
  }

  .mk-q-ind {
    padding: 6px 10px;
    font-size: 0.6rem;
  }

  .mk-q-slider {
    min-height: 420px;
  }

  .mk-q-slides {
    min-height: 400px;
  }

  .mk-q-author-intro {
    margin-bottom: 36px;
  }
}
