/* ========================================
   H5P Teams UI – Frontend Styles
======================================== */

.single-h5p_team .h5p-team-ui {
  all: initial;
  font-family: inherit;
}

/* ----------------------------------------
   Root Wrapper
---------------------------------------- */

.h5p-team-ui {
    margin: 0;
    padding: 0;
    width: 100vw;
}


/* ========================================
   HERO SECTION (Full Width)
======================================== */

.team-hero-full {
    position: relative;
    width: 100vw;
    
    background: var(--team-color);
    color: var(--team-text);

    padding: 0px 0 20px;
}

.team-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Title */

.team-hero-full .team-title {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 28px;

    text-align: center;
    color: var(--team-text) !important;
}

.team-title {
    padding-top: 28px;
}

/* Description (direction handled via PHP dir attribute) */

.team-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.team-description[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.team-description[dir="ltr"] {
    direction: ltr;
    text-align: left;
}
/* Meta row */

.team-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;

    font-size: 15px;
    opacity: 0.95;
    color: var(--team-text);
    margin-top:30px
}


/* ========================================
   ACTION BAR
======================================== */

.team-action-bar {
    display: flex;
    justify-content: center;   /* centers horizontally */
    align-items: center;
    gap: 20px;                 /* space between buttons */
    flex-wrap: wrap;           /* responsive wrapping */
    margin: 40px 0;
}

.team-action-bar .team-btn {
    min-width: 200px;
    text-align: center;
}

.team-action-bar a,
.team-action-bar button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   TEAM BUTTONS (SaaS Style)
======================================== */

.team-btn {
    padding: 12px 22px;
    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    border: 2px solid transparent;
    transition: all 0.18s ease;
}

/* Team member status button */
.team-action-bar .h5p-team-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 22px;
    border-radius: 12px;

    font-weight: 600;
    font-size: 14px;

    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    color: #fff;

    box-shadow: 0 4px 12px rgba(49,130,206,0.25);

    cursor: default;
    user-select: none;
}

/* Primary */

.team-btn-primary {
    background: var(--team-color);
    color: #ffffff;
}

.team-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Outline */

.team-btn-outline {
    background: transparent;
    border-color: #d1d5db;
    color: #1f2937;
}

.team-btn-outline:hover {
    background: #f3f4f6;
}

/* Dark */

.team-btn-dark {
    background: #1f2937;
    color: #ffffff;
}

.team-btn-dark:hover {
    background: #111827;
    transform: translateY(-1px);
}

/* Locked */

.team-btn-locked {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.team-btn-locked:hover {
    background: #ddd6fe;
}

.team-btn--disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
    border: 2px solid #e5e7eb;
}

.team-btn--active {
    transition: transform .18s ease, box-shadow .18s ease;
}

.team-btn--active:hover {
    transform: translateY(-2px);
}

.colab-title {
     text-align: center;
    margin: 40px 0 20px;
}

/* =========================================
   LOGIN / SIGNUP CTA BUTTON
========================================= */

.team-action-bar .h5p-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 999px;

  background: linear-gradient(135deg, #2c73d2, #5fa9f5);
  color: #ffffff !important;

  font-weight: 600;
  font-size: 14px;
  text-decoration: none;

  box-shadow: 0 6px 18px rgba(44, 115, 210, 0.25);
  transition: all 0.25s ease;
}

.team-action-bar .h5p-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44, 115, 210, 0.35);
}

/* ========================================
   Animation
======================================== */

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-4px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.team-teamwork-section{
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
}

.team-section-title {
    text-align: center;
    margin: 0 0 40px;
    padding-top: 28px;
    font-size: 28px;
    letter-spacing: 2px;
}

.team-title-bold {
    font-weight: 1000;
    margin-right: 10px;
    letter-spacing: -0.5px;
}

.team-title-thin {
    font-weight: 400;
    letter-spacing: -0.5px;
}

.teamwork-more{
  margin-top: 30px;
  text-align:center;
}

