/* Layout fixes for Team slide */
#slide-3 {
    overflow-y: auto;
    overflow-x: hidden;
}

#slide-3 .content {
    max-width: 1200px;
    padding: 80px 40px 60px; /* Increased top padding */
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#slide-3 .section-title {
    margin-top: 20px; /* Add space from top */
    margin-bottom: 50px; /* Increased bottom margin */
}

/* Team showcase container */
.team-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

/* Adjust team grid spacing */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Reduce avatar size slightly to fit better */
#slide-3 .member-avatar {
    width: 120px;
    height: 120px;
}

/* Adjust approach box padding */
#slide-3 .our-approach {
    padding: 32px;
    margin-bottom: 30px;
}

/* Compact the approach elements */
#slide-3 .approach-elements {
    gap: 20px;
    margin-bottom: 24px;
}

#slide-3 .approach-item {
    padding: 20px 16px;
}

#slide-3 .approach-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

#slide-3 .approach-label {
    font-size: 16px;
    margin-bottom: 6px;
}

#slide-3 .approach-description {
    font-size: 13px;
}

/* Adjust real example box */
#slide-3 .real-example {
    padding: 20px;
}

#slide-3 .example-text {
    font-size: 16px;
}

/* Compact success stats */
#slide-3 .success-stats {
    gap: 24px;
    margin-top: 30px;
}

#slide-3 .stat-card {
    padding: 20px;
}

#slide-3 .stat-number {
    font-size: 32px;
    margin-bottom: 6px;
}

#slide-3 .stat-label {
    font-size: 15px;
    margin-bottom: 6px;
}

#slide-3 .stat-context {
    font-size: 13px;
}

/* Ensure content fits in viewport */
@media (min-height: 800px) {
    #slide-3 .content {
        justify-content: center;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #slide-3 .content {
        padding: 60px 30px 40px;
    }
    
    .team-grid {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    #slide-3 .content {
        padding: 50px 24px 40px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #slide-3 .member-avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    #slide-3 .section-title {
        font-size: 40px;
        margin-bottom: 30px;
    }
    
    #slide-3 .our-approach {
        padding: 24px 20px;
    }
    
    #slide-3 .approach-title {
        font-size: 22px;
    }
    
    #slide-3 .stat-number {
        font-size: 28px;
    }
}