/* ========================================================================
   Working Process — hierarchy tree with pin points
   ======================================================================== */

.te-process-tree-area {
    padding: 120px 0;
    background: #fafbfc;
    position: relative;
    overflow: hidden;
}

.te-process-tree-area::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.te-process-tree-area::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -8%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.te-process-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---- Root node (Step 01) ---- */
.te-tree-root {
    text-align: center;
    max-width: 420px;
    position: relative;
}

/* Vertical stem from root down to the horizontal branch */
.te-tree-stem {
    width: 2px;
    height: 70px;
    background: linear-gradient(180deg, #317EFE 0%, #8b5cf6 100%);
    position: relative;
}

.te-tree-stem::before,
.te-tree-stem::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #317EFE;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.te-tree-stem::before { top: 0; }
.te-tree-stem::after  { bottom: 0; background: #8b5cf6; }

/* ---- Branch row holding the two children ---- */
.te-tree-branch {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0 12%;
    box-sizing: border-box;
}

/* The horizontal bar connecting both children */
.te-tree-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, #317EFE 0%, #8b5cf6 100%);
}

/* Short vertical drops from the horizontal bar to each child */
.te-tree-child {
    text-align: center;
    width: 45%;
    position: relative;
    padding-top: 70px;
}

.te-tree-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 70px;
    background: linear-gradient(180deg, #8b5cf6 0%, #317EFE 100%);
    transform: translateX(-50%);
}

.te-tree-child::after {
    content: '';
    position: absolute;
    top: 66px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #317EFE;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* ---- Map pin marker (location-pin shape, not a plain circle) ---- */
.te-pin {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #317EFE 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow:
        0 14px 30px rgba(49, 126, 254, 0.35),
        inset 0 -4px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.te-pin:hover {
    transform: rotate(-45deg) translateY(-6px) scale(1.05);
    box-shadow:
        0 22px 44px rgba(49, 126, 254, 0.45),
        inset 0 -4px 8px rgba(0, 0, 0, 0.08);
}

.te-pin::after {
    /* Inner white circle to make the pin look like a real map marker */
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.te-pin-number {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 700;
    color: #317EFE;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.te-pin-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.te-pin-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .te-process-tree-area {
        padding: 80px 0;
    }

    .te-tree-branch {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
    }

    .te-tree-branch::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, #317EFE 0%, #8b5cf6 100%);
    }

    .te-tree-child {
        width: 100%;
        max-width: 320px;
        padding-top: 70px;
        margin-bottom: 40px;
    }

    .te-tree-child:last-child {
        margin-bottom: 0;
    }

    .te-tree-child::before {
        top: 0;
        height: 70px;
    }

    .te-pin {
        width: 80px;
        height: 80px;
    }
}

/* ========================================================================
   Icon overrides — use FontAwesome <i> in place of theme PNG icons
   ======================================================================== */

/* Service card icons: brand-blue, ~50px, centered in the .icon container */
.te-info-card .te-title-wrapper .icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
}
.te-info-card .te-title-wrapper .icon i {
    font-size: 32px;
    color: #317EFE;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}
.te-info-card:hover .te-title-wrapper .icon i {
    transform: scale(1.1) rotate(-5deg);
    color: #8b5cf6;
}

/* Counter-up icons: white on brand-blue circle */
.te-counter-item .te-counter-title .icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #317EFE 0%, #8b5cf6 100%);
    border-radius: 50%;
    margin-right: 18px;
}
.te-counter-item .te-counter-title .icon i {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

/* ========================================================================
   Counter-up section — solid dark gradient + glassy cards so the labels
   are always readable. The world map is kept as a low-opacity texture
   instead of being the literal background image.
   ======================================================================== */
.te-counter-readable {
    position: relative;
    isolation: isolate;
    margin-top: 0 !important;
    background: linear-gradient(135deg, #14203A 0%, #1e2d54 50%, #14203A 100%);
}

/* Subtle world-map texture (image rendered at low opacity) */
.te-counter-readable::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../theme/images/section-bg/world-map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.te-counter-readable > .container {
    position: relative;
    z-index: 1;
}

.te-counter-readable .te-counter-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Each counter sits in a glassmorphism card */
.te-counter-readable .te-counter-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px 26px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.te-counter-readable .te-counter-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
}

.te-counter-readable .te-counter-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Icon stays as the brand-blue circle defined above */

/* White text + a soft text-shadow for extra contrast */
.te-counter-readable .te-counter-item .te-counter-title .content .title {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 4px rgba(20, 32, 58, 0.5);
    font-weight: 600;
    margin-bottom: 4px;
}
.te-counter-readable .te-counter-item .te-counter-title .content .number {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(20, 32, 58, 0.6);
    line-height: 1.1;
}

/* Mobile: cards stack into a 2x2 grid */
@media (max-width: 991px) {
    .te-counter-readable .te-counter-card {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .te-counter-readable .te-counter-card {
        grid-template-columns: 1fr;
    }
}

/* About-us "Daily Activity" badge icon (about page style-2 variant) */
.te-badge-text .icon i {
    color: #317EFE;
    font-size: 24px;
    line-height: 1;
}

/* Contact page te-icon-card (style-2) icons */
.te-icon-card.style-2 .icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #317EFE 0%, #8b5cf6 100%);
    border-radius: 50%;
    margin-right: 16px;
}
.te-icon-card.style-2 .icon i {
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

/* Make the work-process pin shape not collapse to a tiny circle on Safari/Chrome
   — restore explicit dimensions for <i> inside pin (currently only used in the
   'root' pseudo-pin) */
.te-process-tree-area .te-pin {
    /* already styled above */
}
