/* DaniMation Student Showcase -- scoped to .dms */
.dms { --dms-blue:#1c6db0; --dms-blue-dark:#124e80; --dms-gold:#f8a911; --dms-purple:#766cb3; --dms-deep:#2d2560; --dms-ink:#000; --dms-text:#4c4c4c; --dms-muted:#5c5c5c; --dms-line:#e0dede; --dms-soft:#f6f6f6;
  font-family: Poppins, Arial, Helvetica, sans-serif; color: var(--dms-text); line-height: 1.6; }
.dms *, .dms *::before, .dms *::after { box-sizing: border-box; }
.dms h1, .dms h2, .dms h3 { font-family: Poppins, Arial, Helvetica, sans-serif; color: var(--dms-ink); }
.dms-wrap { max-width: 1170px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.dms-band--soft { background: var(--dms-soft); }
.dms-band--blue { background: var(--dms-blue); color: #fff; }
.dms-band--deep { background: var(--dms-deep); color: #fff; }
.dms-band--light { background: var(--dms-soft); }
.dms-eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dms-purple); }
.dms-eyebrow--gold { color: var(--dms-gold); }
.dms-muted { color: var(--dms-muted); font-size: 14px; }
.dms-link { color: var(--dms-blue); font-weight: 600; text-decoration: none; }
.dms-link:hover { color: var(--dms-blue-dark); text-decoration: underline; }

/* Buttons */
.dms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none !important; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.dms-btn--blue { background: var(--dms-blue); color: #fff !important; border: 2px solid var(--dms-blue); }
.dms-btn--blue:hover { background: var(--dms-blue-dark); border-color: var(--dms-blue-dark); }
.dms-btn--outline { background: #fff; color: #333 !important; border: 2px solid #333; }
.dms-btn--outline:hover { background: #333; color: #fff !important; }
.dms-btn--line-blue { background: transparent; color: var(--dms-blue) !important; border: 2px solid var(--dms-blue); }
.dms-btn--line-blue:hover { background: var(--dms-blue); color: #fff !important; }
.dms-btn--purple { background: var(--dms-purple); color: #fff !important; border: 2px solid var(--dms-purple); }
.dms-btn--gold { background: var(--dms-gold); color: #000 !important; border: 2px solid var(--dms-gold); font-weight: 700; }
.dms-btn--white { background: #fff; color: #000 !important; border: 2px solid #fff; font-weight: 700; }

/* Hero */
.dms-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.dms-hero__text { flex: 1 1 460px; min-width: 0; }
.dms-hero__text h1 { margin: 0 0 20px; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; font-weight: 700; }
.dms-hero__text p.dms-lead { margin: 0 0 28px; font-size: 18px; max-width: 560px; }
.dms-hero__media { flex: 1 1 420px; min-width: 0; }
.dms-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Featured */
.dms-featured { position: relative; background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.dms-badge { position: absolute; left: 28px; top: 28px; background: var(--dms-gold); color: #000; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.dms-featured__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 6px 6px; }
.dms-featured__title { margin: 0; font-weight: 600; color: #000; font-size: 17px; }
.dms-featured__by { margin: 0; font-size: 14px; }

/* Stats */
.dms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; padding-top: 28px; padding-bottom: 28px; }
.dms-stats p { margin: 0; color: #fff; font-size: 14px; }
.dms-stats p.dms-stat { font-size: 32px; font-weight: 700; line-height: 1.3; }

/* Section heads */
.dms-section { padding-top: 72px; padding-bottom: 24px; }
.dms-section--pad { padding-top: 64px; padding-bottom: 64px; }
.dms-section h2 { margin: 0 0 8px; font-size: 34px; font-weight: 700; line-height: 1.2; }
.dms-section .dms-sub { margin: 0 0 28px; font-size: 16px; max-width: 640px; }

/* Filters + grid */
.dms-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.dms-filter { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 14px Poppins, Arial, sans-serif; cursor: pointer; background: #fff; color: #333; border: 2px solid var(--dms-line); }
.dms-filter:hover { border-color: var(--dms-blue); }
.dms-filter.is-active { background: var(--dms-blue); color: #fff; border-color: var(--dms-blue); }
.dms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.dms-card { border: 1px solid var(--dms-line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.dms-card[hidden] { display: none; }
.dms-card__head { display: flex; align-items: center; gap: 14px; padding: 20px 20px 14px; }
.dms-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; }
.dms-avatar--initial { display: flex; align-items: center; justify-content: center; background: var(--dms-gold); color: #000; font-weight: 700; font-size: 20px; border-radius: 50%; }
.dms-card__names { min-width: 0; }
.dms-card__names h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.dms-card__names p { margin: 0; font-size: 13px; color: var(--dms-muted); }
.dms-chip { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #efedf8; color: #4b4290; white-space: nowrap; }
.dms-card__videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 20px; }
.dms-card__newest { margin: 12px 20px 0; font-size: 14px; color: #333; }
.dms-card__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px 20px; margin-top: auto; }
.dms-card__actions .dms-btn { flex: 1 1 auto; min-height: 44px; font-size: 14px; padding: 0 16px; }
.dms-empty { margin: 8px 0 0; font-size: 16px; }

/* Click-to-load player */
.dms-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #1b1640; cursor: pointer; }
.dms-player img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.dms-player:hover img, .dms-player:focus-visible img { opacity: .85; }
.dms-player:focus-visible { outline: 3px solid var(--dms-gold); outline-offset: 2px; }
.dms-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dms-play circle { fill: var(--dms-gold); }
.dms-play path { fill: #000; }
.dms-player--sm { border-radius: 8px; }
.dms-player--sm .dms-play svg { width: 26px; height: 26px; }
.dms-player--md .dms-play svg { width: 44px; height: 44px; }
.dms-player--md .dms-play circle { fill: var(--dms-purple); }
.dms-player--md .dms-play path { fill: #fff; }
.dms-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }

/* Films */
.dms-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.dms-film { margin: 0; }
.dms-film figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; color: #000; line-height: 1.4; }

/* Join steps */
.dms-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.dms-step { background: #fff; border-radius: 18px; padding: 28px; }
.dms-step__num { margin: 0 0 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--dms-gold); color: #000; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dms-step h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.dms-step p { margin: 0; font-size: 15px; }
.dms-center { text-align: center; }
.dms-center .dms-sub { margin-left: auto; margin-right: auto; }
.dms-actions--center { justify-content: center; margin-top: 32px; }

/* Free class band */
.dms-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
.dms-cta-row__text { flex: 1 1 480px; margin: 0; font-size: 18px; font-weight: 600; color: #000; }
.dms-band--deep .dms-cta-row h2 { margin: 0 0 8px; font-size: 32px; color: #fff; }
.dms-band--deep .dms-cta-row p { margin: 0; font-size: 17px; color: #e8e5f7; }
.dms-note { padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--dms-muted); }

/* Single student page */
.dms-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
.dms-profile__avatar { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 50%; border: 5px solid #fff; object-fit: cover; font-size: 44px; }
.dms-profile__text { flex: 1 1 380px; min-width: 0; }
.dms-profile__text h1 { margin: 0 0 6px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 700; color: #fff; }
.dms-profile__channel { margin: 0; font-size: 17px; color: #e8e5f7; }
.dms-main { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 24px; }
.dms-main__video { flex: 2 1 560px; min-width: 0; }
.dms-main__video h2 { margin: 18px 0 4px; font-size: 24px; font-weight: 600; }
.dms-about { flex: 1 1 300px; min-width: 0; align-self: flex-start; background: var(--dms-soft); border-radius: 16px; padding: 28px; }
.dms-about h2 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.dms-more { padding-top: 32px; padding-bottom: 64px; }
.dms-more h2 { margin: 0 0 20px; font-size: 28px; font-weight: 700; }
.dms-backrow { padding-top: 24px; padding-bottom: 40px; }

/* Avada sets heading weights on .post-content; keep the design's weights */
.dms .dms-hero__text h1, .dms .dms-profile__text h1, .dms .dms-section h2, .dms .dms-more h2, .dms .dms-cta-row h2 { font-weight: 700 !important; }
.dms .dms-card__names h3, .dms .dms-step h3, .dms .dms-main__video h2, .dms .dms-about h2 { font-weight: 600 !important; }
.dms .dms-section h2 { font-size: 34px !important; }
.dms .dms-card__newest { margin: 12px 20px 0 !important; }
.dms .dms-card__names p, .dms .dms-card__names h3 { margin: 0 !important; }

@media (max-width: 640px) {
  .dms-hero { padding-top: 48px; gap: 32px; }
  .dms-section h2 { font-size: 28px; }
  .dms-grid { grid-template-columns: 1fr; }
}
