/* Dashboard Home — Figma 72:12745 */

.dash-scroller { background: var(--bg); }

/* Featured: title 16px under search row, card 8px under title, dots 16px under card */
.dash-featured { padding: 16px 16px 0; }
.dash-featured > h2 { color: var(--caviar); }
.featured-scroll { margin-top: 8px; }
.featured-card {
  position: relative; width: 100%; height: 397px;
  border-radius: var(--radius-card); overflow: hidden; background: var(--caviar); cursor: pointer;
}
.fc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Figma crop for the Thanksgiving photo: 790×445 offset -63/-41 inside the 361×397 card */
.fc-img.fc-img-tg { inset: auto; left: -63px; top: -41px; width: 790px; height: 445px; }
.fc-shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); } /* Figma .25 + 10% */
.fc-grad {
  position: absolute; left: 0; right: 0; bottom: 0; height: 239px;
  background: linear-gradient(180deg, rgba(44,44,44,0) 20.876%, rgba(0,0,0,.7) 80.258%); /* Figma .8, lightened 10% */
}
.featured-card .tag-new { position: absolute; left: 16px; top: 15px; }
.fc-bookmark { position: absolute; right: 8px; top: 8px; }
/* Text stack is anchored to the bottom (16px from the bottom) so longer copy grows upward.
   Spacing: title → instructor 4px; instructor → description → rating 16px. */