/* Optional: if feed plugin outputs items you can safely grid */
.teamwork-feed .teamwork-grid,
.teamwork-feed .teamwork-items{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}


/* --------------------------------------------------- */
/* ======================================================
   H5P JOIN INTRO – SKY SECTION
====================================================== */

.h5p-join-intro {
  padding: 100px 20px;
  position: relative;
  overflow: hidden;

background: linear-gradient(
  to bottom,
 #2c73d2 0%,
  #5fa9f5 45%,
  #cfe9ff 100%
);
}

@media (max-width: 768px) {
  .h5p-join-intro {
    background: linear-gradient(
      to bottom,
      #3b82f6 0%,
      #79b8ff 45%,
      #e6f4ff 100%
    );
  }
}

/* ======================================================
   CLOUD DRIFTING RIGHT → LEFT
====================================================== */

.h5p-join-intro::before {
  content: "";
  position: absolute;

  bottom: -40px;   /* slight drop below bottom edge */
  left: 100%;      /* start off right edge */

  width: 1200px;
  height: 700px;

  background: url('/invite-system-te/wp-content/uploads/2026/03/—Pngtree—realistic-cloud-element_8624528.png')
              center / contain no-repeat;

  opacity: 0.95;

  transform: translateX(0);

  animation: h5pCloudDrift 45s linear infinite;

  pointer-events: none;
  z-index: 0;
}

@keyframes h5pCloudDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-160vw);
  }
}

@media (max-width: 768px) {

  .h5p-join-intro::before {

    width: 500px;
    height: 400px;

    bottom: 100px;

    /* Important: anchor at left 0 */
    left: 0;

    /* Start completely off right side */
    transform: translateX(90vw);

    opacity: 0.75;

    animation: h5pCloudDriftMobile 35s linear infinite;
  }

}

@keyframes h5pCloudDriftMobile {
  from {
    transform: translateX(110vw);
  }
  to {
    transform: translateX(-120%);
  }
}


/* ======================================================
   CONTENT CONTAINER – ELEGANT SILHOUETTE
====================================================== */

.h5p-join-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 50px;

  background: transparent;       /* keep sky visible */
  border-radius: 28px;

  /* Gentle elegant stroke */
  border: 1px solid rgba(255, 255, 255, 0.35);

  /* Soft separation from background */
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 25px 60px rgba(0, 0, 0, 0.08);

  position: relative;
  z-index: 2;
}

/* ======================================================
   LANGUAGE TOGGLE
====================================================== */

.h5p-join-intro__top {
  margin-bottom: 30px;
}

.h5p-join-intro__toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
}

.h5p-join-intro__tab {
  border: none;
  background: transparent;

  padding: 8px 22px;
  border-radius: 999px;

  font-weight: 450;
  font-size: 14px;
  color: #0f172a;

  cursor: pointer;
  transition: all 0.2s ease;
}

.h5p-join-intro__tab:hover {
  background: rgba(0,0,0,0.05);
}

.h5p-join-intro__tab.is-active {
  background: #1e40af;
  color: #ffffff;
}


/* ======================================================
   CONTENT PANELS
====================================================== */

