/* =========================================
   1. CONTAINER & BACKGROUND
   ========================================= */
.animated-tp-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 30px 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

/* NEW: Stacked Layout for Top & Bottom panels */
.tp-stacked-layout {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between the Team card and Presence card */
    width: 100%;
}

/* =========================================
   2. THE LARGE WHITE PANELS
   ========================================= */
.tp-large-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px; /* Generous padding for wide cards */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
}

/* Titles */
.card-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-align: center;
}
.text-orange { color: #0d8417; }
.text-blue { color: #2b70b6; }

/* =========================================
   3. OUR TEAM GRID (Full Width)
   ========================================= */
.team-stats-grid {
    display: grid;
    /* NEW: 5 columns for a wide, sleek look */
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
}

.tp-stat-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 3px solid transparent;
}

/* Engineering box takes up 2 slots to balance the 5-column grid perfectly */
.wide-box { grid-column: span 2; }

.tp-stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(33, 243, 37, 0.15);
    border-bottom: 3px solid #12c612;
}

.stat-name {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.3;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: #222;
    margin-bottom: 10px;
}

.stat-icon { font-size: 20px; opacity: 0.8; }

/* =========================================
   4. OUR PRESENCE LAYOUT
   ========================================= */
.presence-layout {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.pin-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px; 
    flex: 1;
}

.left-pins { align-items: flex-end; }
.right-pins { align-items: flex-start; }

.location-pin {
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid #f0f0f0;
}

.location-pin:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(43, 112, 182, 0.15);
    border-color: #2b70b6;
}

/* =========================================
   5. THE MAP GRAPHIC
   ========================================= */
.map-graphic-container {
    flex: 2; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
}

.floating-map-wrapper {
    position: relative;
    width: 100%;
    /* NEW: Map can be much larger now that the card is full width */
    max-width: 600px; 
    animation: floatMap 6s ease-in-out infinite; 
    margin: 0 auto;
}

.india-png-map {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0px 8px 12px rgba(15, 76, 146, 0.25));
}

.map-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #1e9f36;
    border-radius: 50%;
    box-shadow: 0 0 10px #2d8447, 0 0 20px #2dcc77;
    animation: pulse 2s infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* Stops dots from being clickable */
}

/* =========================================
   6. ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes floatMap {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   7. RESPONSIVE DESIGN
   ========================================= */

/* Tablets / Laptops (Max 1024px) */
@media (max-width: 1024px) {
    .team-stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Drops to 3 columns */
    }
    .wide-box { grid-column: span 3; }
    .tp-large-card { padding: 40px 30px; }
}

/* Tablets Portrait (Max 768px) */
@media (max-width: 768px) {
    .team-stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Drops to 2 columns */
    }
    .wide-box { grid-column: span 2; }
    
    .presence-layout {
        flex-direction: column;
    }
    .map-graphic-container {
        order: -1; 
        margin-bottom: 30px;
    }
    .floating-map-wrapper { max-width: 400px; }
    
    .pin-column {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 15px; 
    }
    .left-pins, .right-pins { align-items: center; }
}

/* Mobile Phones (Max 480px) */
@media (max-width: 480px) {
    .tp-large-card { padding: 30px 15px; }
    .team-stats-grid { grid-template-columns: 1fr; }
    .wide-box { grid-column: span 1; }
    .location-pin { width: 100%; justify-content: center; }
}

.mt-3 {
    margin-top: 0rem !important;
}