.fc-body { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.fc-title { width: 270px; max-width: 100%; color: #fff; }
.fc-instructor { color: var(--cream); margin-top: -12px; }
.fc-desc { color: var(--neutral-light); }
.fc-rating { display: flex; justify-content: center; }

.dots { display: flex; justify-content: center; gap: 16px; margin-top: 16px; height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--neutral-light-shade); transition: background .2s; }
.dots i.on { background: var(--caviar); }

/* Rows: 32px under dots, 40px between rows */
.dash-rows { display: flex; flex-direction: column; gap: 40px; margin-top: 32px; }
.dash-row { padding: 0 16px; }
.dash-row-title { color: var(--caviar); margin-bottom: 8px; }
.dash-progress .hscroll { margin-top: 16px; }

/* Full-bleed bands */
.dash-band { padding: 24px 16px; display: flex; flex-direction: column; }
.dash-instructors { background: rgba(129,54,59,.15); gap: 16px; }
.dash-instructors > h2 { color: var(--caviar); }

/* Footer: dark band with search */
.dash-footer {
  margin-top: 40px; background: var(--caviar);
  padding: 24px 34px 32px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.dash-footer h2 { color: #fff; width: 248px; }
.dash-footer p { color: #fff; margin-top: 16px; }
.dash-footer .footer-search { margin-top: 32px; width: 100%; max-width: 325px; background: #fff; flex: none; }

/* ---------- My Classes (Figma Cooking-School-XX 7:17141 / 7:17703) ---------- */
.mc-section { background: #fbf9ef; padding: 32px 16px; } /* Figma 24 + 8 */
.mc-heading { font: 700 26px/30px var(--font-serif); color: #1f1f1f; }
.mc-tabs { position: relative; display: flex; gap: 32px; height: 35px; margin-top: 16px; border-bottom: 1px solid #d6d6d6; }
.mc-tabs button { font: 400 18px/23px var(--font-sans); color: #1f1f1f; height: 35px; align-self: flex-start; text-align: left; white-space: nowrap; }
.mc-tabs button b { font-weight: 700; }
.mc-tab-line { position: absolute; left: 0; top: 31px; height: 4px; width: 118px; background: #1f1f1f; transition: transform .3s var(--ease-out), width .3s var(--ease-out); }
.mc-panel { margin-top: 24px; }
.mc-panel[hidden] { display: none; }
.mc-card { width: 279px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.mc-media {
  position: relative; height: 209px; border-radius: 8px; overflow: hidden; background: #f7f6f3;
  transition: transform .15s ease;
}
.mc-card:active .mc-media { transform: scale(.985); }
.mc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* progress strip overlays the bottom 24px */
.mc-bm { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; }
.mc-bm img { width: 32px; height: 32px; }
.mc-bm.on img { animation: pop .3s var(--ease-out); }
.mc-tag {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px; background: #1f1f1f; color: #fff; /* green #65cd73 fails contrast (2:1) */
  font: 600 14px/18px var(--font-sans);
}
.mc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: #fff; display: flex; align-items: center; padding: 0 8px; }
.mc-progress span { position: relative; flex: 1; height: 3px; border-radius: 48px; background: #d6d6d6; overflow: hidden; }
.mc-progress i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 48px; background: var(--success); }
.mc-title { font: 700 16px/20px var(--font-sans); color: #1f1f1f; }

/* ---------- Meet Our Instructors (Figma Cooking-School-XX 7:17907) ---------- */
.ins-section { background: linear-gradient(180deg, #f9f6e7 10%, #f5dbe9 100%); padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; }
.ins-heading { font: 700 26px/30px var(--font-serif); color: #1f1f1f; }
.ins-card { position: relative; width: 253px; height: 342px; flex-shrink: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #4a6a85; }
.ins-photo { position: absolute; left: 0; right: 0; top: calc(50% + 4px); transform: translateY(-50%); aspect-ratio: 1200 / 1799; overflow: hidden; }
.ins-photo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.ins-grad { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, rgba(31,31,31,0) 0%, rgba(31,31,31,.95) 77.509%); }
.ins-tag { position: absolute; left: 16px; top: 16px; }
.ins-text { position: absolute; left: 16px; bottom: 16px; width: 221px; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.ins-role { font: 400 14px/18px var(--font-sans); }
.ins-name { font: 700 26px/30px var(--font-serif); }

/* ---------- Recently Favorited (Figma Cooking-School-XX 12:16916) ---------- */
.fav-section { padding: 0 16px; }
.fav-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fav-head h2 { font: 700 26px/30px var(--font-serif); color: #1f1f1f; }
.fav-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font: 700 16px/20px var(--font-sans); color: #1f1f1f; white-space: nowrap; cursor: pointer; }
.fav-scroll { margin-top: 16px; }
.fav-card { width: 120px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.fav-media { position: relative; height: 80px; border-radius: 8px; overflow: hidden; background: #f7f6f3; box-shadow: 2px 2px 6px rgba(31,31,31,.16); }
.fav-media > img { width: 100%; height: 100%; object-fit: cover; }
.fav-bm { position: absolute; right: 8px; top: 8px; }
.fav-text { display: flex; flex-direction: column; gap: 4px; font: 700 14px/18px var(--font-sans); }
.fav-text h3 { font: inherit; color: #1f1f1f; }
.fav-text p { color: #5a5a5a; }
.fav-scroll { padding-bottom: 4px; margin-bottom: -4px; } /* room for the card shadow */

/* ---------- Popular Techniques (Figma Cooking-School-XX 12:17045) ---------- */
.ptq-section { background: linear-gradient(180deg, #f9f6e7 10%, #e9f2e3 100%); padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; }
.ptq-heading { font: 700 26px/30px var(--font-serif); color: #1f1f1f; }
.ptq-card { width: 253px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.ptq-media { position: relative; height: 142px; border-radius: 8px; overflow: hidden; background: #fff; transition: transform .15s ease; }
.ptq-card:active .ptq-media { transform: scale(.985); }
.ptq-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptq-bm { position: absolute; right: 8px; top: 8px; }
/* Same play button as the video player, centred on the thumbnail */
.ptq-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); }
.ptq-time { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(30,29,21,.8); color: #fff; font: 600 14px/18px var(--font-sans); }
.ptq-title { font: 700 16px/20px var(--font-sans); color: #1f1f1f; }
