:root {
  --ink: #233b6a;
  --gold: #dd971f;
  --gold-soft: #f2d295;
  --teal: #2c9aa0;
  --paper: #fbf9f5;
  --cream: #f5efe5;
  --muted: #68738c;
  --line: #e7dfd0;
  --surface: #ffffff;
  --shadow: 0 16px 48px rgba(35, 59, 106, 0.07);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(44, 154, 160, 0.06) 0 15%, transparent 15% 100%),
    linear-gradient(180deg, #fff 0, var(--paper) 22%, #fff 56%, var(--paper) 100%);
  color: var(--ink);
  font-family: "Outfit", "HarmonyOS Sans SC-Regular", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.theme-night {
  --ink: #f7f4ed;
  --paper: #101a2f;
  --cream: #182643;
  --muted: #b7c2d8;
  --line: rgba(255, 255, 255, 0.14);
  --surface: #17223b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  background:
    linear-gradient(120deg, rgba(44, 154, 160, 0.12) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #0d1629 0, #101a2f 42%, #17223b 100%);
}

::selection {
  background: rgba(221, 151, 31, 0.28);
}

img {
  max-width: 100%;
}

.liquid-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
}

a:hover {
  color: var(--gold);
  text-decoration: none;
}

.page-container {
  max-width: 1400px;
}

.section-pad {
  padding: 96px 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.1;
}

h3 {
  font-size: 22px;
  font-weight: 800;
}

.btn-primary {
  border-color: var(--ink);
  background: linear-gradient(135deg, var(--ink), #31558d);
  box-shadow: 0 16px 36px rgba(35, 59, 106, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #182a4f;
  background: #182a4f;
  box-shadow: 0 20px 42px rgba(35, 59, 106, 0.25);
  transform: translateY(-2px);
}

.btn-pill {
  border-radius: 999px;
  padding-right: 28px;
  padding-left: 28px;
  font-weight: 800;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal), #7d68d8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}



.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: rgba(221, 151, 31, 0.55);
  outline: none;
  transform: translateY(-2px) rotate(8deg);
}

.hero {
  min-height: 100vh;
  padding-top: 154px;
  background:
    linear-gradient(115deg, rgba(44, 154, 160, 0.08) 0 20%, transparent 20% 100%),
    linear-gradient(180deg, #fff 0%, rgba(251, 249, 245, 0.2) 36%, var(--paper) 100%);
  overflow: hidden;
}

.theme-night .hero {
  background:
    linear-gradient(115deg, rgba(44, 154, 160, 0.16) 0 20%, transparent 20% 100%),
    linear-gradient(180deg, #101a2f 0%, #17223b 48%, var(--paper) 100%);
}

.hero-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(72px, 9.4vw, 164px);
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero-copy h1 span,
.hero-copy h1 strong {
  display: block;
}

.hero-copy h1 span {
  color: var(--ink);
}

.hero-copy h1 strong {
  background: linear-gradient(90deg, var(--gold), #f1bd48 46%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  max-width: 940px;
  margin-bottom: 28px;
  font-size: clamp(30px, 4vw, 57px);
  line-height: 1.24;
}

.hero-copy h2 b {
  color: var(--gold);
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.review-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px 20px;
  color: var(--ink);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-trust span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  padding: 8px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 690px;
}

.hero-frame {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: min(72vw, 590px);
  border-radius: 70px;
  background: #f2f4f8;
  transform: rotate(5deg);
  transition: transform 300ms ease, box-shadow 300ms ease;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-frame::before {
  position: absolute;
  inset: -42px 42px 42px -42px;
  z-index: -1;
  border: 6px dashed #eaecf1;
  border-radius: 72px;
  content: "";
  transform: rotate(-17deg);
}

.hero-frame img {
  display: block;
  transform: rotate(-5deg);
}

.hero-media:hover .hero-frame {
  box-shadow: 0 30px 90px rgba(35, 59, 106, 0.15);
  transform: rotate(3deg) translateY(-8px);
}

.floating-note {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(35, 59, 106, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(35, 59, 106, 0.16);
  padding: 18px 20px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-media:hover .floating-note {
  box-shadow: 0 24px 68px rgba(35, 59, 106, 0.2);
  transform: translateY(-6px);
}

.note-one {
  top: 34%;
  right: 2%;
  width: 220px;
}

.note-two {
  right: 48%;
  bottom: 9%;
  width: 190px;
}

.note-two strong {
  display: block;
  color: var(--gold);
  font-size: 40px;
  line-height: 1;
}

.section-title {
  max-width: 880px;
  margin-bottom: 48px;
}

.section-title.text-center {
  margin-right: auto;
  margin-left: auto;
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid > [class*="col-"],
.courses .row > [class*="col-"],
.team .row > [class*="col-"],
.public-lecture .row > [class*="col-"],
.service-system .row > [class*="col-"] {
  margin-bottom: 30px;
}

.feature-card,
.course-card,
.service-card,
.lecture-card,
.team-card {
  position: relative;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card::before,
.course-card::before,
.service-card::before,
.lecture-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(221, 151, 31, 0.16), transparent 34%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.feature-card:hover,
.course-card:hover,
.service-card:hover,
.lecture-card:hover,
.team-card:hover,
.mentor-card:hover {
  border-color: rgba(221, 151, 31, 0.42);
  box-shadow: 0 24px 70px rgba(35, 59, 106, 0.14);
  transform: translateY(-8px);
}

.feature-card:hover::before,
.course-card:hover::before,
.service-card:hover::before,
.lecture-card:hover::before {
  opacity: 1;
}

.feature-card {
  padding: 20px;
}

.feature-card img {
  position: absolute;
  bottom: 8px;
  right:8px;
  width: 100%;
  height: 70px;
  margin-bottom: 4px;
  object-fit: contain;
}

.feature-card p {
  color: var(--muted);
}

.feature-card span,
.course-card li,
.service-card p,
.lecture-card span,
.team-card span {
  color: var(--muted);
}

.feature-card.highlight {
  background:
    linear-gradient(135deg, rgba(44, 154, 160, 0.18), transparent 36%),
    var(--ink);
  color: #fff;
}

.feature-card.highlight h3,
.feature-card.highlight p,
.feature-card.highlight span {
  color: #fff;
}

.intro-band,
.benefits,
.mentors,
.service-system,
.public-lecture {
  background: var(--surface);
}

.rounded-img {
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(35, 59, 106, 0.13);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.rounded-img:hover {
  box-shadow: 0 28px 86px rgba(35, 59, 106, 0.18);
  transform: translateY(-6px);
}

.stats {
  margin-top: 34px;
}

.stats > div {
  margin-bottom: 18px;
}

.stats strong {
  display: block;
  color: var(--gold);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.course-card {
  padding: 30px;
}

.course-card h3 {
  min-height: 56px;
  color: var(--ink);
}

.course-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.course-card li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 18px;
}

.course-card li::before,
.benefit-list span::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "•";
}

.benefits h2 span {
  color: var(--gold);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 28px;
}

.benefit-list span {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px 18px;
  color: var(--ink);
  font-weight: 700;
}

.circle-img {
  display: block;
  width: min(100%, 540px);
  margin-left: auto;
  border-radius: 50%;
  box-shadow: 0 22px 70px rgba(35, 59, 106, 0.12);
}

.quote {
  color: var(--gold);
  font-family: "Songti SC-Bold", serif;
  font-size: clamp(26px, 3vw, 42px);
}

.mini-panel-row > [class*="col-"] {
  margin-bottom: 16px;
}

.mini-panel {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px 20px;
  font-weight: 800;
}

.mentor-card {
  display: flex;
  height: 100%;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mentor-card img {
  width: 190px;
  align-self: flex-end;
  object-fit: contain;
}

.mentor-card .role {
  color: var(--gold);
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.team-card {
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
}

.team-card h3,
.team-card p,
.team-card span {
  display: block;
  padding-right: 24px;
  padding-left: 24px;
}

.team-card h3 {
  margin-top: 22px;
}

.team-card p {
  color: var(--gold);
  font-weight: 800;
}

.team-card span {
  padding-bottom: 28px;
}

.stories {
  background:
    linear-gradient(90deg, rgba(35, 59, 106, 0.93), rgba(35, 59, 106, 0.74)),
    url("img/mask-group-24.png") center / cover;
  color: #fff;
}

.stories h2,
.stories .eyebrow,
.stories p {
  color: #fff;
}

.story-img {
  width: 100%;
  height: 260px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.story-img:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transform: translateY(-6px) scale(1.015);
}

.service-card {
  padding: 30px;
  background: var(--paper);
}

.map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe9f4;
}

.map-wrap > img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.map-copy {
  position: absolute;
  top: 50%;
  left: 7%;
  max-width: 420px;
  transform: translateY(-50%);
}

.map-copy h2 {
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.map-copy p:not(.eyebrow) {
  color: #fff;
  font-weight: 800;
}

.lecture-card {
  overflow: hidden;
}

.lecture-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 360ms ease;
}

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

.lecture-card h3,
.lecture-card p,
.lecture-card span {
  display: block;
  padding-right: 24px;
  padding-left: 24px;
}

.lecture-card h3 {
  margin-top: 24px;
}

.lecture-card span {
  padding-bottom: 28px;
  font-size: 14px;
}

.join {
  background: var(--ink);
  color: #fff;
}

.join h2 {
  max-width: 900px;
  margin: 0 auto 34px;
  color: #fff;
}

.join .btn-primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.site-footer {
  background: #102345;
  padding: 76px 0 28px;
  color: rgba(255, 255, 255, 0.75);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease var(--reveal-delay, 0ms), transform 520ms ease var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes liquidSheen {
  0% {
    transform: translate3d(-5%, -8%, 0) scale(1.08);
  }

  50% {
    transform: translate3d(4%, 4%, 0) scale(1.03);
  }

  100% {
    transform: translate3d(7%, -4%, 0) scale(1.08);
  }
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer h2 {
  font-size: 30px;
}

.site-footer h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-qr {
  width: 220px;
  margin-top: 14px;
}

.copyright {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 14px;
}

@media (max-width: 1199.98px) {
  .navbar-collapse {
    padding: 18px 0 22px;
  }

  .nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-search,
  .theme-toggle,
  .nav-actions .btn {
    width: 100%;
    text-align: center;
  }

  .theme-toggle {
    border-radius: 999px;
  }
}

@media (max-width: 991.98px) {
  .section-pad {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-media {
    min-height: 560px;
    margin-top: 48px;
  }

  .hero-frame {
    right: 12%;
    width: min(78vw, 500px);
  }

  .mentor-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .site-nav {
    top: 8px;
    right: 10px;
    left: 10px;
    border-radius: 22px;
  }

  .brand img {
    width: 150px;
  }

  .section-pad {
    padding: 56px 0;
  }

  .hero.section-pad {
    padding-top: 188px;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .review-pill {
    width: 100%;
    text-align: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-media {
    min-height: 430px;
    margin-top: 78px;
  }

  .hero-frame {
    right: 5%;
    width: 84vw;
    border-radius: 44px;
  }

  .hero-frame::before {
    inset: -22px 22px 22px -22px;
    border-radius: 46px;
  }

  .floating-note {
    padding: 14px 16px;
  }

  .note-one {
    top: 20px;
    right: 0;
    width: 190px;
  }

  .note-two {
    right: auto;
    bottom: 0;
    left: 0;
    width: 170px;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .mentor-card {
    display: block;
  }

  .mentor-card img {
    width: 180px;
    margin-bottom: 22px;
  }

  .team-card img {
    height: 300px;
  }

  .map-copy {
    position: static;
    background: var(--ink);
    padding: 28px;
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .page-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-media {
    min-height: 360px;
    margin-top: 72px;
  }

  .floating-note {
    font-size: 13px;
  }

  .note-one {
    width: 160px;
  }

  .note-two strong {
    font-size: 30px;
  }

  .course-card,
  .feature-card,
  .service-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  /* Keep testimonials scroll animation even with reduced motion */
  .testimonials-scroll-content {
    animation: scrollUp 120s linear infinite !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .site-nav::before {
    animation: none;
  }
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 1 !important;
  transform: none !important;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.testimonial-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.testimonial-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px 0;
}

.testimonial-role {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.testimonial-content {
  position: relative;
}

.quote-icon {
  font-size: 24px;
  color: #667eea;
  opacity: 0.3;
  margin-bottom: 8px;
  display: block;
}

.testimonial-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* Testimonials Auto Scroll */
.testimonials-scroll-wrapper {
  position: relative;
  overflow: hidden;
  height: 800px;
}

.testimonials-scroll-container {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.testimonials-scroll-content {
  animation: scrollUp 180s linear infinite;
  will-change: transform;
  opacity: 1 !important;
}

.testimonials-scroll-content::after {
  content: '';
  display: table;
  clear: both;
}

.testimonials-scroll-wrapper:hover .testimonials-scroll-content {
  animation-play-state: paused;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@media (max-width: 767px) {
  .testimonials-scroll-wrapper {
    height: 600px;
  }
  .testimonials-scroll-content {
    animation-duration: 240s;
  }
}

@media (max-width: 480px) {
  .testimonials-scroll-wrapper {
    height: 500px;
  }
}

/* Testimonials Grid */
.testimonials-grid {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.testimonials-grid > [class*="col-"] {
  margin-bottom: 24px;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 767px) {
  .testimonials-grid > [class*="col-"] {
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .testimonial-card {
    padding: 24px;
  }
  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .testimonial-avatar-img {
    width: 50px;
    height: 50px;
  }
  .testimonial-info h4 {
    font-size: 16px;
  }
  .testimonial-content p {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  #testimonialCarousel .carousel-control-prev {
    left: 0;
  }
  #testimonialCarousel .carousel-control-next {
    right: 0;
  }
}

@media (max-width: 767px) {
  .testimonial-card {
    padding: 24px;
    margin-bottom: 16px;
  }
  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .testimonial-info h4 {
    font-size: 16px;
  }
  .testimonial-content p {
    font-size: 14px;
  }
  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
}


/* Testimonials Marquee with Cards */
.marquee-row {
  overflow: hidden;
  white-space: nowrap;
  margin: 30px 0;
  position: relative;
  padding: 20px 0;
}

.marquee-content {
  display: inline-flex;
  animation-duration: 60s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  align-items: stretch;
}

/* Left to Right animation */
.marquee-left .marquee-content {
  animation-name: marqueeLeft;
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Right to Left animation */
.marquee-right .marquee-content {
  animation-name: marqueeRight;
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-item {
  display: inline-flex;
  margin: 0 15px;
  width: 320px;
  flex-shrink: 0;
  white-space: normal;
}

.marquee-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.marquee-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.marquee-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.marquee-role {
  font-size: 12px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.marquee-content-text {
  position: relative;
}

.marquee-quote-icon {
  font-size: 20px;
  color: #667eea;
  opacity: 0.3;
  margin-bottom: 8px;
  display: block;
}

.marquee-content-text p {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pause on hover */
.marquee-row:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Gradient overlays for smooth edges */
.marquee-row::before,
.marquee-row::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-row::before {
  left: 0;
  background: linear-gradient(to right, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}

.marquee-row::after {
  right: 0;
  background: linear-gradient(to left, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}

@media (max-width: 991px) {
  .marquee-item {
    width: 300px;
  }
}

@media (max-width: 767px) {
  .marquee-item {
    width: 280px;
    margin: 0 10px;
  }
  
  .marquee-card {
    padding: 20px;
  }
  
  .marquee-avatar-img {
    width: 45px;
    height: 45px;
  }
  
  .marquee-info h4 {
    font-size: 15px;
    max-width: 180px;
  }
  
  .marquee-role {
    font-size: 11px;
    max-width: 180px;
  }
  
  .marquee-content-text p {
    font-size: 12px;
  }
  
  .marquee-content {
    animation-duration: 40s;
  }
}
