.ftq-wrapper {
  --ftq-bg: #fefefc;
  --ftq-bg-soft: #f8fbf3;
  --ftq-surface: #ffffff;
  --ftq-text: #2f4a28;
  --ftq-muted: #5f7a56;
  --ftq-accent: #84b179;
  --ftq-border: rgba(132, 177, 121, 0.22);
  --ftq-shadow: 0 14px 30px rgba(80, 114, 72, 0.1);
  position: relative;
  font-family: "Cairo", sans-serif;
  color: var(--ftq-text);
  background: linear-gradient(135deg, var(--ftq-bg), var(--ftq-bg-soft));
  border-radius: 18px;
  overflow: hidden;
  margin-top: 18px;
}

.ftq-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.3;
  animation: ftq-float 12s ease-in-out infinite;
}

.ftq-ambient-1 {
  width: 300px;
  height: 300px;
  top: -90px;
  left: -70px;
  background: #a2cb8b;
}

.ftq-ambient-2 {
  width: 360px;
  height: 360px;
  bottom: -120px;
  right: -100px;
  background: #c7eabb;
  animation-delay: 1.8s;
}

.ftq-container {
  position: relative;
  z-index: 1;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.ftq-hero,
.ftq-section {
  background: var(--ftq-surface);
  border: 1px solid var(--ftq-border);
  border-radius: 18px;
  box-shadow: var(--ftq-shadow);
}

.ftq-hero {
  padding: 24px;
}

.ftq-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.ftq-hero p {
  margin: 0;
  color: var(--ftq-muted);
  line-height: 1.9;
}

.ftq-section {
  margin-top: 16px;
  padding: 18px;
}

.ftq-lesson-list {
  display: grid;
  gap: 10px;
}

.ftq-empty {
  border: 1px dashed var(--ftq-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  color: var(--ftq-muted);
}

.ftq-lesson-item {
  text-decoration: none !important;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--ftq-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ftq-lesson-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(80, 114, 72, 0.08);
}

.ftq-lesson-no {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #23411d;
  background: rgba(162, 203, 139, 0.55);
}

.ftq-lesson-item h4 {
  margin: 0;
  font-size: 1rem;
}

.ftq-wrapper .ftq-watch,
.ftq-wrapper .ftq-watch:link,
.ftq-wrapper .ftq-watch:visited,
.ftq-wrapper .ftq-watch:hover,
.ftq-wrapper .ftq-watch:focus,
.ftq-wrapper .ftq-watch:active {
  text-decoration: none !important;
  color: #fff;
  background: linear-gradient(135deg, var(--ftq-accent), #6f9a65);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
}

.ftq-watch-disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.ftq-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@keyframes ftq-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(8px); }
}

@media (max-width: 860px) {
  .ftq-lesson-item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "no title"
      "button button";
    align-items: center;
  }

  .ftq-lesson-no {
    grid-area: no;
    justify-self: start;
    width: 34px;
    height: 34px;
  }

  .ftq-lesson-item > div {
    grid-area: title;
    min-width: 0;
  }

  .ftq-lesson-item h4 {
    margin: 0;
  }

  .ftq-watch {
    grid-area: button;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .ftq-container {
    width: 94%;
    padding: 18px 0 28px;
  }

  .ftq-hero {
    padding: 18px;
  }

  .ftq-hero h2 {
    font-size: 1.2rem;
  }

  .ftq-hero p {
    font-size: 0.9rem;
  }

  .ftq-section {
    padding: 14px;
  }

  .ftq-lesson-item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "no title"
      "button button";
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .ftq-lesson-no {
    grid-area: no;
    justify-self: start;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .ftq-lesson-item > div {
    grid-area: title;
    width: 100%;
  }

  .ftq-wrapper .ftq-watch {
    grid-area: button;
    width: 100%;
    text-align: center;
    padding: 9px 12px;
  }

  .ftq-ambient {
    display: none;
  }
}
