/* Teacher Toolkit Page — /teacher-toolkit/ */

.page-id-9516 #main {
  padding-top: 0 !important;
}

.ttk-page {
  --ttk-bg: #FDF8F3;
  --ttk-navy: #1E2A4A;
  --ttk-orange: #E8832A;
  --ttk-gray: #6B7280;
  --ttk-border: #E5E7EB;
  --ttk-white: #FFFFFF;
  --ttk-step-1: #1E2A4A;
  --ttk-step-2: #22A85A;
  --ttk-step-3: #E8832A;
  --ttk-step-4: #8B5CF6;
  --ttk-step-5: #10B981;
  --ttk-radius: 12px;

  background: var(--ttk-bg);
  font-family: "Montserrat", sans-serif;
  padding: 60px 20px 80px;
  max-width: 100% !important;
}

.ttk-page *,
.ttk-page *::before,
.ttk-page *::after {
  box-sizing: border-box;
}

/* ── Hero Section ─────────────────────────────── */

.ttk-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0 !important;
}

.ttk-hero .ttk-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ttk-orange);
  margin-bottom: 12px;
}

.ttk-hero .ttk-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--ttk-navy);
  margin: 0 0 16px;
  line-height: 1.15;
}

.ttk-hero .ttk-subtitle {
  font-size: 17px;
  color: var(--ttk-gray);
  line-height: 1.6;
  margin: 0;
}

.ttk-hero video,
.ttk-hero .html5-video-player,
.ttk-hero .html5-video-player > * {
  cursor: pointer !important;
}

.html5-video-player:hover {
  cursor: pointer !important;
}

.ttk-hero-video {
  position: relative;
  max-width: 1100px;
  margin: 8px auto 24px;
}

.ttk-hero-video .ttk-hero-intro-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  display: block;
}

.ttk-hero-unmute-btn {
  position: absolute;
  top: 24px;
  left: 18px;
  z-index: 2;
  border: 0;
  border-radius: 0.4rem;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  background: #f16642;
  color: #fff;
  cursor: pointer;
  line-height: 1.1;
}

.ttk-hero-unmute-btn.is-hidden {
  display: none;
}

/* ── Steps Section ────────────────────────────── */

.ttk-steps {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 !important;
}

.ttk-instruction {
  font-size: 15px;
  color: var(--ttk-gray);
  margin-bottom: 20px;
}

/* ── Accordion ────────────────────────────────── */

.ttk-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ttk-accordion.ttk-is-measuring .ttk-accordion-body,
.ttk-accordion.ttk-is-measuring .ttk-chevron {
  transition: none !important;
}

.ttk-accordion-item {
  background: var(--ttk-white);
  border: 1px solid var(--ttk-border);
  border-radius: var(--ttk-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.ttk-accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ttk-accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  gap: 16px;
  text-align: left;
}

.ttk-accordion-header:focus-visible {
  outline: 2px solid var(--ttk-orange);
  outline-offset: -2px;
  border-radius: var(--ttk-radius);
}

.ttk-step-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.ttk-step-1 .ttk-step-number { background: var(--ttk-step-1); }
.ttk-step-2 .ttk-step-number { background: var(--ttk-step-2); }
.ttk-step-3 .ttk-step-number { background: var(--ttk-step-3); }
.ttk-step-4 .ttk-step-number { background: var(--ttk-step-4); }
.ttk-step-5 .ttk-step-number { background: var(--ttk-step-5); }

.ttk-step-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--ttk-navy);
}

.ttk-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ttk-gray);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.ttk-accordion-item.is-open .ttk-chevron {
  transform: rotate(180deg);
}

/* ── Accordion Body ───────────────────────────── */

.ttk-accordion-body {
  display: block;
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 24px;
  transition:
    height 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s ease-out,
    padding 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.ttk-accordion-item.is-open .ttk-accordion-body {
  opacity: 1;
  padding: 0 24px 24px;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .ttk-chevron {
    transition: transform 0.24s ease !important;
  }

  .ttk-accordion-body {
    transition:
      height 0.3s ease,
      opacity 0.22s linear,
      padding 0.3s ease !important;
  }
}

.ttk-accordion-body > p {
  font-size: 15px;
  color: var(--ttk-gray);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ── Video Grid ───────────────────────────────── */

.ttk-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ttk-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--ttk-white);
  border: 1px solid var(--ttk-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ttk-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ttk-card:hover {
  border-color: var(--ttk-orange);
  box-shadow: 0 2px 8px rgba(232, 131, 42, 0.12);
  text-decoration: none;
  color: var(--ttk-navy);
}

.ttk-video-card {
  cursor: pointer;
}

.ttk-play-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--ttk-orange);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ttk-play-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  margin-left: 2px;
}

.ttk-link-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--ttk-orange);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ttk-link-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
}

.ttk-link-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ttk-link-group-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ttk-gray);
}

/* ── Teacher Toolkit video modal ─────────────── */

.ttk-video-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.72);
  padding: 24px;
}

.ttk-video-modal-content {
  position: relative;
  width: min(920px, 100%);
  margin: 40px auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 42px 14px 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.ttk-video-modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  color: var(--ttk-navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.ttk-video-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.ttk-video-player {
  width: 100%;
  height: 100%;
  display: block;
}

.ttk-video-iframe-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

/* ── Resource links (non-video items) ─────────── */

.ttk-resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ttk-resource-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ttk-white);
  border: 1px solid var(--ttk-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ttk-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ttk-resource-link:hover {
  border-color: var(--ttk-orange);
  box-shadow: 0 2px 8px rgba(232, 131, 42, 0.12);
  text-decoration: none;
  color: var(--ttk-navy);
}

.ttk-resource-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--ttk-orange);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ttk-resource-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 600px) {
  .ttk-page {
    padding: 40px 16px 60px;
  }

  .ttk-hero .ttk-title {
    font-size: 28px;
  }

  .ttk-hero .ttk-subtitle {
    font-size: 15px;
  }

  .ttk-accordion-header {
    padding: 16px 18px;
    gap: 12px;
  }

  .ttk-step-title {
    font-size: 15px;
  }

  .ttk-accordion-body {
    padding: 0 18px 18px;
  }

  .ttk-video-grid {
    grid-template-columns: 1fr;
  }

  .ttk-video-modal {
    padding: 12px;
  }

  .ttk-video-modal-content {
    margin-top: 24px;
    padding: 36px 8px 8px;
  }

  .ttk-hero-unmute-btn {
    font-size: 14px;
  }
}
