/* ==========================================================
   HARD ISOLATION — PROTECT FROM THEME (ASTRA)
   ========================================================== */

.single-h5p_team .entry-content .teamwork-feeds,
.single-h5p_team .entry-content .teamwork-feeds * {
  box-sizing: border-box;
}
.ast-container {
   max-width: 100%px;
   margin: 0 auto;
}

/* ==========================================================
   TEAMWORK SYSTEM — CORE LAYERS (1–3)
   ========================================================== */
iframe {
  outline: none !important;
}

.teamwork-embed-wrapper iframe {
  width: 100%;
  min-height: 650px; /* important */
  display: block;
}

/* ===================================== */
/* TEAM TOP STRIP – CLEAN VERSION */
/* ===================================== */

.team-top-strip {
  position: relative;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(
    90deg,
    var(--team-bg),
    color-mix(in srgb, var(--team-bg) 85%, #000 15%)
  );
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
}

.team-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* ------------------------------------- */
/* LEFT SIDE */
/* ------------------------------------- */

.team-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-strip-logo {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.team-strip-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ------------------------------------- */
/* BRAND TEXT */
/* ------------------------------------- */

.team-strip-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.team-strip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--team-text);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ------------------------------------- */
/* TAGLINE */
/* ------------------------------------- */

.team-strip-tagline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 3px;
  color: var(--team-text);
  opacity: 0.95;
}

.tag-create {
  font-family: 'Kaushan Script', cursive;
  font-size: 16px;
}

.tag-engage {
  font-family: 'Oregano', cursive;
  font-size: 17px;
  position: relative;
  top: 1px;
}

.tag-inspire {
  font-family: 'Playball', cursive;
  font-size: 22px;
  position: relative;
  top: 2px;
}

.tag-sep::after {
  content: "•";
  font-size: 8px;
  opacity: 0.5;
  position: relative;
  top: -3px;
}

/* ------------------------------------- */
/* CORNER FOLD EFFECT */
/* ------------------------------------- */

/*.team-top-strip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.22),
    rgba(0,0,0,0.05)
  );
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}*/

/* ------------------------------------- */
/* MOBILE */
/* ------------------------------------- */

@media (max-width: 768px) {

  .team-top-strip {
    padding: 10px 16px;
  }

  .team-strip-title {
    font-size: 13px;
    white-space: normal;
  }

  .team-strip-tagline {
    gap: 8px;
  }

  .tag-create { font-size: 15px; }
  .tag-engage { font-size: 16px; }
  .tag-inspire { font-size: 18px; }

}


/* ==========================================================
   LAYER 1 — GLOBAL WIDTH + VARIABLES
   ========================================================== */

:root {
  --teamwork-feed-width: min(920px, 100%);

  --feed-radius: 16px;
  --feed-inner-radius: 14px;

  --feed-surface: #4b607a;

  --feed-text-main: #ffffff;
  --feed-text-soft: rgba(255,255,255,0.82);

  --feed-shadow: 0 2px 8px rgba(0,0,0,0.06);
  --feed-shadow-hover: 0 4px 14px rgba(0,0,0,0.10);
}


/* Width container */

.teamwork-feeds,
.teamwork-team-header,
.teamwork-main {
  width: 100%;
  max-width: var(--teamwork-feed-width);
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}

.teamwork-team-header {
  text-align: center;
}


/* Desktop layout */

@media (min-width: 1024px) {
  .teamwork-main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
  }
}

/* =========================================
   COLLABORATIVE FEED LABEL
   ========================================= */

.teamwork-collab-label {
  font-size: 30px;                /* 🔧 control size */
  font-weight: 900;               /* 🔧 boldness */
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--team-theme);       /* auto match color box */
  margin-top: 8px !important;
  margin-bottom: 14px;
  text-align: center;
}

/* ==========================================================
   MOBILE — FORCE COLLABORATIVE FEED INTO ONE ROW
   ========================================================== */

@media (max-width: 768px) {

  .teamwork-collab-label {
    font-size: 18px;          /* reduce size */
    letter-spacing: 3px;      /* slightly tighter */
    white-space: nowrap;      /* prevent wrapping */
  }

}



/* ==========================================================
   LAYER 2 — TEAM HEADER (ISOLATED)
   ========================================================== */

