/* ═══════════════════════════════════════════════════════════════════════════
   TEAMS TRAINING SECTION - Premium Modern UI/UX 2025
   ═══════════════════════════════════════════════════════════════════════════ */
.teamsTrainingSection {
    --teams-primary: #0066FF;
    --teams-primary-light: #3385FF;
    --teams-primary-dark: #0052CC;
    --teams-accent: #00D4AA;
    --teams-bg: linear-gradient(135deg, #f8faff 0%, #eef4ff 50%, #f0f7ff 100%);
    --teams-glass: rgba(255, 255, 255, 0.85);
    --teams-glass-border: rgba(255, 255, 255, 0.9);
    --teams-shadow-soft: 0 4px 24px rgba(0, 102, 255, 0.08);
    --teams-shadow-medium: 0 12px 40px rgba(0, 102, 255, 0.12);
    --teams-shadow-strong: 0 20px 60px rgba(0, 102, 255, 0.15);
    --teams-text-primary: #0a1628;
    --teams-text-secondary: #4a5568;
    --teams-radius: 24px;
    --teams-radius-sm: 14px;
    
    width: 100%;
    padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 40px);
    background: var(--teams-bg);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.teamsTrainingSection::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.teamsTrainingInner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Image Wrapper with Glass Frame
   ───────────────────────────────────────────────────────────────────────────── */
.teamsImageWrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teamsImageGlow {
    position: absolute;
    width: 85%;
    height: 85%;
    background: linear-gradient(135deg, var(--teams-primary) 0%, var(--teams-accent) 100%);
    border-radius: var(--teams-radius);
    filter: blur(50px);
    opacity: 0.25;
    animation: teamsGlowPulse 4s ease-in-out infinite;
}

@keyframes teamsGlowPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.95); }
    50% { opacity: 0.3; transform: scale(1); }
}

.teamsImageFrame {
    position: relative;
    background: var(--teams-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--teams-radius);
    padding: 12px;
    border: 1px solid var(--teams-glass-border);
    box-shadow: 
        var(--teams-shadow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.teamsImageFrame:hover {
    box-shadow: 
        0 24px 50px rgba(0, 102, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.teamsImageFrame img {
    display: block;
    width: 100%;
    max-width: 580px;
    height: 420px;
    border-radius: calc(var(--teams-radius) - 8px);
    object-fit: cover;
    object-position: center 30%;
}

/* Floating Badge - Premium UI/UX */
.teamsFloatingBadge .teamsBadgeTextShort {
    display: none;
}

@media (max-width: 600px) {
    .teamsFloatingBadge .teamsBadgeTextFull {
        display: none;
    }

    .teamsFloatingBadge .teamsBadgeTextShort {
        display: inline;
    }
}

.teamsFloatingBadge {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px 14px 14px;
    background: linear-gradient(140deg, #059669, #047857, #065f46);
    color: white;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    border-radius: 100px;
    box-shadow: 
        0 4px 12px rgba(5, 150, 105, 0.3),
        0 8px 28px rgba(5, 150, 105, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    animation: teamsBadgeFloat 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes teamsBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.teamsFloatingBadge span {
    padding-right: 4px;
}

.teamsFloatingBadge svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-sizing: content-box;
}

.teamsFloatingBadge svg.teamsHeartIcon {
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.35));
}

/* ─────────────────────────────────────────────────────────────────────────────
   Content Wrapper
   ───────────────────────────────────────────────────────────────────────────── */
.teamsContentWrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(22px, 3vw, 30px);
}

/* Eyebrow badge */
.teamsEyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 9px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 100px;
    box-shadow:
        0 6px 18px rgba(0, 82, 204, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.teamsEyebrowIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--teams-primary) 0%, var(--teams-primary-dark) 100%);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 82, 204, 0.35);
}

.teamsEyebrowText {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--teams-primary-dark);
}

/* Heading */
.teamsHeading {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.teamsTitle {
    font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: clamp(27px, 3.6vw, 38px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.5px;
    color: var(--teams-text-primary);
    margin: 0;
}

.teamsTitleAccent {
    background: linear-gradient(120deg, #0066FF 0%, #0052CC 60%, #0891B2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.teamsIntro {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: clamp(16.5px, 1.8vw, 18px);
    line-height: 1.72;
    letter-spacing: 0.1px;
    color: var(--teams-text-secondary);
    margin: 0;
    max-width: 58ch;
}

/* Discount tiles */
.teamsOffers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 560px;
}

.teamsOffer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 212, 170, 0.07) 100%);
    border: 1px solid rgba(0, 102, 255, 0.16);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.teamsOfferValue {
    font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
    background: linear-gradient(120deg, #0066FF 0%, #0052CC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.teamsOfferLabel {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.1px;
    color: var(--teams-text-secondary);
}

/* Perk chips */
.teamsPerks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 0;
}