.h5p-join-intro__panel {
  display: none;
  font-size: 17px;
  line-height: 1.9;
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

.h5p-join-intro__panel.is-active {
  display: block;
}


/* ======================================================
   RTL / LTR
====================================================== */

.h5p-join-intro__panel[dir="rtl"] {
  text-align: right;
  unicode-bidi: plaintext;
}

.h5p-join-intro__panel[dir="ltr"] {
  text-align: left;
}

/* =========================================
   JOIN INTRO TEXT REFINEMENT
========================================= */

.h5p-join-intro__panel {
  color: #0f2a4d;          /* deep navy, readable */
  font-weight: 500;        /* slightly heavier */
  letter-spacing: 0.2px;
}

.h5p-join-intro__panel strong {
  font-weight: 650;
  color: #0a1f3c;          /* slightly darker emphasis */
}


/* =========================================
   LIGHT ANNOUNCEMENT BLOCK
========================================= */

/* =========================================
   LIGHT ANNOUNCEMENT BLOCK (NOT A BUTTON)
========================================= */

.h5p-join-intro__highlight {
  margin-top: 30px;
  padding: 14px 0;

  font-weight: 500;
  color: #0c3767;

  background: none;
  border: none;
  border-radius: 0;

  text-align: center;

  position: relative;
}

.h5p-join-intro__highlight strong {
      font-weight: 650;
        color: #0c3767;
}



/* Elegant thin separator lines */
.h5p-join-intro__highlight::before
/*.h5p-join-intro__highlight::after*/ {
  content: "";
  display: block;
  width: 240px;
  height: 1px;
  margin: 10px auto;

  background: rgba(255, 255, 255, 0.5);
}

/* ======================================================
   MOBILE
====================================================== */

/* ======================================================
   MOBILE REFINEMENT – TEAMS PAGE
====================================================== */

@media (max-width: 768px) {

  /* ----------------------------------
     Join Intro – Reduce Height
  ---------------------------------- */

  .h5p-join-intro {
    padding: 20px 20px;
  }

  .h5p-join-intro__inner {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .h5p-join-intro__panel {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Language toggle full width */

  .h5p-join-intro__toggle {
    width: 100%;
    justify-content: space-between;
  }

  .h5p-join-intro__tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
  }

  /* Cloud smaller + softer */
  /*
  .h5p-join-intro::before {
    width: 500px;
    height: 300px;
    bottom: -20px;
    opacity: 0.5;
    animation-duration: 60s;
  }
  /*

  /* ----------------------------------
     HERO – More Compact
  ---------------------------------- */

  .team-hero-full {
    padding-bottom: 10px;
  }

  .team-hero-inner {
    padding: 0 18px;
  }

  .team-hero-full .team-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .team-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .team-meta-row {
    gap: 12px;
    font-size: 13px;
    margin-top: 18px;
  }

  /* ----------------------------------
     Action Bar – Stack Buttons
  ---------------------------------- */

  .team-action-bar {
    /*flex-direction: column;*/
    gap: 14px;
    margin: 12px 0 12px;
  }

  /*.team-action-bar .team-btn {
    width: 100%;
    min-width: unset;
  } */
  
  .h5p-join-intro__highlight {
  margin-top: 0px;
  }
}
@media (max-width:600px){

  .team-action-bar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    padding:0 12px;
  }

  /* Join button (top row) */
  .team-action-bar > :first-child{
    grid-column:1 / -1;
    justify-self:center;
  }

  /* Bottom buttons */
  .team-action-bar .team-btn{
    min-width:0;
    font-size:13px;
    padding:10px 14px;
    white-space:nowrap;
    justify-content:center;
  }

}

  
  /* ----------------------------------
     Collaboration Section
  ---------------------------------- */

  .colab-title {
    margin: 30px 0 15px;
    font-size: 18px;
  }

  .team-teamwork-section {
    padding: 0 15px;
  }

  /* Grid tighter on mobile */

  .teamwork-feed .teamwork-grid,
  .teamwork-feed .teamwork-items {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .teamwork-feed-item {
    margin-bottom: 32px
  }


  @media (max-width: 768px) {
    .colab-title::after {
      content: "";
    }

    .colab-title {
      line-height: 1.2;
    }

    .colab-title {
      display: block;
    }

    .colab-title::first-line {
      display: block;
    }
  }

/* link copied toaster */ 
.h5p-team-toast {
  position: fixed;

  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(10px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(0,0,0,0.88);
  color: #fff;

  font-size: 18px;
  font-weight: 500;
  letter-spacing: .2px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  box-shadow:
    0 6px 18px rgba(0,0,0,.25),
    0 2px 6px rgba(0,0,0,.18);

  opacity: 0;

  transition:
    opacity .25s ease,
    transform .25s cubic-bezier(.2,.7,.2,1);

  z-index: 999999;

  pointer-events: none;
}

.h5p-team-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