.team-theme-box {
  position: relative;
  overflow: hidden;
  color: #ffffff;

  font-size: 22px;
  line-height: 1.6;

  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Shine overlay */

.team-theme-box::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    var(--team-bg),
    rgba(0,0,0,0.15)
  );

  pointer-events: none;
}

/* Inner glow */

.team-theme-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.08);

  pointer-events: none;
}


/* Title + description */

.team-title {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.team-description {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}


/* Meta bar */

.team-theme-box .team-meta-box.team-meta-bottom {
  margin-top: 20px;
  padding: 12px 16px;

  border-radius: 12px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  text-align: center;
}

.team-theme-box .team-meta-line {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 14px;
  white-space: nowrap;
  direction: ltr;
}


////////
/* ==========================================================
   TEAM META — CLEAN INLINE BAR
   ========================================================== */

.team-theme-box .team-meta-box.team-meta-bottom {
  margin-top: 18px;
  padding: 10px 0;

  background: transparent;
  border: none;
  backdrop-filter: none;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;

  text-align: center;
}

/* Each block */
.team-theme-box .team-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

/* Divider */
.team-theme-box .team-meta-line:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.35);
  margin-left: 24px;
}

/* ==========================================================
   TEAM META — EMOJI WHITE STROKE
   ========================================================== */

.team-meta-box .emoji-badge {
  font-size: 20px;
  line-height: 1;
  display: inline-block;

  /* FORCE stable outline */
  filter:
    drop-shadow(-1px  0  #ffffff)
    drop-shadow( 1px  0  #ffffff)
    drop-shadow( 0 -1px  #ffffff)
    drop-shadow( 0  1px  #ffffff);

  /* Prevent parent blur interference */
  isolation: isolate;
}

/// RIBBON 

.team-theme-box {
  position: relative;
  overflow: hidden;
}

.team-join-badge {
  position: absolute;
  top: 16px;
  left: -60px; /* adjust if needed */

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.25);
  color: #ffffff;

  padding: 10px 120px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;

  text-decoration: none;
  white-space: nowrap; /* prevents weird wrap */

  transform: rotate(-45deg);

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);

  transition: background .2s ease, transform .2s ease;
}



.team-join-badge:hover {
  background: rgba(0,0,0,0.35);
  transform: rotate(-45deg) scale(1.05);
}

/* ==========================================================
   MOBILE — STACK META INFO VERTICALLY
   ========================================================== */

@media (max-width: 768px) {

  .team-theme-box .team-meta-box.team-meta-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .team-theme-box .team-meta-line {
    width: 100%;
    justify-content: center;
  }

  /* Remove vertical divider lines on mobile */
  .team-theme-box .team-meta-line:not(:last-child)::after {
    display: none;
  }

}

/* ==========================================================
   MOBILE — MATCH HEADER WIDTH TO FEED CARDS
   ========================================================== */

@media (max-width: 768px) {

  /* Remove extra spacing around header container */
  .teamwork-team-header {
    padding-inline: 6px;   /* same as .teamwork-feeds */
  }

  /* Make color box full width like feed cards */
  .team-theme-box {
    margin-bottom: 16px;
    border-radius: 14px;
  }

}



/* ==========================================================
   LAYER 3 — FEED CARD SYSTEM
   ========================================================== */


/* Outer team color frame */

.teamwork-feed-item {
  background: var(--team-bg, #334155);
  border-radius: var(--feed-radius);

  padding: 2px;  /* ultra thin team frame */
  margin-bottom: 22px;

  box-shadow: var(--feed-shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.teamwork-feed-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--feed-shadow-hover);
}


/* Inner surface */

.teamwork-feed-inner {
  background: var(--feed-surface);
  border-radius: var(--feed-inner-radius);
  padding: 18px;
}


/* ================= HEADER ================= */

.teamwork-feed-header {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.teamwork-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.teamwork-feed-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--feed-text-main);
  margin: 0;
}

.teamwork-feed-actions {
  display: flex;
  gap: 8px;
}

.teamwork-feed-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--feed-text-soft);
}

.teamwork-feed-updated {
  margin-top: 2px;
  font-size: 13px;
  color: var(--feed-text-soft);
}


/* ================= EMBED ================= */

.teamwork-embed-wrapper {
  margin: 20px 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.12);
}