.teamsPerk {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow:
        0 6px 18px rgba(0, 82, 204, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    color: var(--teams-text-primary);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.teamsPerk:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.9);
    box-shadow:
        0 10px 26px rgba(0, 82, 204, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.teamsPerkIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--teams-primary) 0%, var(--teams-primary-dark) 100%);
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.25);
}

/* Compliance note */
.teamsCompliance {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 15.5px;
    line-height: 1.62;
    letter-spacing: 0.1px;
    color: var(--teams-text-secondary);
    margin: 0;
    max-width: 58ch;
}

/* CTA Button */
.teamsCTAButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 32px;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--teams-primary) 0%, var(--teams-primary-dark) 100%);
    color: white;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 14px;
    border: none;
    box-shadow: 
        0 8px 24px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    width: fit-content;
    cursor: pointer;
}

.teamsCTAButton::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teamsCTAButton:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 14px 36px rgba(0, 102, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.teamsCTAButton:hover::before {
    opacity: 1;
}

.teamsCTAButton svg {
    transition: transform 0.3s ease;
}

.teamsCTAButton:hover svg {
    transform: translateX(4px);
}

/* Shine sweep animation */
.teamsCTAButton::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 60%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: teamsBtnShine 4s ease-in-out infinite;
}

@keyframes teamsBtnShine {
    0%, 70% { left: -100%; opacity: 0; }
    75% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .teamsTrainingInner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .teamsImageWrapper {
        order: -1;
    }
    
    .teamsContentWrapper {
        align-items: center;
    }
    
    .teamsHeading {
        align-items: center;
    }
    
    .teamsIntro,
    .teamsCompliance {
        max-width: 64ch;
    }
    
    .teamsOffers,
    .teamsPerks {
        max-width: 560px;
        margin: 0 auto;
        text-align: left;
    }
    
    .teamsFloatingBadge {
        left: 10px;
        right: auto;
        bottom: 15px;
    }
}

@media (max-width: 960px) {
    .teamsImageFrame img {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .teamsTrainingSection {
        padding: 50px 16px;
    }
    
    .teamsImageFrame {
        padding: 8px;
    }
    
    .teamsImageFrame img {
        height: 280px;
    }
    
    .teamsTitle {
        font-size: clamp(25px, 6.5vw, 30px);
        letter-spacing: -0.4px;
    }
    
    .teamsIntro {
        font-size: 16px;
        line-height: 1.65;
    }
    
    .teamsEyebrow {
        padding: 7px 15px 7px 8px;
    }
    
    .teamsEyebrowText {
        font-size: 12.5px;
        letter-spacing: 1.1px;
    }
    
    .teamsOffers {
        gap: 10px;
    }
    
    .teamsOffer {
        padding: 14px 15px;
        border-radius: 14px;
    }
    
    .teamsOfferValue {
        font-size: 21px;
    }
    
    .teamsOfferLabel {
        font-size: 14px;
    }
    
    .teamsPerks {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .teamsPerk {
        padding: 11px 14px;
        font-size: 15px;
    }
    
    .teamsPerkIcon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }
    
    .teamsCompliance {
        font-size: 15px;
    }
    
    .teamsFloatingBadge {
        padding: 10px 16px;
        font-size: 16px;
        left: 5px;
        right: auto;
        bottom: -15px;
    }
    
    .teamsCTAButton {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
        padding: 14px 24px;
        font-size: 20px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .teamsImageGlow,
    .teamsFloatingBadge,
    .teamsCTAButton::after {
        animation: none;
    }
    
    .teamsImageFrame:hover,
    .teamsPerk:hover,
    .teamsCTAButton:hover {
        transform: none;
    }
}

/* Final mobile floating badge containment override */
@media (max-width: 600px) {
    .howItWorksFloatingBadge,
    .certFloatingBadge,
    .studyFloatingBadge,
    .teamsFloatingBadge {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        max-width: min(calc(100vw - 16px), calc(100% - 16px)) !important;
        min-width: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .howItWorksFloatingBadge {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        animation: none !important;
    }

    .studyFloatingBadge,
    .teamsFloatingBadge {
        left: 8px !important;
        right: auto !important;
        transform: none !important;
    }

    .certBadgeTop {
        left: auto !important;
        right: 8px !important;
    }

    .certBadgeBottom {
        left: 8px !important;
        right: auto !important;
    }

    .howItWorksFloatingBadge svg,
    .certFloatingBadge svg,
    .studyFloatingBadge svg,
    .teamsFloatingBadge svg {
        flex: 0 0 18px !important;
        width: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .howItWorksFloatingBadge span,
    .certFloatingBadge span,
    .studyFloatingBadge span,
    .teamsFloatingBadge span {
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    .hiwBadgeTextFull {
        display: none !important;
    }

    .hiwBadgeTextShort {
        display: inline !important;
    }
}

@media (max-width: 240px) {
    .howItWorksFloatingBadge,
    .certFloatingBadge,
    .studyFloatingBadge,
    .teamsFloatingBadge {
        flex-wrap: wrap !important;
        white-space: normal !important;
    }
}
