/**
 * ============================================================================
 * TEAM SECTION - Our Team Grid/Slider Layout
 * ============================================================================
 * 
 * Purpose: Responsive team member display that transitions from a complex
 * desktop grid layout to a horizontal mobile slider with decorative elements.
 * 
 * Layout Modes:
 * - Desktop (1920px+): 3-row asymmetric grid with 20%/40% width variations
 * - Laptop (1440px - 768px): 4-column uniform grid
 * - Mobile (≤992px): Horizontal scrolling slider
 * 
 * Features:
 * - SVG decorative element on first card (desktop only)
 * - Info box with glow effect and corner decorations
 * - Equal height cards in desktop grid mode
 * - Smooth horizontal scroll with snap points on mobile
 * 
 * @package     4pmix-WordPress
 * @subpackage  Question-Answer-Block/Assets
 * @version     1.0.0
 * ============================================================================
 */


/* ============================================================================
   GLOBAL RESETS & BASE LAYOUT
   ============================================================================ */

.our-team-main,
.team-row-1,
.team-row-2,
.team-row-3 {
  width: 100%;
  gap: 0px !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
}

.our-team-main .tc-outer,
.our-team-main .info-outer {
  box-sizing: border-box;
}


/* ============================================================================
   DESKTOP VIEW (1920px+) - Asymmetric Grid Layout
   ============================================================================ */

/* Team cards: 20% width */
.our-team-main .tc-outer {
  width: 20%;
  padding: 15px;
}

/* Info box: 40% width */
.our-team-main .info-outer {
  width: 40%;
  padding: 15px;
}

/* Row 2 offset: indent first card by 20% */
.team-row-2>.tc-outer:first-child {
  margin-left: 20%;
}


/* ============================================================================
   DECORATIVE ELEMENT - First Card SVG (Desktop Only)
   ============================================================================ */

.team-row-1>.tc-outer:first-child .tc-inner {
  position: relative;
}

.team-row-1>.tc-outer:first-child .tc-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -58px;
  left: -26px;
  width: 115%;
  height: 110%;
  background-image: url('https://4pmix.co/wp-content/uploads/2025/12/Vector-138-3.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* ============================================================================
   RESPONSIVE ADJUSTMENTS (1680px - 1441px)
   ============================================================================ */

@media (max-width: 1680px) {

  .our-team-main .tc-outer,
  .our-team-main .info-outer {
    padding: 10px;
  }
}


/* ============================================================================
   LAPTOP VIEW (1440px - 768px) - Uniform 4-Column Grid
   ============================================================================ */

@media (max-width: 1440px) {

  /* Flatten row structure - all items flow naturally */
  .team-row-1,
  .team-row-2,
  .team-row-3 {
    display: contents !important;
  }

  /* Team cards: 25% width (4 columns) */
  .our-team-main .tc-outer {
    width: 25%;
  }

  /* Remove row 2 offset */
  .team-row-2>.tc-outer:first-child {
    margin-left: 0;
  }

  /* Info box: full width at bottom */
  .our-team-main .info-outer {
    width: 100%;
    flex-basis: 100%;
    max-width: 100%;
  }
}


/* ============================================================================
   MOBILE VIEW (≤992px) - Horizontal Slider
   ============================================================================ */

@media (max-width: 992px) {
  .our-team-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0 !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Spacing adjustments */
    padding-top: 40px !important;
    padding-left: 20px !important;
    padding-bottom: 30px;
    margin-bottom: 20px !important;
  }

  .our-team-main::-webkit-scrollbar {
    display: none;
  }

  /* Flatten all rows */
  .team-row-1,
  .team-row-2,
  .team-row-3 {
    display: contents !important;
  }

  /* Team cards: 85% viewport width with spacing */
  .our-team-main .tc-outer {
    width: 85% !important;
    flex: 0 0 85% !important;
    max-width: 85% !important;
    margin-right: 20px;
    scroll-snap-align: start;
  }

  /* Remove row 2 offset */
  .team-row-2>.tc-outer:first-child {
    margin-left: 0 !important;
  }

  /* Info box: full width (will be moved outside by JS) */
  .info-outer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* Adjust decorative SVG for mobile sizing */
  .team-row-1>.tc-outer:first-child .tc-inner::before {
    width: 110% !important;
    height: 115% !important;
    top: -65px !important;
    left: -10px !important;
    background-size: contain !important;
  }
}


/* ============================================================================
   INFO BOX STYLING & DECORATION
   ============================================================================
   Centered info box with glowing effect and positioned SVG decorations.
   Desktop: Height-matched with team cards, decorations on left/right
   Mobile: Standalone box below slider, decorations hidden
   ============================================================================ */

/* === Desktop Height Matching (1441px+) === */
@media (min-width: 1441px) {
  .team-row-3 {
    align-items: stretch !important;
  }

  .info-outer {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .info-inner {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
    width: 100%;
  }
}

/* === Glow Effect (Desktop - Smoothed Edges) === */
.info-inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;

  /* Default size (1920px) */
  width: 420px;
  height: 420px;
  border-radius: 511px;

  /* Gradient with transparent edges + blur for smooth fade */
  background: radial-gradient(56.39% 56.04% at 50% 50%,
      rgba(184, 255, 0, 0.80) 0%,
      rgba(184, 255, 0, 0.00) 100%);
  filter: blur(30px);
  -webkit-filter: blur(30px);
  /* Safari/iOS compatibility */

  pointer-events: none;
}

/* === Top Left Decoration (Desktop) === */
.info-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('https://4pmix.co/wp-content/uploads/2025/12/4pmix-decorative-element.svg');

  /* Default position (1920px) */
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
}

/* === Bottom Right Decoration (Desktop) === */
.info-outer::after {
  content: "";
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('https://4pmix.co/wp-content/uploads/2025/12/our-team-heart.svg');

  /* Default position (1920px) */
  width: 100px;
  height: 100px;
  bottom: 10%;
  right: 10%;
}


/* ============================================================================
   INFO BOX RESPONSIVE UPDATES
   ============================================================================ */

/* === 1680px - Glow Size Adjustment === */
@media (max-width: 1680px) {
  .info-inner::before {
    width: 300px;
    height: 300px;
  }
}

/* === Laptop/Tablet (1440px - 768px) === */
@media (max-width: 1440px) {

  .info-outer {
    height: auto !important;
    display: block !important;
    position: relative;
  }

  .info-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 450px;
  }

  /* Resize glow */
  .info-inner::before {
    width: 320px;
    height: 320px;
  }

  /* === Vertical Middle Alignment for Decorations === */

  /* Left decoration */
  .info-inner::after {
    width: 160px;
    height: 160px;
    top: 52%;
    bottom: auto;
    transform: translateY(-50%);
    left: calc(50% - 380px);
    /* Distance from center */
  }

  /* Right decoration */
  .info-outer::after {
    width: 110px;
    height: 110px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    left: calc(50% + 240px);
    /* Distance from center */
    right: auto;
  }
}

/* === Mobile (992px and below) === */
@media (max-width: 992px) {

  /* Spacing fix */
  .our-team-main {
    margin-bottom: 20px !important;
  }

  .info-inner {
    min-height: 100px;
  }

  /* Resize glow */
  .info-inner::before {
    width: 300px !important;
    height: 300px !important;
  }

  /* Hide decorations on mobile */
  .info-inner::after,
  .info-outer::after {
    display: none !important;
  }
}