.teamwork-embed-wrapper iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ==========================================================
   FEED ACTION BUTTONS — CLEAN MODERN STYLE
   ========================================================== */

.teamwork-feed-actions {
  display: flex;
  gap: 10px;
}

/* Base button */

.teamwork-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 16px;
  min-width: 82px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  border-radius: 10px;
  border: none;

  transition: 
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease;

  cursor: pointer;
}

.teamwork-btn--locked {
  background: #cccccc !important;
  color: #666666 !important;
  border-color: #cccccc !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.teamwork-btn--locked:hover {
  background: #cccccc !important;
}

/* =========================================
   VIEW BUTTON — BLUE PRIMARY
   ========================================= */

.teamwork-btn--student {
  background: linear-gradient(
    180deg,
    #3b82f6,
    #2563eb
  );

  color: #ffffff;

  box-shadow: 
    0 2px 6px rgba(37,99,235,0.35);
}

.teamwork-btn--student:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 14px rgba(37,99,235,0.45);
}

.teamwork-btn--share {
  background: #1e88e5;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}

.teamwork-btn--share:hover {
  background: #1565c0;
}

/* =========================================
   EDIT BUTTON — WARM ORANGE / ADMIN
   ========================================= */

.teamwork-btn--edit {
  background: linear-gradient(
    180deg,
    #f59e0b,
    #d97706
  );

  color: #ffffff;

  box-shadow: 
    0 2px 6px rgba(217,119,6,0.35);
}

.teamwork-btn--edit:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 14px rgba(217,119,6,0.45);
}

/* =========================================
   ACTIVE PRESS EFFECT
   ========================================= */

.teamwork-btn:active {
  transform: translateY(0);
  box-shadow: none;
}





/* ==========================================================
   MOBILE ADJUSTMENTS
   ========================================================== */

@media (max-width: 768px) {

  .teamwork-feeds {
    padding-inline: 6px;
  }

  .teamwork-feed-item {
    padding: 1px;   /* thinner team edge on mobile */
    margin-bottom: 16px;
  }

  .teamwork-feed-inner {
    padding: 14px;
  }
}

.teamwork-join-wrapper {
  margin-top: 24px;
  text-align: center;
}

.teamwork-btn--join {
  display: inline-block;

  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;

  border-radius: 999px;
  text-decoration: none;

  background-color: #2ecc71; /* clean green */
  color: #ffffff;

  border: none;
  transition: all 0.25s ease;
}

.teamwork-btn--join:hover {
  background-color: #27ae60;
  transform: translateY(-1px);
}

.teamwork-btn--join:active {
  transform: translateY(0);
}


/* ==========================================================
   LAYER 4 — EMOJI SYSTEM (CLEAN + STABLE)
   ========================================================== */


/* ==========================================================
   4.1 LOWER ROW — REACTION PANEL
   ========================================================== */

.teamwork-reactions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}


/* ==========================================================
   4.2 LOWER ROW — BUTTON BASE
   ========================================================== */

.teamwork-emoji-btn {
  width: 56px;
  height: 56px;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);

  cursor: pointer;

  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              background .2s ease;
}


/* ==========================================================
   4.3 LOWER ROW — EMOJI SIZE (STABLE)
   ========================================================== */

.teamwork-emoji-btn img.emoji,
.teamwork-emoji-btn svg.emoji {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  display: block;                /* prevents inline jump */
}


/* ==========================================================
   4.4 LOWER ROW — HOVER + ACTIVE
   ========================================================== */

.teamwork-emoji-btn:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0.10);
}

.teamwork-emoji-btn.is-active {
  transform: scale(1.18);
  background: rgba(255,255,255,0.14);
}

/* ==========================================================
   4.5 TOP ROW — COUNTER CONTAINER (FORCE ONE ROW)
   ========================================================== */

.teamwork-emoji-counts {
  display: flex;
  align-items: center;
  gap: 8px;               /* smaller gap */
  margin-top: 10px;

  flex-wrap: nowrap;      /* 🚀 force single row */
  overflow-x: auto;       /* safe fallback on very small screens */
}


/* ==========================================================
   4.6 TOP ROW — COUNTER PILL (COMPACT)
   ========================================================== */

.teamwork-emoji-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 4px 10px;      /* smaller padding */
  border-radius: 999px;

  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);

  font-size: 13px;        /* slightly smaller text */
  font-weight: 500;
  color: #ffffff;

  min-height: 28px;
  white-space: nowrap;    /* prevents breaking inside pill */
}


/* ==========================================================
   4.7 TOP ROW — EMOJI SIZE (MORE COMPACT)
   ========================================================== */

.teamwork-emoji-count img.emoji,
.teamwork-emoji-count svg.emoji {
  width: 18px !important;   /* smaller than 24px */
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
}


/* ==========================================================
   4.8 TOP ROW — POP ANIMATION
   ========================================================== */

.teamwork-emoji-count.is-updated {
  animation: emojiPop .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes emojiPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}


/* ==========================================================
   4.9 HEART WHITE STROKE (BOTH ROWS)
   ========================================================== */

.teamwork-emoji-btn img.emoji[alt*="❤"],
.teamwork-emoji-count img.emoji[alt*="❤"],
.teamwork-emoji-btn svg.emoji[aria-label*="❤"],
.teamwork-emoji-count svg.emoji[aria-label*="❤"] {
  filter:
    drop-shadow(-1px 0 #ffffff)
    drop-shadow( 1px 0 #ffffff)
    drop-shadow( 0 -1px #ffffff)
    drop-shadow( 0  1px #ffffff);
}


/* ==========================================================
   4.10 REMOVE ANY OLD RING / RIPPLE SYSTEM
   ========================================================== */

.teamwork-emoji-btn::before,
.teamwork-emoji-btn::after {
  content: none !important;
}

//  ==========================================================

.h5p-teamworks-admin,
.teamwork-feeds, {
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.teamwork-team-header .team-title {
    font-family: 'Assistant', sans-serif !important;
}


// tags and author commen 

.teamwork-author-note-wrapper {
  margin-top: 16px;
}

.teamwork-author-note {
  position: relative;
  padding: 14px 16px 14px 18px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(255,255,255,0.12);
  border-left: 4px solid #7cc3ff;
  border-radius: 8px;
  color: #ffffff;
}

/* larger subtle quote */
.teamwork-author-note::before {
  content: "“";
  position: absolute;
  left: 8px;
  top: 4px;
  font-size: 28px;
  opacity: 0.25;
}

.teamwork-note-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  font-size: 12px;
  color: #7cc3ff;
  cursor: pointer;
}


.teamwork-note-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-size: 12px;
  color: #4aa3ff;
  cursor: pointer;
}
.teamwork-tags {
  margin-top: 10px;
}

.teamwork-tag {
  display: inline-block;
  margin-right: 10px;
  font-size: 13px;
  color: #7cc3ff;
  text-decoration: none;
  opacity: 0.85;
  transition: 0.2s ease;
}

.teamwork-tag:hover {
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: underline;
}
/* ==========================================================
   TEAMWORK COMMENTS – COMPACT VERSION
   ========================================================== */

.teamwork-comments {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* -----------------------------
   Posted Comments (Compact)
   ----------------------------- */

.teamwork-comment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 4px 0;
  border-left: 3px solid #7EE787; /* change per theme */
  padding-left: 8px; 
  
}

/* Author */
.teamwork-comment strong {
  font-weight: 600;
  white-space: nowrap;
  color: #E6EDF6;
}

/* Date */
.teamwork-comment-date {
  font-size: 12px;
  opacity: 0.5;
  white-space: nowrap;
     color: #E6EDF6;

}

/* Text */
.teamwork-comment-text {
  opacity: 0.9;
  white-space: normal;
  line-height: 1.4;
   color: #E6EDF6;
}

/* -----------------------------
   Input Area (Clearly Different)
   ----------------------------- */

.teamwork-comment-form {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
}

/* Textarea */
.teamwork-comment-form textarea {
  width: 100%;
  min-height: 36px; /* much smaller */
  resize: vertical;
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: background 0.2s ease;
}

.teamwork-comment-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.teamwork-comment-form textarea:focus {
  background: rgba(255,255,255,0.18);
}

/* Button */
.teamwork-btn--comment {
  margin-top: 8px;
  padding: 4px 16px;
  font-size: 13px;
  border-radius: 20px;
}
/* ==========================================================
   MOBILE TYPOGRAPHY FIX — FINAL OVERRIDES
   ========================================================== */

@media (max-width: 768px) {

  body {
    font-size: 17px;
  }

  .team-title {
    font-size: 26px !important;
  }

  .team-description {
    font-size: 14px !important;
    line-height: 1.6;
  }

  .team-meta-line {
    font-size: 15px !important;
  }

  .teamwork-feed-title {
    font-size: 22px !important;
  }

  .teamwork-feed-subtitle,
  .teamwork-feed-updated {
    font-size: 15px !important;
  }

  .teamwork-author-note {
    font-size: 15px !important;
  }

  .teamwork-comment {
    font-size: 15px !important;
  }

  .teamwork-comment-date {
    font-size: 13px !important;
  }

  .teamwork-emoji-count {
    font-size: 16px !important;
  }

}

@media (max-width: 768px) {

  .teamwork-team-header,
  .teamwork-feeds {
    font-size: 18px !important;
  }

}

/* FORCE larger typography inside teamwork only */

.teamwork-team-header,
.teamwork-team-header p,
.teamwork-team-header .team-description {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

@media (max-width: 768px) {

  .teamwork-team-header,
  .teamwork-team-header p,
  .teamwork-team-header .team-description {
    font-size: 14px !important;
  }

}

/* =========================================
   SHARE PAGE WRAPPER
========================================= */

.h5p-share-page .h5p-share-wrapper {
  width: 80%;
  margin: 40px auto;
}


/* =========================================
   SECTION LABELS
========================================= */

.share-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7280;
  margin-bottom: 14px;
}

.teacher-label {
  margin-bottom: 16px;
}

.content-label {
  margin-top: 80px;
  margin-bottom: 16px;
}


/* =========================================
   TEACHER PANEL (PRIVATE CONTROLS)
========================================= */

.teacher-panel-card {
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4fc 100%);
  border: 1px solid #d8e5f4;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}


/* =========================================
   HEADER
========================================= */

.h5p-share-header {
  text-align: center;
  margin-bottom: 32px;
}

.h5p-share-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.h5p-share-author {
  font-size: 13px;
  color: #6b7280;
}


/* =========================================
   SHARE CONTENT ROW (QR + RIGHT SIDE)
========================================= */

.h5p-share-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.h5p-share-qr img {
  width: 88px;
  height: 88px;
}


/* =========================================
   RIGHT SIDE (LINK + BUTTONS)
========================================= */

.h5p-share-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* =========================================
   LINK ROW
========================================= */

.h5p-share-link-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.h5p-share-label {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.h5p-share-link-row input {
  width: 380px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: right;
  background: #ffffff;
}


/* =========================================
   BUTTONS
========================================= */

.h5p-share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h5p-share-buttons button:nth-child(3) {
  margin-left: auto;
}

.h5p-share-wrapper button,
.h5p-share-wrapper a {
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.h5p-share-wrapper button:hover,
.h5p-share-wrapper a:hover {
  background: #f3f4f6;
}


/* =========================================
   INTERACTIVE CONTENT (PUBLIC OUTPUT)
========================================= */

.interactive-content {
  margin-top: 90px;
}

.interactive-content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}


/* =========================================
   IFRAME WRAPPER
========================================= */

.teamwork-embed-wrapper iframe {
  width: 100%;
  border: none;
}


/* notifications: can't only approfved team members can... */

.teamwork-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.teamwork-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.teamwork-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 9999;
  text-align: center;
  max-width: 280px;
}

.teamwork-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.teamwork-toast-message {
  margin-bottom: 10px;
}

.teamwork-toast-cta {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}

.teamwork-toast-cta:hover {
  background: #2563eb;
}

/* Load More wrapper */
.teamwork-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 40px 0 80px;
}

/* Load More button */
#teamwork-load-more {
    background: var(--team-color);
    color: var(--team-text);
    border: none;
    padding: 12px 26px;
    border-radius: 22px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#teamwork-load-more:hover {
    opacity: 0.9;
}

/* End of feed message */
.teamwork-feed-end {
    text-align: center;
    position: relative;
    margin: 40px 0 80px;
    font-size: 14px;
    color: var(--team-color);
}

/* Divider lines around the message */
.teamwork-feed-end::before,
.teamwork-feed-end::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--team-color);
    margin: 0 10px;
    vertical-align: middle;
}